instead.');
- }
- if (this.lastDeltaChangeSet &&
- props.value === this.lastDeltaChangeSet)
- throw new Error('You are passing the `delta` object from the `onChange` event back ' +
- 'as `value`. You most probably want `editor.getContents()` instead. ' +
- 'See: https://github.com/zenoamaro/react-quill#using-deltas');
- };
- ReactQuill.prototype.shouldComponentUpdate = function (nextProps, nextState) {
- var _this = this;
- var _a;
- this.validateProps(nextProps);
- // If the editor hasn't been instantiated yet, or the component has been
- // regenerated, we already know we should update.
- if (!this.editor || this.state.generation !== nextState.generation) {
- return true;
- }
- // Handle value changes in-place
- if ('value' in nextProps) {
- var prevContents = this.getEditorContents();
- var nextContents = (_a = nextProps.value, (_a !== null && _a !== void 0 ? _a : ''));
- // NOTE: Seeing that Quill is missing a way to prevent edits, we have to
- // settle for a hybrid between controlled and uncontrolled mode. We
- // can't prevent the change, but we'll still override content
- // whenever `value` differs from current state.
- // NOTE: Comparing an HTML string and a Quill Delta will always trigger a
- // change, regardless of whether they represent the same document.
- if (!this.isEqualValue(nextContents, prevContents)) {
- this.setEditorContents(this.editor, nextContents);
- }
- }
- // Handle read-only changes in-place
- if (nextProps.readOnly !== this.props.readOnly) {
- this.setEditorReadOnly(this.editor, nextProps.readOnly);
- }
- // Clean and Dirty props require a render
- return __spreadArrays(this.cleanProps, this.dirtyProps).some(function (prop) {
- return !isEqual_1.default(nextProps[prop], _this.props[prop]);
- });
- };
- ReactQuill.prototype.shouldComponentRegenerate = function (nextProps) {
- var _this = this;
- // Whenever a `dirtyProp` changes, the editor needs reinstantiation.
- return this.dirtyProps.some(function (prop) {
- return !isEqual_1.default(nextProps[prop], _this.props[prop]);
+class Tooltip {
+ constructor(quill, boundsContainer) {
+ this.quill = quill;
+ this.boundsContainer = boundsContainer || document.body;
+ this.root = quill.addContainer('ql-tooltip');
+ // @ts-expect-error
+ this.root.innerHTML = this.constructor.TEMPLATE;
+ if (isScrollable(this.quill.root)) {
+ this.quill.root.addEventListener('scroll', () => {
+ this.root.style.marginTop = `${-1 * this.quill.root.scrollTop}px`;
+ });
+ }
+ this.hide();
+ }
+ hide() {
+ this.root.classList.add('ql-hidden');
+ }
+ position(reference) {
+ const left = reference.left + reference.width / 2 - this.root.offsetWidth / 2;
+ // root.scrollTop should be 0 if scrollContainer !== root
+ const top = reference.bottom + this.quill.root.scrollTop;
+ this.root.style.left = `${left}px`;
+ this.root.style.top = `${top}px`;
+ this.root.classList.remove('ql-flip');
+ const containerBounds = this.boundsContainer.getBoundingClientRect();
+ const rootBounds = this.root.getBoundingClientRect();
+ let shift = 0;
+ if (rootBounds.right > containerBounds.right) {
+ shift = containerBounds.right - rootBounds.right;
+ this.root.style.left = `${left + shift}px`;
+ }
+ if (rootBounds.left < containerBounds.left) {
+ shift = containerBounds.left - rootBounds.left;
+ this.root.style.left = `${left + shift}px`;
+ }
+ if (rootBounds.bottom > containerBounds.bottom) {
+ const height = rootBounds.bottom - rootBounds.top;
+ const verticalShift = reference.bottom - reference.top + height;
+ this.root.style.top = `${top - verticalShift}px`;
+ this.root.classList.add('ql-flip');
+ }
+ return shift;
+ }
+ show() {
+ this.root.classList.remove('ql-editing');
+ this.root.classList.remove('ql-hidden');
+ }
+}
+
+const ALIGNS = [false, 'center', 'right', 'justify'];
+const COLORS = ['#000000', '#e60000', '#ff9900', '#ffff00', '#008a00', '#0066cc', '#9933ff', '#ffffff', '#facccc', '#ffebcc', '#ffffcc', '#cce8cc', '#cce0f5', '#ebd6ff', '#bbbbbb', '#f06666', '#ffc266', '#ffff66', '#66b966', '#66a3e0', '#c285ff', '#888888', '#a10000', '#b26b00', '#b2b200', '#006100', '#0047b2', '#6b24b2', '#444444', '#5c0000', '#663d00', '#666600', '#003700', '#002966', '#3d1466'];
+const FONTS = [false, 'serif', 'monospace'];
+const HEADERS = ['1', '2', '3', false];
+const SIZES$1 = ['small', false, 'large', 'huge'];
+class BaseTheme extends Theme {
+ constructor(quill, options) {
+ super(quill, options);
+ const listener = e => {
+ if (!document.body.contains(quill.root)) {
+ document.body.removeEventListener('click', listener);
+ return;
+ }
+ if (this.tooltip != null &&
+ // @ts-expect-error
+ !this.tooltip.root.contains(e.target) &&
+ // @ts-expect-error
+ document.activeElement !== this.tooltip.textbox && !this.quill.hasFocus()) {
+ this.tooltip.hide();
+ }
+ if (this.pickers != null) {
+ this.pickers.forEach(picker => {
+ // @ts-expect-error
+ if (!picker.container.contains(e.target)) {
+ picker.close();
+ }
});
+ }
};
- ReactQuill.prototype.componentDidMount = function () {
- this.instantiateEditor();
- this.setEditorContents(this.editor, this.getEditorContents());
- };
- ReactQuill.prototype.componentWillUnmount = function () {
- this.destroyEditor();
- };
- ReactQuill.prototype.componentDidUpdate = function (prevProps, prevState) {
- var _this = this;
- // If we're changing one of the `dirtyProps`, the entire Quill Editor needs
- // to be re-instantiated. Regenerating the editor will cause the whole tree,
- // including the container, to be cleaned up and re-rendered from scratch.
- // Store the contents so they can be restored later.
- if (this.editor && this.shouldComponentRegenerate(prevProps)) {
- var delta = this.editor.getContents();
- var selection = this.editor.getSelection();
- this.regenerationSnapshot = { delta: delta, selection: selection };
- this.setState({ generation: this.state.generation + 1 });
- this.destroyEditor();
- }
- // The component has been regenerated, so it must be re-instantiated, and
- // its content must be restored to the previous values from the snapshot.
- if (this.state.generation !== prevState.generation) {
- var _a = this.regenerationSnapshot, delta = _a.delta, selection_1 = _a.selection;
- delete this.regenerationSnapshot;
- this.instantiateEditor();
- var editor_1 = this.editor;
- editor_1.setContents(delta);
- postpone(function () { return _this.setEditorSelection(editor_1, selection_1); });
- }
- };
- ReactQuill.prototype.instantiateEditor = function () {
- if (this.editor) {
- this.hookEditor(this.editor);
- }
- else {
- this.editor = this.createEditor(this.getEditingArea(), this.getEditorConfig());
- }
- };
- ReactQuill.prototype.destroyEditor = function () {
- if (!this.editor)
- return;
- this.unhookEditor(this.editor);
- };
- /*
- We consider the component to be controlled if `value` is being sent in props.
- */
- ReactQuill.prototype.isControlled = function () {
- return 'value' in this.props;
- };
- ReactQuill.prototype.getEditorConfig = function () {
- return {
- bounds: this.props.bounds,
- formats: this.props.formats,
- modules: this.props.modules,
- placeholder: this.props.placeholder,
- readOnly: this.props.readOnly,
- scrollingContainer: this.props.scrollingContainer,
- tabIndex: this.props.tabIndex,
- theme: this.props.theme,
- };
- };
- ReactQuill.prototype.getEditor = function () {
- if (!this.editor)
- throw new Error('Accessing non-instantiated editor');
- return this.editor;
- };
- /**
- Creates an editor on the given element. The editor will be passed the
- configuration, have its events bound,
- */
- ReactQuill.prototype.createEditor = function (element, config) {
- var editor = new quill_1.default(element, config);
- if (config.tabIndex != null) {
- this.setEditorTabIndex(editor, config.tabIndex);
- }
- this.hookEditor(editor);
- return editor;
- };
- ReactQuill.prototype.hookEditor = function (editor) {
- // Expose the editor on change events via a weaker, unprivileged proxy
- // object that does not allow accidentally modifying editor state.
- this.unprivilegedEditor = this.makeUnprivilegedEditor(editor);
- // Using `editor-change` allows picking up silent updates, like selection
- // changes on typing.
- editor.on('editor-change', this.onEditorChange);
- };
- ReactQuill.prototype.unhookEditor = function (editor) {
- editor.off('editor-change', this.onEditorChange);
- };
- ReactQuill.prototype.getEditorContents = function () {
- return this.value;
- };
- ReactQuill.prototype.getEditorSelection = function () {
- return this.selection;
- };
- /*
- True if the value is a Delta instance or a Delta look-alike.
- */
- ReactQuill.prototype.isDelta = function (value) {
- return value && value.ops;
- };
- /*
- Special comparison function that knows how to compare Deltas.
- */
- ReactQuill.prototype.isEqualValue = function (value, nextValue) {
- if (this.isDelta(value) && this.isDelta(nextValue)) {
- return isEqual_1.default(value.ops, nextValue.ops);
- }
- else {
- return isEqual_1.default(value, nextValue);
+ quill.emitter.listenDOM('click', document.body, listener);
+ }
+ addModule(name) {
+ const module = super.addModule(name);
+ if (name === 'toolbar') {
+ // @ts-expect-error
+ this.extendToolbar(module);
+ }
+ return module;
+ }
+ buildButtons(buttons, icons) {
+ Array.from(buttons).forEach(button => {
+ const className = button.getAttribute('class') || '';
+ className.split(/\s+/).forEach(name => {
+ if (!name.startsWith('ql-')) return;
+ name = name.slice('ql-'.length);
+ if (icons[name] == null) return;
+ if (name === 'direction') {
+ // @ts-expect-error
+ button.innerHTML = icons[name][''] + icons[name].rtl;
+ } else if (typeof icons[name] === 'string') {
+ // @ts-expect-error
+ button.innerHTML = icons[name];
+ } else {
+ // @ts-expect-error
+ const value = button.value || '';
+ // @ts-expect-error
+ if (value != null && icons[name][value]) {
+ // @ts-expect-error
+ button.innerHTML = icons[name][value];
+ }
}
- };
- /*
- Replace the contents of the editor, but keep the previous selection hanging
- around so that the cursor won't move.
- */
- ReactQuill.prototype.setEditorContents = function (editor, value) {
- var _this = this;
- this.value = value;
- var sel = this.getEditorSelection();
- if (typeof value === 'string') {
- editor.setContents(editor.clipboard.convert(value));
+ });
+ });
+ }
+ buildPickers(selects, icons) {
+ this.pickers = Array.from(selects).map(select => {
+ if (select.classList.contains('ql-align')) {
+ if (select.querySelector('option') == null) {
+ fillSelect(select, ALIGNS);
}
- else {
- editor.setContents(value);
+ if (typeof icons.align === 'object') {
+ return new IconPicker(select, icons.align);
}
- postpone(function () { return _this.setEditorSelection(editor, sel); });
- };
- ReactQuill.prototype.setEditorSelection = function (editor, range) {
- this.selection = range;
- if (range) {
- // Validate bounds before applying.
- var length_1 = editor.getLength();
- range.index = Math.max(0, Math.min(range.index, length_1 - 1));
- range.length = Math.max(0, Math.min(range.length, (length_1 - 1) - range.index));
- editor.setSelection(range);
+ }
+ if (select.classList.contains('ql-background') || select.classList.contains('ql-color')) {
+ const format = select.classList.contains('ql-background') ? 'background' : 'color';
+ if (select.querySelector('option') == null) {
+ fillSelect(select, COLORS, format === 'background' ? '#ffffff' : '#000000');
}
- };
- ReactQuill.prototype.setEditorTabIndex = function (editor, tabIndex) {
- var _a, _b;
- if ((_b = (_a = editor) === null || _a === void 0 ? void 0 : _a.scroll) === null || _b === void 0 ? void 0 : _b.domNode) {
- editor.scroll.domNode.tabIndex = tabIndex;
+ return new ColorPicker(select, icons[format]);
+ }
+ if (select.querySelector('option') == null) {
+ if (select.classList.contains('ql-font')) {
+ fillSelect(select, FONTS);
+ } else if (select.classList.contains('ql-header')) {
+ fillSelect(select, HEADERS);
+ } else if (select.classList.contains('ql-size')) {
+ fillSelect(select, SIZES$1);
}
+ }
+ return new Picker(select);
+ });
+ const update = () => {
+ this.pickers.forEach(picker => {
+ picker.update();
+ });
};
- ReactQuill.prototype.setEditorReadOnly = function (editor, value) {
- if (value) {
- editor.disable();
- }
- else {
- editor.enable();
+ this.quill.on(Emitter.events.EDITOR_CHANGE, update);
+ }
+}
+BaseTheme.DEFAULTS = merge$1({}, Theme.DEFAULTS, {
+ modules: {
+ toolbar: {
+ handlers: {
+ formula() {
+ this.quill.theme.tooltip.edit('formula');
+ },
+ image() {
+ let fileInput = this.container.querySelector('input.ql-image[type=file]');
+ if (fileInput == null) {
+ fileInput = document.createElement('input');
+ fileInput.setAttribute('type', 'file');
+ fileInput.setAttribute('accept', this.quill.uploader.options.mimetypes.join(', '));
+ fileInput.classList.add('ql-image');
+ fileInput.addEventListener('change', () => {
+ const range = this.quill.getSelection(true);
+ this.quill.uploader.upload(range, fileInput.files);
+ fileInput.value = '';
+ });
+ this.container.appendChild(fileInput);
+ }
+ fileInput.click();
+ },
+ video() {
+ this.quill.theme.tooltip.edit('video');
}
- };
- /*
- Returns a weaker, unprivileged proxy object that only exposes read-only
- accessors found on the editor instance, without any state-modifying methods.
- */
- ReactQuill.prototype.makeUnprivilegedEditor = function (editor) {
- var e = editor;
- return {
- getHTML: function () { return e.root.innerHTML; },
- getLength: e.getLength.bind(e),
- getText: e.getText.bind(e),
- getContents: e.getContents.bind(e),
- getSelection: e.getSelection.bind(e),
- getBounds: e.getBounds.bind(e),
- };
- };
- ReactQuill.prototype.getEditingArea = function () {
- if (!this.editingArea) {
- throw new Error('Instantiating on missing editing area');
+ }
+ }
+ }
+});
+class BaseTooltip extends Tooltip {
+ constructor(quill, boundsContainer) {
+ super(quill, boundsContainer);
+ this.textbox = this.root.querySelector('input[type="text"]');
+ this.listen();
+ }
+ listen() {
+ // @ts-expect-error Fix me later
+ this.textbox.addEventListener('keydown', event => {
+ if (event.key === 'Enter') {
+ this.save();
+ event.preventDefault();
+ } else if (event.key === 'Escape') {
+ this.cancel();
+ event.preventDefault();
+ }
+ });
+ }
+ cancel() {
+ this.hide();
+ this.restoreFocus();
+ }
+ edit() {
+ let mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'link';
+ let preview = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
+ this.root.classList.remove('ql-hidden');
+ this.root.classList.add('ql-editing');
+ if (this.textbox == null) return;
+ if (preview != null) {
+ this.textbox.value = preview;
+ } else if (mode !== this.root.getAttribute('data-mode')) {
+ this.textbox.value = '';
+ }
+ const bounds = this.quill.getBounds(this.quill.selection.savedRange);
+ if (bounds != null) {
+ this.position(bounds);
+ }
+ this.textbox.select();
+ this.textbox.setAttribute('placeholder', this.textbox.getAttribute(`data-${mode}`) || '');
+ this.root.setAttribute('data-mode', mode);
+ }
+ restoreFocus() {
+ this.quill.focus({
+ preventScroll: true
+ });
+ }
+ save() {
+ // @ts-expect-error Fix me later
+ let {
+ value
+ } = this.textbox;
+ switch (this.root.getAttribute('data-mode')) {
+ case 'link':
+ {
+ const {
+ scrollTop
+ } = this.quill.root;
+ if (this.linkRange) {
+ this.quill.formatText(this.linkRange, 'link', value, Emitter.sources.USER);
+ delete this.linkRange;
+ } else {
+ this.restoreFocus();
+ this.quill.format('link', value, Emitter.sources.USER);
+ }
+ this.quill.root.scrollTop = scrollTop;
+ break;
}
- var element = react_dom_1.default.findDOMNode(this.editingArea);
- if (!element) {
- throw new Error('Cannot find element for editing area');
+ case 'video':
+ {
+ value = extractVideoUrl(value);
}
- if (element.nodeType === 3) {
- throw new Error('Editing area cannot be a text node');
+ // eslint-disable-next-line no-fallthrough
+ case 'formula':
+ {
+ if (!value) break;
+ const range = this.quill.getSelection(true);
+ if (range != null) {
+ const index = range.index + range.length;
+ this.quill.insertEmbed(index,
+ // @ts-expect-error Fix me later
+ this.root.getAttribute('data-mode'), value, Emitter.sources.USER);
+ if (this.root.getAttribute('data-mode') === 'formula') {
+ this.quill.insertText(index + 1, ' ', Emitter.sources.USER);
+ }
+ this.quill.setSelection(index + 2, Emitter.sources.USER);
+ }
+ break;
}
- return element;
- };
- /*
- Renders an editor area, unless it has been provided one to clone.
- */
- ReactQuill.prototype.renderEditingArea = function () {
- var _this = this;
- var _a = this.props, children = _a.children, preserveWhitespace = _a.preserveWhitespace;
- var generation = this.state.generation;
- var properties = {
- key: generation,
- ref: function (instance) {
- _this.editingArea = instance;
- },
- };
- if (react_1.default.Children.count(children)) {
- return react_1.default.cloneElement(react_1.default.Children.only(children), properties);
+ }
+ // @ts-expect-error Fix me later
+ this.textbox.value = '';
+ this.hide();
+ }
+}
+function extractVideoUrl(url) {
+ let match = url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
+ if (match) {
+ return `${match[1] || 'https'}://www.youtube.com/embed/${match[2]}?showinfo=0`;
+ }
+ // eslint-disable-next-line no-cond-assign
+ if (match = url.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) {
+ return `${match[1] || 'https'}://player.vimeo.com/video/${match[2]}/`;
+ }
+ return url;
+}
+function fillSelect(select, values) {
+ let defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
+ values.forEach(value => {
+ const option = document.createElement('option');
+ if (value === defaultValue) {
+ option.setAttribute('selected', 'selected');
+ } else {
+ option.setAttribute('value', String(value));
+ }
+ select.appendChild(option);
+ });
+}
+
+const TOOLBAR_CONFIG$1 = [['bold', 'italic', 'link'], [{
+ header: 1
+}, {
+ header: 2
+}, 'blockquote']];
+class BubbleTooltip extends BaseTooltip {
+ static TEMPLATE = ['
', '
'].join('');
+ constructor(quill, bounds) {
+ super(quill, bounds);
+ this.quill.on(Emitter.events.EDITOR_CHANGE, (type, range, oldRange, source) => {
+ if (type !== Emitter.events.SELECTION_CHANGE) return;
+ if (range != null && range.length > 0 && source === Emitter.sources.USER) {
+ this.show();
+ // Lock our width so we will expand beyond our offsetParent boundaries
+ this.root.style.left = '0px';
+ this.root.style.width = '';
+ this.root.style.width = `${this.root.offsetWidth}px`;
+ const lines = this.quill.getLines(range.index, range.length);
+ if (lines.length === 1) {
+ const bounds = this.quill.getBounds(range);
+ if (bounds != null) {
+ this.position(bounds);
+ }
+ } else {
+ const lastLine = lines[lines.length - 1];
+ const index = this.quill.getIndex(lastLine);
+ const length = Math.min(lastLine.length() - 1, range.index + range.length - index);
+ const indexBounds = this.quill.getBounds(new Range(index, length));
+ if (indexBounds != null) {
+ this.position(indexBounds);
+ }
}
- return preserveWhitespace ?
- react_1.default.createElement("pre", __assign({}, properties)) :
- react_1.default.createElement("div", __assign({}, properties));
- };
- ReactQuill.prototype.render = function () {
- var _a;
- return (react_1.default.createElement("div", { id: this.props.id, style: this.props.style, key: this.state.generation, className: "quill " + (_a = this.props.className, (_a !== null && _a !== void 0 ? _a : '')), onKeyPress: this.props.onKeyPress, onKeyDown: this.props.onKeyDown, onKeyUp: this.props.onKeyUp }, this.renderEditingArea()));
- };
- ReactQuill.prototype.onEditorChangeText = function (value, delta, source, editor) {
- var _a, _b;
- if (!this.editor)
- return;
- // We keep storing the same type of value as what the user gives us,
- // so that value comparisons will be more stable and predictable.
- var nextContents = this.isDelta(this.value)
- ? editor.getContents()
- : editor.getHTML();
- if (nextContents !== this.getEditorContents()) {
- // Taint this `delta` object, so we can recognize whether the user
- // is trying to send it back as `value`, preventing a likely loop.
- this.lastDeltaChangeSet = delta;
- this.value = nextContents;
- (_b = (_a = this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, value, delta, source, editor);
+ } else if (document.activeElement !== this.textbox && this.quill.hasFocus()) {
+ this.hide();
+ }
+ });
+ }
+ listen() {
+ super.listen();
+ // @ts-expect-error Fix me later
+ this.root.querySelector('.ql-close').addEventListener('click', () => {
+ this.root.classList.remove('ql-editing');
+ });
+ this.quill.on(Emitter.events.SCROLL_OPTIMIZE, () => {
+ // Let selection be restored by toolbar handlers before repositioning
+ setTimeout(() => {
+ if (this.root.classList.contains('ql-hidden')) return;
+ const range = this.quill.getSelection();
+ if (range != null) {
+ const bounds = this.quill.getBounds(range);
+ if (bounds != null) {
+ this.position(bounds);
+ }
}
- };
- ReactQuill.prototype.onEditorChangeSelection = function (nextSelection, source, editor) {
- var _a, _b, _c, _d, _e, _f;
- if (!this.editor)
- return;
- var currentSelection = this.getEditorSelection();
- var hasGainedFocus = !currentSelection && nextSelection;
- var hasLostFocus = currentSelection && !nextSelection;
- if (isEqual_1.default(nextSelection, currentSelection))
- return;
- this.selection = nextSelection;
- (_b = (_a = this.props).onChangeSelection) === null || _b === void 0 ? void 0 : _b.call(_a, nextSelection, source, editor);
- if (hasGainedFocus) {
- (_d = (_c = this.props).onFocus) === null || _d === void 0 ? void 0 : _d.call(_c, nextSelection, source, editor);
+ }, 1);
+ });
+ }
+ cancel() {
+ this.show();
+ }
+ position(reference) {
+ const shift = super.position(reference);
+ const arrow = this.root.querySelector('.ql-tooltip-arrow');
+ // @ts-expect-error
+ arrow.style.marginLeft = '';
+ if (shift !== 0) {
+ // @ts-expect-error
+ arrow.style.marginLeft = `${-1 * shift - arrow.offsetWidth / 2}px`;
+ }
+ return shift;
+ }
+}
+class BubbleTheme extends BaseTheme {
+ constructor(quill, options) {
+ if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
+ options.modules.toolbar.container = TOOLBAR_CONFIG$1;
+ }
+ super(quill, options);
+ this.quill.container.classList.add('ql-bubble');
+ }
+ extendToolbar(toolbar) {
+ // @ts-expect-error
+ this.tooltip = new BubbleTooltip(this.quill, this.options.bounds);
+ if (toolbar.container != null) {
+ this.tooltip.root.appendChild(toolbar.container);
+ this.buildButtons(toolbar.container.querySelectorAll('button'), Icons$1);
+ this.buildPickers(toolbar.container.querySelectorAll('select'), Icons$1);
+ }
+ }
+}
+BubbleTheme.DEFAULTS = merge$1({}, BaseTheme.DEFAULTS, {
+ modules: {
+ toolbar: {
+ handlers: {
+ link(value) {
+ if (!value) {
+ this.quill.format('link', false, Quill.sources.USER);
+ } else {
+ // @ts-expect-error
+ this.quill.theme.tooltip.edit();
+ }
}
- else if (hasLostFocus) {
- (_f = (_e = this.props).onBlur) === null || _f === void 0 ? void 0 : _f.call(_e, currentSelection, source, editor);
+ }
+ }
+ }
+});
+
+const TOOLBAR_CONFIG = [[{
+ header: ['1', '2', '3', false]
+}], ['bold', 'italic', 'underline', 'link'], [{
+ list: 'ordered'
+}, {
+ list: 'bullet'
+}], ['clean']];
+class SnowTooltip extends BaseTooltip {
+ static TEMPLATE = ['
', '
', '
', '
'].join('');
+ preview = this.root.querySelector('a.ql-preview');
+ listen() {
+ super.listen();
+ // @ts-expect-error Fix me later
+ this.root.querySelector('a.ql-action').addEventListener('click', event => {
+ if (this.root.classList.contains('ql-editing')) {
+ this.save();
+ } else {
+ // @ts-expect-error Fix me later
+ this.edit('link', this.preview.textContent);
+ }
+ event.preventDefault();
+ });
+ // @ts-expect-error Fix me later
+ this.root.querySelector('a.ql-remove').addEventListener('click', event => {
+ if (this.linkRange != null) {
+ const range = this.linkRange;
+ this.restoreFocus();
+ this.quill.formatText(range, 'link', false, Emitter.sources.USER);
+ delete this.linkRange;
+ }
+ event.preventDefault();
+ this.hide();
+ });
+ this.quill.on(Emitter.events.SELECTION_CHANGE, (range, oldRange, source) => {
+ if (range == null) return;
+ if (range.length === 0 && source === Emitter.sources.USER) {
+ const [link, offset] = this.quill.scroll.descendant(Link$1, range.index);
+ if (link != null) {
+ this.linkRange = new Range(range.index - offset, link.length());
+ const preview = Link$1.formats(link.domNode);
+ // @ts-expect-error Fix me later
+ this.preview.textContent = preview;
+ // @ts-expect-error Fix me later
+ this.preview.setAttribute('href', preview);
+ this.show();
+ const bounds = this.quill.getBounds(this.linkRange);
+ if (bounds != null) {
+ this.position(bounds);
+ }
+ return;
}
- };
- ReactQuill.prototype.focus = function () {
- if (!this.editor)
- return;
- this.editor.focus();
- };
- ReactQuill.prototype.blur = function () {
- if (!this.editor)
- return;
- this.selection = null;
- this.editor.blur();
- };
- ReactQuill.displayName = 'React Quill';
- /*
- Export Quill to be able to call `register`
- */
- ReactQuill.Quill = quill_1.default;
- ReactQuill.defaultProps = {
- theme: 'snow',
- modules: {},
- readOnly: false,
- };
- return ReactQuill;
-}(react_1.default.Component));
-/*
-Small helper to execute a function in the next micro-tick.
-*/
-function postpone(fn) {
- Promise.resolve().then(fn);
+ } else {
+ delete this.linkRange;
+ }
+ this.hide();
+ });
+ }
+ show() {
+ super.show();
+ this.root.removeAttribute('data-mode');
+ }
}
-var lib = ReactQuill;
-
+class SnowTheme extends BaseTheme {
+ constructor(quill, options) {
+ if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
+ options.modules.toolbar.container = TOOLBAR_CONFIG;
+ }
+ super(quill, options);
+ this.quill.container.classList.add('ql-snow');
+ }
+ extendToolbar(toolbar) {
+ if (toolbar.container != null) {
+ toolbar.container.classList.add('ql-snow');
+ this.buildButtons(toolbar.container.querySelectorAll('button'), Icons$1);
+ this.buildPickers(toolbar.container.querySelectorAll('select'), Icons$1);
+ // @ts-expect-error
+ this.tooltip = new SnowTooltip(this.quill, this.options.bounds);
+ if (toolbar.container.querySelector('.ql-link')) {
+ this.quill.keyboard.addBinding({
+ key: 'k',
+ shortKey: true
+ }, (_range, context) => {
+ toolbar.handlers.link.call(toolbar, !context.format.link);
+ });
+ }
+ }
+ }
+}
+SnowTheme.DEFAULTS = merge$1({}, BaseTheme.DEFAULTS, {
+ modules: {
+ toolbar: {
+ handlers: {
+ link(value) {
+ if (value) {
+ const range = this.quill.getSelection();
+ if (range == null || range.length === 0) return;
+ let preview = this.quill.getText(range);
+ if (/^\S+@\S+\.\S+$/.test(preview) && preview.indexOf('mailto:') !== 0) {
+ preview = `mailto:${preview}`;
+ }
+ // @ts-expect-error
+ const {
+ tooltip
+ } = this.quill.theme;
+ tooltip.edit('link', preview);
+ } else {
+ this.quill.format('link', false, Quill.sources.USER);
+ }
+ }
+ }
+ }
+ }
+});
-var ReactQuill$1 = /*@__PURE__*/getDefaultExportFromCjs(lib);
+Quill.register({
+ 'attributors/attribute/direction': DirectionAttribute,
+ 'attributors/class/align': AlignClass,
+ 'attributors/class/background': BackgroundClass,
+ 'attributors/class/color': ColorClass,
+ 'attributors/class/direction': DirectionClass,
+ 'attributors/class/font': FontClass,
+ 'attributors/class/size': SizeClass,
+ 'attributors/style/align': AlignStyle,
+ 'attributors/style/background': BackgroundStyle,
+ 'attributors/style/color': ColorStyle,
+ 'attributors/style/direction': DirectionStyle,
+ 'attributors/style/font': FontStyle,
+ 'attributors/style/size': SizeStyle
+}, true);
+Quill.register({
+ 'formats/align': AlignClass,
+ 'formats/direction': DirectionClass,
+ 'formats/indent': IndentClass,
+ 'formats/background': BackgroundStyle,
+ 'formats/color': ColorStyle,
+ 'formats/font': FontClass,
+ 'formats/size': SizeClass,
+ 'formats/blockquote': Blockquote,
+ 'formats/code-block': CodeBlock,
+ 'formats/header': Header$1,
+ 'formats/list': ListItem,
+ 'formats/bold': Bold,
+ 'formats/code': Code,
+ 'formats/italic': Italic,
+ 'formats/link': Link$1,
+ 'formats/script': Script,
+ 'formats/strike': Strike,
+ 'formats/underline': Underline,
+ 'formats/formula': Formula,
+ 'formats/image': Image,
+ 'formats/video': Video,
+ 'modules/syntax': Syntax,
+ 'modules/table': Table,
+ 'modules/toolbar': Toolbar,
+ 'themes/bubble': BubbleTheme,
+ 'themes/snow': SnowTheme,
+ 'ui/icons': Icons$1,
+ 'ui/picker': Picker,
+ 'ui/icon-picker': IconPicker,
+ 'ui/color-picker': ColorPicker,
+ 'ui/tooltip': Tooltip
+}, true);
var FormRichText = function (_a) {
- var style = _a.style, rest = __rest(_a, ["style"]);
- return React.createElement(ReactQuill$1, __assign$1({ theme: "snow", style: __assign$1({}, style) }, rest));
+ var modules = _a.modules, value = _a.value, onChange = _a.onChange, theme = _a.theme, importCallback = _a.importCallback, debug = _a.debug, rest = __rest(_a, ["modules", "value", "onChange", "theme", "importCallback", "debug"]);
+ var quillRef = React.useRef(null);
+ var containerRef = React.useRef(null);
+ // Set debug mode, false results in no output.
+ Quill.debug(debug || false);
+ var quillOptions = __assign(__assign({}, modules), { theme: theme || 'snow' });
+ var setValue = function (quillRef) {
+ var delta = quillRef.clipboard.convert({ html: value });
+ quillRef.setContents(delta, 'silent');
+ };
+ var configureListeners = function (quill) {
+ quill.on(Quill.events.TEXT_CHANGE, function () {
+ var _a;
+ if (onChange) {
+ onChange(((_a = quillRef.current) === null || _a === void 0 ? void 0 : _a.getSemanticHTML()) || '');
+ }
+ });
+ };
+ React.useEffect(function () {
+ if (containerRef.current) {
+ if (importCallback) {
+ // Callback to import new modules into quill, needs to be done within the same instance as the quill object.
+ importCallback();
+ }
+ var container_1 = containerRef.current;
+ var editorContainer = container_1.appendChild(container_1.ownerDocument.createElement('div'));
+ var quill = new Quill(editorContainer, quillOptions);
+ quillRef.current = quill; // Store the Quill instance in a ref
+ if (value) {
+ setValue(quill);
+ }
+ configureListeners(quill);
+ return function () {
+ container_1.innerHTML = '';
+ quillRef.current.off(Quill.events.TEXT_CHANGE);
+ };
+ }
+ // NOTE: Run effect once on component mount, please recheck dependencies if effect is updated.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+ return (React.createElement("div", { ref: containerRef, style: rest.style, id: rest.id, className: rest.className }));
};
FormRichText.Feedback = Feedback$1;
var FormDateTime = function (_a) {
var className = _a.className, rest = __rest(_a, ["className"]);
- return (React.createElement(Form$3.Control, __assign$1({ as: "input", type: "datetime-local", className: className }, rest)));
+ return (React.createElement(Form$3.Control, __assign({ as: "input", type: "datetime-local", className: className }, rest)));
};
FormDateTime.Feedback = Feedback$1;
@@ -26166,7 +28310,7 @@ function useRootClose$1(ref, onRootClose, _temp) {
var currentTarget = getRefTarget(ref);
warning$2(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
- preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent$1(e) || !isLeftClickEvent(e) || !!contains(currentTarget, (_e$composedPath$ = e.composedPath == null ? void 0 : e.composedPath()[0]) != null ? _e$composedPath$ : e.target);
+ preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent$1(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, (_e$composedPath$ = e.composedPath == null ? void 0 : e.composedPath()[0]) != null ? _e$composedPath$ : e.target);
}, [ref]);
var handleMouse = useEventCallback(function (e) {
if (!preventMouseRootCloseRef.current) {
@@ -27056,19 +29200,19 @@ var AsyncTypeahead = /*#__PURE__*/React.forwardRef(function (props, ref) {
var FormTypeahead = function (_a) {
var rest = __rest(_a, []);
- return React.createElement(Typeahead, __assign$1({}, rest));
+ return React.createElement(Typeahead, __assign({}, rest));
};
FormTypeahead.Feedback = Feedback$1;
var FormAsyncTypeahead = function (_a) {
var rest = __rest(_a, []);
- return React.createElement(AsyncTypeahead, __assign$1({}, rest));
+ return React.createElement(AsyncTypeahead, __assign({}, rest));
};
FormAsyncTypeahead.Feedback = Feedback$1;
var Form$1 = function (_a) {
var children = _a.children, rest = __rest(_a, ["children"]);
- return React.createElement(Form$3, __assign$1({}, rest), children);
+ return React.createElement(Form$3, __assign({}, rest), children);
};
Form$1.Group = FormGroup;
Form$1.Label = FormLabel;
@@ -27084,19 +29228,19 @@ Form$1.AsyncTypeahead = FormAsyncTypeahead;
var Title = function (_a) {
var text = _a.text, className = _a.className, rest = __rest(_a, ["text", "className"]);
- return (React.createElement("h1", __assign$1({ className: classNames(className, 'text-nowrap mb-0 title') }, rest), text));
+ return (React.createElement("h1", __assign({ className: classNames(className, 'text-nowrap mb-0 title') }, rest), text));
};
var Card = function (_a) {
var header = _a.header, children = _a.children, className = _a.className, rest = __rest(_a, ["header", "children", "className"]);
- return (React.createElement(Card$2, __assign$1({}, rest),
+ return (React.createElement(Card$2, __assign({}, rest),
React.createElement("h3", { className: classNames(className, 'mb-3 card-header') }, header),
children));
};
var Chip = function (_a) {
var className = _a.className, label = _a.label, _b = _a.theme, theme = _b === void 0 ? 'primary' : _b, rest = __rest(_a, ["className", "label", "theme"]);
- return (React.createElement("div", __assign$1({ className: classNames(className, "bg-".concat(theme, " text-center chip")) }, rest), label));
+ return (React.createElement("div", __assign({ className: classNames(className, "bg-".concat(theme, " text-center chip")) }, rest), label));
};
var ListSection;
@@ -27110,12 +29254,12 @@ var ListSectionContext = React.createContext(ListSection.NONE);
var ListHead = function (_a) {
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
return (React.createElement(ListSectionContext.Provider, { value: ListSection.HEAD },
- React.createElement("div", __assign$1({ className: classNames(className, 'mx-0 row card-header text-center list-head py-2 list-head sticky-top') }, rest), children)));
+ React.createElement("div", __assign({ className: classNames(className, 'mx-0 row card-header text-center list-head py-2 list-head sticky-top') }, rest), children)));
};
var ListRow = React.forwardRef(function (_a, ref) {
var className = _a.className, style = _a.style, children = _a.children, overdue = _a.overdue, rest = __rest(_a, ["className", "style", "children", "overdue"]);
- return (React.createElement("div", __assign$1({ className: classNames(className, 'row text-center mt-2 mx-0 list-row'), style: __assign$1({ border: overdue ? '2px solid #99444f' : 'none' }, style), ref: ref }, rest), children));
+ return (React.createElement("div", __assign({ className: classNames(className, 'row text-center mt-2 mx-0 list-row'), style: __assign({ border: overdue ? '2px solid #99444f' : 'none' }, style), ref: ref }, rest), children));
});
ListRow.displayName = 'ListRow';
@@ -27125,11 +29269,11 @@ var ListCell = function (_a) {
var border = borderStart ? 'border-start' : undefined;
switch (section) {
case ListSection.HEAD:
- return (React.createElement("div", __assign$1({ className: classNames(className, 'col list-cell text-uppercase') }, rest), children));
+ return (React.createElement("div", __assign({ className: classNames(className, 'col list-cell text-uppercase') }, rest), children));
case ListSection.BODY:
case ListSection.NONE:
default:
- return (React.createElement("div", __assign$1({ className: classNames(className, 'h-100 d-flex align-items-center list-cell') }, rest),
+ return (React.createElement("div", __assign({ className: classNames(className, 'h-100 d-flex align-items-center list-cell') }, rest),
React.createElement("div", { className: "bg-transparent card card-body h-100 w-100 py-3 d-flex justify-content-center align-items-center py-0 ".concat(border), style: { backgroundColor: background } },
React.createElement("div", { className: "w-100" }, children))));
}
@@ -27137,18 +29281,18 @@ var ListCell = function (_a) {
var ListCol = function (_a) {
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
- return (React.createElement(Col$1, __assign$1({ className: classNames(className, 'px-0 overflow-hidden') }, rest), children));
+ return (React.createElement(Col$1, __assign({ className: classNames(className, 'px-0 overflow-hidden') }, rest), children));
};
var ListBody = function (_a) {
var children = _a.children, rest = __rest(_a, ["children"]);
- return (React.createElement("div", __assign$1({}, rest),
+ return (React.createElement("div", __assign({}, rest),
React.createElement(ListSectionContext.Provider, { value: ListSection.BODY }, children)));
};
var List = function (_a) {
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
- return (React.createElement("div", __assign$1({ className: classNames(className, 'list-container') }, rest), children));
+ return (React.createElement("div", __assign({ className: classNames(className, 'list-container') }, rest), children));
};
List.Head = ListHead;
List.Cell = ListCell;
@@ -27158,7 +29302,7 @@ List.Body = ListBody;
var ProgressBar = function (_a) {
var percentage = _a.percentage, _b = _a.theme, theme = _b === void 0 ? 'primary' : _b, _c = _a.showPercentage, showPercentage = _c === void 0 ? true : _c, rest = __rest(_a, ["percentage", "theme", "showPercentage"]);
- return (React.createElement("div", __assign$1({ className: "d-flex flex-column align-items-center" }, rest),
+ return (React.createElement("div", __assign({ className: "d-flex flex-column align-items-center" }, rest),
React.createElement("div", { className: "my-2 w-100", style: {
height: '10px',
border: '1px solid',
@@ -27175,7 +29319,7 @@ var ProgressBar = function (_a) {
var SideNavbar = function (_a) {
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
- return (React.createElement("div", __assign$1({ className: classNames('d-none d-md-flex flex-column side-navbar-container', className, 'col-auto') }, rest), children));
+ return (React.createElement("div", __assign({ className: classNames('d-none d-md-flex flex-column side-navbar-container', className, 'col-auto') }, rest), children));
};
var InfoTileTitle = function (_a) {
@@ -27183,7 +29327,7 @@ var InfoTileTitle = function (_a) {
var titleComponent = (React.createElement("h4", { className: classNames(className, 'fw-bold') }, title));
if (link) {
var LinkComponent = link;
- return (React.createElement(LinkComponent, __assign$1({ to: route, className: "stretched-link text-reset link-underline-dark link-underline-opacity-0 link-underline-opacity-100-hover ".concat(linkProps === null || linkProps === void 0 ? void 0 : linkProps.className) }, linkProps), titleComponent));
+ return (React.createElement(LinkComponent, __assign({ to: route, className: "stretched-link text-reset link-underline-dark link-underline-opacity-0 link-underline-opacity-100-hover ".concat(linkProps === null || linkProps === void 0 ? void 0 : linkProps.className) }, linkProps), titleComponent));
}
return titleComponent;
};
@@ -27197,12 +29341,12 @@ var InfoTileItem = function (_a) {
var InfoTileValue = function (_a) {
var className = _a.className, value = _a.value, _b = _a.theme, theme = _b === void 0 ? 'primary' : _b, rest = __rest(_a, ["className", "value", "theme"]);
return (React.createElement("div", { className: "w-100" },
- React.createElement("span", __assign$1({ className: classNames(className, !(className === null || className === void 0 ? void 0 : className.includes('mb-0')) ? 'mb-3' : null, "w-100 badge bg-".concat(theme, " p-2 info-tile-value")) }, rest), value)));
+ React.createElement("span", __assign({ className: classNames(className, !(className === null || className === void 0 ? void 0 : className.includes('mb-0')) ? 'mb-3' : null, "w-100 badge bg-".concat(theme, " p-2 info-tile-value")) }, rest), value)));
};
var InfoTileCol = function (_a) {
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
- return (React.createElement("div", __assign$1({ className: classNames(className, 'col') }, rest), children));
+ return (React.createElement("div", __assign({ className: classNames(className, 'col') }, rest), children));
};
var InfoTile = function (_a) {
@@ -27222,12 +29366,12 @@ InfoTile.Col = InfoTileCol;
var DropdownItem = function (_a) {
var children = _a.children, rest = __rest(_a, ["children"]);
- return React.createElement(Dropdown$1.Item, __assign$1({}, rest), children);
+ return React.createElement(Dropdown$1.Item, __assign({}, rest), children);
};
var DropdownMenu = function (_a) {
var children = _a.children, rest = __rest(_a, ["children"]);
- return React.createElement(Dropdown$1.Menu, __assign$1({}, rest), children);
+ return React.createElement(Dropdown$1.Menu, __assign({}, rest), children);
};
var DropdownToggle = function (_a) {
@@ -27256,7 +29400,7 @@ var HeaderNavbar = function (_a) {
var Header = function (_a) {
var children = _a.children, rest = __rest(_a, ["children"]);
return (React.createElement("header", null,
- React.createElement(Navbar$1, __assign$1({ expand: "md", className: "py-0" }, rest),
+ React.createElement(Navbar$1, __assign({ expand: "md", className: "py-0" }, rest),
React.createElement("div", { className: "py-2 header-container w-100" },
React.createElement("div", { className: "d-flex justify-content-end h-100 w-100" }, children)))));
};
@@ -27265,7 +29409,7 @@ Header.Navbar = HeaderNavbar;
var UserProfile = function (_a) {
var className = _a.className, rest = __rest(_a, ["className"]);
- return (React.createElement("div", __assign$1({ className: classNames(className, 'd-inline-flex align-items-center text-muted') }, rest),
+ return (React.createElement("div", __assign({ className: classNames(className, 'd-inline-flex align-items-center text-muted') }, rest),
React.createElement("i", { className: "user-profile pt-2 bi bi-person-circle fs-2" })));
};
@@ -27282,18 +29426,18 @@ var Footer = function (_a) {
var SearchBarInput = function (_a) {
var className = _a.className, rest = __rest(_a, ["className"]);
return (React.createElement("div", { className: "form-outline w-100" },
- React.createElement(FormControl$2, __assign$1({ className: classNames(className, 'search-input') }, rest))));
+ React.createElement(FormControl$2, __assign({ className: classNames(className, 'search-input') }, rest))));
};
var SearchBarButton = function (_a) {
var className = _a.className, rest = __rest(_a, ["className"]);
- return (React.createElement(Button$2, __assign$1({ variant: "light", className: classNames(className, 'input-group-button') }, rest),
+ return (React.createElement(Button$2, __assign({ variant: "light", className: classNames(className, 'input-group-button') }, rest),
React.createElement("i", { className: "bi bi-search" })));
};
var SearchBar = function (_a) {
var children = _a.children, rest = __rest(_a, ["children"]);
- return (React.createElement(InputGroup$1, __assign$1({ className: "d-flex flex-nowrap search-input-group" }, rest), children));
+ return (React.createElement(InputGroup$1, __assign({ className: "d-flex flex-nowrap search-input-group" }, rest), children));
};
SearchBar.Input = SearchBarInput;
SearchBar.Button = SearchBarButton;
@@ -28605,11 +30749,11 @@ var BreadcrumbItem = function (_a) {
var text = _a.text, active = _a.active, route = _a.route, showSlash = _a.showSlash, className = _a.className, rest = __rest(_a, ["text", "active", "route", "showSlash", "className"]);
var Link = React.useContext(BreadcrumbsContext);
if (active) {
- return (React.createElement("span", __assign$1({ className: classNames(className, 'breadcrumb-active') }, rest),
+ return (React.createElement("span", __assign({ className: classNames(className, 'breadcrumb-active') }, rest),
showSlash ? ' / ' : null,
text));
}
- return (React.createElement("span", __assign$1({ className: className }, rest),
+ return (React.createElement("span", __assign({ className: className }, rest),
showSlash ? ' / ' : null,
route ? (React.createElement(Link, { className: "breadcrumb-item breadcrumb-inactive", to: route }, text)) : (text)));
};
@@ -28617,7 +30761,7 @@ var BreadcrumbItem = function (_a) {
var Breadcrumbs = function (_a) {
var className = _a.className, link = _a.link, children = _a.children, rest = __rest(_a, ["className", "link", "children"]);
var childrenArray = React.Children.toArray(children);
- return (React.createElement("p", __assign$1({ className: classNames(className, 'breadcrumbs-container') }, rest),
+ return (React.createElement("p", __assign({ className: classNames(className, 'breadcrumbs-container') }, rest),
React.createElement(BreadcrumbsContext.Provider, { value: link }, childrenArray.map(function (child, index) {
var childElement = child;
return React.cloneElement(childElement, {
@@ -28630,22 +30774,22 @@ Breadcrumbs.Item = BreadcrumbItem;
var FilterButton = function (_a) {
var _b = _a.variant, variant = _b === void 0 ? 'secondary' : _b, filterExists = _a.filterExists, className = _a.className, rest = __rest(_a, ["variant", "filterExists", "className"]);
- return (React.createElement(Button$2, __assign$1({ variant: variant, className: classNames(className, 'position-relative ms-2') }, rest),
+ return (React.createElement(Button$2, __assign({ variant: variant, className: classNames(className, 'position-relative ms-2') }, rest),
React.createElement("i", { className: "bi bi-filter" }),
filterExists ? (React.createElement("span", { className: "position-absolute top-0 start-100 translate-middle p-2 bg-danger border border-light rounded-circle" },
React.createElement("span", { className: "visually-hidden" }, "Filter applied"))) : null));
};
-var SvgAccounts = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48.476 48.308", width: "auto", height: "auto" }, props),
+var SvgAccounts = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48.476 48.308", width: "auto", height: "auto" }, props),
React__namespace.createElement("path", { fill: "#424244", d: "M15.935 28.851c-.168-2.852-4.193-4.026-7.884-4.026S.168 26.167 0 28.851v15.264c0 2.852 4.193 4.193 7.884 4.193s7.884-1.342 7.884-4.193V28.851Zm-3.355 4.864a8.16 8.16 0 0 1-4.529 1.01 8.96 8.96 0 0 1-4.7-1.006v-1.178a13.5 13.5 0 0 0 4.529.671 13.5 13.5 0 0 0 4.529-.671v1.174Zm0 5.032a8.16 8.16 0 0 1-4.529 1.006c-2.516 0-4.361-.5-4.7-1.006v-1.342a13.5 13.5 0 0 0 4.529.671 13.5 13.5 0 0 0 4.529-.671v1.342Zm-.5-9.729a9.9 9.9 0 0 1-4.193.839 7.85 7.85 0 0 1-4.193-.839 9.9 9.9 0 0 1 4.193-.839 9.9 9.9 0 0 1 4.193.839M3.355 43.779v-1.342a13.5 13.5 0 0 0 4.529.671 13.5 13.5 0 0 0 4.529-.671v1.342a8.16 8.16 0 0 1-4.529 1.006c-2.516.001-4.194-.503-4.529-1.006", "data-name": "Path 995" }),
React__namespace.createElement("g", { fill: "#424244", "data-name": "Group 2279" },
React__namespace.createElement("path", { d: "M42.605 35.728c3.522-5.535 5.871-12.916 5.871-16.606 0-5.535-4.361-10.232-10.567-12.077v-.5C37.908 3.858 35.728 0 32.205 0s-5.7 3.858-5.7 6.542v.5c-6.377 1.848-10.57 6.545-10.57 12.08 0 3.858 2.181 10.4 5.032 15.432.168.168.168.5.335.671a5.8 5.8 0 0 1 1.006 2.684 4 4 0 0 0-.839 2.348c0 3.522 3.858 5.368 10.567 5.368s10.569-2.014 10.569-5.368a4.43 4.43 0 0 0-.839-2.516c.169-.336.336-1.007.839-2.013m-3.019-1.678c-1.845 3.522-1.174 5.2-1.006 5.368.5.335.671.5.671.839 0 1.174-3.187 2.013-7.213 2.013s-7.213-1.006-7.213-2.013c0-.335.168-.5.5-.839s1.006-1.845-1.342-5.871a.62.62 0 0 1-.168-.5 34.6 34.6 0 0 1-4.7-13.922c0-4.864 4.864-8.722 11.071-9.393V7.884a1.9 1.9 0 0 1-.5-1.342c0-1.174 1.006-3.187 2.348-3.187s2.348 2.013 2.348 3.187a1.9 1.9 0 0 1-.5 1.342v1.845c6.374.671 11.071 4.529 11.071 9.393a32.4 32.4 0 0 1-5.367 14.928", "data-name": "Path 996" }),
React__namespace.createElement("path", { d: "M34.889 14.928a11.6 11.6 0 0 1-6.374 0 1.56 1.56 0 0 0-2.013 1.006 1.744 1.744 0 0 0 1.006 2.181 15 15 0 0 0 4.193.671 13.6 13.6 0 0 0 4.193-.671 1.82 1.82 0 0 0 1.171-2.012 1.644 1.644 0 0 0-2.181-1.174Z", "data-name": "Path 997" })))); };
-var SvgAssets = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 44.259 49.517", width: "auto", height: "auto" }, props),
+var SvgAssets = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 44.259 49.517", width: "auto", height: "auto" }, props),
React__namespace.createElement("path", { fill: "#424244", stroke: "#424244", strokeWidth: 0.5, d: "M44.009 11.686q.001-.019-.006-.038a1 1 0 0 0-.026-.176l-.028-.07a1 1 0 0 0-.058-.127q-.024-.036-.049-.068a1 1 0 0 0-.083-.1 1 1 0 0 0-.069-.056c-.022-.017-.041-.038-.064-.053s-.029-.012-.043-.02-.02-.016-.032-.022L21.671.338a.8.8 0 0 0-.721.011L.687 10.968c-.009 0-.015.012-.023.017s-.019.007-.029.013a1 1 0 0 0-.074.06q-.037.027-.071.057a1 1 0 0 0-.08.1 1 1 0 0 0-.049.068 1 1 0 0 0-.058.137c-.007.02-.018.038-.023.06a.8.8 0 0 0-.03.212v26.139a.82.82 0 0 0 .448.731l21.069 10.619c.012.006.025 0 .037.009a.8.8 0 0 0 .325.077.8.8 0 0 0 .325-.078c.012-.006.026 0 .037-.009l21.07-10.619a.82.82 0 0 0 .448-.73zm-22.676-9.7 20.026 9.72-19.229 9.692-19.286-9.72ZM1.871 13.014l19.449 9.8v24.315L1.871 37.326Zm40.518 24.312-19.449 9.8v-24.31l19.449-9.8Z" }))); };
-var SvgAssignStockLocation = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 67.631 57.704", width: "auto", height: "auto" }, props),
+var SvgAssignStockLocation = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 67.631 57.704", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "none", strokeWidth: 1.3 },
React__namespace.createElement("path", { stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, d: "M.65 46.528h66.331v4.971H.65z", "data-name": "Rectangle 1575" }),
React__namespace.createElement("path", { stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, d: "M.65 51.54h5.514v5.514H.65z", "data-name": "Rectangle 1576" }),
@@ -28665,7 +30809,7 @@ var SvgAssignStockLocation = function (props) { return (React__namespace.createE
React__namespace.createElement("path", { d: "m49.604 35.751 1.587 1.88", "data-name": "Line 162" })),
React__namespace.createElement("path", { stroke: "#3b3a39", d: "M33.747.65c4.527 0 8.2 3.341 8.2 7.462a6.9 6.9 0 0 1-.3 1.995 7 7 0 0 1-.274.746l-.248.514-7.378 12.41-7.388-12.428-.224-.463a7 7 0 0 1-.289-.779 6.8 6.8 0 0 1-.3-1.995C25.547 3.991 29.215.65 33.747.65Zm0 11.3a3.926 3.926 0 1 0-4.294-3.908 4.12 4.12 0 0 0 4.294 3.91Z", "data-name": "Path 95" })))); };
-var SvgBatchImportStock = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 68.235 36.974", width: "auto", height: "auto" }, props),
+var SvgBatchImportStock = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 68.235 36.974", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.3, transform: "translate(-229.081 -240.513)" },
React__namespace.createElement("rect", { width: 25.07, height: 35.451, "data-name": "Rectangle 2305", rx: 7.027, transform: "translate(229.731 241.386)" }),
React__namespace.createElement("g", { "data-name": "Group 2883" },
@@ -28718,7 +30862,7 @@ var SvgBatchImportStock = function (props) { return (React__namespace.createElem
React__namespace.createElement("path", { d: "m264.422 255.144 3.967 3.967-3.967 3.967", "data-name": "Path 1306" }),
React__namespace.createElement("path", { d: "M266.286 259.033h-7.517", "data-name": "Line 778" }))))); };
-var SvgChecklist = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 43.036 47.647", width: "auto", height: "auto" }, props),
+var SvgChecklist = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 43.036 47.647", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244" },
React__namespace.createElement("path", { d: "m42.687 18.283-5.15-5.149a1.19 1.19 0 0 0-1.685 0l-4.579 4.579-11.75 11.75a1.2 1.2 0 0 0-.333.65l-1.01 6.159a1.192 1.192 0 0 0 1.176 1.384 1 1 0 0 0 .193-.016l6.159-1.01a1.2 1.2 0 0 0 .65-.333l16.329-16.33a1.19 1.19 0 0 0 0-1.685ZM24.945 34.341l-4.144.679.679-4.144 10.635-10.635 3.464 3.464Zm12.32-12.32-3.464-3.464 2.9-2.9 3.464 3.464Z", "data-name": "Path 1059" }),
React__namespace.createElement("path", { d: "M36.879 30.293a1.186 1.186 0 0 0-1.194 1.178v13.82h-33.3V2.356h33.3v7.679a1.194 1.194 0 0 0 2.388 0V1.178A1.186 1.186 0 0 0 36.879 0H1.194A1.186 1.186 0 0 0 0 1.178v45.291a1.186 1.186 0 0 0 1.194 1.178h35.685a1.186 1.186 0 0 0 1.194-1.178v-15a1.186 1.186 0 0 0-1.194-1.176", "data-name": "Path 1060" }),
@@ -28726,10 +30870,10 @@ var SvgChecklist = function (props) { return (React__namespace.createElement("sv
React__namespace.createElement("path", { d: "M15.599 20.451a1.19 1.19 0 0 0-1.685 0l-4.541 4.542-1.8-1.8a1.192 1.192 0 0 0-1.685 1.685l2.64 2.64a1.19 1.19 0 0 0 1.686 0l5.384-5.384a1.19 1.19 0 0 0 .001-1.683", "data-name": "Path 1062" }),
React__namespace.createElement("path", { d: "m13.914 34.216-4.542 4.542-1.8-1.8a1.192 1.192 0 0 0-1.685 1.685l2.64 2.64a1.19 1.19 0 0 0 1.686 0l5.384-5.384a1.192 1.192 0 1 0-1.686-1.685Z", "data-name": "Path 1063" })))); };
-var SvgCommunityPosts = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 54.026 39.827", width: "auto", height: "auto" }, props),
+var SvgCommunityPosts = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 54.026 39.827", width: "auto", height: "auto" }, props),
React__namespace.createElement("path", { fill: "#424244", fillRule: "evenodd", d: "M40.007 9.266a7.687 7.687 0 0 1 6.224 8.071l-.058.864c-.163 1.837 1.145 2.754 2.45 3.495l4.488 2.7c1.356.682 1.115 1.761-.125 2.237l-4.818 2.127c-1.308.724-2.861.83-2.941 3.224l-.047.682a7.685 7.685 0 0 1-8.188 7.139l-15.332-1.05a7.69 7.69 0 0 1-6.554-4.676 9 9 0 0 0 2.749.141q7.757-.869 15.5-1.884a9.73 9.73 0 0 0 8.166-10.426Q40.812 15.584 40 9.266Zm-.291 12.744a7.69 7.69 0 0 1-6.7 8.554L17.76 32.418a7.69 7.69 0 0 1-8.554-6.7l-.1-.859c-.185-1.834-1.643-2.49-3.064-2.971l-4.919-1.813c-1.461-.413-1.426-1.518-.3-2.218l4.332-3c1.145-.956 2.655-1.351 2.28-3.715l-.083-.677a7.69 7.69 0 0 1 6.7-8.556L29.308.057a7.687 7.687 0 0 1 8.554 6.7l1.854 15.254Zm-9.151-9.294c.845 0 1.082.581.528 1.311L29 16.394a2.84 2.84 0 0 0-.636 2.626l.736 3.09c.15.787-.316 1.313-.989.907l-2.864-1.216a3.23 3.23 0 0 0-2.771.27l-2.738 1.609c-.671.439-1.281.178-1.14-.726l.256-3.15a3 3 0 0 0-1.054-2.626l-2.366-2.1c-.731-.551-.469-1.165.318-1.311l3.09-.736a4.13 4.13 0 0 0 2.183-1.726l1.158-3.004c.349-.817.9-.7 1.341-.033l1.611 2.739a3.24 3.24 0 0 0 2.277 1.453z", "data-name": "Path 1506" }))); };
-var SvgManageSiteStock = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 58.685 47.252", width: "auto", height: "auto" }, props),
+var SvgManageSiteStock = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 58.685 47.252", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { transform: "translate(1010.856 -600.92)" },
React__namespace.createElement("rect", { width: 57.185, height: 35.675, fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, "data-name": "Rectangle 2306", rx: 5.857, transform: "translate(-1010.106 601.67)" }),
React__namespace.createElement("path", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M-975.869 639.431v4.749c0 .254-11.289.23-11.289 0v-6.835", "data-name": "Path 1307" }),
@@ -28771,7 +30915,7 @@ var SvgManageSiteStock = function (props) { return (React__namespace.createEleme
React__namespace.createElement("path", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M-1004.873 607.178h2.726v2.726h-2.726z", "data-name": "Rectangle 2314" }),
React__namespace.createElement("path", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M-973.105 641.745c3.126.58 5.138 1.487 5.138 2.507 0 1.752-5.937 3.171-13.261 3.171s-13.262-1.42-13.262-3.171c0-1.121 2.432-2.106 6.1-2.67l1.191-.164", "data-name": "Path 1316" })))); };
-var SvgMeters = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 51.42 51.42", width: "auto", height: "auto" }, props),
+var SvgMeters = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 51.42 51.42", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244", stroke: "#424244", strokeWidth: 0.7 },
React__namespace.createElement("path", { d: "M43.642 7.778A25.36 25.36 0 1 0 7.778 43.642 25.36 25.36 0 1 0 43.642 7.778ZM25.71 49.45a23.741 23.741 0 1 1 23.74-23.74 23.77 23.77 0 0 1-23.74 23.74Z", "data-name": "Path 1075" }),
React__namespace.createElement("path", { d: "m40.337 17.385-.033-.063a1 1 0 0 0-.048-.072 16.9 16.9 0 0 0-6.048-5.972 1 1 0 0 0-.073-.047l-.064-.032a17.01 17.01 0 0 0-16.726 0q-.032.014-.063.032a1 1 0 0 0-.073.047 16.9 16.9 0 0 0-6.048 5.972 1 1 0 0 0-.048.072l-.033.063a16.43 16.43 0 0 0 .037 16.578.825.825 0 0 0 1.209.234l2.243-1.279a.8.8 0 0 0 .3-1.1.82.82 0 0 0-1.11-.294l-1.622.925a14.9 14.9 0 0 1-1.631-6.008h1.874a.802.802 0 1 0 0-1.605h-1.876a14.8 14.8 0 0 1 1.632-6.008l1.622.925a.82.82 0 0 0 1.11-.294.8.8 0 0 0-.3-1.1l-1.611-.916a15.25 15.25 0 0 1 4.453-4.4l.935 1.6a.82.82 0 0 0 1.11.294.8.8 0 0 0 .3-1.1l-.936-1.6a15.3 15.3 0 0 1 6.085-1.612v1.851a.813.813 0 0 0 1.626 0v-1.847a15.3 15.3 0 0 1 6.085 1.612l-.936 1.6a.8.8 0 0 0 .3 1.1.82.82 0 0 0 1.11-.294l.935-1.6a15.25 15.25 0 0 1 4.453 4.4l-1.619.923a.8.8 0 0 0-.3 1.1.82.82 0 0 0 1.11.294l1.622-.925a14.8 14.8 0 0 1 1.632 6.008h-1.874a.802.802 0 1 0 0 1.605h1.874a14.9 14.9 0 0 1-1.629 6.009l-1.624-.926a.82.82 0 0 0-1.11.294.8.8 0 0 0 .3 1.1l2.346 1.338a.82.82 0 0 0 1.11-.293 16.45 16.45 0 0 0 .033-16.578Z", "data-name": "Path 1077" }),
@@ -28779,7 +30923,7 @@ var SvgMeters = function (props) { return (React__namespace.createElement("svg",
React__namespace.createElement("path", { d: "M28.509 40.884h-5.6a.802.802 0 0 0 0 1.605h5.6a.802.802 0 1 0 0-1.605Z", "data-name": "Path 1079" }),
React__namespace.createElement("path", { d: "M27.438 39.25a.802.802 0 1 0 0-1.605h-3.456a.802.802 0 1 0 0 1.605Z", "data-name": "Path 1080" })))); };
-var SvgMeters1 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48.083 58.811", width: "auto", height: "auto" }, props),
+var SvgMeters1 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48.083 58.811", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { "data-name": "Group 2297" },
React__namespace.createElement("g", { "data-name": "Group 2296" },
React__namespace.createElement("path", { fill: "none", stroke: "#434241", d: "M24.042 8.847A18.178 18.178 0 1 0 42.22 27.024 18.2 18.2 0 0 0 24.042 8.847Zm0 34.567a16.39 16.39 0 1 1 16.39-16.39 16.41 16.41 0 0 1-16.39 16.387Z", "data-name": "Path 1041" }))),
@@ -28805,26 +30949,26 @@ var SvgMeters1 = function (props) { return (React__namespace.createElement("svg"
React__namespace.createElement("g", { "data-name": "Group 2310" },
React__namespace.createElement("path", { fill: "none", stroke: "#434241", d: "M32.981 30.299h2.384v1.788h-2.384z", "data-name": "Rectangle 1687" }))))); };
-var SvgPerformance = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 46.305 46.305", width: "auto", height: "auto" }, props),
+var SvgPerformance = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 46.305 46.305", width: "auto", height: "auto" }, props),
React__namespace.createElement("path", { fill: "none", stroke: "#424244", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M23.153 1.5A21.653 21.653 0 1 1 1.5 23.153", "data-name": "Path 1503" }),
React__namespace.createElement("path", { fill: "#fff", stroke: "#424244", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M4.334 12.178a21.2 21.2 0 0 1 8.154-7.84", "data-name": "Path 1504" }),
React__namespace.createElement("text", { fill: "#424244", "data-name": 100, fontFamily: "Kohinoor-Bold, Kohinoor", fontSize: 16, fontWeight: 700, transform: "translate(23.153 27.153)" },
React__namespace.createElement("tspan", { x: -13.296, y: 0 }, '100')))); };
-var SvgPreventiveMaintenance = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 52.603 52.459", width: "auto", height: "auto" }, props),
+var SvgPreventiveMaintenance = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 52.603 52.459", width: "auto", height: "auto" }, props),
React__namespace.createElement("path", { fill: "#424244", stroke: "#424244", strokeWidth: 1.3, d: "M32.555 25.289c-.461.006-.851.013-1.2.019a35 35 0 0 1-2.431-.006c.091-.6.331-2.021.962-5.38a.99.99 0 0 0-.611-1.113 1 1 0 0 0-1.222.373c-1.5 2.22-4.251 6.262-5.752 8.347a1.007 1.007 0 0 0 .838 1.59c.39-.006.747-.013 1.092-.026a44 44 0 0 1 1.872-.026 97 97 0 0 0-1.215 3.07c-.325.843-.656 1.718-1.02 2.619a.99.99 0 0 0 .4 1.223 1.02 1.02 0 0 0 1.287-.174c2.788-3.025 4.732-5.271 7.78-8.868a1 1 0 0 0-.786-1.647Zm.046 1.023c-3.042 3.585-4.979 5.824-7.754 8.836-.013.019-.019.026-.046.006s-.026-.026-.013-.045c.364-.907.7-1.783 1.027-2.632.526-1.371 1.027-2.671 1.482-3.681a.48.48 0 0 0-.032-.45.49.49 0 0 0-.4-.225 40 40 0 0 0-2.651.007c-.344.013-.7.019-1.079.026a.03.03 0 0 1-.032-.019c-.013-.019 0-.032 0-.039 1.508-2.1 4.264-6.146 5.772-8.372.013-.019.019-.026.045-.013s.026.019.026.045c-.3 1.577-.539 2.877-.708 3.855q-.167.947-.247 1.467c-.091.611-.123.792.033.985a.5.5 0 0 0 .357.187c1.3.071 2.021.051 3.009.032.344-.006.728-.019 1.183-.019.013 0 .026 0 .033.019a.03.03 0 0 1-.004.03Zm14.6-23.418a.49.49 0 0 0-.6-.032q-1.54 1.072-2.97 2.053t-2.977 2.05a.45.45 0 0 0-.175.232c-.266.727-.533 1.487-.793 2.22-.247.7-.5 1.422-.754 2.111-.435.431-2.658 2.651-5.174 5.174a13.55 13.55 0 0 0-9.535-1.081 13 13 0 0 0-1.787.611l-1.956-1.879a10 10 0 0 0 1.4-3.482 7.8 7.8 0 0 0-.221-4.132c-.845-2.342-3.146-5.1-5.915-5.843-2.411-.65-4.68-.045-6.948 1.834a.476.476 0 0 0-.013.727c.839.747 1.41 1.306 1.963 1.847.52.508 1.053 1.03 1.807 1.705-.13.862-.292 1.66-.455 2.433s-.318 1.538-.448 2.388c-.8.122-1.508.29-2.2.457a17 17 0 0 1-2.977.521c-.617-.579-1.15-1.1-1.67-1.6-.559-.541-1.137-1.1-1.826-1.744a.5.5 0 0 0-.364-.129.5.5 0 0 0-.344.167 6.84 6.84 0 0 0-.812 7.259 10.14 10.14 0 0 0 5.876 5.148 8.06 8.06 0 0 0 3.926 0 9.8 9.8 0 0 0 2.938-1.146l1.956 2.014a.1.1 0 0 0-.013.039 12.4 12.4 0 0 0-.461 7.2 928 928 0 0 1-4.888 4.814c-2.268 2.227-4.621 4.531-5.856 5.785a5.96 5.96 0 0 0-1.553 2.149 4.11 4.11 0 0 0 .357 3.218 11.5 11.5 0 0 0 1.859 2.445c1.456 1.59 3.191 3.288 5.453 3.372h.123a4.14 4.14 0 0 0 2.957-1.48c1.02-1.036 2.177-2.175 3.4-3.385 2.418-2.388 5.141-5.084 7.527-7.626q.46.106.929.174a13 13 0 0 0 1.95.142 13 13 0 0 0 3.49-.476 516 516 0 0 0 9.334 9.827q.05.058.11.116a6.3 6.3 0 0 0 4.732 2.227 7.8 7.8 0 0 0 1.963-.264 5.48 5.48 0 0 0 3.763-4.614c.24-1.924-.578-3.758-2.489-5.618a496 496 0 0 0-9.425-8.894 12.2 12.2 0 0 0 .955-5.5 11.85 11.85 0 0 0-1.748-5.406c2.4-2.445 4.53-4.633 4.933-5.052.65-.27 1.391-.547 2.106-.817.76-.283 1.547-.579 2.236-.875a.44.44 0 0 0 .208-.167 63 63 0 0 0 3.783-6.2.475.475 0 0 0-.078-.547 56 56 0 0 0-4.608-4.47Zm-32.6 16.919a.49.49 0 0 0-.643-.051 8.52 8.52 0 0 1-6.35 1.236 9.2 9.2 0 0 1-5.276-4.633 6.25 6.25 0 0 1-.552-3.25 5.5 5.5 0 0 1 .91-2.568c.513.489.975.933 1.417 1.364.559.547 1.144 1.107 1.839 1.757a.5.5 0 0 0 .356.127 18 18 0 0 0 3.354-.56 24 24 0 0 1 2.47-.489.49.49 0 0 0 .422-.412c.13-.959.312-1.834.487-2.684s.364-1.757.5-2.748a.5.5 0 0 0-.156-.425 53 53 0 0 1-1.963-1.847c-.462-.45-.936-.92-1.573-1.5a6.2 6.2 0 0 1 5.629-1.3 8.77 8.77 0 0 1 5.252 5.232 8.17 8.17 0 0 1-1.287 7.072.484.484 0 0 0 .052.624c.65.631 1.306 1.261 2 1.924a11.57 11.57 0 0 0-4.933 5.135c-.666-.679-1.309-1.352-1.959-2.005Zm2.225 26.452a421 421 0 0 0-3.412 3.391 3.16 3.16 0 0 1-2.34 1.191c-1.878-.071-3.445-1.615-4.764-3.057a10.4 10.4 0 0 1-1.708-2.225 3.21 3.21 0 0 1-.305-2.471 5.3 5.3 0 0 1 1.326-1.789c1.228-1.248 3.575-3.552 5.843-5.773 1.6-1.57 3.243-3.185 4.5-4.428a8.8 8.8 0 0 0 1.671 3.1s.167.243.211.3a18.5 18.5 0 0 0 4.668 4.4 1.42 1.42 0 0 0 1.457.149c-2.279 2.402-4.852 4.95-7.147 7.212Zm31.309-4.736c1.683 1.635 2.4 3.211 2.2 4.814a4.5 4.5 0 0 1-3.042 3.8 5.36 5.36 0 0 1-5.739-1.692 512.826 512.826 0 0 1-9.139-9.614c.28-.109.552-.219.819-.347l1.832-1.422 1.544-1.389 2-2.163q.184-.317.357-.644a464 464 0 0 1 9.168 8.66Zm-8.762-15.02a11.45 11.45 0 0 1-1.605 6.513 11.6 11.6 0 0 1-4.94 4.582 11.96 11.96 0 0 1-12.837-1.918 11.67 11.67 0 0 1-2.944-12.517l.117-.29a.1.1 0 0 0 .013-.032 10.58 10.58 0 0 1 5.33-5.579l.078-.039a12 12 0 0 1 1.885-.669 12.59 12.59 0 0 1 9.145 1.165.02.02 0 0 1 .013.006 13 13 0 0 1 2.021 1.358 10.7 10.7 0 0 1 3.725 7.423Zm7.995-13.044c-.637.264-1.365.541-2.073.8-.76.283-1.547.579-2.236.875a.6.6 0 0 0-.162.109c-.026.026-2.262 2.33-4.855 4.975a10.6 10.6 0 0 0-1.781-1.866 14 14 0 0 0-1.631-1.152c2.71-2.716 5.037-5.032 5.063-5.058a.4.4 0 0 0 .111-.174c.266-.727.533-1.487.793-2.22.241-.682.494-1.39.741-2.072.981-.682 1.924-1.332 2.84-1.963l2.665-1.841a54 54 0 0 1 4 3.906 65 65 0 0 1-3.475 5.681Z" }))); };
-var SvgPreventiveMaintenance1 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 50.96 50.83", width: "auto", height: "auto" }, props),
+var SvgPreventiveMaintenance1 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 50.96 50.83", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "none", stroke: "#434241", strokeWidth: 1.5 },
React__namespace.createElement("path", { d: "m36.463 27.889-3.271 3.271-3.274-3.274 7.856-7.856a9.684 9.684 0 0 0 11.64-12.858l-.8-2.045-5.143 5.141-2.076-.556-.557-2.076 5.142-5.14-2.045-.8a9.684 9.684 0 0 0-12.858 11.636l-7.856 7.856-10.55-10.549 2.8-2.8-8.676-6.837-5.793 5.794 6.838 8.675 2.8-2.8 10.55 10.55-6.937 6.935a10.192 10.192 0 1 0 6.7 6.7l6.935-6.935 3.272 3.275-3.271 3.271 11.842 11.838a6.063 6.063 0 1 0 8.571-8.574ZM4.84 7.022 7.022 4.84l4.128 3.256-3.055 3.054Zm29.562 7.05-.343-.876a6.81 6.81 0 0 1 6.45-9.3l-2.877 2.881 1.415 5.282 5.282 1.415 2.873-2.878a6.81 6.81 0 0 1-9.3 6.45l-.876-.343-9.149 9.149-2.632-2.632Zm-16.815 22.08.375.891a7.336 7.336 0 1 1-3.9-3.9l.891.375 8.266-8.266 2.632 2.632Zm18.876-4.2 2.633 2.633-4.509 4.511-2.632-2.632Zm9.809 14.319a3.19 3.19 0 0 1-4.509 0l-5.144-5.144 4.509-4.509 5.144 5.144a3.19 3.19 0 0 1 0 4.509Z", "data-name": "Path 1034" }),
React__namespace.createElement("path", { d: "M11.218 35.153a4.736 4.736 0 1 0 3.349 1.387 4.7 4.7 0 0 0-3.349-1.387Zm1.316 6.052a1.861 1.861 0 1 1 0-2.633 1.85 1.85 0 0 1 0 2.637Z", "data-name": "Path 1035" })))); };
-var SvgProductCatalogue1 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 43.296 52.088", width: "auto", height: "auto" }, props),
+var SvgProductCatalogue1 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 43.296 52.088", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244", "data-name": "Group 57" },
React__namespace.createElement("path", { d: "M43.297 48.833V9.766a4.55 4.55 0 0 0-.977-2.93l-1.628-2.279c-.651-.651-.977-.651-.977.326v42.323a1.538 1.538 0 0 1-1.628 1.628H4.883c-.977 0-.977.326-.326.977l1.953 1.3a6.2 6.2 0 0 0 2.93.977h31.903a1.538 1.538 0 0 0 1.628-1.628 5.7 5.7 0 0 0 .326-1.627", "data-name": "Path 605" }),
React__namespace.createElement("path", { d: "M35.158 0H1.628A1.538 1.538 0 0 0 0 1.628V43.95a1.538 1.538 0 0 0 1.628 1.628h33.53a1.538 1.538 0 0 0 1.628-1.628V1.628A1.744 1.744 0 0 0 35.158 0m-4.883 20.836a1.538 1.538 0 0 1-1.628 1.628H8.139a1.538 1.538 0 0 1-1.628-1.628v-1.3a1.538 1.538 0 0 1 1.628-1.628h20.509a1.538 1.538 0 0 1 1.628 1.628Zm0-9.116a1.538 1.538 0 0 1-1.628 1.628H8.139a1.538 1.538 0 0 1-1.628-1.628v-.977a1.538 1.538 0 0 1 1.628-1.627h20.509a1.538 1.538 0 0 1 1.628 1.628Z", "data-name": "Path 606" })))); };
-var SvgProductCatalogue2 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 63.791 45.561", width: "auto", height: "auto" }, props),
+var SvgProductCatalogue2 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 63.791 45.561", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, strokeWidth: 1.5, "data-name": "Group 633", transform: "translate(-93.15 -37.747)" },
React__namespace.createElement("path", { d: "M125.046 70.6v9.156a2.78 2.78 0 0 1-2.8 2.8H96.7a2.78 2.78 0 0 1-2.8-2.8V41.3a2.78 2.78 0 0 1 2.8-2.8h25.548a2.4 2.4 0 0 1 1.2.28", "data-name": "Path 405" }),
React__namespace.createElement("path", { d: "M156.192 79.76a2.78 2.78 0 0 1-2.8 2.8h-25.546a2.78 2.78 0 0 1-2.8-2.8V41.299a2.78 2.78 0 0 1 2.8-2.8h25.548a2.78 2.78 0 0 1 2.8 2.8Z", "data-name": "Path 406" }),
@@ -28854,7 +30998,7 @@ var SvgProductCatalogue2 = function (props) { return (React__namespace.createEle
React__namespace.createElement("circle", { cx: 1.119, cy: 1.119, r: 1.119, "data-name": "Ellipse 178", transform: "translate(144.596 68.325)" }),
React__namespace.createElement("path", { d: "M137.28 46.976v-2h6.637v.32", "data-name": "Path 417" })))); };
-var SvgProductSelector = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100.248 44", width: "auto", height: "auto" }, props),
+var SvgProductSelector = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100.248 44", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, strokeWidth: 1.5 },
React__namespace.createElement("path", { d: "M92.385 14.888 99.497 22l-7.112 7.112", "data-name": "Path 388" }),
React__namespace.createElement("path", { d: "M7.862 29.112.75 22l7.112-7.112", "data-name": "Path 389" }),
@@ -28887,12 +31031,12 @@ var SvgProductSelector = function (props) { return (React__namespace.createEleme
React__namespace.createElement("path", { d: "M42.99 9.727v-4.38h3.6V9.64", "data-name": "Path 402" }),
React__namespace.createElement("path", { d: "M46.59 13.11v30.14h-3.6V13.457", "data-name": "Path 403" }))))); };
-var SvgReceiveStock = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45 45", width: "auto", height: "auto" }, props),
+var SvgReceiveStock = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45 45", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244" },
React__namespace.createElement("path", { d: "M42.969.002H2.031A1.915 1.915 0 0 0 .002 2.031v40.938a1.915 1.915 0 0 0 2.028 2.028h40.939a1.915 1.915 0 0 0 2.028-2.028V2.031A1.915 1.915 0 0 0 42.969.002m-2.027 40.94H4.057V4.057h36.885Z", "data-name": "Path 786" }),
React__namespace.createElement("path", { d: "m16.163 29.23 6.542 7.344 6.133-7.344 6.133-7.344H27.61V8.425H17.39v13.462h-7.36Z", "data-name": "Path 787" })))); };
-var SvgRedlineRequest = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 78.938 46.757", width: "auto", height: "auto" }, props),
+var SvgRedlineRequest = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 78.938 46.757", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.3 },
React__namespace.createElement("path", { d: "M26.874 45.676 22.099 16.01h34.167l-4.763 29.847H29.28", "data-name": "Path 1279" }),
React__namespace.createElement("g", { "data-name": "Group 2880" },
@@ -28920,17 +31064,17 @@ var SvgRedlineRequest = function (props) { return (React__namespace.createElemen
React__namespace.createElement("path", { d: "M23.314 39.27H.65", "data-name": "Line 748" }),
React__namespace.createElement("path", { d: "M78.288 39.27H55.211", "data-name": "Line 749" })))); };
-var SvgRedlineStock = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45 45", width: "auto", height: "auto" }, props),
+var SvgRedlineStock = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45 45", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244" },
React__namespace.createElement("path", { d: "M42.97.002H2.03A1.915 1.915 0 0 0 .002 2.03v40.94a1.915 1.915 0 0 0 2.027 2.027h40.94a1.915 1.915 0 0 0 2.027-2.027V2.03A1.915 1.915 0 0 0 42.97.002m-2.027 40.94H4.057V4.057h36.886Z", "data-name": "Path 792" }),
React__namespace.createElement("path", { d: "M8.752 36.236c.4.4.8.4 1.595.4s1.2 0 1.595-.4L22.7 25.48l10.76 10.756c.4.4.8.4 1.595.4s.8 0 1.2-.4a1.93 1.93 0 0 0 0-2.789L25.49 22.695l10.756-11.164a1.93 1.93 0 0 0 0-2.789 1.93 1.93 0 0 0-2.79 0L22.7 19.508 11.532 8.752a1.93 1.93 0 0 0-2.79 0 1.93 1.93 0 0 0 0 2.789L19.512 22.3 8.752 33.451a1.93 1.93 0 0 0 0 2.785", "data-name": "Path 793" })))); };
-var SvgReturnStock = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45 45", width: "auto", height: "auto" }, props),
+var SvgReturnStock = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45 45", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244" },
React__namespace.createElement("path", { d: "M42.969 25.135a1.915 1.915 0 0 0-2.027 2.027v13.782H4.056V4.056h13.377a1.915 1.915 0 0 0 2.027-2.027A1.915 1.915 0 0 0 17.433.002H2.031A1.915 1.915 0 0 0 .002 2.031v40.938a1.915 1.915 0 0 0 2.027 2.027h40.94a1.915 1.915 0 0 0 2.027-2.027V27.162a1.915 1.915 0 0 0-2.027-2.027", "data-name": "Path 788" }),
React__namespace.createElement("path", { d: "m28.571 23.642 9.214-9.214 5.219 4.8.8-9.214.792-9.609-9.615.8-9.215 1.2 4.8 4.8-9.207 9.225Z", "data-name": "Path 789" })))); };
-var SvgSales = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 47.935 47.631", width: "auto", height: "auto" }, props),
+var SvgSales = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 47.935 47.631", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { "data-name": "Group 1029" },
React__namespace.createElement("path", { fill: "#424244", d: "M33.853 12.581a.794.794 0 0 0 .9-.9V9.287a.794.794 0 0 0-.9-.9H14.082a.794.794 0 0 0-.9.9v2.4a.794.794 0 0 0 .9.9h7.19a5.71 5.71 0 0 1 5.093 3.3H14.082a.794.794 0 0 0-.9.9v2.4a.794.794 0 0 0 .9.9h12.581a5.76 5.76 0 0 1-5.392 3.894h-7.789c-.3 0-.3.3-.3.6v3.894a1.65 1.65 0 0 0 .9 1.5l14.979 9.286c.6.3.9 0 .9-.6v-3.912a1.65 1.65 0 0 0-.9-1.5l-8.389-4.791h.6a9.69 9.69 0 0 0 9.587-8.088h3a.794.794 0 0 0 .9-.9v-2.7a.794.794 0 0 0-.9-.9h-3a11.6 11.6 0 0 0-1.8-3.3Z", "data-name": "Path 381" }),
React__namespace.createElement("g", { "data-name": "Group 342" },
@@ -28942,7 +31086,7 @@ var SvgSales = function (props) { return (React__namespace.createElement("svg",
React__namespace.createElement("g", { "data-name": "Group 345" },
React__namespace.createElement("path", { fill: "#424244", d: "M46.435 0a1.415 1.415 0 0 1 1.5 1.5v1.2a1.415 1.415 0 0 1-1.5 1.5H1.5A1.415 1.415 0 0 1 0 2.7V1.5A1.415 1.415 0 0 1 1.5 0Z", "data-name": "Path 321" }))))); };
-var SvgShipAsn = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45.212 50.675", width: "auto", height: "auto" }, props),
+var SvgShipAsn = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45.212 50.675", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { "data-name": "Group 2824" },
React__namespace.createElement("g", { fill: "#424244", "data-name": "Group 553", transform: "translate(0 34.819)" },
React__namespace.createElement("path", { d: "M43.194.012a1.533 1.533 0 0 1 1.727 1.494v1.2a1.533 1.533 0 0 1-1.727 1.495H1.727A1.533 1.533 0 0 1 0 2.706v-1.2A1.533 1.533 0 0 1 1.727.011Z", "data-name": "Path 350" }),
@@ -28953,7 +31097,7 @@ var SvgShipAsn = function (props) { return (React__namespace.createElement("svg"
React__namespace.createElement("path", { fill: "#424244", d: "m23.544 22.549-6.901-6.901L26.856 5.434l6.901 6.902z", "data-name": "Rectangle 1869" }),
React__namespace.createElement("path", { fill: "#424244", d: "m38.897 0-.782 9.368-.78 8.978-8.588-8.2-8.2-8.2L29.529.782Z", "data-name": "Path 799" })))); };
-var SvgSpareCatalogue = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 43.3 53.262", width: "auto", height: "auto" }, props),
+var SvgSpareCatalogue = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 43.3 53.262", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244", "data-name": "Group 522" },
React__namespace.createElement("path", { d: "M43.219 49.19V9.837a4.6 4.6 0 0 0-.974-2.95l-1.61-2.293c-.646-.653-.974-.653-.974.329V47.55a1.56 1.56 0 0 1-.446 1.189 1.53 1.53 0 0 1-1.177.452H4.913c-.974 0-.974.329-.325.983l1.939 1.306a6.1 6.1 0 0 0 2.922.984H41.28a1.53 1.53 0 0 0 1.177-.452 1.56 1.56 0 0 0 .446-1.189 5.8 5.8 0 0 0 .317-1.632Z", "data-name": "Path 354" }),
React__namespace.createElement("path", { d: "M35.415 0H1.641A1.55 1.55 0 0 0 0 1.643v42.628a1.55 1.55 0 0 0 1.638 1.641h33.777a1.55 1.55 0 0 0 1.638-1.641V1.643A1.756 1.756 0 0 0 35.415 0M30.5 20.989a1.55 1.55 0 0 1-1.638 1.641H8.2a1.55 1.55 0 0 1-1.638-1.641v-1.306a1.55 1.55 0 0 1 1.638-1.64h20.657a1.55 1.55 0 0 1 1.643 1.64Zm0-9.182a1.55 1.55 0 0 1-1.638 1.641H8.2a1.55 1.55 0 0 1-1.638-1.641v-.983A1.55 1.55 0 0 1 8.2 9.183h20.657a1.55 1.55 0 0 1 1.643 1.64Z", "data-name": "Path 355" })),
@@ -28961,15 +31105,15 @@ var SvgSpareCatalogue = function (props) { return (React__namespace.createElemen
React__namespace.createElement("path", { fill: "#424244", d: "M32.586 52.511h-1.819a1.856 1.856 0 0 1-1.849-1.86v-.57a9 9 0 0 1-1.249-.509l-.407.4a1.865 1.865 0 0 1-2.633 0l-1.282-1.284a1.865 1.865 0 0 1 0-2.642l.363-.366a9 9 0 0 1-.54-1.284h-.5a1.86 1.86 0 0 1-1.863-1.849v-1.814a1.865 1.865 0 0 1 1.86-1.858h.5a9 9 0 0 1 .542-1.279l-.376-.366a1.85 1.85 0 0 1-.544-1.316 1.9 1.9 0 0 1 .546-1.321l1.284-1.284a1.9 1.9 0 0 1 2.639 0l.4.4a9 9 0 0 1 1.249-.507v-.568a1.863 1.863 0 0 1 1.849-1.871h1.817a1.867 1.867 0 0 1 1.856 1.871v.57a8.6 8.6 0 0 1 1.242.507l.4-.4a1.89 1.89 0 0 1 2.635 0l1.284 1.284a1.854 1.854 0 0 1 0 2.637l-.363.363a9 9 0 0 1 .54 1.279h.5a1.865 1.865 0 0 1 1.871 1.858v1.815a1.863 1.863 0 0 1-1.871 1.848h-.5a8.7 8.7 0 0 1-.542 1.284l.368.372a1.856 1.856 0 0 1 0 2.633l-1.284 1.284a1.867 1.867 0 0 1-2.639 0l-.389-.385a9 9 0 0 1-1.253.5v.57a1.86 1.86 0 0 1-1.856 1.86Zm-.91-13.562a2.694 2.694 0 1 0 2.729 2.692 2.694 2.694 0 0 0-2.728-2.692Z", "data-name": "Path 7" }),
React__namespace.createElement("path", { fill: "#fff", d: "M30.769 31.522a1.09 1.09 0 0 0-1.088 1.11v1.147a8 8 0 0 0-2.145.87l-.805-.8a1.13 1.13 0 0 0-1.56 0l-1.284 1.283a1.11 1.11 0 0 0 0 1.56l.77.775a7.9 7.9 0 0 0-.916 2.176h-1.073a1.09 1.09 0 0 0-1.1 1.088v1.815a1.09 1.09 0 0 0 1.1 1.088h1.073a8 8 0 0 0 .914 2.176l-.77.775a1.09 1.09 0 0 0 0 1.562l1.284 1.284a1.09 1.09 0 0 0 1.56 0l.805-.8a8 8 0 0 0 2.148.87v1.147a1.09 1.09 0 0 0 1.088 1.1h1.817a1.09 1.09 0 0 0 1.088-1.1v-1.144a8 8 0 0 0 2.141-.87l.8.8a1.09 1.09 0 0 0 1.562 0l1.283-1.286a1.1 1.1 0 0 0 0-1.56l-.77-.777a8 8 0 0 0 .914-2.176h1.073a1.09 1.09 0 0 0 1.11-1.088v-1.814a1.1 1.1 0 0 0-1.11-1.088h-1.071a8 8 0 0 0-.916-2.176l.77-.772a1.09 1.09 0 0 0 0-1.56l-1.283-1.285a1.13 1.13 0 0 0-1.56 0l-.805.8a8 8 0 0 0-2.139-.87v-1.15a1.1 1.1 0 0 0-1.088-1.11zm.907 13.573a3.455 3.455 0 1 1 3.485-3.455 3.455 3.455 0 0 1-3.481 3.455m-.907-15.1h1.817a2.63 2.63 0 0 1 2.611 2.633v.03l.322.131.026-.024a2.65 2.65 0 0 1 3.7 0l1.284 1.284a2.624 2.624 0 0 1 .02 3.7q.076.179.152.361a2.61 2.61 0 0 1 2.6 2.622v1.813a2.624 2.624 0 0 1-2.6 2.611q-.074.187-.157.37a2.626 2.626 0 0 1-.017 3.7l-1.289 1.286a2.633 2.633 0 0 1-3.716 0l-.007-.024q-.159.067-.32.131v.033a2.624 2.624 0 0 1-2.611 2.611h-1.817a2.61 2.61 0 0 1-2.61-2.613v-.033l-.326-.131-.03.028a2.633 2.633 0 0 1-3.7 0l-1.287-1.282a2.63 2.63 0 0 1-.017-3.7q-.081-.183-.152-.37a2.61 2.61 0 0 1-2.594-2.61v-1.819a2.626 2.626 0 0 1 2.594-2.611q.073-.183.152-.361a2.6 2.6 0 0 1-.751-1.839 2.65 2.65 0 0 1 .77-1.858l1.284-1.284a2.657 2.657 0 0 1 3.716 0l.022.022.326-.131v-.039a2.624 2.624 0 0 1 2.6-2.633Zm.907 13.573a1.932 1.932 0 1 0-1.958-1.932 1.96 1.96 0 0 0 1.954 1.936Z", "data-name": "Path 8" })))); };
-var SvgSpares1 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 47.662 47.662", width: "auto", height: "auto" }, props),
+var SvgSpares1 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 47.662 47.662", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244", stroke: "#424244", strokeWidth: 0.5 },
React__namespace.createElement("path", { d: "M44.984 18.591h-4.412a1.694 1.694 0 0 1-1.2-2.892l3.12-3.119a2.43 2.43 0 0 0 0-3.435l-3.975-3.976a2.487 2.487 0 0 0-3.435 0l-3.119 3.119a1.694 1.694 0 0 1-2.892-1.2v-4.41A2.43 2.43 0 0 0 26.643.25h-5.624a2.43 2.43 0 0 0-2.428 2.428V7.09a1.694 1.694 0 0 1-2.892 1.2L12.58 5.169a2.487 2.487 0 0 0-3.435 0L5.169 9.15a2.43 2.43 0 0 0 0 3.435l3.12 3.119a1.694 1.694 0 0 1-1.2 2.892H2.678A2.43 2.43 0 0 0 .25 21.019v5.624a2.43 2.43 0 0 0 2.428 2.429H7.09a1.694 1.694 0 0 1 1.2 2.892l-3.12 3.119a2.43 2.43 0 0 0 0 3.435l3.98 3.975a2.485 2.485 0 0 0 3.435 0l3.119-3.12a1.694 1.694 0 0 1 2.892 1.2v4.412a2.43 2.43 0 0 0 2.428 2.428h5.624a2.43 2.43 0 0 0 2.428-2.428v-4.413a1.694 1.694 0 0 1 2.892-1.2l3.119 3.12a2.487 2.487 0 0 0 3.435 0l3.976-3.976a2.43 2.43 0 0 0 0-3.435l-3.12-3.119a1.694 1.694 0 0 1 1.2-2.892h4.412a2.43 2.43 0 0 0 2.428-2.428v-5.623a2.43 2.43 0 0 0-2.434-2.428Zm.681 8.052a.68.68 0 0 1-.681.681h-4.412a3.441 3.441 0 0 0-2.433 5.874l3.12 3.119a.68.68 0 0 1 0 .964l-3.976 3.976a.68.68 0 0 1-.964 0l-3.119-3.12a3.441 3.441 0 0 0-5.874 2.433v4.412a.68.68 0 0 1-.681.681h-5.626a.68.68 0 0 1-.681-.681v-4.41a3.39 3.39 0 0 0-2.124-3.179 3.5 3.5 0 0 0-1.339-.272 3.4 3.4 0 0 0-2.411 1.017l-3.119 3.12a.68.68 0 0 1-.964 0l-3.977-3.977a.68.68 0 0 1 0-.964l3.12-3.119a3.44 3.44 0 0 0-2.434-5.873H2.678a.68.68 0 0 1-.681-.681v-5.625a.68.68 0 0 1 .681-.681H7.09a3.441 3.441 0 0 0 2.433-5.874l-3.12-3.119a.68.68 0 0 1 0-.964l3.977-3.977a.68.68 0 0 1 .964 0l3.119 3.119a3.441 3.441 0 0 0 5.875-2.433V2.678a.68.68 0 0 1 .681-.681h5.624a.68.68 0 0 1 .682.681V7.09a3.441 3.441 0 0 0 5.874 2.433l3.119-3.119a.68.68 0 0 1 .964 0l3.976 3.976a.68.68 0 0 1 0 .964l-3.12 3.119a3.441 3.441 0 0 0 2.433 5.874h4.412a.68.68 0 0 1 .681.68Z", "data-name": "Path 1467" }),
React__namespace.createElement("path", { d: "M23.831 15.971a7.86 7.86 0 1 0 7.86 7.86 7.87 7.87 0 0 0-7.86-7.86Zm0 13.974a6.114 6.114 0 1 1 6.114-6.114 6.12 6.12 0 0 1-6.114 6.114Z", "data-name": "Path 1468" })))); };
-var SvgSpares2 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 49 49", width: "auto", height: "auto" }, props),
+var SvgSpares2 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 49 49", width: "auto", height: "auto" }, props),
React__namespace.createElement("path", { fill: "none", stroke: "#434241", d: "M20.79.69c-.24.19-.24.22-.29 2.62l-.05 2.43-.55.13a21.3 21.3 0 0 0-5.25 2.16l-.6.37-1.67-1.67c-1.54-1.54-1.7-1.67-2.03-1.67s-.52.16-2.82 2.47-2.47 2.48-2.47 2.82.13.49 1.67 2.03l1.67 1.67-.37.6a21.3 21.3 0 0 0-2.16 5.25l-.13.55-2.43.05c-2.4.05-2.43.05-2.62.29-.18.22-.19.44-.19 3.71s.01 3.49.19 3.71c.19.24.22.24 2.62.29l2.43.05.13.55a21.3 21.3 0 0 0 2.16 5.25l.37.6-1.67 1.67c-1.54 1.54-1.67 1.7-1.67 2.03s.16.52 2.35 2.71c1.28 1.29 2.47 2.42 2.62 2.5a.78.78 0 0 0 .5.09 19 19 0 0 0 1.87-1.71l1.65-1.64.59.36a20.4 20.4 0 0 0 4.94 2.08l.87.23.05 2.42c.05 2.4.05 2.43.29 2.62.22.18.44.19 3.71.19s3.49-.01 3.71-.19c.24-.19.24-.22.29-2.62l.05-2.42.87-.23a20.4 20.4 0 0 0 4.94-2.08l.59-.36 3.5 3.49c3.78 3.77 3.94 3.89 5.19 4.12a3.983 3.983 0 0 0 4.57-4.57c-.23-1.25-.35-1.41-4.12-5.19l-3.49-3.5.36-.59a20.4 20.4 0 0 0 2.08-4.94l.23-.87 2.42-.05c2.4-.05 2.43-.05 2.62-.29.18-.22.19-.44.19-3.71s-.01-3.49-.19-3.71c-.19-.24-.22-.24-2.62-.29l-2.43-.05-.13-.55a21.3 21.3 0 0 0-2.16-5.25l-.37-.6 1.67-1.67c1.54-1.54 1.67-1.7 1.67-2.03s-.16-.52-2.47-2.82-2.48-2.47-2.82-2.47-.49.13-2.03 1.67l-1.67 1.66-.4-.25a20.2 20.2 0 0 0-5-2.14l-1-.27-.05-2.42c-.05-2.4-.05-2.43-.29-2.62C27.99.51 27.77.5 24.5.5s-3.49.01-3.71.19Zm6.11 3.69c0 2.13.01 2.3.2 2.49.22.24.19.23 1.6.57a17.3 17.3 0 0 1 5.31 2.27c1.18.76 1.12.78 3.03-1.11l1.62-1.59 1.67 1.67 1.66 1.67-1.59 1.61c-1.89 1.91-1.87 1.85-1.11 3.03a17.7 17.7 0 0 1 2.27 5.29c.34 1.43.33 1.4.57 1.62.19.19.36.2 2.49.2h2.28v4.8h-2.28c-2.13 0-2.3.01-2.49.2-.24.22-.23.19-.57 1.62a17.3 17.3 0 0 1-1.53 4l-.57 1.09-1.17-1.17-1.18-1.17.25-.48a15 15 0 0 0 1.08-2.96 14.43 14.43 0 0 0-2-11.59 17.2 17.2 0 0 0-3.33-3.49 17 17 0 0 0-4.06-2.13 11.5 11.5 0 0 0-4.6-.67 10.6 10.6 0 0 0-3.11.27 14.55 14.55 0 0 0-6.98 3.83 14.3 14.3 0 0 0-4.12 8.05 17.5 17.5 0 0 0 .19 5.4 14 14 0 0 0 3.67 6.73 14.24 14.24 0 0 0 7.53 4.19 18.1 18.1 0 0 0 5.5.05 16.7 16.7 0 0 0 3.52-1.16l.83-.39 1.16 1.17 1.16 1.17-.72.39a18.1 18.1 0 0 1-4.65 1.8c-.37.08-.78.17-.9.2a1.1 1.1 0 0 0-.43.27c-.19.21-.2.35-.2 2.5v2.28h-4.8v-2.28c0-2.13-.01-2.3-.2-2.49-.22-.24-.19-.23-1.62-.57a17.7 17.7 0 0 1-5.29-2.27c-1.18-.76-1.12-.78-3.03 1.11l-1.62 1.59-1.67-1.67-1.66-1.67 1.59-1.61c1.89-1.91 1.87-1.85 1.11-3.03a17.7 17.7 0 0 1-2.26-5.26c-.33-1.36-.43-1.63-.66-1.75a16 16 0 0 0-2.43-.1H2.1v-4.8h2.28c2.13 0 2.3-.01 2.49-.2.24-.22.23-.19.57-1.62a17.7 17.7 0 0 1 2.27-5.29c.76-1.18.78-1.12-1.11-3.03l-1.59-1.62 1.67-1.67 1.67-1.66 1.61 1.59c1.92 1.9 1.84 1.87 3.07 1.09a17.9 17.9 0 0 1 5.47-2.3c1.08-.25 1.38-.37 1.5-.6a16 16 0 0 0 .1-2.43V2.1h4.8Zm-.45 7.47a11.4 11.4 0 0 1 3.6 1.14 12.756 12.756 0 0 1 6.23 16.49 2.7 2.7 0 0 1-.37.72c-.14 0-4.4-4.37-4.57-4.7-.16-.3-.19-.54-.17-1.59a8.6 8.6 0 0 0-.46-3.38 8.08 8.08 0 0 0-5.52-5.09 10.8 10.8 0 0 0-3.97-.01 4.06 4.06 0 0 0-1.81.85c-.29.55-.22.65 2.09 2.97l2.2 2.21v2.24h-2.24l-2.21-2.2c-2.32-2.31-2.42-2.38-2.97-2.09a4.06 4.06 0 0 0-.85 1.81 10.8 10.8 0 0 0 .01 3.97 8.08 8.08 0 0 0 5.09 5.52 8.6 8.6 0 0 0 3.38.46c1.05-.02 1.29.01 1.59.17.33.17 4.7 4.43 4.7 4.57a9.6 9.6 0 0 1-2.12.88 13.7 13.7 0 0 1-6.07.26 12.87 12.87 0 0 1-10.22-10.94 13.5 13.5 0 0 1-.06-2.2 12.78 12.78 0 0 1 10.96-12.1 15.8 15.8 0 0 1 3.76.04Zm-1.9 5.1a7.2 7.2 0 0 1 2.88 1.46 7.04 7.04 0 0 1 1.83 2.82 6.5 6.5 0 0 1 .29 2.47c.02 1.73.09 2.1.57 2.89.12.2 3.84 4 8.28 8.46 8.6 8.64 8.3 8.3 8.3 9.25a2.52 2.52 0 0 1-2.4 2.4c-.95 0-.61.3-9.25-8.3-4.89-4.87-8.28-8.18-8.55-8.33a4.35 4.35 0 0 0-2.7-.52 6 6 0 0 1-1.85-.1 6.366 6.366 0 0 1-5.12-6.6 7 7 0 0 1 .12-1.08c.06-.15.39.13 1.94 1.67l1.87 1.86h2.03c2.71 0 2.51.2 2.51-2.51v-2.03l-1.87-1.87c-2-2.02-1.91-1.87-1.18-2.02a7.6 7.6 0 0 1 2.3.08Z" }))); };
-var SvgStockControl = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45.413 44.858", width: "auto", height: "auto" }, props),
+var SvgStockControl = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45.413 44.858", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244" },
React__namespace.createElement("path", { d: "M12.435 15.314h-1.251a1.39 1.39 0 0 0-1.4 1.392v10.635a1.39 1.39 0 0 0 1.4 1.392h1.247a1.39 1.39 0 0 0 1.4-1.392V16.706a1.39 1.39 0 0 0-1.396-1.392", "data-name": "Path 335" }),
React__namespace.createElement("path", { d: "M33.092 28.771h1.248a1.39 1.39 0 0 0 1.4-1.392V16.706a1.39 1.39 0 0 0-1.4-1.392h-1.248a1.39 1.39 0 0 0-1.4 1.392v10.635a1.4 1.4 0 0 0 1.4 1.43", "data-name": "Path 336" }),
@@ -28980,7 +31124,7 @@ var SvgStockControl = function (props) { return (React__namespace.createElement(
React__namespace.createElement("path", { d: "M44.01 31.439h-1.247a1.39 1.39 0 0 0-1.4 1.392v8h-8.076a1.39 1.39 0 0 0-1.4 1.392v1.237a1.39 1.39 0 0 0 1.4 1.392h10.72a1.39 1.39 0 0 0 1.4-1.392V32.831a1.39 1.39 0 0 0-1.397-1.392", "data-name": "Path 341" }),
React__namespace.createElement("path", { d: "M44.01 0H33.287a1.39 1.39 0 0 0-1.4 1.392v1.237a1.39 1.39 0 0 0 1.4 1.392h8.069v8.044a1.39 1.39 0 0 0 1.4 1.392h1.247a1.39 1.39 0 0 0 1.4-1.392V1.428A1.4 1.4 0 0 0 44.01 0", "data-name": "Path 342" })))); };
-var SvgStockList = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 68.211 54.138", width: "auto", height: "auto" }, props),
+var SvgStockList = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 68.211 54.138", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, strokeWidth: 1.3, transform: "translate(-91.75 -30.25)" },
React__namespace.createElement("path", { d: "M92.4 73.12h66.911v5.014H92.4z", "data-name": "Rectangle 1575" }),
React__namespace.createElement("path", { d: "M92.4 78.176h5.562v5.562H92.4z", "data-name": "Rectangle 1576" }),
@@ -29018,7 +31162,7 @@ var SvgStockList = function (props) { return (React__namespace.createElement("sv
React__namespace.createElement("path", { d: "M116.796 32.796v2.739", "data-name": "Line 175" }),
React__namespace.createElement("path", { d: "M118.776 35.535h-1.98", "data-name": "Line 176" })))); };
-var SvgStockManagement = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45.039 44.454", width: "auto", height: "auto" }, props),
+var SvgStockManagement = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45.039 44.454", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244", "data-name": "Group 2893" },
React__namespace.createElement("path", { d: "M23.133 31.16h-1.236a1.38 1.38 0 0 0-1.39 1.367v7.944h-8.823a1.38 1.38 0 0 0-1.39 1.367v1.238a1.38 1.38 0 0 0 1.379 1.379h11.461a1.38 1.38 0 0 0 1.391-1.367V32.531a1.38 1.38 0 0 0-1.387-1.367Z", "data-name": "Path 341" }),
React__namespace.createElement("path", { d: "M21.909 31.16a1.38 1.38 0 0 0-1.387 1.367v10.557a1.38 1.38 0 0 0 1.39 1.367h11.463a1.38 1.38 0 0 0 1.379-1.379v-1.238a1.38 1.38 0 0 0-1.39-1.367h-8.825v-7.944a1.38 1.38 0 0 0-1.39-1.367h-1.24Z", "data-name": "Path 341" }),
@@ -29030,7 +31174,7 @@ var SvgStockManagement = function (props) { return (React__namespace.createEleme
React__namespace.createElement("path", { d: "M36.677 22.118h-2.183a1.38 1.38 0 0 0-1.39 1.367v1.238a1.38 1.38 0 0 0 1.379 1.379h2.207a1.38 1.38 0 0 0 1.377-1.379v-1.238a1.38 1.38 0 0 0-.411-.971 1.38 1.38 0 0 0-.978-.4Z", "data-name": "Path 1322" }),
React__namespace.createElement("path", { d: "M45.038 1.418a1.4 1.4 0 0 0-.389-.993A1.4 1.4 0 0 0 43.671 0h-.031L1.39.014a1.38 1.38 0 0 0-.979.395 1.38 1.38 0 0 0-.412.972v30.365a1.38 1.38 0 0 0 1.379 1.379h42.269a1.38 1.38 0 0 0 .979-.4 1.38 1.38 0 0 0 .411-.972V1.426Zm-4.017 27.717h-28.7a1 1 0 0 0-.162.031 1 1 0 0 0-.151-.031h-8V3.998l37-.014Z", "data-name": "Path 1323" })))); };
-var SvgStockOrdering1 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 44.641 48.925", width: "auto", height: "auto" }, props),
+var SvgStockOrdering1 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 44.641 48.925", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244", "data-name": "Group 3049", transform: "translate(-49.016 -339.112)" },
React__namespace.createElement("path", { d: "M57.882 374.583a1.444 1.444 0 0 1-1.529 1.529H55.13a1.444 1.444 0 0 1-1.529-1.529v-33.942a1.444 1.444 0 0 1 1.529-1.529h1.223a1.444 1.444 0 0 1 1.529 1.529Z", "data-name": "Path 607" }),
React__namespace.createElement("path", { d: "M77.758 355.012a1.444 1.444 0 0 1-1.529 1.53h-4.281a1.444 1.444 0 0 1-1.529-1.53v-14.371a1.444 1.444 0 0 1 1.529-1.529h3.971a1.444 1.444 0 0 1 1.529 1.529v14.371Z", "data-name": "Path 608" }),
@@ -29040,7 +31184,7 @@ var SvgStockOrdering1 = function (props) { return (React__namespace.createElemen
React__namespace.createElement("ellipse", { cx: 4.892, cy: 4.893, "data-name": "Ellipse 211", rx: 4.892, ry: 4.893, transform: "translate(83.871 378.252)" }),
React__namespace.createElement("path", { d: "M75.004 367.549a1.11 1.11 0 0 1-1.835 0c-5.48-5.814-10.077-11.168-10.396-11.62s-.306-.917.611-.917h21.4c.917 0 1.223.612.612 1.223.004 0-5.805 6.116-10.392 11.314", "data-name": "Path 611" })))); };
-var SvgStockOrdering2 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 63.498 43.828", width: "auto", height: "auto" }, props),
+var SvgStockOrdering2 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 63.498 43.828", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { transform: "translate(-245.6 -477.5)" },
React__namespace.createElement("path", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, strokeWidth: 1.4, d: "M288.231 478.2h-5.326", "data-name": "Line 358" }),
React__namespace.createElement("g", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, strokeWidth: 1.4, "data-name": "Group 634" },
@@ -29083,12 +31227,12 @@ var SvgStockOrdering2 = function (props) { return (React__namespace.createElemen
React__namespace.createElement("path", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, strokeWidth: 1.4, d: "M288.196 510.651V478.2h2.059v32.451", "data-name": "Path 595" }),
React__namespace.createElement("path", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, strokeWidth: 1.4, d: "M290.255 512.746h-2.059", "data-name": "Line 367" })))); };
-var SvgTransferStock = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45 45", width: "auto", height: "auto" }, props),
+var SvgTransferStock = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 45 45", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244" },
React__namespace.createElement("path", { d: "M43.302 6.873h-5.748V1.721a1.64 1.64 0 0 0-.465-1.245 1.58 1.58 0 0 0-1.227-.474H1.695A1.58 1.58 0 0 0 .468.476a1.64 1.64 0 0 0-.466 1.245v34.7a1.64 1.64 0 0 0 .465 1.246 1.58 1.58 0 0 0 1.227.472h5.75v5.144a1.64 1.64 0 0 0 .465 1.246 1.58 1.58 0 0 0 1.228.473h34.165a1.58 1.58 0 0 0 1.227-.472 1.64 1.64 0 0 0 .473-1.251V8.591a1.64 1.64 0 0 0-.465-1.246 1.58 1.58 0 0 0-1.235-.472m-1.688 34.7H10.828V30.235a1.64 1.64 0 0 0-.465-1.246 1.58 1.58 0 0 0-1.227-.472 1.58 1.58 0 0 0-1.227.472 1.64 1.64 0 0 0-.465 1.246v4.467H3.387V3.439H34.17v3.436h-4.058a1.823 1.823 0 0 0-1.692 1.718 1.823 1.823 0 0 0 1.692 1.718h11.506Z", "data-name": "Path 790" }),
React__namespace.createElement("path", { d: "m24.24 8.566-8.293-.691-8.291-.691 1.037 8.291.691 7.945 4.146-4.145 7.945 7.945 6.22-6.22-7.945-7.944Z", "data-name": "Path 791" })))); };
-var SvgUsers1 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 60.875 43.378", width: "auto", height: "auto" }, props),
+var SvgUsers1 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 60.875 43.378", width: "auto", height: "auto" }, props),
React__namespace.createElement("circle", { cx: 9.993, cy: 9.993, r: 9.993, fill: "#424244", transform: "translate(21.382)" }),
React__namespace.createElement("path", { fill: "#424244", d: "M51.789 43.319c0-11.129-.453-20.213-19.984-20.213-21.121 0-20.216 8.857-20.216 20.213Z" }),
React__namespace.createElement("path", { fill: "#424244", d: "M19.767 9.993a11.6 11.6 0 0 1 1.136-5 7.25 7.25 0 0 0-3.18-.681 9.085 9.085 0 1 0 0 18.169 9.44 9.44 0 0 0 6.816-2.95 12.27 12.27 0 0 1-4.772-9.538", "data-name": "Path 612" }),
@@ -29096,14 +31240,14 @@ var SvgUsers1 = function (props) { return (React__namespace.createElement("svg",
React__namespace.createElement("path", { fill: "#424244", d: "M47.929 25.436c5.678 4.315 5.678 11.355 5.678 17.942h7.268c-.001-9.085-.455-16.579-12.946-17.942", "data-name": "Path 614" }),
React__namespace.createElement("path", { fill: "#424244", d: "M42.479 4.315h-.908a11.8 11.8 0 0 1 1.59 5.678 11.32 11.32 0 0 1-6.133 10.222 9.58 9.58 0 0 0 5.678 2.044 9.11 9.11 0 0 0 9.084-9.084 9.117 9.117 0 0 0-9.311-8.86", "data-name": "Path 615" }))); };
-var SvgUsers2 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", "data-name": "Group 458", viewBox: "0 0 49.569 51.278", width: "auto", height: "auto" }, props),
+var SvgUsers2 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", "data-name": "Group 458", viewBox: "0 0 49.569 51.278", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "#424244", "data-name": "Group 463" },
React__namespace.createElement("path", { d: "M20.114 28.568h.649a14.28 14.28 0 0 0 14.274-13.625A13.5 13.5 0 0 0 31.36 4.778 14.53 14.53 0 0 0 21.195.02 14 14 0 0 0 11.03 3.909a14.03 14.03 0 0 0-4.761 9.736 14.32 14.32 0 0 0 13.845 14.923m.433-24.872h.433a10.74 10.74 0 0 1 7.353 3.46 10.98 10.98 0 0 1 2.812 7.57 10.609 10.609 0 1 1-21.2-.865A10.83 10.83 0 0 1 20.546 3.697Z", "data-name": "Path 488" }),
React__namespace.createElement("path", { d: "M48.013 29.65H21.2C6.056 29.65 0 35.273 0 49.331a1.907 1.907 0 0 0 1.73 1.946 1.907 1.907 0 0 0 1.73-1.946c0-11.679 4.326-16 16.87-16v15.784a1.907 1.907 0 0 0 1.73 1.946H47.8a1.766 1.766 0 0 0 1.73-1.946V31.38a1.426 1.426 0 0 0-1.517-1.73m-1.946 17.518H24.223V33.11h21.844Z", "data-name": "Path 489" }),
React__namespace.createElement("path", { d: "M29.197 39.815h11.679a1.766 1.766 0 0 0 1.73-1.946 1.907 1.907 0 0 0-1.73-1.946H29.197a1.766 1.766 0 0 0-1.73 1.946 1.766 1.766 0 0 0 1.73 1.946", "data-name": "Path 490" }),
React__namespace.createElement("path", { d: "M40.876 41.113H29.197a1.766 1.766 0 0 0-1.73 1.946 1.907 1.907 0 0 0 1.73 1.946h11.679a1.766 1.766 0 0 0 1.73-1.946 1.907 1.907 0 0 0-1.73-1.946", "data-name": "Path 491" })))); };
-var SvgUsers3 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 59.876 47.612", width: "auto", height: "auto" }, props),
+var SvgUsers3 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 59.876 47.612", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "none", stroke: "#434241", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, strokeWidth: 1.5, "data-name": "Group 440", transform: "translate(-96.356 -33.935)" },
React__namespace.createElement("path", { d: "M118.064 80.762H100v-14.74a7.16 7.16 0 0 1 7.155-7.155h0", "data-name": "Path 459" }),
React__namespace.createElement("path", { d: "M112.043 60.856a7.1 7.1 0 0 1 2.229 5.2v11.182", "data-name": "Path 460" }),
@@ -29128,7 +31272,7 @@ var SvgUsers3 = function (props) { return (React__namespace.createElement("svg",
React__namespace.createElement("path", { d: "M130.654 46a6.53 6.53 0 0 0 .938-7c-.313 2.972-4.105 2.737-4.105 2.737s-3.714-.274-3.714 3.128", "data-name": "Path 476" }),
React__namespace.createElement("path", { d: "M138.2 56.712a7.19 7.19 0 0 1-1.994-4.926 6.97 6.97 0 0 1 1.212-3.988", "data-name": "Path 477" })))); };
-var SvgWarranty = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 41.769 51.863", width: "auto", height: "auto" }, props),
+var SvgWarranty = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 41.769 51.863", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { "data-name": "Group 448" },
React__namespace.createElement("g", { "data-name": "Group 444" },
React__namespace.createElement("path", { fill: "#424244", d: "M20.981 37.323h-.765a18.8 18.8 0 0 1-13.01-5.931 18.3 18.3 0 0 1-4.975-13.393 18.8 18.8 0 0 1 5.931-13.01A18.3 18.3 0 0 1 21.555.015a18.8 18.8 0 0 1 13.01 5.931 18.3 18.3 0 0 1 4.974 13.393 18.8 18.8 0 0 1-5.931 13.01 18.12 18.12 0 0 1-12.627 4.974m0-34.247a16.37 16.37 0 0 0-10.523 4.018 15.52 15.52 0 0 0-4.783 10.905 15.6 15.6 0 0 0 4.018 11.1 15.49 15.49 0 0 0 21.811.957 15.65 15.65 0 0 0 4.974-10.714A15.365 15.365 0 0 0 21.746 3.267a1.45 1.45 0 0 0-.765-.191", "data-name": "Path 478" })),
@@ -29139,7 +31283,7 @@ var SvgWarranty = function (props) { return (React__namespace.createElement("svg
React__namespace.createElement("g", { "data-name": "Group 447" },
React__namespace.createElement("path", { fill: "#424244", d: "M20.029 9.772c.383-.957 1.148-.957 1.722 0l1.722 3.444a3.46 3.46 0 0 0 2.674 1.914l3.826.574c.957.191 1.339.957.574 1.531l-2.678 2.678a3.93 3.93 0 0 0-.957 3.253l.574 3.826c.191.957-.383 1.531-1.339.957l-3.444-1.719a3.66 3.66 0 0 0-3.444 0l-3.444 1.722c-.957.574-1.531 0-1.339-.957l.574-3.826a5 5 0 0 0-.957-3.253l-2.87-2.686c-.765-.765-.383-1.339.574-1.531l3.826-.574a3.96 3.96 0 0 0 2.679-1.913Z", "data-name": "Path 481" }))))); };
-var SvgWorkOrders1 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 41.12 54.204", width: "auto", height: "auto" }, props),
+var SvgWorkOrders1 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 41.12 54.204", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { "data-name": "Group 2313" },
React__namespace.createElement("g", { "data-name": "Group 2312" },
React__namespace.createElement("path", { fill: "#424244", d: "M39.882 3.361H29.445V1.266A1.253 1.253 0 0 0 28.209 0h-15.3a1.253 1.253 0 0 0-1.239 1.266v2.095H1.239A1.253 1.253 0 0 0 0 4.627v48.311A1.253 1.253 0 0 0 1.239 54.2h38.643a1.253 1.253 0 0 0 1.239-1.266V4.627a1.25 1.25 0 0 0-1.239-1.266M14.15 2.532h12.82v4.052H14.15Zm24.495 49.14H2.477V5.893h9.2V7.85a1.253 1.253 0 0 0 1.239 1.266h15.3a1.253 1.253 0 0 0 1.229-1.266V5.893h9.2Z", "data-name": "Path 1045" }),
@@ -29153,7 +31297,7 @@ var SvgWorkOrders1 = function (props) { return (React__namespace.createElement("
React__namespace.createElement("rect", { width: 29.708, height: 7.476, stroke: "none", rx: 1 }),
React__namespace.createElement("path", { d: "M1 1h27.708v5.476H1z" })))))); };
-var SvgWorkOrders2 = function (props) { return (React__namespace.createElement("svg", __assign$1({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 47.28 49.944", width: "auto", height: "auto" }, props),
+var SvgWorkOrders2 = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 47.28 49.944", width: "auto", height: "auto" }, props),
React__namespace.createElement("g", { fill: "none", strokeLinecap: "square", "data-name": "1774e559f4e1b9450e5ec4d2a0669066" },
React__namespace.createElement("g", { "data-name": "Path 1027" },
React__namespace.createElement("path", { d: "M42.499 49.945 4.78 49.94a4.61 4.61 0 0 1-4.769-4.424 1.69 1.69 0 0 1 1.753-1.626c.973 0 1.127.346 1.127 1.244 0 1.549.945 1.789 1.643 1.789l37.076.005c.813-.031 2.319-.072 2.319-1.743 0-.9.621-1.289 1.588-1.289a1.694 1.694 0 0 1 1.753 1.626 4.61 4.61 0 0 1-4.77 4.424Z" }),
@@ -29223,7 +31367,7 @@ var TexmoIcon = function (_a) {
.join('');
var IconComponent = Icons[iconFilename];
return (React.createElement(React.Fragment, null,
- React.createElement(IconComponent, __assign$1({ height: height }, rest))));
+ React.createElement(IconComponent, __assign({ height: height }, rest))));
};
var TexmoContext = React.createContext({});
@@ -29245,7 +31389,7 @@ var NavItem = function (_a) {
var open = useNavContext().open;
var NavLink = useTexmoContext().navLink;
return (React.createElement(BootstrapNav.Item, { className: "sidenav-item" },
- React.createElement(OverlayTrigger$1, { placement: "right", overlay: !open ? React.createElement(Tooltip$1, null, text) : React.createElement(React.Fragment, null) },
+ React.createElement(OverlayTrigger$1, { placement: "right", overlay: !open ? React.createElement(Tooltip$2, null, text) : React.createElement(React.Fragment, null) },
React.createElement(NavLink, { to: route, className: function () { return 'd-flex align-items-center sidenav-link nav-link'; } },
React.createElement("div", { className: "d-flex justify-content-center nav-item-icon" },
React.createElement(TexmoIcon, { icon: icon, height: 28 })),
@@ -29266,7 +31410,7 @@ var NavButton = function () {
var Nav = function (_a) {
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
- return (React.createElement(BootstrapNav, __assign$1({ navbar: false, variant: "pills", className: classNames('flex-column main-nav side-navbar', className) }, rest),
+ return (React.createElement(BootstrapNav, __assign({ navbar: false, variant: "pills", className: classNames('flex-column main-nav side-navbar', className) }, rest),
React.createElement(NavButton, null),
children));
};
@@ -29274,23 +31418,23 @@ Nav.Item = NavItem;
var Subtitle = function (_a) {
var className = _a.className, text = _a.text, rest = __rest(_a, ["className", "text"]);
- return (React.createElement("div", __assign$1({ className: classNames(className, 'text-nowrap') }, rest), text));
+ return (React.createElement("div", __assign({ className: classNames(className, 'text-nowrap') }, rest), text));
};
var LayoutBrand = function (_a) {
var rest = __rest(_a, []);
return (React.createElement("div", { className: "d-flex logo-containter" },
- React.createElement("img", __assign$1({ alt: "logo", className: "logo" }, rest))));
+ React.createElement("img", __assign({ alt: "logo", className: "logo" }, rest))));
};
var LayoutContainer = function (_a) {
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
- return (React.createElement(Container$1, __assign$1({ fluid: true, className: classNames('d-flex flex-column px-0 layout-container', className, 'col') }, rest), children));
+ return (React.createElement(Container$2, __assign({ fluid: true, className: classNames('d-flex flex-column px-0 layout-container', className, 'col') }, rest), children));
};
var LayoutMain = function (_a) {
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
- return (React.createElement("div", __assign$1({ className: classNames(className, 'd-flex flex-row') }, rest), children));
+ return (React.createElement("div", __assign({ className: classNames(className, 'd-flex flex-row') }, rest), children));
};
var NavContextProvider = function (_a) {
@@ -29305,7 +31449,7 @@ var NavContextProvider = function (_a) {
var Layout = function (_a) {
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
return (React.createElement(NavContextProvider, null,
- React.createElement("div", __assign$1({ className: classNames(className, 'd-flex flex-column') }, rest), children)));
+ React.createElement("div", __assign({ className: classNames(className, 'd-flex flex-column') }, rest), children)));
};
Layout.Brand = LayoutBrand;
Layout.Container = LayoutContainer;
@@ -29313,12 +31457,12 @@ Layout.Main = LayoutMain;
var TabButton = function (_a) {
var className = _a.className, _b = _a.selected, selected = _b === void 0 ? false : _b, text = _a.text, rest = __rest(_a, ["className", "selected", "text"]);
- return (React.createElement(Button$2, __assign$1({ className: classNames(className, 'gray-text rounded-0 py-2 px-3'), variant: selected ? 'dark-secondary' : 'secondary' }, rest), text));
+ return (React.createElement(Button$2, __assign({ className: classNames(className, 'gray-text rounded-0 py-2 px-3'), variant: selected ? 'dark-secondary' : 'secondary' }, rest), text));
};
var Tabs = function (_a) {
var children = _a.children, rest = __rest(_a, ["children"]);
- return React.createElement("div", __assign$1({}, rest), children);
+ return React.createElement("div", __assign({}, rest), children);
};
Tabs.Button = TabButton;
@@ -29330,14 +31474,14 @@ var CommentItem = function (_a) {
timeStyle: 'short',
});
return (React.createElement("div", { className: classNames('d-flex', inbound ? 'justify-content-start' : 'justify-content-end') },
- React.createElement("div", __assign$1({ className: itemClass }, rest),
+ React.createElement("div", __assign({ className: itemClass }, rest),
text,
React.createElement("div", { className: "d-flex justify-content-between mt-2 opacity-75" },
React.createElement("span", null,
"From: ",
createdBy),
React.createElement("div", null,
- React.createElement("span", { className: classNames(!inbound ? "me-2" : null) }, localeFormat.format(createdAt)),
+ React.createElement("span", { className: classNames(!inbound ? 'me-2' : null) }, localeFormat.format(createdAt)),
!inbound ? (React.createElement("span", { className: "text-decoration-underline cursor-pointer", onClick: onDelete }, "Delete")) : null)))));
};
@@ -29345,14 +31489,14 @@ var CommentInput = function (_a) {
var onSubmit = _a.onSubmit, rest = __rest(_a, ["onSubmit"]);
return (React.createElement("div", null,
React.createElement(Subtitle, { text: "Comments:", className: "mb-2" }),
- React.createElement(Form$3.Control, __assign$1({ as: "textarea", placeholder: "Leave a comment..." }, rest)),
+ React.createElement(Form$3.Control, __assign({ as: "textarea", placeholder: "Leave a comment..." }, rest)),
React.createElement("div", { className: "d-flex justify-content-end mt-2" },
React.createElement(Button, { onClick: onSubmit }, "Comment"))));
};
var Comments = function (_a) {
var children = _a.children, rest = __rest(_a, ["children"]);
- return React.createElement("div", __assign$1({}, rest), children);
+ return React.createElement("div", __assign({}, rest), children);
};
Comments.Input = CommentInput;
Comments.Item = CommentItem;
@@ -29376,7 +31520,7 @@ exports.ProgressBar = ProgressBar;
exports.SearchBar = SearchBar;
exports.SideNavbar = SideNavbar;
exports.Subtitle = Subtitle;
-exports.Table = Table;
+exports.Table = Table$1;
exports.Tabs = Tabs;
exports.TexmoIcon = TexmoIcon;
exports.TexmoProvider = TexmoProvider;
diff --git a/dist/index.js.map b/dist/index.js.map
index f7e1a99..7930e17 100644
--- a/dist/index.js.map
+++ b/dist/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sources":["../node_modules/tslib/tslib.es6.js","../node_modules/classnames/index.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/invariant/invariant.js","../node_modules/uncontrollable/lib/esm/utils.js","../node_modules/uncontrollable/lib/esm/hook.js","../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../node_modules/react-bootstrap/esm/ThemeProvider.js","../node_modules/dom-helpers/esm/ownerDocument.js","../node_modules/dom-helpers/esm/ownerWindow.js","../node_modules/dom-helpers/esm/getComputedStyle.js","../node_modules/dom-helpers/esm/hyphenate.js","../node_modules/dom-helpers/esm/hyphenateStyle.js","../node_modules/dom-helpers/esm/isTransform.js","../node_modules/dom-helpers/esm/css.js","../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../node_modules/prop-types/node_modules/react-is/index.js","../node_modules/object-assign/index.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/lib/has.js","../node_modules/prop-types/checkPropTypes.js","../node_modules/prop-types/factoryWithTypeCheckers.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../node_modules/react-transition-group/esm/config.js","../node_modules/react-transition-group/esm/utils/PropTypes.js","../node_modules/react-transition-group/esm/TransitionGroupContext.js","../node_modules/react-transition-group/esm/utils/reflow.js","../node_modules/react-transition-group/esm/Transition.js","../node_modules/dom-helpers/esm/canUseDOM.js","../node_modules/dom-helpers/esm/addEventListener.js","../node_modules/dom-helpers/esm/removeEventListener.js","../node_modules/dom-helpers/esm/listen.js","../node_modules/dom-helpers/esm/triggerEvent.js","../node_modules/dom-helpers/esm/transitionEnd.js","../node_modules/react-bootstrap/esm/transitionEndListener.js","../node_modules/react-bootstrap/esm/createChainedFunction.js","../node_modules/react-bootstrap/esm/triggerBrowserReflow.js","../node_modules/@restart/hooks/esm/useMergedRefs.js","../node_modules/react-bootstrap/esm/safeFindDOMNode.js","../node_modules/react-bootstrap/esm/TransitionWrapper.js","../node_modules/react-bootstrap/esm/Collapse.js","../node_modules/@restart/hooks/esm/useCommittedRef.js","../node_modules/@restart/hooks/esm/useEventCallback.js","../node_modules/react-bootstrap/esm/divWithClassName.js","../node_modules/@restart/hooks/esm/useCallbackRef.js","../node_modules/@restart/hooks/esm/useEventListener.js","../node_modules/@restart/hooks/esm/useMounted.js","../node_modules/@restart/hooks/esm/usePrevious.js","../node_modules/@restart/hooks/esm/useIsomorphicEffect.js","../node_modules/@restart/ui/esm/Button.js","../node_modules/@restart/ui/esm/Anchor.js","../node_modules/react-bootstrap/esm/Fade.js","../node_modules/react-bootstrap/esm/CloseButton.js","../node_modules/react-bootstrap/esm/Button.js","../node_modules/react-bootstrap/esm/CardBody.js","../node_modules/react-bootstrap/esm/CardFooter.js","../node_modules/react-bootstrap/esm/CardHeaderContext.js","../node_modules/react-bootstrap/esm/CardHeader.js","../node_modules/react-bootstrap/esm/CardImg.js","../node_modules/react-bootstrap/esm/CardImgOverlay.js","../node_modules/react-bootstrap/esm/CardLink.js","../node_modules/react-bootstrap/esm/CardSubtitle.js","../node_modules/react-bootstrap/esm/CardText.js","../node_modules/react-bootstrap/esm/CardTitle.js","../node_modules/react-bootstrap/esm/Card.js","../node_modules/@restart/hooks/esm/useUpdatedRef.js","../node_modules/@restart/hooks/esm/useWillUnmount.js","../node_modules/@restart/hooks/esm/useTimeout.js","../node_modules/react-bootstrap/esm/ElementChildren.js","../node_modules/react-bootstrap/esm/Col.js","../node_modules/react-bootstrap/esm/Container.js","../node_modules/dom-helpers/esm/querySelectorAll.js","../node_modules/@restart/ui/node_modules/uncontrollable/lib/esm/index.js","../node_modules/@restart/hooks/esm/useForceUpdate.js","../node_modules/@restart/ui/esm/DropdownContext.js","../node_modules/dequal/dist/index.mjs","../node_modules/@restart/hooks/esm/useSafeState.js","../node_modules/@popperjs/core/lib/enums.js","../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../node_modules/@popperjs/core/lib/utils/math.js","../node_modules/@popperjs/core/lib/utils/userAgent.js","../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../node_modules/@popperjs/core/lib/dom-utils/contains.js","../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../node_modules/@popperjs/core/lib/utils/within.js","../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../node_modules/@popperjs/core/lib/modifiers/arrow.js","../node_modules/@popperjs/core/lib/utils/getVariation.js","../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../node_modules/@popperjs/core/lib/modifiers/flip.js","../node_modules/@popperjs/core/lib/modifiers/hide.js","../node_modules/@popperjs/core/lib/modifiers/offset.js","../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../node_modules/@popperjs/core/lib/utils/debounce.js","../node_modules/@popperjs/core/lib/utils/mergeByName.js","../node_modules/@popperjs/core/lib/createPopper.js","../node_modules/@restart/ui/esm/popper.js","../node_modules/@restart/ui/esm/usePopper.js","../node_modules/dom-helpers/esm/contains.js","../node_modules/warning/warning.js","../node_modules/@restart/ui/esm/useClickOutside.js","../node_modules/@restart/ui/esm/mergeOptionsWithPopperConfig.js","../node_modules/@restart/ui/esm/DropdownMenu.js","../node_modules/@react-aria/ssr/dist/import.mjs","../node_modules/@restart/ui/esm/DropdownToggle.js","../node_modules/@restart/ui/esm/SelectableContext.js","../node_modules/@restart/ui/esm/NavContext.js","../node_modules/@restart/ui/esm/DataKey.js","../node_modules/@restart/ui/esm/DropdownItem.js","../node_modules/@restart/ui/esm/useWindow.js","../node_modules/@restart/ui/esm/Dropdown.js","../node_modules/react-bootstrap/esm/DropdownContext.js","../node_modules/react-bootstrap/esm/DropdownDivider.js","../node_modules/react-bootstrap/esm/DropdownHeader.js","../node_modules/react-bootstrap/esm/DropdownItem.js","../node_modules/react-bootstrap/esm/DropdownItemText.js","../node_modules/react-bootstrap/esm/InputGroupContext.js","../node_modules/react-bootstrap/esm/NavbarContext.js","../node_modules/react-bootstrap/esm/useWrappedRefWithWarning.js","../node_modules/react-bootstrap/esm/DropdownMenu.js","../node_modules/react-bootstrap/esm/DropdownToggle.js","../node_modules/react-bootstrap/esm/Dropdown.js","../node_modules/react-bootstrap/esm/Feedback.js","../node_modules/react-bootstrap/esm/FormContext.js","../node_modules/react-bootstrap/esm/FormCheckInput.js","../node_modules/react-bootstrap/esm/FormCheckLabel.js","../node_modules/react-bootstrap/esm/FormCheck.js","../node_modules/react-bootstrap/esm/FormControl.js","../node_modules/react-bootstrap/esm/FormFloating.js","../node_modules/react-bootstrap/esm/FormGroup.js","../node_modules/react-bootstrap/esm/FormLabel.js","../node_modules/react-bootstrap/esm/FormRange.js","../node_modules/react-bootstrap/esm/FormSelect.js","../node_modules/react-bootstrap/esm/FormText.js","../node_modules/react-bootstrap/esm/Switch.js","../node_modules/react-bootstrap/esm/FloatingLabel.js","../node_modules/react-bootstrap/esm/Form.js","../node_modules/react-bootstrap/esm/InputGroupText.js","../node_modules/react-bootstrap/esm/InputGroup.js","../node_modules/@restart/ui/esm/TabContext.js","../node_modules/@restart/ui/esm/NavItem.js","../node_modules/@restart/ui/esm/Nav.js","../node_modules/dom-helpers/esm/activeElement.js","../node_modules/@restart/ui/esm/getScrollbarWidth.js","../node_modules/@restart/ui/esm/ModalManager.js","../node_modules/@restart/ui/esm/useWaitForDOMRef.js","../node_modules/@restart/ui/esm/NoopTransition.js","../node_modules/@restart/ui/esm/ImperativeTransition.js","../node_modules/@restart/ui/esm/utils.js","../node_modules/@restart/ui/esm/Modal.js","../node_modules/dom-helpers/esm/hasClass.js","../node_modules/dom-helpers/esm/addClass.js","../node_modules/dom-helpers/esm/removeClass.js","../node_modules/react-bootstrap/esm/BootstrapModalManager.js","../node_modules/react-bootstrap/esm/ModalContext.js","../node_modules/react-bootstrap/esm/AbstractModalHeader.js","../node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js","../node_modules/prop-types-extra/lib/all.js","../node_modules/react-bootstrap/esm/NavItem.js","../node_modules/react-bootstrap/esm/NavLink.js","../node_modules/react-bootstrap/esm/Nav.js","../node_modules/react-bootstrap/esm/NavbarBrand.js","../node_modules/react-bootstrap/esm/NavbarCollapse.js","../node_modules/react-bootstrap/esm/NavbarToggle.js","../node_modules/@restart/hooks/esm/useMediaQuery.js","../node_modules/@restart/hooks/esm/useBreakpoint.js","../node_modules/react-bootstrap/esm/OffcanvasBody.js","../node_modules/react-bootstrap/esm/OffcanvasToggling.js","../node_modules/react-bootstrap/esm/OffcanvasHeader.js","../node_modules/react-bootstrap/esm/OffcanvasTitle.js","../node_modules/react-bootstrap/esm/Offcanvas.js","../node_modules/react-bootstrap/esm/NavbarOffcanvas.js","../node_modules/react-bootstrap/esm/NavbarText.js","../node_modules/react-bootstrap/esm/Navbar.js","../node_modules/@restart/ui/esm/useRootClose.js","../node_modules/@restart/ui/esm/Overlay.js","../node_modules/react-bootstrap/esm/PopoverHeader.js","../node_modules/react-bootstrap/esm/PopoverBody.js","../node_modules/react-bootstrap/esm/helpers.js","../node_modules/react-bootstrap/esm/getInitialPopperStyles.js","../node_modules/react-bootstrap/esm/Popover.js","../node_modules/react-bootstrap/esm/Tooltip.js","../node_modules/react-bootstrap/esm/useOverlayOffset.js","../node_modules/react-bootstrap/esm/Overlay.js","../node_modules/react-bootstrap/esm/OverlayTrigger.js","../node_modules/react-bootstrap/esm/Row.js","../node_modules/react-bootstrap/esm/Table.js","../src/components/button/Button.tsx","../src/components/table/TableSectionContext.ts","../src/components/table/components/TableHead.tsx","../src/components/table/components/TableRow.tsx","../src/components/table/components/TableCell.tsx","../src/components/table/components/TableBody.tsx","../src/components/table/Table.tsx","../src/components/form/components/FormControl.tsx","../src/components/form/components/FormLabel.tsx","../src/components/form/FormGroup.tsx","../src/components/form/components/FormSelect.tsx","../src/components/form/components/FormCheck.tsx","../node_modules/lodash/_listCacheClear.js","../node_modules/lodash/eq.js","../node_modules/lodash/_assocIndexOf.js","../node_modules/lodash/_listCacheDelete.js","../node_modules/lodash/_listCacheGet.js","../node_modules/lodash/_listCacheHas.js","../node_modules/lodash/_listCacheSet.js","../node_modules/lodash/_ListCache.js","../node_modules/lodash/_stackClear.js","../node_modules/lodash/_stackDelete.js","../node_modules/lodash/_stackGet.js","../node_modules/lodash/_stackHas.js","../node_modules/lodash/_freeGlobal.js","../node_modules/lodash/_root.js","../node_modules/lodash/_Symbol.js","../node_modules/lodash/_getRawTag.js","../node_modules/lodash/_objectToString.js","../node_modules/lodash/_baseGetTag.js","../node_modules/lodash/isObject.js","../node_modules/lodash/isFunction.js","../node_modules/lodash/_coreJsData.js","../node_modules/lodash/_isMasked.js","../node_modules/lodash/_toSource.js","../node_modules/lodash/_baseIsNative.js","../node_modules/lodash/_getValue.js","../node_modules/lodash/_getNative.js","../node_modules/lodash/_Map.js","../node_modules/lodash/_nativeCreate.js","../node_modules/lodash/_hashClear.js","../node_modules/lodash/_hashDelete.js","../node_modules/lodash/_hashGet.js","../node_modules/lodash/_hashHas.js","../node_modules/lodash/_hashSet.js","../node_modules/lodash/_Hash.js","../node_modules/lodash/_mapCacheClear.js","../node_modules/lodash/_isKeyable.js","../node_modules/lodash/_getMapData.js","../node_modules/lodash/_mapCacheDelete.js","../node_modules/lodash/_mapCacheGet.js","../node_modules/lodash/_mapCacheHas.js","../node_modules/lodash/_mapCacheSet.js","../node_modules/lodash/_MapCache.js","../node_modules/lodash/_stackSet.js","../node_modules/lodash/_Stack.js","../node_modules/lodash/_setCacheAdd.js","../node_modules/lodash/_setCacheHas.js","../node_modules/lodash/_SetCache.js","../node_modules/lodash/_arraySome.js","../node_modules/lodash/_cacheHas.js","../node_modules/lodash/_equalArrays.js","../node_modules/lodash/_Uint8Array.js","../node_modules/lodash/_mapToArray.js","../node_modules/lodash/_setToArray.js","../node_modules/lodash/_equalByTag.js","../node_modules/lodash/_arrayPush.js","../node_modules/lodash/isArray.js","../node_modules/lodash/_baseGetAllKeys.js","../node_modules/lodash/_arrayFilter.js","../node_modules/lodash/stubArray.js","../node_modules/lodash/_getSymbols.js","../node_modules/lodash/_baseTimes.js","../node_modules/lodash/isObjectLike.js","../node_modules/lodash/_baseIsArguments.js","../node_modules/lodash/isArguments.js","../node_modules/lodash/stubFalse.js","../node_modules/lodash/isBuffer.js","../node_modules/lodash/_isIndex.js","../node_modules/lodash/isLength.js","../node_modules/lodash/_baseIsTypedArray.js","../node_modules/lodash/_baseUnary.js","../node_modules/lodash/_nodeUtil.js","../node_modules/lodash/isTypedArray.js","../node_modules/lodash/_arrayLikeKeys.js","../node_modules/lodash/_isPrototype.js","../node_modules/lodash/_overArg.js","../node_modules/lodash/_nativeKeys.js","../node_modules/lodash/_baseKeys.js","../node_modules/lodash/isArrayLike.js","../node_modules/lodash/keys.js","../node_modules/lodash/_getAllKeys.js","../node_modules/lodash/_equalObjects.js","../node_modules/lodash/_DataView.js","../node_modules/lodash/_Promise.js","../node_modules/lodash/_Set.js","../node_modules/lodash/_WeakMap.js","../node_modules/lodash/_getTag.js","../node_modules/lodash/_baseIsEqualDeep.js","../node_modules/lodash/_baseIsEqual.js","../node_modules/lodash/isEqual.js","../node_modules/quill/dist/quill.js","../node_modules/react-quill/lib/index.js","../src/components/form/components/FormRichText.tsx","../src/components/form/components/FormDateTime.tsx","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/lodash.debounce/index.js","../node_modules/react-bootstrap-typeahead/es/constants.js","../node_modules/react-bootstrap-typeahead/es/utils/getStringLabelKey.js","../node_modules/react-bootstrap-typeahead/es/utils/hasOwnProperty.js","../node_modules/react-bootstrap-typeahead/es/utils/nodash.js","../node_modules/react-bootstrap-typeahead/es/utils/getOptionLabel.js","../node_modules/react-bootstrap-typeahead/es/utils/addCustomOption.js","../node_modules/fast-deep-equal/index.js","../node_modules/react-bootstrap-typeahead/es/utils/getOptionProperty.js","../node_modules/react-bootstrap-typeahead/es/utils/stripDiacritics.js","../node_modules/react-bootstrap-typeahead/es/utils/warn.js","../node_modules/react-bootstrap-typeahead/es/utils/defaultFilterBy.js","../node_modules/react-bootstrap-typeahead/es/utils/isSelectable.js","../node_modules/react-bootstrap-typeahead/es/utils/defaultSelectHint.js","../node_modules/react-bootstrap-typeahead/es/utils/getMatchBounds.js","../node_modules/react-bootstrap-typeahead/es/utils/getHintText.js","../node_modules/react-bootstrap-typeahead/es/utils/getMenuItemId.js","../node_modules/react-bootstrap-typeahead/es/utils/getInputProps.js","../node_modules/react-bootstrap-typeahead/es/utils/getInputText.js","../node_modules/react-bootstrap-typeahead/es/utils/getIsOnlyResult.js","../node_modules/react-bootstrap-typeahead/es/utils/getTruncatedOptions.js","../node_modules/react-bootstrap-typeahead/es/utils/getUpdatedActiveIndex.js","../node_modules/react-bootstrap-typeahead/es/utils/isShown.js","../node_modules/react-bootstrap-typeahead/es/utils/preventInputBlur.js","../node_modules/react-bootstrap-typeahead/es/utils/size.js","../node_modules/react-bootstrap-typeahead/es/utils/propsWithBsClassName.js","../node_modules/react-bootstrap-typeahead/es/utils/validateSelectedPropChange.js","../node_modules/react-bootstrap-typeahead/es/propTypes.js","../node_modules/react-bootstrap-typeahead/es/behaviors/async.js","../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../node_modules/@babel/runtime/helpers/esm/createClass.js","../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../node_modules/@babel/runtime/helpers/esm/inherits.js","../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../node_modules/react-bootstrap-typeahead/es/core/Context.js","../node_modules/react-bootstrap-typeahead/es/core/TypeaheadManager.js","../node_modules/react-bootstrap-typeahead/es/core/TypeaheadState.js","../node_modules/react-bootstrap-typeahead/es/core/Typeahead.js","../node_modules/react-bootstrap-typeahead/es/components/ClearButton/ClearButton.js","../node_modules/react-bootstrap-typeahead/es/components/Loader/Loader.js","../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/react-popper/lib/esm/utils.js","../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../node_modules/@popperjs/core/lib/popper.js","../node_modules/react-fast-compare/index.js","../node_modules/react-popper/lib/esm/usePopper.js","../node_modules/react-bootstrap-typeahead/es/components/Overlay/useOverlay.js","../node_modules/react-bootstrap-typeahead/es/components/Overlay/Overlay.js","../node_modules/react-overlays/esm/safeFindDOMNode.js","../node_modules/react-overlays/esm/ownerDocument.js","../node_modules/react-overlays/esm/useRootClose.js","../node_modules/react-bootstrap-typeahead/es/components/RootClose/useRootClose.js","../node_modules/react-bootstrap-typeahead/es/components/RootClose/RootClose.js","../node_modules/react-bootstrap-typeahead/es/behaviors/token.js","../node_modules/react-bootstrap-typeahead/es/components/Token/Token.js","../node_modules/react-bootstrap-typeahead/es/components/Hint/Hint.js","../node_modules/react-bootstrap-typeahead/es/components/Input/Input.js","../node_modules/react-bootstrap-typeahead/es/components/TypeaheadInputMulti/TypeaheadInputMulti.js","../node_modules/react-bootstrap-typeahead/es/components/TypeaheadInputSingle/TypeaheadInputSingle.js","../node_modules/react-bootstrap-typeahead/es/components/Highlighter/Highlighter.js","../node_modules/compute-scroll-into-view/dist/index.js","../node_modules/scroll-into-view-if-needed/dist/index.js","../node_modules/react-bootstrap-typeahead/es/behaviors/item.js","../node_modules/react-bootstrap-typeahead/es/components/MenuItem/MenuItem.js","../node_modules/react-bootstrap-typeahead/es/components/Menu/Menu.js","../node_modules/react-bootstrap-typeahead/es/components/TypeaheadMenu/TypeaheadMenu.js","../node_modules/react-bootstrap-typeahead/es/components/Typeahead/Typeahead.js","../node_modules/react-bootstrap-typeahead/es/components/AsyncTypeahead/AsyncTypeahead.js","../src/components/form/components/FormTypeahead.tsx","../src/components/form/components/FormAsyncTypeahead.tsx","../src/components/form/Form.tsx","../src/components/title/Title.tsx","../src/components/card/Card.tsx","../src/components/chip/Chip.tsx","../src/components/list/ListSectionContext.ts","../src/components/list/components/ListHead.tsx","../src/components/list/components/ListRow.tsx","../src/components/list/components/ListCell.tsx","../src/components/list/components/ListCol.tsx","../src/components/list/components/ListBody.tsx","../src/components/list/List.tsx","../src/components/progressBar/ProgressBar.tsx","../src/components/sideNavbar/SideNavbar.tsx","../src/components/infoTile/components/InfoTileTitle.tsx","../src/components/infoTile/components/InfoTileItem.tsx","../src/components/infoTile/components/InfoTileValue.tsx","../src/components/infoTile/components/InfoTileCol.tsx","../src/components/infoTile/InfoTile.tsx","../src/components/header/components/dropdown/DropdownItem.tsx","../src/components/header/components/dropdown/DropdownMenu.tsx","../src/components/header/components/dropdown/DropdownToggle.tsx","../src/components/header/components/HeaderDropdown.tsx","../src/components/header/components/HeaderNavbar.tsx","../src/components/header/Header.tsx","../src/components/userProfile/UserProfile.tsx","../src/components/footer/Footer.tsx","../src/components/searchBar/components/SearchBarInput.tsx","../src/components/searchBar/components/SearchBarButton.tsx","../src/components/searchBar/SearchBar.tsx","../node_modules/@remix-run/router/dist/router.js","../node_modules/react-router/dist/index.js","../node_modules/react-router-dom/dist/index.js","../src/components/breadcrumbs/BreadCrumbsContext.tsx","../src/components/breadcrumbs/components/BreadcrumbItem.tsx","../src/components/breadcrumbs/Breadcrumbs.tsx","../src/components/filterButton/FilterButton.tsx","../src/icons/Accounts.tsx","../src/icons/Assets.tsx","../src/icons/AssignStockLocation.tsx","../src/icons/BatchImportStock.tsx","../src/icons/Checklist.tsx","../src/icons/CommunityPosts.tsx","../src/icons/ManageSiteStock.tsx","../src/icons/Meters.tsx","../src/icons/Meters1.tsx","../src/icons/Performance.tsx","../src/icons/PreventiveMaintenance.tsx","../src/icons/PreventiveMaintenance1.tsx","../src/icons/ProductCatalogue1.tsx","../src/icons/ProductCatalogue2.tsx","../src/icons/ProductSelector.tsx","../src/icons/ReceiveStock.tsx","../src/icons/RedlineRequest.tsx","../src/icons/RedlineStock.tsx","../src/icons/ReturnStock.tsx","../src/icons/Sales.tsx","../src/icons/ShipAsn.tsx","../src/icons/SpareCatalogue.tsx","../src/icons/Spares1.tsx","../src/icons/Spares2.tsx","../src/icons/StockControl.tsx","../src/icons/StockList.tsx","../src/icons/StockManagement.tsx","../src/icons/StockOrdering1.tsx","../src/icons/StockOrdering2.tsx","../src/icons/TransferStock.tsx","../src/icons/Users1.tsx","../src/icons/Users2.tsx","../src/icons/Users3.tsx","../src/icons/Warranty.tsx","../src/icons/WorkOrders1.tsx","../src/icons/WorkOrders2.tsx","../src/components/texmoIcon/TexmoIcon.tsx","../src/contexts/TexmoContext.tsx","../src/components/nav/NavContext.tsx","../src/components/nav/components/NavItem.tsx","../src/components/nav/components/NavButton.tsx","../src/components/nav/Nav.tsx","../src/components/subtitle/Subtitle.tsx","../src/components/layout/components/LayoutBrand.tsx","../src/components/layout/components/LayoutContainer.tsx","../src/components/layout/components/LayoutMain.tsx","../src/components/nav/NavContextProvider.tsx","../src/components/layout/Layout.tsx","../src/components/tabs/components/TabsButton.tsx","../src/components/tabs/Tabs.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar NODE_ENV = process.env.NODE_ENV;\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","import invariant from 'invariant';\n\nvar noop = function noop() {};\n\nfunction readOnlyPropType(handler, name) {\n return function (props, propName) {\n if (props[propName] !== undefined) {\n if (!props[handler]) {\n return new Error(\"You have provided a `\" + propName + \"` prop to `\" + name + \"` \" + (\"without an `\" + handler + \"` handler prop. This will render a read-only field. \") + (\"If the field should be mutable use `\" + defaultKey(propName) + \"`. \") + (\"Otherwise, set `\" + handler + \"`.\"));\n }\n }\n };\n}\n\nexport function uncontrolledPropTypes(controlledValues, displayName) {\n var propTypes = {};\n Object.keys(controlledValues).forEach(function (prop) {\n // add default propTypes for folks that use runtime checks\n propTypes[defaultKey(prop)] = noop;\n\n if (process.env.NODE_ENV !== 'production') {\n var handler = controlledValues[prop];\n !(typeof handler === 'string' && handler.trim().length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable', displayName, prop) : invariant(false) : void 0;\n propTypes[prop] = readOnlyPropType(handler, displayName);\n }\n });\n return propTypes;\n}\nexport function isProp(props, prop) {\n return props[prop] !== undefined;\n}\nexport function defaultKey(key) {\n return 'default' + key.charAt(0).toUpperCase() + key.substr(1);\n}\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\nexport function canAcceptRef(component) {\n return !!component && (typeof component !== 'function' || component.prototype && component.prototype.isReactComponent);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\n\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\nimport { useCallback, useRef, useState } from 'react';\nimport * as Utils from './utils';\n\nfunction useUncontrolledProp(propValue, defaultValue, handler) {\n var wasPropRef = useRef(propValue !== undefined);\n\n var _useState = useState(defaultValue),\n stateValue = _useState[0],\n setState = _useState[1];\n\n var isProp = propValue !== undefined;\n var wasProp = wasPropRef.current;\n wasPropRef.current = isProp;\n /**\n * If a prop switches from controlled to Uncontrolled\n * reset its value to the defaultValue\n */\n\n if (!isProp && wasProp && stateValue !== defaultValue) {\n setState(defaultValue);\n }\n\n return [isProp ? propValue : stateValue, useCallback(function (value) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (handler) handler.apply(void 0, [value].concat(args));\n setState(value);\n }, [handler])];\n}\n\nexport { useUncontrolledProp };\nexport default function useUncontrolled(props, config) {\n return Object.keys(config).reduce(function (result, fieldName) {\n var _extends2;\n\n var _ref = result,\n defaultValue = _ref[Utils.defaultKey(fieldName)],\n propsValue = _ref[fieldName],\n rest = _objectWithoutPropertiesLoose(_ref, [Utils.defaultKey(fieldName), fieldName].map(_toPropertyKey));\n\n var handlerName = config[fieldName];\n\n var _useUncontrolledProp = useUncontrolledProp(propsValue, defaultValue, props[handlerName]),\n value = _useUncontrolledProp[0],\n handler = _useUncontrolledProp[1];\n\n return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));\n }, props);\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","\"use client\";\n\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const DEFAULT_BREAKPOINTS = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];\nexport const DEFAULT_MIN_BREAKPOINT = 'xs';\nconst ThemeContext = /*#__PURE__*/React.createContext({\n prefixes: {},\n breakpoints: DEFAULT_BREAKPOINTS,\n minBreakpoint: DEFAULT_MIN_BREAKPOINT\n});\nconst {\n Consumer,\n Provider\n} = ThemeContext;\nfunction ThemeProvider({\n prefixes = {},\n breakpoints = DEFAULT_BREAKPOINTS,\n minBreakpoint = DEFAULT_MIN_BREAKPOINT,\n dir,\n children\n}) {\n const contextValue = useMemo(() => ({\n prefixes: {\n ...prefixes\n },\n breakpoints,\n minBreakpoint,\n dir\n }), [prefixes, breakpoints, minBreakpoint, dir]);\n return /*#__PURE__*/_jsx(Provider, {\n value: contextValue,\n children: children\n });\n}\nexport function useBootstrapPrefix(prefix, defaultPrefix) {\n const {\n prefixes\n } = useContext(ThemeContext);\n return prefix || prefixes[defaultPrefix] || defaultPrefix;\n}\nexport function useBootstrapBreakpoints() {\n const {\n breakpoints\n } = useContext(ThemeContext);\n return breakpoints;\n}\nexport function useBootstrapMinBreakpoint() {\n const {\n minBreakpoint\n } = useContext(ThemeContext);\n return minBreakpoint;\n}\nexport function useIsRTL() {\n const {\n dir\n } = useContext(ThemeContext);\n return dir === 'rtl';\n}\nfunction createBootstrapComponent(Component, opts) {\n if (typeof opts === 'string') opts = {\n prefix: opts\n };\n const isClassy = Component.prototype && Component.prototype.isReactComponent;\n // If it's a functional component make sure we don't break it with a ref\n const {\n prefix,\n forwardRefAs = isClassy ? 'ref' : 'innerRef'\n } = opts;\n const Wrapped = /*#__PURE__*/React.forwardRef(({\n ...props\n }, ref) => {\n props[forwardRefAs] = ref;\n const bsPrefix = useBootstrapPrefix(props.bsPrefix, prefix);\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n bsPrefix: bsPrefix\n });\n });\n Wrapped.displayName = `Bootstrap(${Component.displayName || Component.name})`;\n return Wrapped;\n}\nexport { createBootstrapComponent, Consumer as ThemeConsumer };\nexport default ThemeProvider;","/**\n * Returns the owner document of a given element.\n * \n * @param node the element\n */\nexport default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from './ownerDocument';\n/**\n * Returns the owner window of a given element.\n * \n * @param node the element\n */\n\nexport default function ownerWindow(node) {\n var doc = ownerDocument(node);\n return doc && doc.defaultView || window;\n}","import ownerWindow from './ownerWindow';\n/**\n * Returns one or all computed style properties of an element.\n * \n * @param node the element\n * @param psuedoElement the style property\n */\n\nexport default function getComputedStyle(node, psuedoElement) {\n return ownerWindow(node).getComputedStyle(node, psuedoElement);\n}","var rUpper = /([A-Z])/g;\nexport default function hyphenate(string) {\n return string.replace(rUpper, '-$1').toLowerCase();\n}","/**\n * Copyright 2013-2014, Facebook, Inc.\n * All rights reserved.\n * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js\n */\nimport hyphenate from './hyphenate';\nvar msPattern = /^ms-/;\nexport default function hyphenateStyleName(string) {\n return hyphenate(string).replace(msPattern, '-ms-');\n}","var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;\nexport default function isTransform(value) {\n return !!(value && supportedTransforms.test(value));\n}","import getComputedStyle from './getComputedStyle';\nimport hyphenate from './hyphenateStyle';\nimport isTransform from './isTransform';\n\nfunction style(node, property) {\n var css = '';\n var transforms = '';\n\n if (typeof property === 'string') {\n return node.style.getPropertyValue(hyphenate(property)) || getComputedStyle(node).getPropertyValue(hyphenate(property));\n }\n\n Object.keys(property).forEach(function (key) {\n var value = property[key];\n\n if (!value && value !== 0) {\n node.style.removeProperty(hyphenate(key));\n } else if (isTransform(key)) {\n transforms += key + \"(\" + value + \") \";\n } else {\n css += hyphenate(key) + \": \" + value + \";\";\n }\n });\n\n if (transforms) {\n css += \"transform: \" + transforms + \";\";\n }\n\n node.style.cssText += \";\" + css;\n}\n\nexport default style;","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<
>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","export default {\n disabled: false\n};","import PropTypes from 'prop-types';\nexport var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n enter: PropTypes.number,\n exit: PropTypes.number,\n appear: PropTypes.number\n}).isRequired]) : null;\nexport var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string,\n active: PropTypes.string\n}), PropTypes.shape({\n enter: PropTypes.string,\n enterDone: PropTypes.string,\n enterActive: PropTypes.string,\n exit: PropTypes.string,\n exitDone: PropTypes.string,\n exitActive: PropTypes.string\n})]) : null;","import React from 'react';\nexport default React.createContext(null);","export var forceReflow = function forceReflow(node) {\n return node.scrollTop;\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n * \n * I'm a fade Transition!\n *
\n * )}\n * \n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * \n * \n * {state => (\n * // ...\n * )}\n * \n * setInProp(true)}>\n * Click to Enter\n * \n *
\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","export default !!(typeof window !== 'undefined' && window.document && window.document.createElement);","/* eslint-disable no-return-assign */\nimport canUseDOM from './canUseDOM';\nexport var optionsSupported = false;\nexport var onceSupported = false;\n\ntry {\n var options = {\n get passive() {\n return optionsSupported = true;\n },\n\n get once() {\n // eslint-disable-next-line no-multi-assign\n return onceSupported = optionsSupported = true;\n }\n\n };\n\n if (canUseDOM) {\n window.addEventListener('test', options, options);\n window.removeEventListener('test', options, true);\n }\n} catch (e) {\n /* */\n}\n\n/**\n * An `addEventListener` ponyfill, supports the `once` option\n * \n * @param node the element\n * @param eventName the event name\n * @param handle the handler\n * @param options event options\n */\nfunction addEventListener(node, eventName, handler, options) {\n if (options && typeof options !== 'boolean' && !onceSupported) {\n var once = options.once,\n capture = options.capture;\n var wrappedHandler = handler;\n\n if (!onceSupported && once) {\n wrappedHandler = handler.__once || function onceHandler(event) {\n this.removeEventListener(eventName, onceHandler, capture);\n handler.call(this, event);\n };\n\n handler.__once = wrappedHandler;\n }\n\n node.addEventListener(eventName, wrappedHandler, optionsSupported ? options : capture);\n }\n\n node.addEventListener(eventName, handler, options);\n}\n\nexport default addEventListener;","/**\n * A `removeEventListener` ponyfill\n * \n * @param node the element\n * @param eventName the event name\n * @param handle the handler\n * @param options event options\n */\nfunction removeEventListener(node, eventName, handler, options) {\n var capture = options && typeof options !== 'boolean' ? options.capture : options;\n node.removeEventListener(eventName, handler, capture);\n\n if (handler.__once) {\n node.removeEventListener(eventName, handler.__once, capture);\n }\n}\n\nexport default removeEventListener;","import addEventListener from './addEventListener';\nimport removeEventListener from './removeEventListener';\n\nfunction listen(node, eventName, handler, options) {\n addEventListener(node, eventName, handler, options);\n return function () {\n removeEventListener(node, eventName, handler, options);\n };\n}\n\nexport default listen;","/**\n * Triggers an event on a given element.\n * \n * @param node the element\n * @param eventName the event name to trigger\n * @param bubbles whether the event should bubble up\n * @param cancelable whether the event should be cancelable\n */\nexport default function triggerEvent(node, eventName, bubbles, cancelable) {\n if (bubbles === void 0) {\n bubbles = false;\n }\n\n if (cancelable === void 0) {\n cancelable = true;\n }\n\n if (node) {\n var event = document.createEvent('HTMLEvents');\n event.initEvent(eventName, bubbles, cancelable);\n node.dispatchEvent(event);\n }\n}","import css from './css';\nimport listen from './listen';\nimport triggerEvent from './triggerEvent';\n\nfunction parseDuration(node) {\n var str = css(node, 'transitionDuration') || '';\n var mult = str.indexOf('ms') === -1 ? 1000 : 1;\n return parseFloat(str) * mult;\n}\n\nfunction emulateTransitionEnd(element, duration, padding) {\n if (padding === void 0) {\n padding = 5;\n }\n\n var called = false;\n var handle = setTimeout(function () {\n if (!called) triggerEvent(element, 'transitionend', true);\n }, duration + padding);\n var remove = listen(element, 'transitionend', function () {\n called = true;\n }, {\n once: true\n });\n return function () {\n clearTimeout(handle);\n remove();\n };\n}\n\nexport default function transitionEnd(element, handler, duration, padding) {\n if (duration == null) duration = parseDuration(element) || 0;\n var removeEmulate = emulateTransitionEnd(element, duration, padding);\n var remove = listen(element, 'transitionend', handler);\n return function () {\n removeEmulate();\n remove();\n };\n}","import css from 'dom-helpers/css';\nimport transitionEnd from 'dom-helpers/transitionEnd';\nfunction parseDuration(node, property) {\n const str = css(node, property) || '';\n const mult = str.indexOf('ms') === -1 ? 1000 : 1;\n return parseFloat(str) * mult;\n}\nexport default function transitionEndListener(element, handler) {\n const duration = parseDuration(element, 'transitionDuration');\n const delay = parseDuration(element, 'transitionDelay');\n const remove = transitionEnd(element, e => {\n if (e.target === element) {\n remove();\n handler(e);\n }\n }, duration + delay);\n}","/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @param {function} functions to chain\n * @returns {function|null}\n */\nfunction createChainedFunction(...funcs) {\n return funcs.filter(f => f != null).reduce((acc, f) => {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n if (acc === null) return f;\n return function chainedFunction(...args) {\n // @ts-ignore\n acc.apply(this, args);\n // @ts-ignore\n f.apply(this, args);\n };\n }, null);\n}\nexport default createChainedFunction;","// reading a dimension prop will cause the browser to recalculate,\n// which will let our animations work\nexport default function triggerBrowserReflow(node) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n node.offsetHeight;\n}","import { useMemo } from 'react';\nconst toFnRef = ref => !ref || typeof ref === 'function' ? ref : value => {\n ref.current = value;\n};\nexport function mergeRefs(refA, refB) {\n const a = toFnRef(refA);\n const b = toFnRef(refB);\n return value => {\n if (a) a(value);\n if (b) b(value);\n };\n}\n\n/**\n * Create and returns a single callback ref composed from two other Refs.\n *\n * ```tsx\n * const Button = React.forwardRef((props, ref) => {\n * const [element, attachRef] = useCallbackRef();\n * const mergedRef = useMergedRefs(ref, attachRef);\n *\n * return \n * })\n * ```\n *\n * @param refA A Callback or mutable Ref\n * @param refB A Callback or mutable Ref\n * @category refs\n */\nfunction useMergedRefs(refA, refB) {\n return useMemo(() => mergeRefs(refA, refB), [refA, refB]);\n}\nexport default useMergedRefs;","import ReactDOM from 'react-dom';\nexport default function safeFindDOMNode(componentOrElement) {\n if (componentOrElement && 'setState' in componentOrElement) {\n return ReactDOM.findDOMNode(componentOrElement);\n }\n return componentOrElement != null ? componentOrElement : null;\n}","\"use client\";\n\nimport React, { useCallback, useRef } from 'react';\nimport Transition from 'react-transition-group/Transition';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport safeFindDOMNode from './safeFindDOMNode';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n// Normalizes Transition callbacks when nodeRef is used.\nconst TransitionWrapper = /*#__PURE__*/React.forwardRef(({\n onEnter,\n onEntering,\n onEntered,\n onExit,\n onExiting,\n onExited,\n addEndListener,\n children,\n childRef,\n ...props\n}, ref) => {\n const nodeRef = useRef(null);\n const mergedRef = useMergedRefs(nodeRef, childRef);\n const attachRef = r => {\n mergedRef(safeFindDOMNode(r));\n };\n const normalize = callback => param => {\n if (callback && nodeRef.current) {\n callback(nodeRef.current, param);\n }\n };\n\n /* eslint-disable react-hooks/exhaustive-deps */\n const handleEnter = useCallback(normalize(onEnter), [onEnter]);\n const handleEntering = useCallback(normalize(onEntering), [onEntering]);\n const handleEntered = useCallback(normalize(onEntered), [onEntered]);\n const handleExit = useCallback(normalize(onExit), [onExit]);\n const handleExiting = useCallback(normalize(onExiting), [onExiting]);\n const handleExited = useCallback(normalize(onExited), [onExited]);\n const handleAddEndListener = useCallback(normalize(addEndListener), [addEndListener]);\n /* eslint-enable react-hooks/exhaustive-deps */\n\n return /*#__PURE__*/_jsx(Transition, {\n ref: ref,\n ...props,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n nodeRef: nodeRef,\n children: typeof children === 'function' ? (status, innerProps) =>\n // TODO: Types for RTG missing innerProps, so need to cast.\n children(status, {\n ...innerProps,\n ref: attachRef\n }) : /*#__PURE__*/React.cloneElement(children, {\n ref: attachRef\n })\n });\n});\nexport default TransitionWrapper;","import classNames from 'classnames';\nimport css from 'dom-helpers/css';\nimport React, { useMemo } from 'react';\nimport { ENTERED, ENTERING, EXITED, EXITING } from 'react-transition-group/Transition';\nimport transitionEndListener from './transitionEndListener';\nimport createChainedFunction from './createChainedFunction';\nimport triggerBrowserReflow from './triggerBrowserReflow';\nimport TransitionWrapper from './TransitionWrapper';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst MARGINS = {\n height: ['marginTop', 'marginBottom'],\n width: ['marginLeft', 'marginRight']\n};\nfunction getDefaultDimensionValue(dimension, elem) {\n const offset = `offset${dimension[0].toUpperCase()}${dimension.slice(1)}`;\n const value = elem[offset];\n const margins = MARGINS[dimension];\n return value +\n // @ts-ignore\n parseInt(css(elem, margins[0]), 10) +\n // @ts-ignore\n parseInt(css(elem, margins[1]), 10);\n}\nconst collapseStyles = {\n [EXITED]: 'collapse',\n [EXITING]: 'collapsing',\n [ENTERING]: 'collapsing',\n [ENTERED]: 'collapse show'\n};\nconst Collapse = /*#__PURE__*/React.forwardRef(({\n onEnter,\n onEntering,\n onEntered,\n onExit,\n onExiting,\n className,\n children,\n dimension = 'height',\n in: inProp = false,\n timeout = 300,\n mountOnEnter = false,\n unmountOnExit = false,\n appear = false,\n getDimensionValue = getDefaultDimensionValue,\n ...props\n}, ref) => {\n /* Compute dimension */\n const computedDimension = typeof dimension === 'function' ? dimension() : dimension;\n\n /* -- Expanding -- */\n const handleEnter = useMemo(() => createChainedFunction(elem => {\n elem.style[computedDimension] = '0';\n }, onEnter), [computedDimension, onEnter]);\n const handleEntering = useMemo(() => createChainedFunction(elem => {\n const scroll = `scroll${computedDimension[0].toUpperCase()}${computedDimension.slice(1)}`;\n elem.style[computedDimension] = `${elem[scroll]}px`;\n }, onEntering), [computedDimension, onEntering]);\n const handleEntered = useMemo(() => createChainedFunction(elem => {\n elem.style[computedDimension] = null;\n }, onEntered), [computedDimension, onEntered]);\n\n /* -- Collapsing -- */\n const handleExit = useMemo(() => createChainedFunction(elem => {\n elem.style[computedDimension] = `${getDimensionValue(computedDimension, elem)}px`;\n triggerBrowserReflow(elem);\n }, onExit), [onExit, getDimensionValue, computedDimension]);\n const handleExiting = useMemo(() => createChainedFunction(elem => {\n elem.style[computedDimension] = null;\n }, onExiting), [computedDimension, onExiting]);\n return /*#__PURE__*/_jsx(TransitionWrapper, {\n ref: ref,\n addEndListener: transitionEndListener,\n ...props,\n \"aria-expanded\": props.role ? inProp : null,\n onEnter: handleEnter,\n onEntering: handleEntering,\n onEntered: handleEntered,\n onExit: handleExit,\n onExiting: handleExiting,\n childRef: children.ref,\n in: inProp,\n timeout: timeout,\n mountOnEnter: mountOnEnter,\n unmountOnExit: unmountOnExit,\n appear: appear,\n children: (state, innerProps) => /*#__PURE__*/React.cloneElement(children, {\n ...innerProps,\n className: classNames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'collapse-horizontal')\n })\n });\n});\n\n// @ts-ignore\n\nexport default Collapse;","import { useEffect, useRef } from 'react';\n\n/**\n * Creates a `Ref` whose value is updated in an effect, ensuring the most recent\n * value is the one rendered with. Generally only required for Concurrent mode usage\n * where previous work in `render()` may be discarded before being used.\n *\n * This is safe to access in an event handler.\n *\n * @param value The `Ref` value\n */\nfunction useCommittedRef(value) {\n const ref = useRef(value);\n useEffect(() => {\n ref.current = value;\n }, [value]);\n return ref;\n}\nexport default useCommittedRef;","import { useCallback } from 'react';\nimport useCommittedRef from './useCommittedRef';\nexport default function useEventCallback(fn) {\n const ref = useCommittedRef(fn);\n return useCallback(function (...args) {\n return ref.current && ref.current(...args);\n }, [ref]);\n}","import * as React from 'react';\nimport classNames from 'classnames';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default (className => /*#__PURE__*/React.forwardRef((p, ref) => /*#__PURE__*/_jsx(\"div\", {\n ...p,\n ref: ref,\n className: classNames(p.className, className)\n})));","import { useState } from 'react';\n\n/**\n * A convenience hook around `useState` designed to be paired with\n * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.\n * Callback refs are useful over `useRef()` when you need to respond to the ref being set\n * instead of lazily accessing it in an effect.\n *\n * ```ts\n * const [element, attachRef] = useCallbackRef()\n *\n * useEffect(() => {\n * if (!element) return\n *\n * const calendar = new FullCalendar.Calendar(element)\n *\n * return () => {\n * calendar.destroy()\n * }\n * }, [element])\n *\n * return
\n * ```\n *\n * @category refs\n */\nexport default function useCallbackRef() {\n return useState(null);\n}","import { useEffect } from 'react';\nimport useEventCallback from './useEventCallback';\n/**\n * Attaches an event handler outside directly to specified DOM element\n * bypassing the react synthetic event system.\n *\n * @param element The target to listen for events on\n * @param event The DOM event name\n * @param handler An event handler\n * @param capture Whether or not to listen during the capture event phase\n */\nexport default function useEventListener(eventTarget, event, listener, capture = false) {\n const handler = useEventCallback(listener);\n useEffect(() => {\n const target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;\n target.addEventListener(event, handler, capture);\n return () => target.removeEventListener(event, handler, capture);\n }, [eventTarget]);\n}","import { useRef, useEffect } from 'react';\n\n/**\n * Track whether a component is current mounted. Generally less preferable than\n * properlly canceling effects so they don't run after a component is unmounted,\n * but helpful in cases where that isn't feasible, such as a `Promise` resolution.\n *\n * @returns a function that returns the current isMounted state of the component\n *\n * ```ts\n * const [data, setData] = useState(null)\n * const isMounted = useMounted()\n *\n * useEffect(() => {\n * fetchdata().then((newData) => {\n * if (isMounted()) {\n * setData(newData);\n * }\n * })\n * })\n * ```\n */\nexport default function useMounted() {\n const mounted = useRef(true);\n const isMounted = useRef(() => mounted.current);\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n return isMounted.current;\n}","import { useEffect, useRef } from 'react';\n\n/**\n * Store the last of some value. Tracked via a `Ref` only updating it\n * after the component renders.\n *\n * Helpful if you need to compare a prop value to it's previous value during render.\n *\n * ```ts\n * function Component(props) {\n * const lastProps = usePrevious(props)\n *\n * if (lastProps.foo !== props.foo)\n * resetValueFromProps(props.foo)\n * }\n * ```\n *\n * @param value the value to track\n */\nexport default function usePrevious(value) {\n const ref = useRef(null);\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}","import { useEffect, useLayoutEffect } from 'react';\nconst isReactNative = typeof global !== 'undefined' &&\n// @ts-ignore\nglobal.navigator &&\n// @ts-ignore\nglobal.navigator.product === 'ReactNative';\nconst isDOM = typeof document !== 'undefined';\n\n/**\n * Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect\n * Only useful to avoid the console warning.\n *\n * PREFER `useEffect` UNLESS YOU KNOW WHAT YOU ARE DOING.\n *\n * @category effects\n */\nexport default isDOM || isReactNative ? useLayoutEffect : useEffect;","const _excluded = [\"as\", \"disabled\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function isTrivialHref(href) {\n return !href || href.trim() === '#';\n}\nexport function useButtonProps({\n tagName,\n disabled,\n href,\n target,\n rel,\n role,\n onClick,\n tabIndex = 0,\n type\n}) {\n if (!tagName) {\n if (href != null || target != null || rel != null) {\n tagName = 'a';\n } else {\n tagName = 'button';\n }\n }\n const meta = {\n tagName\n };\n if (tagName === 'button') {\n return [{\n type: type || 'button',\n disabled\n }, meta];\n }\n const handleClick = event => {\n if (disabled || tagName === 'a' && isTrivialHref(href)) {\n event.preventDefault();\n }\n if (disabled) {\n event.stopPropagation();\n return;\n }\n onClick == null ? void 0 : onClick(event);\n };\n const handleKeyDown = event => {\n if (event.key === ' ') {\n event.preventDefault();\n handleClick(event);\n }\n };\n if (tagName === 'a') {\n // Ensure there's a href so Enter can trigger anchor button.\n href || (href = '#');\n if (disabled) {\n href = undefined;\n }\n }\n return [{\n role: role != null ? role : 'button',\n // explicitly undefined so that it overrides the props disabled in a spread\n // e.g. \n disabled: undefined,\n tabIndex: disabled ? undefined : tabIndex,\n href,\n target: tagName === 'a' ? target : undefined,\n 'aria-disabled': !disabled ? undefined : disabled,\n rel: tagName === 'a' ? rel : undefined,\n onClick: handleClick,\n onKeyDown: handleKeyDown\n }, meta];\n}\nconst Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n as: asProp,\n disabled\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [buttonProps, {\n tagName: Component\n }] = useButtonProps(Object.assign({\n tagName: asProp,\n disabled\n }, props));\n return /*#__PURE__*/_jsx(Component, Object.assign({}, props, buttonProps, {\n ref: ref\n }));\n});\nButton.displayName = 'Button';\nexport default Button;","const _excluded = [\"onKeyDown\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/anchor-has-content */\n\nimport * as React from 'react';\nimport { useEventCallback } from '@restart/hooks';\nimport { useButtonProps } from './Button';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function isTrivialHref(href) {\n return !href || href.trim() === '#';\n}\n/**\n * An generic `` component that covers a few A11y cases, ensuring that\n * cases where the `href` is missing or trivial like \"#\" are treated like buttons.\n */\nconst Anchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n onKeyDown\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [buttonProps] = useButtonProps(Object.assign({\n tagName: 'a'\n }, props));\n const handleKeyDown = useEventCallback(e => {\n buttonProps.onKeyDown(e);\n onKeyDown == null ? void 0 : onKeyDown(e);\n });\n if (isTrivialHref(props.href) || props.role === 'button') {\n return /*#__PURE__*/_jsx(\"a\", Object.assign({\n ref: ref\n }, props, buttonProps, {\n onKeyDown: handleKeyDown\n }));\n }\n return /*#__PURE__*/_jsx(\"a\", Object.assign({\n ref: ref\n }, props, {\n onKeyDown: onKeyDown\n }));\n});\nAnchor.displayName = 'Anchor';\nexport default Anchor;","import classNames from 'classnames';\nimport * as React from 'react';\nimport { useCallback } from 'react';\nimport { ENTERED, ENTERING } from 'react-transition-group/Transition';\nimport transitionEndListener from './transitionEndListener';\nimport triggerBrowserReflow from './triggerBrowserReflow';\nimport TransitionWrapper from './TransitionWrapper';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst fadeStyles = {\n [ENTERING]: 'show',\n [ENTERED]: 'show'\n};\nconst Fade = /*#__PURE__*/React.forwardRef(({\n className,\n children,\n transitionClasses = {},\n onEnter,\n ...rest\n}, ref) => {\n const props = {\n in: false,\n timeout: 300,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n ...rest\n };\n const handleEnter = useCallback((node, isAppearing) => {\n triggerBrowserReflow(node);\n onEnter == null ? void 0 : onEnter(node, isAppearing);\n }, [onEnter]);\n return /*#__PURE__*/_jsx(TransitionWrapper, {\n ref: ref,\n addEndListener: transitionEndListener,\n ...props,\n onEnter: handleEnter,\n childRef: children.ref,\n children: (status, innerProps) => /*#__PURE__*/React.cloneElement(children, {\n ...innerProps,\n className: classNames('fade', className, children.props.className, fadeStyles[status], transitionClasses[status])\n })\n });\n});\nFade.displayName = 'Fade';\nexport default Fade;","import PropTypes from 'prop-types';\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst propTypes = {\n /** An accessible label indicating the relevant information about the Close Button. */\n 'aria-label': PropTypes.string,\n /** A callback fired after the Close Button is clicked. */\n onClick: PropTypes.func,\n /**\n * Render different color variant for the button.\n *\n * Omitting this will render the default dark color.\n */\n variant: PropTypes.oneOf(['white'])\n};\nconst CloseButton = /*#__PURE__*/React.forwardRef(({\n className,\n variant,\n 'aria-label': ariaLabel = 'Close',\n ...props\n}, ref) => /*#__PURE__*/_jsx(\"button\", {\n ref: ref,\n type: \"button\",\n className: classNames('btn-close', variant && `btn-close-${variant}`, className),\n \"aria-label\": ariaLabel,\n ...props\n}));\nCloseButton.displayName = 'CloseButton';\nCloseButton.propTypes = propTypes;\nexport default CloseButton;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useButtonProps } from '@restart/ui/Button';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Button = /*#__PURE__*/React.forwardRef(({\n as,\n bsPrefix,\n variant = 'primary',\n size,\n active = false,\n disabled = false,\n className,\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'btn');\n const [buttonProps, {\n tagName\n }] = useButtonProps({\n tagName: as,\n disabled,\n ...props\n });\n const Component = tagName;\n return /*#__PURE__*/_jsx(Component, {\n ...buttonProps,\n ...props,\n ref: ref,\n disabled: disabled,\n className: classNames(className, prefix, active && 'active', variant && `${prefix}-${variant}`, size && `${prefix}-${size}`, props.href && disabled && 'disabled')\n });\n});\nButton.displayName = 'Button';\nexport default Button;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CardBody = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-body');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardBody.displayName = 'CardBody';\nexport default CardBody;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CardFooter = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-footer');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardFooter.displayName = 'CardFooter';\nexport default CardFooter;","\"use client\";\n\nimport * as React from 'react';\nconst context = /*#__PURE__*/React.createContext(null);\ncontext.displayName = 'CardHeaderContext';\nexport default context;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useMemo } from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport CardHeaderContext from './CardHeaderContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CardHeader = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'card-header');\n const contextValue = useMemo(() => ({\n cardHeaderBsPrefix: prefix\n }), [prefix]);\n return /*#__PURE__*/_jsx(CardHeaderContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(Component, {\n ref: ref,\n ...props,\n className: classNames(className, prefix)\n })\n });\n});\nCardHeader.displayName = 'CardHeader';\nexport default CardHeader;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CardImg = /*#__PURE__*/React.forwardRef(\n// Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n({\n bsPrefix,\n className,\n variant,\n as: Component = 'img',\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'card-img');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(variant ? `${prefix}-${variant}` : prefix, className),\n ...props\n });\n});\nCardImg.displayName = 'CardImg';\nexport default CardImg;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CardImgOverlay = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-img-overlay');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardImgOverlay.displayName = 'CardImgOverlay';\nexport default CardImgOverlay;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CardLink = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'a',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-link');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardLink.displayName = 'CardLink';\nexport default CardLink;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport divWithClassName from './divWithClassName';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DivStyledAsH6 = divWithClassName('h6');\nconst CardSubtitle = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = DivStyledAsH6,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-subtitle');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardSubtitle.displayName = 'CardSubtitle';\nexport default CardSubtitle;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CardText = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'p',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-text');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardText.displayName = 'CardText';\nexport default CardText;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport divWithClassName from './divWithClassName';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DivStyledAsH5 = divWithClassName('h5');\nconst CardTitle = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = DivStyledAsH5,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-title');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardTitle.displayName = 'CardTitle';\nexport default CardTitle;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport CardBody from './CardBody';\nimport CardFooter from './CardFooter';\nimport CardHeader from './CardHeader';\nimport CardImg from './CardImg';\nimport CardImgOverlay from './CardImgOverlay';\nimport CardLink from './CardLink';\nimport CardSubtitle from './CardSubtitle';\nimport CardText from './CardText';\nimport CardTitle from './CardTitle';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Card = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n bg,\n text,\n border,\n body = false,\n children,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'card');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n ...props,\n className: classNames(className, prefix, bg && `bg-${bg}`, text && `text-${text}`, border && `border-${border}`),\n children: body ? /*#__PURE__*/_jsx(CardBody, {\n children: children\n }) : children\n });\n});\nCard.displayName = 'Card';\nexport default Object.assign(Card, {\n Img: CardImg,\n Title: CardTitle,\n Subtitle: CardSubtitle,\n Body: CardBody,\n Link: CardLink,\n Text: CardText,\n Header: CardHeader,\n Footer: CardFooter,\n ImgOverlay: CardImgOverlay\n});","import { useRef } from 'react';\n\n/**\n * Returns a ref that is immediately updated with the new value\n *\n * @param value The Ref value\n * @category refs\n */\nexport default function useUpdatedRef(value) {\n const valueRef = useRef(value);\n valueRef.current = value;\n return valueRef;\n}","import useUpdatedRef from './useUpdatedRef';\nimport { useEffect } from 'react';\n\n/**\n * Attach a callback that fires when a component unmounts\n *\n * @param fn Handler to run when the component unmounts\n * @category effects\n */\nexport default function useWillUnmount(fn) {\n const onUnmount = useUpdatedRef(fn);\n useEffect(() => () => onUnmount.current(), []);\n}","import { useMemo, useRef } from 'react';\nimport useMounted from './useMounted';\nimport useWillUnmount from './useWillUnmount';\n\n/*\n * Browsers including Internet Explorer, Chrome, Safari, and Firefox store the\n * delay as a 32-bit signed integer internally. This causes an integer overflow\n * when using delays larger than 2,147,483,647 ms (about 24.8 days),\n * resulting in the timeout being executed immediately.\n *\n * via: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout\n */\nconst MAX_DELAY_MS = 2 ** 31 - 1;\nfunction setChainedTimeout(handleRef, fn, timeoutAtMs) {\n const delayMs = timeoutAtMs - Date.now();\n handleRef.current = delayMs <= MAX_DELAY_MS ? setTimeout(fn, delayMs) : setTimeout(() => setChainedTimeout(handleRef, fn, timeoutAtMs), MAX_DELAY_MS);\n}\n\n/**\n * Returns a controller object for setting a timeout that is properly cleaned up\n * once the component unmounts. New timeouts cancel and replace existing ones.\n *\n *\n *\n * ```tsx\n * const { set, clear } = useTimeout();\n * const [hello, showHello] = useState(false);\n * //Display hello after 5 seconds\n * set(() => showHello(true), 5000);\n * return (\n * \n * {hello ?
Hello : null}\n * \n * );\n * ```\n */\nexport default function useTimeout() {\n const isMounted = useMounted();\n\n // types are confused between node and web here IDK\n const handleRef = useRef();\n useWillUnmount(() => clearTimeout(handleRef.current));\n return useMemo(() => {\n const clear = () => clearTimeout(handleRef.current);\n function set(fn, delayMs = 0) {\n if (!isMounted()) return;\n clear();\n if (delayMs <= MAX_DELAY_MS) {\n // For simplicity, if the timeout is short, just set a normal timeout.\n handleRef.current = setTimeout(fn, delayMs);\n } else {\n setChainedTimeout(handleRef, fn, Date.now() + delayMs);\n }\n }\n return {\n set,\n clear,\n handleRef\n };\n }, []);\n}","import * as React from 'react';\n\n/**\n * Iterates through children that are typically specified as `props.children`,\n * but only maps over children that are \"valid elements\".\n *\n * The mapFunction provided index will be normalised to the components mapped,\n * so an invalid component would not increase the index.\n *\n */\nfunction map(children, func) {\n let index = 0;\n return React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) ? func(child, index++) : child);\n}\n\n/**\n * Iterates through children that are \"valid elements\".\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child with the index reflecting the position relative to \"valid components\".\n */\nfunction forEach(children, func) {\n let index = 0;\n React.Children.forEach(children, child => {\n if ( /*#__PURE__*/React.isValidElement(child)) func(child, index++);\n });\n}\n\n/**\n * Finds whether a component's `children` prop includes a React element of the\n * specified type.\n */\nfunction hasChildOfType(children, type) {\n return React.Children.toArray(children).some(child => /*#__PURE__*/React.isValidElement(child) && child.type === type);\n}\nexport { map, forEach, hasChildOfType };","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useBootstrapPrefix, useBootstrapBreakpoints, useBootstrapMinBreakpoint } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function useCol({\n as,\n bsPrefix,\n className,\n ...props\n}) {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'col');\n const breakpoints = useBootstrapBreakpoints();\n const minBreakpoint = useBootstrapMinBreakpoint();\n const spans = [];\n const classes = [];\n breakpoints.forEach(brkPoint => {\n const propValue = props[brkPoint];\n delete props[brkPoint];\n let span;\n let offset;\n let order;\n if (typeof propValue === 'object' && propValue != null) {\n ({\n span,\n offset,\n order\n } = propValue);\n } else {\n span = propValue;\n }\n const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';\n if (span) spans.push(span === true ? `${bsPrefix}${infix}` : `${bsPrefix}${infix}-${span}`);\n if (order != null) classes.push(`order${infix}-${order}`);\n if (offset != null) classes.push(`offset${infix}-${offset}`);\n });\n return [{\n ...props,\n className: classNames(className, ...spans, ...classes)\n }, {\n as,\n bsPrefix,\n spans\n }];\n}\nconst Col = /*#__PURE__*/React.forwardRef(\n// Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n(props, ref) => {\n const [{\n className,\n ...colProps\n }, {\n as: Component = 'div',\n bsPrefix,\n spans\n }] = useCol(props);\n return /*#__PURE__*/_jsx(Component, {\n ...colProps,\n ref: ref,\n className: classNames(className, !spans.length && bsPrefix)\n });\n});\nCol.displayName = 'Col';\nexport default Col;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Container = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n fluid = false,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n className,\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'container');\n const suffix = typeof fluid === 'string' ? `-${fluid}` : '-fluid';\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n ...props,\n className: classNames(className, fluid ? `${prefix}${suffix}` : prefix)\n });\n});\nContainer.displayName = 'Container';\nexport default Container;","var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);\n/**\n * Runs `querySelectorAll` on a given element.\n * \n * @param element the element\n * @param selector the selector\n */\n\nexport default function qsa(element, selector) {\n return toArray(element.querySelectorAll(selector));\n}","function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport { useCallback, useRef, useState } from 'react';\nexport function defaultKey(key) {\n return 'default' + key.charAt(0).toUpperCase() + key.substr(1);\n}\nfunction useUncontrolledProp(propValue, defaultValue, handler) {\n const wasPropRef = useRef(propValue !== undefined);\n const [stateValue, setState] = useState(defaultValue);\n const isProp = propValue !== undefined;\n const wasProp = wasPropRef.current;\n wasPropRef.current = isProp;\n\n /**\n * If a prop switches from controlled to Uncontrolled\n * reset its value to the defaultValue\n */\n if (!isProp && wasProp && stateValue !== defaultValue) {\n setState(defaultValue);\n }\n return [isProp ? propValue : stateValue, useCallback((...args) => {\n const [value, ...rest] = args;\n let returnValue = handler == null ? void 0 : handler(value, ...rest);\n setState(value);\n return returnValue;\n }, [handler])];\n}\nexport { useUncontrolledProp };\nexport function useUncontrolled(props, config) {\n return Object.keys(config).reduce((result, fieldName) => {\n const _ref = result,\n _defaultKey = defaultKey(fieldName),\n {\n [_defaultKey]: defaultValue,\n [fieldName]: propsValue\n } = _ref,\n rest = _objectWithoutPropertiesLoose(_ref, [_defaultKey, fieldName].map(_toPropertyKey));\n const handlerName = config[fieldName];\n const [value, handler] = useUncontrolledProp(propsValue, defaultValue, props[handlerName]);\n return Object.assign({}, rest, {\n [fieldName]: value,\n [handlerName]: handler\n });\n }, props);\n}","import { useReducer } from 'react';\n\n/**\n * Returns a function that triggers a component update. the hook equivalent to\n * `this.forceUpdate()` in a class component. In most cases using a state value directly\n * is preferable but may be required in some advanced usages of refs for interop or\n * when direct DOM manipulation is required.\n *\n * ```ts\n * const forceUpdate = useForceUpdate();\n *\n * const updateOnClick = useCallback(() => {\n * forceUpdate()\n * }, [forceUpdate])\n *\n * return Hi there \n * ```\n */\nexport default function useForceUpdate() {\n // The toggling state value is designed to defeat React optimizations for skipping\n // updates when they are strictly equal to the last state value\n const [, dispatch] = useReducer(state => !state, false);\n return dispatch;\n}","import * as React from 'react';\nconst DropdownContext = /*#__PURE__*/React.createContext(null);\nexport default DropdownContext;","var has = Object.prototype.hasOwnProperty;\n\nfunction find(iter, tar, key) {\n\tfor (key of iter.keys()) {\n\t\tif (dequal(key, tar)) return key;\n\t}\n}\n\nexport function dequal(foo, bar) {\n\tvar ctor, len, tmp;\n\tif (foo === bar) return true;\n\n\tif (foo && bar && (ctor=foo.constructor) === bar.constructor) {\n\t\tif (ctor === Date) return foo.getTime() === bar.getTime();\n\t\tif (ctor === RegExp) return foo.toString() === bar.toString();\n\n\t\tif (ctor === Array) {\n\t\t\tif ((len=foo.length) === bar.length) {\n\t\t\t\twhile (len-- && dequal(foo[len], bar[len]));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (ctor === Set) {\n\t\t\tif (foo.size !== bar.size) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (len of foo) {\n\t\t\t\ttmp = len;\n\t\t\t\tif (tmp && typeof tmp === 'object') {\n\t\t\t\t\ttmp = find(bar, tmp);\n\t\t\t\t\tif (!tmp) return false;\n\t\t\t\t}\n\t\t\t\tif (!bar.has(tmp)) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (ctor === Map) {\n\t\t\tif (foo.size !== bar.size) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (len of foo) {\n\t\t\t\ttmp = len[0];\n\t\t\t\tif (tmp && typeof tmp === 'object') {\n\t\t\t\t\ttmp = find(bar, tmp);\n\t\t\t\t\tif (!tmp) return false;\n\t\t\t\t}\n\t\t\t\tif (!dequal(len[1], bar.get(tmp))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (ctor === ArrayBuffer) {\n\t\t\tfoo = new Uint8Array(foo);\n\t\t\tbar = new Uint8Array(bar);\n\t\t} else if (ctor === DataView) {\n\t\t\tif ((len=foo.byteLength) === bar.byteLength) {\n\t\t\t\twhile (len-- && foo.getInt8(len) === bar.getInt8(len));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (ArrayBuffer.isView(foo)) {\n\t\t\tif ((len=foo.byteLength) === bar.byteLength) {\n\t\t\t\twhile (len-- && foo[len] === bar[len]);\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (!ctor || typeof foo === 'object') {\n\t\t\tlen = 0;\n\t\t\tfor (ctor in foo) {\n\t\t\t\tif (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;\n\t\t\t\tif (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;\n\t\t\t}\n\t\t\treturn Object.keys(bar).length === len;\n\t\t}\n\t}\n\n\treturn foo !== foo && bar !== bar;\n}\n","import { useCallback } from 'react';\nimport useMounted from './useMounted';\n\n/**\n * `useSafeState` takes the return value of a `useState` hook and wraps the\n * setter to prevent updates onces the component has unmounted. Can used\n * with `useMergeState` and `useStateAsync` as well\n *\n * @param state The return value of a useStateHook\n *\n * ```ts\n * const [show, setShow] = useSafeState(useState(true));\n * ```\n */\n\nfunction useSafeState(state) {\n const isMounted = useMounted();\n return [state[0], useCallback(nextState => {\n if (!isMounted()) return;\n return state[1](nextState);\n }, [isMounted, state[1]])];\n}\nexport default useSafeState;","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import arrow from '@popperjs/core/lib/modifiers/arrow';\nimport computeStyles from '@popperjs/core/lib/modifiers/computeStyles';\nimport eventListeners from '@popperjs/core/lib/modifiers/eventListeners';\nimport flip from '@popperjs/core/lib/modifiers/flip';\nimport hide from '@popperjs/core/lib/modifiers/hide';\nimport offset from '@popperjs/core/lib/modifiers/offset';\nimport popperOffsets from '@popperjs/core/lib/modifiers/popperOffsets';\nimport preventOverflow from '@popperjs/core/lib/modifiers/preventOverflow';\nimport { placements } from '@popperjs/core/lib/enums';\nimport { popperGenerator } from '@popperjs/core/lib/popper-base';\n\n// For the common JS build we will turn this file into a bundle with no imports.\n// This is b/c the Popper lib is all esm files, and would break in a common js only environment\nexport const createPopper = popperGenerator({\n defaultModifiers: [hide, popperOffsets, computeStyles, eventListeners, offset, flip, preventOverflow, arrow]\n});\nexport { placements };","const _excluded = [\"enabled\", \"placement\", \"strategy\", \"modifiers\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { dequal } from 'dequal';\nimport useSafeState from '@restart/hooks/useSafeState';\nimport { createPopper } from './popper';\nconst disabledApplyStylesModifier = {\n name: 'applyStyles',\n enabled: false,\n phase: 'afterWrite',\n fn: () => undefined\n};\n\n// until docjs supports type exports...\n\nconst ariaDescribedByModifier = {\n name: 'ariaDescribedBy',\n enabled: true,\n phase: 'afterWrite',\n effect: ({\n state\n }) => () => {\n const {\n reference,\n popper\n } = state.elements;\n if ('removeAttribute' in reference) {\n const ids = (reference.getAttribute('aria-describedby') || '').split(',').filter(id => id.trim() !== popper.id);\n if (!ids.length) reference.removeAttribute('aria-describedby');else reference.setAttribute('aria-describedby', ids.join(','));\n }\n },\n fn: ({\n state\n }) => {\n var _popper$getAttribute;\n const {\n popper,\n reference\n } = state.elements;\n const role = (_popper$getAttribute = popper.getAttribute('role')) == null ? void 0 : _popper$getAttribute.toLowerCase();\n if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {\n const ids = reference.getAttribute('aria-describedby');\n if (ids && ids.split(',').indexOf(popper.id) !== -1) {\n return;\n }\n reference.setAttribute('aria-describedby', ids ? `${ids},${popper.id}` : popper.id);\n }\n }\n};\nconst EMPTY_MODIFIERS = [];\n/**\n * Position an element relative some reference element using Popper.js\n *\n * @param referenceElement\n * @param popperElement\n * @param {object} options\n * @param {object=} options.modifiers Popper.js modifiers\n * @param {boolean=} options.enabled toggle the popper functionality on/off\n * @param {string=} options.placement The popper element placement relative to the reference element\n * @param {string=} options.strategy the positioning strategy\n * @param {function=} options.onCreate called when the popper is created\n * @param {function=} options.onUpdate called when the popper is updated\n *\n * @returns {UsePopperState} The popper state\n */\nfunction usePopper(referenceElement, popperElement, _ref = {}) {\n let {\n enabled = true,\n placement = 'bottom',\n strategy = 'absolute',\n modifiers = EMPTY_MODIFIERS\n } = _ref,\n config = _objectWithoutPropertiesLoose(_ref, _excluded);\n const prevModifiers = useRef(modifiers);\n const popperInstanceRef = useRef();\n const update = useCallback(() => {\n var _popperInstanceRef$cu;\n (_popperInstanceRef$cu = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu.update();\n }, []);\n const forceUpdate = useCallback(() => {\n var _popperInstanceRef$cu2;\n (_popperInstanceRef$cu2 = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu2.forceUpdate();\n }, []);\n const [popperState, setState] = useSafeState(useState({\n placement,\n update,\n forceUpdate,\n attributes: {},\n styles: {\n popper: {},\n arrow: {}\n }\n }));\n const updateModifier = useMemo(() => ({\n name: 'updateStateModifier',\n enabled: true,\n phase: 'write',\n requires: ['computeStyles'],\n fn: ({\n state\n }) => {\n const styles = {};\n const attributes = {};\n Object.keys(state.elements).forEach(element => {\n styles[element] = state.styles[element];\n attributes[element] = state.attributes[element];\n });\n setState({\n state,\n styles,\n attributes,\n update,\n forceUpdate,\n placement: state.placement\n });\n }\n }), [update, forceUpdate, setState]);\n const nextModifiers = useMemo(() => {\n if (!dequal(prevModifiers.current, modifiers)) {\n prevModifiers.current = modifiers;\n }\n return prevModifiers.current;\n }, [modifiers]);\n useEffect(() => {\n if (!popperInstanceRef.current || !enabled) return;\n popperInstanceRef.current.setOptions({\n placement,\n strategy,\n modifiers: [...nextModifiers, updateModifier, disabledApplyStylesModifier]\n });\n }, [strategy, placement, updateModifier, enabled, nextModifiers]);\n useEffect(() => {\n if (!enabled || referenceElement == null || popperElement == null) {\n return undefined;\n }\n popperInstanceRef.current = createPopper(referenceElement, popperElement, Object.assign({}, config, {\n placement,\n strategy,\n modifiers: [...nextModifiers, ariaDescribedByModifier, updateModifier]\n }));\n return () => {\n if (popperInstanceRef.current != null) {\n popperInstanceRef.current.destroy();\n popperInstanceRef.current = undefined;\n setState(s => Object.assign({}, s, {\n attributes: {},\n styles: {\n popper: {}\n }\n }));\n }\n };\n // This is only run once to _create_ the popper\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [enabled, referenceElement, popperElement]);\n return popperState;\n}\nexport default usePopper;","/* eslint-disable no-bitwise, no-cond-assign */\n\n/**\n * Checks if an element contains another given element.\n * \n * @param context the context element\n * @param node the element to check\n */\nexport default function contains(context, node) {\n // HTML DOM and SVG DOM may have different support levels,\n // so we need to check on context instead of a document root element.\n if (context.contains) return context.contains(node);\n if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);\n}","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n","import contains from 'dom-helpers/contains';\nimport listen from 'dom-helpers/listen';\nimport ownerDocument from 'dom-helpers/ownerDocument';\nimport { useCallback, useEffect, useRef } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport warning from 'warning';\nconst noop = () => {};\nfunction isLeftClickEvent(event) {\n return event.button === 0;\n}\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\nexport const getRefTarget = ref => ref && ('current' in ref ? ref.current : ref);\nconst InitialTriggerEvents = {\n click: 'mousedown',\n mouseup: 'mousedown',\n pointerup: 'pointerdown'\n};\n\n/**\n * The `useClickOutside` hook registers your callback on the document that fires\n * when a pointer event is registered outside of the provided ref or element.\n *\n * @param {Ref| HTMLElement} ref The element boundary\n * @param {function} onClickOutside\n * @param {object=} options\n * @param {boolean=} options.disabled\n * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on\n */\nfunction useClickOutside(ref, onClickOutside = noop, {\n disabled,\n clickTrigger = 'click'\n} = {}) {\n const preventMouseClickOutsideRef = useRef(false);\n const waitingForTrigger = useRef(false);\n const handleMouseCapture = useCallback(e => {\n const currentTarget = getRefTarget(ref);\n warning(!!currentTarget, 'ClickOutside captured a close event but does not have a ref to compare it to. ' + 'useClickOutside(), should be passed a ref that resolves to a DOM node');\n preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target) || waitingForTrigger.current;\n waitingForTrigger.current = false;\n }, [ref]);\n const handleInitialMouse = useEventCallback(e => {\n const currentTarget = getRefTarget(ref);\n if (currentTarget && contains(currentTarget, e.target)) {\n waitingForTrigger.current = true;\n }\n });\n const handleMouse = useEventCallback(e => {\n if (!preventMouseClickOutsideRef.current) {\n onClickOutside(e);\n }\n });\n useEffect(() => {\n var _ownerWindow$event, _ownerWindow$parent;\n if (disabled || ref == null) return undefined;\n const doc = ownerDocument(getRefTarget(ref));\n const ownerWindow = doc.defaultView || window;\n\n // Store the current event to avoid triggering handlers immediately\n // For things rendered in an iframe, the event might originate on the parent window\n // so we should fall back to that global event if the local one doesn't exist\n // https://github.com/facebook/react/issues/20074\n let currentEvent = (_ownerWindow$event = ownerWindow.event) != null ? _ownerWindow$event : (_ownerWindow$parent = ownerWindow.parent) == null ? void 0 : _ownerWindow$parent.event;\n let removeInitialTriggerListener = null;\n if (InitialTriggerEvents[clickTrigger]) {\n removeInitialTriggerListener = listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);\n }\n\n // Use capture for this listener so it fires before React's listener, to\n // avoid false positives in the contains() check below if the target DOM\n // element is removed in the React mouse callback.\n const removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);\n const removeMouseListener = listen(doc, clickTrigger, e => {\n // skip if this event is the same as the one running when we added the handlers\n if (e === currentEvent) {\n currentEvent = undefined;\n return;\n }\n handleMouse(e);\n });\n let mobileSafariHackListeners = [];\n if ('ontouchstart' in doc.documentElement) {\n mobileSafariHackListeners = [].slice.call(doc.body.children).map(el => listen(el, 'mousemove', noop));\n }\n return () => {\n removeInitialTriggerListener == null ? void 0 : removeInitialTriggerListener();\n removeMouseCaptureListener();\n removeMouseListener();\n mobileSafariHackListeners.forEach(remove => remove());\n };\n }, [ref, disabled, clickTrigger, handleMouseCapture, handleInitialMouse, handleMouse]);\n}\nexport default useClickOutside;","export function toModifierMap(modifiers) {\n const result = {};\n if (!Array.isArray(modifiers)) {\n return modifiers || result;\n }\n\n // eslint-disable-next-line no-unused-expressions\n modifiers == null ? void 0 : modifiers.forEach(m => {\n result[m.name] = m;\n });\n return result;\n}\nexport function toModifierArray(map = {}) {\n if (Array.isArray(map)) return map;\n return Object.keys(map).map(k => {\n map[k].name = k;\n return map[k];\n });\n}\nexport default function mergeOptionsWithPopperConfig({\n enabled,\n enableEvents,\n placement,\n flip,\n offset,\n fixed,\n containerPadding,\n arrowElement,\n popperConfig = {}\n}) {\n var _modifiers$eventListe, _modifiers$preventOve, _modifiers$preventOve2, _modifiers$offset, _modifiers$arrow;\n const modifiers = toModifierMap(popperConfig.modifiers);\n return Object.assign({}, popperConfig, {\n placement,\n enabled,\n strategy: fixed ? 'fixed' : popperConfig.strategy,\n modifiers: toModifierArray(Object.assign({}, modifiers, {\n eventListeners: {\n enabled: enableEvents,\n options: (_modifiers$eventListe = modifiers.eventListeners) == null ? void 0 : _modifiers$eventListe.options\n },\n preventOverflow: Object.assign({}, modifiers.preventOverflow, {\n options: containerPadding ? Object.assign({\n padding: containerPadding\n }, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options\n }),\n offset: {\n options: Object.assign({\n offset\n }, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)\n },\n arrow: Object.assign({}, modifiers.arrow, {\n enabled: !!arrowElement,\n options: Object.assign({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {\n element: arrowElement\n })\n }),\n flip: Object.assign({\n enabled: !!flip\n }, modifiers.flip)\n }))\n });\n}","const _excluded = [\"children\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport { useContext, useRef } from 'react';\nimport * as React from 'react';\nimport useCallbackRef from '@restart/hooks/useCallbackRef';\nimport DropdownContext from './DropdownContext';\nimport usePopper from './usePopper';\nimport useClickOutside from './useClickOutside';\nimport mergeOptionsWithPopperConfig from './mergeOptionsWithPopperConfig';\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst noop = () => {};\n\n/**\n * @memberOf Dropdown\n * @param {object} options\n * @param {boolean} options.flip Automatically adjust the menu `drop` position based on viewport edge detection\n * @param {[number, number]} options.offset Define an offset distance between the Menu and the Toggle\n * @param {boolean} options.show Display the menu manually, ignored in the context of a `Dropdown`\n * @param {boolean} options.usePopper opt in/out of using PopperJS to position menus. When disabled you must position it yourself.\n * @param {string} options.rootCloseEvent The pointer event to listen for when determining \"clicks outside\" the menu for triggering a close.\n * @param {object} options.popperConfig Options passed to the [`usePopper`](/api/usePopper) hook.\n */\nexport function useDropdownMenu(options = {}) {\n const context = useContext(DropdownContext);\n const [arrowElement, attachArrowRef] = useCallbackRef();\n const hasShownRef = useRef(false);\n const {\n flip,\n offset,\n rootCloseEvent,\n fixed = false,\n placement: placementOverride,\n popperConfig = {},\n enableEventListeners = true,\n usePopper: shouldUsePopper = !!context\n } = options;\n const show = (context == null ? void 0 : context.show) == null ? !!options.show : context.show;\n if (show && !hasShownRef.current) {\n hasShownRef.current = true;\n }\n const handleClose = e => {\n context == null ? void 0 : context.toggle(false, e);\n };\n const {\n placement,\n setMenu,\n menuElement,\n toggleElement\n } = context || {};\n const popper = usePopper(toggleElement, menuElement, mergeOptionsWithPopperConfig({\n placement: placementOverride || placement || 'bottom-start',\n enabled: shouldUsePopper,\n enableEvents: enableEventListeners == null ? show : enableEventListeners,\n offset,\n flip,\n fixed,\n arrowElement,\n popperConfig\n }));\n const menuProps = Object.assign({\n ref: setMenu || noop,\n 'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id\n }, popper.attributes.popper, {\n style: popper.styles.popper\n });\n const metadata = {\n show,\n placement,\n hasShown: hasShownRef.current,\n toggle: context == null ? void 0 : context.toggle,\n popper: shouldUsePopper ? popper : null,\n arrowProps: shouldUsePopper ? Object.assign({\n ref: attachArrowRef\n }, popper.attributes.arrow, {\n style: popper.styles.arrow\n }) : {}\n };\n useClickOutside(menuElement, handleClose, {\n clickTrigger: rootCloseEvent,\n disabled: !show\n });\n return [menuProps, metadata];\n}\nconst defaultProps = {\n usePopper: true\n};\n/**\n * Also exported as `` from `Dropdown`.\n *\n * @displayName DropdownMenu\n * @memberOf Dropdown\n */\nfunction DropdownMenu(_ref) {\n let {\n children\n } = _ref,\n options = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [props, meta] = useDropdownMenu(options);\n return /*#__PURE__*/_jsx(_Fragment, {\n children: children(props, meta)\n });\n}\nDropdownMenu.displayName = 'DropdownMenu';\nDropdownMenu.defaultProps = defaultProps;\n\n/** @component */\nexport default DropdownMenu;","import $73SJx$react, {useContext as $73SJx$useContext, useState as $73SJx$useState, useMemo as $73SJx$useMemo, useLayoutEffect as $73SJx$useLayoutEffect, useRef as $73SJx$useRef} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is\n// guarded by a check that it only runs on the client side.\n// eslint-disable-next-line rulesdir/useLayoutEffectRule\n\n// Default context value to use in case there is no SSRProvider. This is fine for\n// client-only apps. In order to support multiple copies of React Aria potentially\n// being on the page at once, the prefix is set to a random number. SSRProvider\n// will reset this to zero for consistency between server and client, so in the\n// SSR case multiple copies of React Aria is not supported.\nconst $b5e257d569688ac6$var$defaultContext = {\n prefix: String(Math.round(Math.random() * 10000000000)),\n current: 0\n};\nconst $b5e257d569688ac6$var$SSRContext = /*#__PURE__*/ (0, $73SJx$react).createContext($b5e257d569688ac6$var$defaultContext);\nconst $b5e257d569688ac6$var$IsSSRContext = /*#__PURE__*/ (0, $73SJx$react).createContext(false);\n// This is only used in React < 18.\nfunction $b5e257d569688ac6$var$LegacySSRProvider(props) {\n let cur = (0, $73SJx$useContext)($b5e257d569688ac6$var$SSRContext);\n let counter = $b5e257d569688ac6$var$useCounter(cur === $b5e257d569688ac6$var$defaultContext);\n let [isSSR, setIsSSR] = (0, $73SJx$useState)(true);\n let value = (0, $73SJx$useMemo)(()=>({\n // If this is the first SSRProvider, start with an empty string prefix, otherwise\n // append and increment the counter.\n prefix: cur === $b5e257d569688ac6$var$defaultContext ? \"\" : `${cur.prefix}-${counter}`,\n current: 0\n }), [\n cur,\n counter\n ]);\n // If on the client, and the component was initially server rendered,\n // then schedule a layout effect to update the component after hydration.\n if (typeof document !== \"undefined\") // This if statement technically breaks the rules of hooks, but is safe\n // because the condition never changes after mounting.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n (0, $73SJx$useLayoutEffect)(()=>{\n setIsSSR(false);\n }, []);\n return /*#__PURE__*/ (0, $73SJx$react).createElement($b5e257d569688ac6$var$SSRContext.Provider, {\n value: value\n }, /*#__PURE__*/ (0, $73SJx$react).createElement($b5e257d569688ac6$var$IsSSRContext.Provider, {\n value: isSSR\n }, props.children));\n}\nlet $b5e257d569688ac6$var$warnedAboutSSRProvider = false;\nfunction $b5e257d569688ac6$export$9f8ac96af4b1b2ae(props) {\n if (typeof (0, $73SJx$react)[\"useId\"] === \"function\") {\n if (process.env.NODE_ENV !== \"test\" && !$b5e257d569688ac6$var$warnedAboutSSRProvider) {\n console.warn(\"In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.\");\n $b5e257d569688ac6$var$warnedAboutSSRProvider = true;\n }\n return /*#__PURE__*/ (0, $73SJx$react).createElement((0, $73SJx$react).Fragment, null, props.children);\n }\n return /*#__PURE__*/ (0, $73SJx$react).createElement($b5e257d569688ac6$var$LegacySSRProvider, props);\n}\nlet $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== \"undefined\" && window.document && window.document.createElement);\nlet $b5e257d569688ac6$var$componentIds = new WeakMap();\nfunction $b5e257d569688ac6$var$useCounter(isDisabled = false) {\n let ctx = (0, $73SJx$useContext)($b5e257d569688ac6$var$SSRContext);\n let ref = (0, $73SJx$useRef)(null);\n // eslint-disable-next-line rulesdir/pure-render\n if (ref.current === null && !isDisabled) {\n var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n // In strict mode, React renders components twice, and the ref will be reset to null on the second render.\n // This means our id counter will be incremented twice instead of once. This is a problem because on the\n // server, components are only rendered once and so ids generated on the server won't match the client.\n // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this\n // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.\n // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.\n // To ensure that we only increment the global counter once, we store the starting id for this component in\n // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.\n // Since React runs the second render immediately after the first, this is safe.\n // @ts-ignore\n let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (0, $73SJx$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;\n if (currentOwner) {\n let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);\n if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.\n $b5e257d569688ac6$var$componentIds.set(currentOwner, {\n id: ctx.current,\n state: currentOwner.memoizedState\n });\n else if (currentOwner.memoizedState !== prevComponentValue.state) {\n // On the second render, the memoizedState gets reset by React.\n // Reset the counter, and remove from the weak map so we don't\n // do this for subsequent useId calls.\n ctx.current = prevComponentValue.id;\n $b5e257d569688ac6$var$componentIds.delete(currentOwner);\n }\n }\n // eslint-disable-next-line rulesdir/pure-render\n ref.current = ++ctx.current;\n }\n // eslint-disable-next-line rulesdir/pure-render\n return ref.current;\n}\nfunction $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {\n let ctx = (0, $73SJx$useContext)($b5e257d569688ac6$var$SSRContext);\n // If we are rendering in a non-DOM environment, and there's no SSRProvider,\n // provide a warning to hint to the developer to add one.\n if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn(\"When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.\");\n let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);\n let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === \"test\" ? \"react-aria\" : `react-aria${ctx.prefix}`;\n return defaultId || `${prefix}-${counter}`;\n}\nfunction $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {\n // @ts-ignore\n let id = (0, $73SJx$react).useId();\n let [didSSR] = (0, $73SJx$useState)($b5e257d569688ac6$export$535bd6ca7f90a273());\n let prefix = didSSR || process.env.NODE_ENV === \"test\" ? \"react-aria\" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;\n return defaultId || `${prefix}-${id}`;\n}\nconst $b5e257d569688ac6$export$619500959fc48b26 = typeof (0, $73SJx$react)[\"useId\"] === \"function\" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;\nfunction $b5e257d569688ac6$var$getSnapshot() {\n return false;\n}\nfunction $b5e257d569688ac6$var$getServerSnapshot() {\n return true;\n}\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $b5e257d569688ac6$var$subscribe(onStoreChange) {\n // noop\n return ()=>{};\n}\nfunction $b5e257d569688ac6$export$535bd6ca7f90a273() {\n // In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.\n if (typeof (0, $73SJx$react)[\"useSyncExternalStore\"] === \"function\") return (0, $73SJx$react)[\"useSyncExternalStore\"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return (0, $73SJx$useContext)($b5e257d569688ac6$var$IsSSRContext);\n}\n\n\n\n\nexport {$b5e257d569688ac6$export$9f8ac96af4b1b2ae as SSRProvider, $b5e257d569688ac6$export$619500959fc48b26 as useSSRSafeId, $b5e257d569688ac6$export$535bd6ca7f90a273 as useIsSSR};\n//# sourceMappingURL=module.js.map\n","import { useContext, useCallback } from 'react';\nimport * as React from 'react';\nimport { useSSRSafeId } from './ssr';\nimport DropdownContext from './DropdownContext';\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const isRoleMenu = el => {\n var _el$getAttribute;\n return ((_el$getAttribute = el.getAttribute('role')) == null ? void 0 : _el$getAttribute.toLowerCase()) === 'menu';\n};\nconst noop = () => {};\n\n/**\n * Wires up Dropdown toggle functionality, returning a set a props to attach\n * to the element that functions as the dropdown toggle (generally a button).\n *\n * @memberOf Dropdown\n */\nexport function useDropdownToggle() {\n const id = useSSRSafeId();\n const {\n show = false,\n toggle = noop,\n setToggle,\n menuElement\n } = useContext(DropdownContext) || {};\n const handleClick = useCallback(e => {\n toggle(!show, e);\n }, [show, toggle]);\n const props = {\n id,\n ref: setToggle || noop,\n onClick: handleClick,\n 'aria-expanded': !!show\n };\n\n // This is maybe better down in an effect, but\n // the component is going to update anyway when the menu element\n // is set so might return new props.\n if (menuElement && isRoleMenu(menuElement)) {\n props['aria-haspopup'] = true;\n }\n return [props, {\n show,\n toggle\n }];\n}\n/**\n * Also exported as `` from `Dropdown`.\n *\n * @displayName DropdownToggle\n * @memberOf Dropdown\n */\nfunction DropdownToggle({\n children\n}) {\n const [props, meta] = useDropdownToggle();\n return /*#__PURE__*/_jsx(_Fragment, {\n children: children(props, meta)\n });\n}\nDropdownToggle.displayName = 'DropdownToggle';\n\n/** @component */\nexport default DropdownToggle;","import * as React from 'react';\nconst SelectableContext = /*#__PURE__*/React.createContext(null);\nexport const makeEventKey = (eventKey, href = null) => {\n if (eventKey != null) return String(eventKey);\n return href || null;\n};\nexport default SelectableContext;","import * as React from 'react';\nconst NavContext = /*#__PURE__*/React.createContext(null);\nNavContext.displayName = 'NavContext';\nexport default NavContext;","export const ATTRIBUTE_PREFIX = `data-rr-ui-`;\nexport const PROPERTY_PREFIX = `rrUi`;\nexport function dataAttr(property) {\n return `${ATTRIBUTE_PREFIX}${property}`;\n}\nexport function dataProp(property) {\n return `${PROPERTY_PREFIX}${property}`;\n}","const _excluded = [\"eventKey\", \"disabled\", \"onClick\", \"active\", \"as\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport NavContext from './NavContext';\nimport Button from './Button';\nimport { dataAttr } from './DataKey';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Create a dropdown item. Returns a set of props for the dropdown item component\n * including an `onClick` handler that prevents selection when the item is disabled\n */\nexport function useDropdownItem({\n key,\n href,\n active,\n disabled,\n onClick\n}) {\n const onSelectCtx = useContext(SelectableContext);\n const navContext = useContext(NavContext);\n const {\n activeKey\n } = navContext || {};\n const eventKey = makeEventKey(key, href);\n const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;\n const handleClick = useEventCallback(event => {\n if (disabled) return;\n onClick == null ? void 0 : onClick(event);\n if (onSelectCtx && !event.isPropagationStopped()) {\n onSelectCtx(eventKey, event);\n }\n });\n return [{\n onClick: handleClick,\n 'aria-disabled': disabled || undefined,\n 'aria-selected': isActive,\n [dataAttr('dropdown-item')]: ''\n }, {\n isActive\n }];\n}\nconst DropdownItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n eventKey,\n disabled,\n onClick,\n active,\n as: Component = Button\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [dropdownItemProps] = useDropdownItem({\n key: eventKey,\n href: props.href,\n disabled,\n onClick,\n active\n });\n return /*#__PURE__*/_jsx(Component, Object.assign({}, props, {\n ref: ref\n }, dropdownItemProps));\n});\nDropdownItem.displayName = 'DropdownItem';\nexport default DropdownItem;","import { createContext, useContext } from 'react';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nconst Context = /*#__PURE__*/createContext(canUseDOM ? window : undefined);\nexport const WindowProvider = Context.Provider;\n\n/**\n * The document \"window\" placed in React context. Helpful for determining\n * SSR context, or when rendering into an iframe.\n *\n * @returns the current window\n */\nexport default function useWindow() {\n return useContext(Context);\n}","import qsa from 'dom-helpers/querySelectorAll';\nimport addEventListener from 'dom-helpers/addEventListener';\nimport { useCallback, useRef, useEffect, useMemo, useContext } from 'react';\nimport * as React from 'react';\nimport { useUncontrolledProp } from 'uncontrollable';\nimport usePrevious from '@restart/hooks/usePrevious';\nimport useForceUpdate from '@restart/hooks/useForceUpdate';\nimport useEventListener from '@restart/hooks/useEventListener';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport DropdownContext from './DropdownContext';\nimport DropdownMenu from './DropdownMenu';\nimport DropdownToggle, { isRoleMenu } from './DropdownToggle';\nimport DropdownItem from './DropdownItem';\nimport SelectableContext from './SelectableContext';\nimport { dataAttr } from './DataKey';\nimport useWindow from './useWindow';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction useRefWithUpdate() {\n const forceUpdate = useForceUpdate();\n const ref = useRef(null);\n const attachRef = useCallback(element => {\n ref.current = element;\n // ensure that a menu set triggers an update for consumers\n forceUpdate();\n }, [forceUpdate]);\n return [ref, attachRef];\n}\n\n/**\n * @displayName Dropdown\n * @public\n */\nfunction Dropdown({\n defaultShow,\n show: rawShow,\n onSelect,\n onToggle: rawOnToggle,\n itemSelector = `* [${dataAttr('dropdown-item')}]`,\n focusFirstItemOnShow,\n placement = 'bottom-start',\n children\n}) {\n const window = useWindow();\n const [show, onToggle] = useUncontrolledProp(rawShow, defaultShow, rawOnToggle);\n\n // We use normal refs instead of useCallbackRef in order to populate the\n // the value as quickly as possible, otherwise the effect to focus the element\n // may run before the state value is set\n const [menuRef, setMenu] = useRefWithUpdate();\n const menuElement = menuRef.current;\n const [toggleRef, setToggle] = useRefWithUpdate();\n const toggleElement = toggleRef.current;\n const lastShow = usePrevious(show);\n const lastSourceEvent = useRef(null);\n const focusInDropdown = useRef(false);\n const onSelectCtx = useContext(SelectableContext);\n const toggle = useCallback((nextShow, event, source = event == null ? void 0 : event.type) => {\n onToggle(nextShow, {\n originalEvent: event,\n source\n });\n }, [onToggle]);\n const handleSelect = useEventCallback((key, event) => {\n onSelect == null ? void 0 : onSelect(key, event);\n toggle(false, event, 'select');\n if (!event.isPropagationStopped()) {\n onSelectCtx == null ? void 0 : onSelectCtx(key, event);\n }\n });\n const context = useMemo(() => ({\n toggle,\n placement,\n show,\n menuElement,\n toggleElement,\n setMenu,\n setToggle\n }), [toggle, placement, show, menuElement, toggleElement, setMenu, setToggle]);\n if (menuElement && lastShow && !show) {\n focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);\n }\n const focusToggle = useEventCallback(() => {\n if (toggleElement && toggleElement.focus) {\n toggleElement.focus();\n }\n });\n const maybeFocusFirst = useEventCallback(() => {\n const type = lastSourceEvent.current;\n let focusType = focusFirstItemOnShow;\n if (focusType == null) {\n focusType = menuRef.current && isRoleMenu(menuRef.current) ? 'keyboard' : false;\n }\n if (focusType === false || focusType === 'keyboard' && !/^key.+$/.test(type)) {\n return;\n }\n const first = qsa(menuRef.current, itemSelector)[0];\n if (first && first.focus) first.focus();\n });\n useEffect(() => {\n if (show) maybeFocusFirst();else if (focusInDropdown.current) {\n focusInDropdown.current = false;\n focusToggle();\n }\n // only `show` should be changing\n }, [show, focusInDropdown, focusToggle, maybeFocusFirst]);\n useEffect(() => {\n lastSourceEvent.current = null;\n });\n const getNextFocusedChild = (current, offset) => {\n if (!menuRef.current) return null;\n const items = qsa(menuRef.current, itemSelector);\n let index = items.indexOf(current) + offset;\n index = Math.max(0, Math.min(index, items.length));\n return items[index];\n };\n useEventListener(useCallback(() => window.document, [window]), 'keydown', event => {\n var _menuRef$current, _toggleRef$current;\n const {\n key\n } = event;\n const target = event.target;\n const fromMenu = (_menuRef$current = menuRef.current) == null ? void 0 : _menuRef$current.contains(target);\n const fromToggle = (_toggleRef$current = toggleRef.current) == null ? void 0 : _toggleRef$current.contains(target);\n\n // Second only to https://github.com/twbs/bootstrap/blob/8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac/js/src/dropdown.js#L400\n // in inscrutability\n const isInput = /input|textarea/i.test(target.tagName);\n if (isInput && (key === ' ' || key !== 'Escape' && fromMenu || key === 'Escape' && target.type === 'search')) {\n return;\n }\n if (!fromMenu && !fromToggle) {\n return;\n }\n if (key === 'Tab' && (!menuRef.current || !show)) {\n return;\n }\n lastSourceEvent.current = event.type;\n const meta = {\n originalEvent: event,\n source: event.type\n };\n switch (key) {\n case 'ArrowUp':\n {\n const next = getNextFocusedChild(target, -1);\n if (next && next.focus) next.focus();\n event.preventDefault();\n return;\n }\n case 'ArrowDown':\n event.preventDefault();\n if (!show) {\n onToggle(true, meta);\n } else {\n const next = getNextFocusedChild(target, 1);\n if (next && next.focus) next.focus();\n }\n return;\n case 'Tab':\n // on keydown the target is the element being tabbed FROM, we need that\n // to know if this event is relevant to this dropdown (e.g. in this menu).\n // On `keyup` the target is the element being tagged TO which we use to check\n // if focus has left the menu\n addEventListener(target.ownerDocument, 'keyup', e => {\n var _menuRef$current2;\n if (e.key === 'Tab' && !e.target || !((_menuRef$current2 = menuRef.current) != null && _menuRef$current2.contains(e.target))) {\n onToggle(false, meta);\n }\n }, {\n once: true\n });\n break;\n case 'Escape':\n if (key === 'Escape') {\n event.preventDefault();\n event.stopPropagation();\n }\n onToggle(false, meta);\n break;\n default:\n }\n });\n return /*#__PURE__*/_jsx(SelectableContext.Provider, {\n value: handleSelect,\n children: /*#__PURE__*/_jsx(DropdownContext.Provider, {\n value: context,\n children: children\n })\n });\n}\nDropdown.displayName = 'Dropdown';\nDropdown.Menu = DropdownMenu;\nDropdown.Toggle = DropdownToggle;\nDropdown.Item = DropdownItem;\nexport default Dropdown;","\"use client\";\n\nimport * as React from 'react';\nconst DropdownContext = /*#__PURE__*/React.createContext({});\nDropdownContext.displayName = 'DropdownContext';\nexport default DropdownContext;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DropdownDivider = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'hr',\n role = 'separator',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-divider');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n role: role,\n ...props\n });\n});\nDropdownDivider.displayName = 'DropdownDivider';\nexport default DropdownDivider;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DropdownHeader = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'div',\n role = 'heading',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-header');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n role: role,\n ...props\n });\n});\nDropdownHeader.displayName = 'DropdownHeader';\nexport default DropdownHeader;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useDropdownItem } from '@restart/ui/DropdownItem';\nimport Anchor from '@restart/ui/Anchor';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DropdownItem = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n eventKey,\n disabled = false,\n onClick,\n active,\n as: Component = Anchor,\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');\n const [dropdownItemProps, meta] = useDropdownItem({\n key: eventKey,\n href: props.href,\n disabled,\n onClick,\n active\n });\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ...dropdownItemProps,\n ref: ref,\n className: classNames(className, prefix, meta.isActive && 'active', disabled && 'disabled')\n });\n});\nDropdownItem.displayName = 'DropdownItem';\nexport default DropdownItem;","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DropdownItemText = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'span',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-item-text');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nDropdownItemText.displayName = 'DropdownItemText';\nexport default DropdownItemText;","\"use client\";\n\nimport * as React from 'react';\nconst context = /*#__PURE__*/React.createContext(null);\ncontext.displayName = 'InputGroupContext';\nexport default context;","\"use client\";\n\nimport * as React from 'react';\n\n// TODO: check\n\nconst context = /*#__PURE__*/React.createContext(null);\ncontext.displayName = 'NavbarContext';\nexport default context;","import invariant from 'invariant';\nimport { useCallback } from 'react';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nexport default function useWrappedRefWithWarning(ref, componentName) {\n // @ts-ignore\n if (!(process.env.NODE_ENV !== \"production\")) return ref;\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const warningRef = useCallback(refValue => {\n !(refValue == null || !refValue.isReactComponent) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `${componentName} injected a ref to a provided \\`as\\` component that resolved to a component instance instead of a DOM element. ` + 'Use `React.forwardRef` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element') : invariant(false) : void 0;\n }, [componentName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useMergedRefs(warningRef, ref);\n}","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport { useDropdownMenu } from '@restart/ui/DropdownMenu';\nimport useIsomorphicEffect from '@restart/hooks/useIsomorphicEffect';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport warning from 'warning';\nimport DropdownContext from './DropdownContext';\nimport InputGroupContext from './InputGroupContext';\nimport NavbarContext from './NavbarContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport useWrappedRefWithWarning from './useWrappedRefWithWarning';\nimport { alignPropType } from './types';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function getDropdownMenuPlacement(alignEnd, dropDirection, isRTL) {\n const topStart = isRTL ? 'top-end' : 'top-start';\n const topEnd = isRTL ? 'top-start' : 'top-end';\n const bottomStart = isRTL ? 'bottom-end' : 'bottom-start';\n const bottomEnd = isRTL ? 'bottom-start' : 'bottom-end';\n const leftStart = isRTL ? 'right-start' : 'left-start';\n const leftEnd = isRTL ? 'right-end' : 'left-end';\n const rightStart = isRTL ? 'left-start' : 'right-start';\n const rightEnd = isRTL ? 'left-end' : 'right-end';\n let placement = alignEnd ? bottomEnd : bottomStart;\n if (dropDirection === 'up') placement = alignEnd ? topEnd : topStart;else if (dropDirection === 'end') placement = alignEnd ? rightEnd : rightStart;else if (dropDirection === 'start') placement = alignEnd ? leftEnd : leftStart;else if (dropDirection === 'down-centered') placement = 'bottom';else if (dropDirection === 'up-centered') placement = 'top';\n return placement;\n}\nconst DropdownMenu = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n align,\n rootCloseEvent,\n flip = true,\n show: showProps,\n renderOnMount,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n popperConfig,\n variant,\n ...props\n}, ref) => {\n let alignEnd = false;\n const isNavbar = useContext(NavbarContext);\n const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');\n const {\n align: contextAlign,\n drop,\n isRTL\n } = useContext(DropdownContext);\n align = align || contextAlign;\n const isInputGroup = useContext(InputGroupContext);\n const alignClasses = [];\n if (align) {\n if (typeof align === 'object') {\n const keys = Object.keys(align);\n process.env.NODE_ENV !== \"production\" ? warning(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;\n if (keys.length) {\n const brkPoint = keys[0];\n const direction = align[brkPoint];\n\n // .dropdown-menu-end is required for responsively aligning\n // left in addition to align left classes.\n alignEnd = direction === 'start';\n alignClasses.push(`${prefix}-${brkPoint}-${direction}`);\n }\n } else if (align === 'end') {\n alignEnd = true;\n }\n }\n const placement = getDropdownMenuPlacement(alignEnd, drop, isRTL);\n const [menuProps, {\n hasShown,\n popper,\n show,\n toggle\n }] = useDropdownMenu({\n flip,\n rootCloseEvent,\n show: showProps,\n usePopper: !isNavbar && alignClasses.length === 0,\n offset: [0, 2],\n popperConfig,\n placement\n });\n menuProps.ref = useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);\n useIsomorphicEffect(() => {\n // Popper's initial position for the menu is incorrect when\n // renderOnMount=true. Need to call update() to correct it.\n if (show) popper == null ? void 0 : popper.update();\n }, [show]);\n if (!hasShown && !renderOnMount && !isInputGroup) return null;\n\n // For custom components provide additional, non-DOM, props;\n if (typeof Component !== 'string') {\n menuProps.show = show;\n menuProps.close = () => toggle == null ? void 0 : toggle(false);\n menuProps.align = align;\n }\n let style = props.style;\n if (popper != null && popper.placement) {\n // we don't need the default popper style,\n // menus are display: none when not shown.\n style = {\n ...props.style,\n ...menuProps.style\n };\n props['x-placement'] = popper.placement;\n }\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ...menuProps,\n style: style\n // Bootstrap css requires this data attrib to style responsive menus.\n ,\n ...((alignClasses.length || isNavbar) && {\n 'data-bs-popper': 'static'\n }),\n className: classNames(className, prefix, show && 'show', alignEnd && `${prefix}-end`, variant && `${prefix}-${variant}`, ...alignClasses)\n });\n});\nDropdownMenu.displayName = 'DropdownMenu';\nexport default DropdownMenu;","\"use client\";\n\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport DropdownContext from '@restart/ui/DropdownContext';\nimport { useDropdownToggle } from '@restart/ui/DropdownToggle';\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport Button from './Button';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport useWrappedRefWithWarning from './useWrappedRefWithWarning';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DropdownToggle = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n split,\n className,\n childBsPrefix,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = Button,\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');\n const dropdownContext = useContext(DropdownContext);\n if (childBsPrefix !== undefined) {\n props.bsPrefix = childBsPrefix;\n }\n const [toggleProps] = useDropdownToggle();\n toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle'));\n\n // This intentionally forwards size and variant (if set) to the\n // underlying component, to allow it to render size and style variants.\n return /*#__PURE__*/_jsx(Component, {\n className: classNames(className, prefix, split && `${prefix}-split`, (dropdownContext == null ? void 0 : dropdownContext.show) && 'show'),\n ...toggleProps,\n ...props\n });\n});\nDropdownToggle.displayName = 'DropdownToggle';\nexport default DropdownToggle;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport BaseDropdown from '@restart/ui/Dropdown';\nimport { useUncontrolled } from 'uncontrollable';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport DropdownContext from './DropdownContext';\nimport DropdownDivider from './DropdownDivider';\nimport DropdownHeader from './DropdownHeader';\nimport DropdownItem from './DropdownItem';\nimport DropdownItemText from './DropdownItemText';\nimport DropdownMenu, { getDropdownMenuPlacement } from './DropdownMenu';\nimport DropdownToggle from './DropdownToggle';\nimport InputGroupContext from './InputGroupContext';\nimport { useBootstrapPrefix, useIsRTL } from './ThemeProvider';\nimport { alignPropType } from './types';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Dropdown = /*#__PURE__*/React.forwardRef((pProps, ref) => {\n const {\n bsPrefix,\n drop = 'down',\n show,\n className,\n align = 'start',\n onSelect,\n onToggle,\n focusFirstItemOnShow,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n navbar: _4,\n autoClose = true,\n ...props\n } = useUncontrolled(pProps, {\n show: 'onToggle'\n });\n const isInputGroup = useContext(InputGroupContext);\n const prefix = useBootstrapPrefix(bsPrefix, 'dropdown');\n const isRTL = useIsRTL();\n const isClosingPermitted = source => {\n // autoClose=false only permits close on button click\n if (autoClose === false) return source === 'click';\n\n // autoClose=inside doesn't permit close on rootClose\n if (autoClose === 'inside') return source !== 'rootClose';\n\n // autoClose=outside doesn't permit close on select\n if (autoClose === 'outside') return source !== 'select';\n return true;\n };\n const handleToggle = useEventCallback((nextShow, meta) => {\n var _meta$originalEvent, _meta$originalEvent$t;\n /** Checking if target of event is ToggleButton,\n * if it is then nullify mousedown event\n */\n const isToggleButton = (_meta$originalEvent = meta.originalEvent) == null ? void 0 : (_meta$originalEvent$t = _meta$originalEvent.target) == null ? void 0 : _meta$originalEvent$t.classList.contains('dropdown-toggle');\n if (isToggleButton && meta.source === 'mousedown') {\n return;\n }\n if (meta.originalEvent.currentTarget === document && (meta.source !== 'keydown' || meta.originalEvent.key === 'Escape')) meta.source = 'rootClose';\n if (isClosingPermitted(meta.source)) onToggle == null ? void 0 : onToggle(nextShow, meta);\n });\n const alignEnd = align === 'end';\n const placement = getDropdownMenuPlacement(alignEnd, drop, isRTL);\n const contextValue = useMemo(() => ({\n align,\n drop,\n isRTL\n }), [align, drop, isRTL]);\n const directionClasses = {\n down: prefix,\n 'down-centered': `${prefix}-center`,\n up: 'dropup',\n 'up-centered': 'dropup-center dropup',\n end: 'dropend',\n start: 'dropstart'\n };\n return /*#__PURE__*/_jsx(DropdownContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(BaseDropdown, {\n placement: placement,\n show: show,\n onSelect: onSelect,\n onToggle: handleToggle,\n focusFirstItemOnShow: focusFirstItemOnShow,\n itemSelector: `.${prefix}-item:not(.disabled):not(:disabled)`,\n children: isInputGroup ? props.children : /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n className: classNames(className, show && 'show', directionClasses[drop])\n })\n })\n });\n});\nDropdown.displayName = 'Dropdown';\nexport default Object.assign(Dropdown, {\n Toggle: DropdownToggle,\n Menu: DropdownMenu,\n Item: DropdownItem,\n ItemText: DropdownItemText,\n Divider: DropdownDivider,\n Header: DropdownHeader\n});","import classNames from 'classnames';\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst propTypes = {\n /**\n * Specify whether the feedback is for valid or invalid fields\n *\n * @type {('valid'|'invalid')}\n */\n type: PropTypes.string,\n /** Display feedback as a tooltip. */\n tooltip: PropTypes.bool,\n as: PropTypes.elementType\n};\nconst Feedback = /*#__PURE__*/React.forwardRef(\n// Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n({\n as: Component = 'div',\n className,\n type = 'valid',\n tooltip = false,\n ...props\n}, ref) => /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n className: classNames(className, `${type}-${tooltip ? 'tooltip' : 'feedback'}`)\n}));\nFeedback.displayName = 'Feedback';\nFeedback.propTypes = propTypes;\nexport default Feedback;","\"use client\";\n\nimport * as React from 'react';\n\n// TODO\n\nconst FormContext = /*#__PURE__*/React.createContext({});\nexport default FormContext;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport FormContext from './FormContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormCheckInput = /*#__PURE__*/React.forwardRef(({\n id,\n bsPrefix,\n className,\n type = 'checkbox',\n isValid = false,\n isInvalid = false,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'input',\n ...props\n}, ref) => {\n const {\n controlId\n } = useContext(FormContext);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check-input');\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n type: type,\n id: id || controlId,\n className: classNames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')\n });\n});\nFormCheckInput.displayName = 'FormCheckInput';\nexport default FormCheckInput;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport FormContext from './FormContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormCheckLabel = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n htmlFor,\n ...props\n}, ref) => {\n const {\n controlId\n } = useContext(FormContext);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check-label');\n return /*#__PURE__*/_jsx(\"label\", {\n ...props,\n ref: ref,\n htmlFor: htmlFor || controlId,\n className: classNames(className, bsPrefix)\n });\n});\nFormCheckLabel.displayName = 'FormCheckLabel';\nexport default FormCheckLabel;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport Feedback from './Feedback';\nimport FormCheckInput from './FormCheckInput';\nimport FormCheckLabel from './FormCheckLabel';\nimport FormContext from './FormContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { hasChildOfType } from './ElementChildren';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst FormCheck = /*#__PURE__*/React.forwardRef(({\n id,\n bsPrefix,\n bsSwitchPrefix,\n inline = false,\n reverse = false,\n disabled = false,\n isValid = false,\n isInvalid = false,\n feedbackTooltip = false,\n feedback,\n feedbackType,\n className,\n style,\n title = '',\n type = 'checkbox',\n label,\n children,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as = 'input',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check');\n bsSwitchPrefix = useBootstrapPrefix(bsSwitchPrefix, 'form-switch');\n const {\n controlId\n } = useContext(FormContext);\n const innerFormContext = useMemo(() => ({\n controlId: id || controlId\n }), [controlId, id]);\n const hasLabel = !children && label != null && label !== false || hasChildOfType(children, FormCheckLabel);\n const input = /*#__PURE__*/_jsx(FormCheckInput, {\n ...props,\n type: type === 'switch' ? 'checkbox' : type,\n ref: ref,\n isValid: isValid,\n isInvalid: isInvalid,\n disabled: disabled,\n as: as\n });\n return /*#__PURE__*/_jsx(FormContext.Provider, {\n value: innerFormContext,\n children: /*#__PURE__*/_jsx(\"div\", {\n style: style,\n className: classNames(className, hasLabel && bsPrefix, inline && `${bsPrefix}-inline`, reverse && `${bsPrefix}-reverse`, type === 'switch' && bsSwitchPrefix),\n children: children || /*#__PURE__*/_jsxs(_Fragment, {\n children: [input, hasLabel && /*#__PURE__*/_jsx(FormCheckLabel, {\n title: title,\n children: label\n }), feedback && /*#__PURE__*/_jsx(Feedback, {\n type: feedbackType,\n tooltip: feedbackTooltip,\n children: feedback\n })]\n })\n })\n });\n});\nFormCheck.displayName = 'FormCheck';\nexport default Object.assign(FormCheck, {\n Input: FormCheckInput,\n Label: FormCheckLabel\n});","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport warning from 'warning';\nimport Feedback from './Feedback';\nimport FormContext from './FormContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormControl = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n type,\n size,\n htmlSize,\n id,\n className,\n isValid = false,\n isInvalid = false,\n plaintext,\n readOnly,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'input',\n ...props\n}, ref) => {\n const {\n controlId\n } = useContext(FormContext);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-control');\n process.env.NODE_ENV !== \"production\" ? warning(controlId == null || !id, '`controlId` is ignored on `` when `id` is specified.') : void 0;\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n type: type,\n size: htmlSize,\n ref: ref,\n readOnly: readOnly,\n id: id || controlId,\n className: classNames(className, plaintext ? `${bsPrefix}-plaintext` : bsPrefix, size && `${bsPrefix}-${size}`, type === 'color' && `${bsPrefix}-color`, isValid && 'is-valid', isInvalid && 'is-invalid')\n });\n});\nFormControl.displayName = 'FormControl';\nexport default Object.assign(FormControl, {\n Feedback\n});","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormFloating = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-floating');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nFormFloating.displayName = 'FormFloating';\nexport default FormFloating;","import * as React from 'react';\nimport { useMemo } from 'react';\nimport FormContext from './FormContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormGroup = /*#__PURE__*/React.forwardRef(({\n controlId,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n ...props\n}, ref) => {\n const context = useMemo(() => ({\n controlId\n }), [controlId]);\n return /*#__PURE__*/_jsx(FormContext.Provider, {\n value: context,\n children: /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref\n })\n });\n});\nFormGroup.displayName = 'FormGroup';\nexport default FormGroup;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport warning from 'warning';\nimport Col from './Col';\nimport FormContext from './FormContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormLabel = /*#__PURE__*/React.forwardRef(({\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'label',\n bsPrefix,\n column = false,\n visuallyHidden = false,\n className,\n htmlFor,\n ...props\n}, ref) => {\n const {\n controlId\n } = useContext(FormContext);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');\n let columnClass = 'col-form-label';\n if (typeof column === 'string') columnClass = `${columnClass} ${columnClass}-${column}`;\n const classes = classNames(className, bsPrefix, visuallyHidden && 'visually-hidden', column && columnClass);\n process.env.NODE_ENV !== \"production\" ? warning(controlId == null || !htmlFor, '`controlId` is ignored on `` when `htmlFor` is specified.') : void 0;\n htmlFor = htmlFor || controlId;\n if (column) return /*#__PURE__*/_jsx(Col, {\n ref: ref,\n as: \"label\",\n className: classes,\n htmlFor: htmlFor,\n ...props\n });\n return (\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control\n _jsx(Component, {\n ref: ref,\n className: classes,\n htmlFor: htmlFor,\n ...props\n })\n );\n});\nFormLabel.displayName = 'FormLabel';\nexport default FormLabel;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport FormContext from './FormContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormRange = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n id,\n ...props\n}, ref) => {\n const {\n controlId\n } = useContext(FormContext);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-range');\n return /*#__PURE__*/_jsx(\"input\", {\n ...props,\n type: \"range\",\n ref: ref,\n className: classNames(className, bsPrefix),\n id: id || controlId\n });\n});\nFormRange.displayName = 'FormRange';\nexport default FormRange;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport FormContext from './FormContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormSelect = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n size,\n htmlSize,\n className,\n isValid = false,\n isInvalid = false,\n id,\n ...props\n}, ref) => {\n const {\n controlId\n } = useContext(FormContext);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-select');\n return /*#__PURE__*/_jsx(\"select\", {\n ...props,\n size: htmlSize,\n ref: ref,\n className: classNames(className, bsPrefix, size && `${bsPrefix}-${size}`, isValid && `is-valid`, isInvalid && `is-invalid`),\n id: id || controlId\n });\n});\nFormSelect.displayName = 'FormSelect';\nexport default FormSelect;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormText = /*#__PURE__*/React.forwardRef(\n// Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n({\n bsPrefix,\n className,\n as: Component = 'small',\n muted,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n className: classNames(className, bsPrefix, muted && 'text-muted')\n });\n});\nFormText.displayName = 'FormText';\nexport default FormText;","import * as React from 'react';\nimport FormCheck from './FormCheck';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Switch = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/_jsx(FormCheck, {\n ...props,\n ref: ref,\n type: \"switch\"\n}));\nSwitch.displayName = 'Switch';\nexport default Object.assign(Switch, {\n Input: FormCheck.Input,\n Label: FormCheck.Label\n});","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport FormGroup from './FormGroup';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst FloatingLabel = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n children,\n controlId,\n label,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-floating');\n return /*#__PURE__*/_jsxs(FormGroup, {\n ref: ref,\n className: classNames(className, bsPrefix),\n controlId: controlId,\n ...props,\n children: [children, /*#__PURE__*/_jsx(\"label\", {\n htmlFor: controlId,\n children: label\n })]\n });\n});\nFloatingLabel.displayName = 'FloatingLabel';\nexport default FloatingLabel;","import classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport FormCheck from './FormCheck';\nimport FormControl from './FormControl';\nimport FormFloating from './FormFloating';\nimport FormGroup from './FormGroup';\nimport FormLabel from './FormLabel';\nimport FormRange from './FormRange';\nimport FormSelect from './FormSelect';\nimport FormText from './FormText';\nimport Switch from './Switch';\nimport FloatingLabel from './FloatingLabel';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst propTypes = {\n /**\n * The Form `ref` will be forwarded to the underlying element,\n * which means, unless it's rendered `as` a composite component,\n * it will be a DOM node, when resolved.\n *\n * @type {ReactRef}\n * @alias ref\n */\n _ref: PropTypes.any,\n /**\n * Mark a form as having been validated. Setting it to `true` will\n * toggle any validation styles on the forms elements.\n */\n validated: PropTypes.bool,\n as: PropTypes.elementType\n};\nconst Form = /*#__PURE__*/React.forwardRef(({\n className,\n validated,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'form',\n ...props\n}, ref) => /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n className: classNames(className, validated && 'was-validated')\n}));\nForm.displayName = 'Form';\nForm.propTypes = propTypes;\nexport default Object.assign(Form, {\n Group: FormGroup,\n Control: FormControl,\n Floating: FormFloating,\n Check: FormCheck,\n Switch,\n Label: FormLabel,\n Text: FormText,\n Range: FormRange,\n Select: FormSelect,\n FloatingLabel\n});","\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst InputGroupText = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'span',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group-text');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nInputGroupText.displayName = 'InputGroupText';\nexport default InputGroupText;","\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useMemo } from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport FormCheckInput from './FormCheckInput';\nimport InputGroupContext from './InputGroupContext';\nimport InputGroupText from './InputGroupText';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst InputGroupCheckbox = props => /*#__PURE__*/_jsx(InputGroupText, {\n children: /*#__PURE__*/_jsx(FormCheckInput, {\n type: \"checkbox\",\n ...props\n })\n});\nconst InputGroupRadio = props => /*#__PURE__*/_jsx(InputGroupText, {\n children: /*#__PURE__*/_jsx(FormCheckInput, {\n type: \"radio\",\n ...props\n })\n});\nconst InputGroup = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n size,\n hasValidation,\n className,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');\n\n // Intentionally an empty object. Used in detecting if a dropdown\n // exists under an input group.\n const contextValue = useMemo(() => ({}), []);\n return /*#__PURE__*/_jsx(InputGroupContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(Component, {\n ref: ref,\n ...props,\n className: classNames(className, bsPrefix, size && `${bsPrefix}-${size}`, hasValidation && 'has-validation')\n })\n });\n});\nInputGroup.displayName = 'InputGroup';\nexport default Object.assign(InputGroup, {\n Text: InputGroupText,\n Radio: InputGroupRadio,\n Checkbox: InputGroupCheckbox\n});","import * as React from 'react';\nconst TabContext = /*#__PURE__*/React.createContext(null);\nexport default TabContext;","const _excluded = [\"as\", \"active\", \"eventKey\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport NavContext from './NavContext';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport Button from './Button';\nimport { dataAttr } from './DataKey';\nimport TabContext from './TabContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function useNavItem({\n key,\n onClick,\n active,\n id,\n role,\n disabled\n}) {\n const parentOnSelect = useContext(SelectableContext);\n const navContext = useContext(NavContext);\n const tabContext = useContext(TabContext);\n let isActive = active;\n const props = {\n role\n };\n if (navContext) {\n if (!role && navContext.role === 'tablist') props.role = 'tab';\n const contextControllerId = navContext.getControllerId(key != null ? key : null);\n const contextControlledId = navContext.getControlledId(key != null ? key : null);\n\n // @ts-ignore\n props[dataAttr('event-key')] = key;\n props.id = contextControllerId || id;\n isActive = active == null && key != null ? navContext.activeKey === key : active;\n\n /**\n * Simplified scenario for `mountOnEnter`.\n *\n * While it would make sense to keep 'aria-controls' for tabs that have been mounted at least\n * once, it would also complicate the code quite a bit, for very little gain.\n * The following implementation is probably good enough.\n *\n * @see https://github.com/react-restart/ui/pull/40#issuecomment-1009971561\n */\n if (isActive || !(tabContext != null && tabContext.unmountOnExit) && !(tabContext != null && tabContext.mountOnEnter)) props['aria-controls'] = contextControlledId;\n }\n if (props.role === 'tab') {\n props['aria-selected'] = isActive;\n if (!isActive) {\n props.tabIndex = -1;\n }\n if (disabled) {\n props.tabIndex = -1;\n props['aria-disabled'] = true;\n }\n }\n props.onClick = useEventCallback(e => {\n if (disabled) return;\n onClick == null ? void 0 : onClick(e);\n if (key == null) {\n return;\n }\n if (parentOnSelect && !e.isPropagationStopped()) {\n parentOnSelect(key, e);\n }\n });\n return [props, {\n isActive\n }];\n}\nconst NavItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n as: Component = Button,\n active,\n eventKey\n } = _ref,\n options = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [props, meta] = useNavItem(Object.assign({\n key: makeEventKey(eventKey, options.href),\n active\n }, options));\n\n // @ts-ignore\n props[dataAttr('active')] = meta.isActive;\n return /*#__PURE__*/_jsx(Component, Object.assign({}, options, props, {\n ref: ref\n }));\n});\nNavItem.displayName = 'NavItem';\nexport default NavItem;","const _excluded = [\"as\", \"onSelect\", \"activeKey\", \"role\", \"onKeyDown\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport qsa from 'dom-helpers/querySelectorAll';\nimport * as React from 'react';\nimport { useContext, useEffect, useRef } from 'react';\nimport useForceUpdate from '@restart/hooks/useForceUpdate';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport NavContext from './NavContext';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport TabContext from './TabContext';\nimport { dataAttr, dataProp } from './DataKey';\nimport NavItem from './NavItem';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = () => {};\nconst EVENT_KEY_ATTR = dataAttr('event-key');\nconst Nav = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n onSelect,\n activeKey,\n role,\n onKeyDown\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n // A ref and forceUpdate for refocus, b/c we only want to trigger when needed\n // and don't want to reset the set in the effect\n const forceUpdate = useForceUpdate();\n const needsRefocusRef = useRef(false);\n const parentOnSelect = useContext(SelectableContext);\n const tabContext = useContext(TabContext);\n let getControlledId, getControllerId;\n if (tabContext) {\n role = role || 'tablist';\n activeKey = tabContext.activeKey;\n // TODO: do we need to duplicate these?\n getControlledId = tabContext.getControlledId;\n getControllerId = tabContext.getControllerId;\n }\n const listNode = useRef(null);\n const getNextActiveTab = offset => {\n const currentListNode = listNode.current;\n if (!currentListNode) return null;\n const items = qsa(currentListNode, `[${EVENT_KEY_ATTR}]:not([aria-disabled=true])`);\n const activeChild = currentListNode.querySelector('[aria-selected=true]');\n if (!activeChild || activeChild !== document.activeElement) return null;\n const index = items.indexOf(activeChild);\n if (index === -1) return null;\n let nextIndex = index + offset;\n if (nextIndex >= items.length) nextIndex = 0;\n if (nextIndex < 0) nextIndex = items.length - 1;\n return items[nextIndex];\n };\n const handleSelect = (key, event) => {\n if (key == null) return;\n onSelect == null ? void 0 : onSelect(key, event);\n parentOnSelect == null ? void 0 : parentOnSelect(key, event);\n };\n const handleKeyDown = event => {\n onKeyDown == null ? void 0 : onKeyDown(event);\n if (!tabContext) {\n return;\n }\n let nextActiveChild;\n switch (event.key) {\n case 'ArrowLeft':\n case 'ArrowUp':\n nextActiveChild = getNextActiveTab(-1);\n break;\n case 'ArrowRight':\n case 'ArrowDown':\n nextActiveChild = getNextActiveTab(1);\n break;\n default:\n return;\n }\n if (!nextActiveChild) return;\n event.preventDefault();\n handleSelect(nextActiveChild.dataset[dataProp('EventKey')] || null, event);\n needsRefocusRef.current = true;\n forceUpdate();\n };\n useEffect(() => {\n if (listNode.current && needsRefocusRef.current) {\n const activeChild = listNode.current.querySelector(`[${EVENT_KEY_ATTR}][aria-selected=true]`);\n activeChild == null ? void 0 : activeChild.focus();\n }\n needsRefocusRef.current = false;\n });\n const mergedRef = useMergedRefs(ref, listNode);\n return /*#__PURE__*/_jsx(SelectableContext.Provider, {\n value: handleSelect,\n children: /*#__PURE__*/_jsx(NavContext.Provider, {\n value: {\n role,\n // used by NavLink to determine it's role\n activeKey: makeEventKey(activeKey),\n getControlledId: getControlledId || noop,\n getControllerId: getControllerId || noop\n },\n children: /*#__PURE__*/_jsx(Component, Object.assign({}, props, {\n onKeyDown: handleKeyDown,\n ref: mergedRef,\n role: role\n }))\n })\n });\n});\nNav.displayName = 'Nav';\nexport default Object.assign(Nav, {\n Item: NavItem\n});","import ownerDocument from './ownerDocument';\n/**\n * Returns the actively focused element safely.\n *\n * @param doc the document to check\n */\n\nexport default function activeElement(doc) {\n if (doc === void 0) {\n doc = ownerDocument();\n }\n\n // Support: IE 9 only\n // IE9 throws an \"Unspecified error\" accessing document.activeElement from an