From 3e1992b394fb289214160f100743c9f96cfad4be Mon Sep 17 00:00:00 2001
From: w3bdesign <45217974+w3bdesign@users.noreply.github.com>
Date: Wed, 21 Jun 2023 04:27:53 +0200
Subject: [PATCH 01/11] Build
---
public/css/app.css | 25 +-
public/js/app.js | 169249 ++++++++++++++++++------------------------
2 files changed, 73252 insertions(+), 96022 deletions(-)
diff --git a/public/css/app.css b/public/css/app.css
index 9c264b56..3572738c 100644
--- a/public/css/app.css
+++ b/public/css/app.css
@@ -727,6 +727,10 @@ video {
margin-right: 1rem;
}
+.mr-8 {
+ margin-right: 2rem;
+}
+
.mt-10 {
margin-top: 2.5rem;
}
@@ -759,10 +763,6 @@ video {
margin-top: 2rem;
}
-.mr-8 {
- margin-right: 2rem;
-}
-
.block {
display: block;
}
@@ -847,10 +847,6 @@ video {
height: 2rem;
}
-.h-\[70px\] {
- height: 70px;
-}
-
.h-auto {
height: auto;
}
@@ -911,10 +907,6 @@ video {
width: 170px;
}
-.w-\[70px\] {
- width: 70px;
-}
-
.w-auto {
width: auto;
}
@@ -1621,11 +1613,6 @@ video {
border-color: rgb(209 213 219 / var(--tw-border-opacity));
}
-.hover\:bg-black:hover {
- --tw-bg-opacity: 1;
- background-color: rgb(0 0 0 / var(--tw-bg-opacity));
-}
-
.hover\:bg-blue-800:hover {
--tw-bg-opacity: 1;
background-color: rgb(30 64 175 / var(--tw-bg-opacity));
@@ -1900,10 +1887,6 @@ video {
@media (min-width: 768px) {
- .md\:mt-0 {
- margin-top: 0px;
- }
-
.md\:mr-0 {
margin-right: 0px;
}
diff --git a/public/js/app.js b/public/js/app.js
index 26c1c76e..3d8675b4 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -1,63729 +1,48316 @@
-/******/ (() => {
- // webpackBootstrap
- /******/ var __webpack_modules__ = {
- /***/ "./node_modules/@popperjs/core/lib/createPopper.js":
- /*!*********************************************************!*\
+/******/ (() => { // webpackBootstrap
+/******/ var __webpack_modules__ = ({
+
+/***/ "./node_modules/@popperjs/core/lib/createPopper.js":
+/*!*********************************************************!*\
!*** ./node_modules/@popperjs/core/lib/createPopper.js ***!
\*********************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ createPopper: () =>
- /* binding */ createPopper,
- /* harmony export */ detectOverflow: () =>
- /* reexport safe */ _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_8__[
- "default"
- ],
- /* harmony export */ popperGenerator: () =>
- /* binding */ popperGenerator,
- /* harmony export */
- }
- );
- /* harmony import */ var _dom_utils_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ./dom-utils/getCompositeRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js"
- );
- /* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ./dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"
- );
- /* harmony import */ var _dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./dom-utils/listScrollParents.js */ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"
- );
- /* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ./dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"
- );
- /* harmony import */ var _utils_orderModifiers_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./utils/orderModifiers.js */ "./node_modules/@popperjs/core/lib/utils/orderModifiers.js"
- );
- /* harmony import */ var _utils_debounce_js__WEBPACK_IMPORTED_MODULE_7__ =
- __webpack_require__(
- /*! ./utils/debounce.js */ "./node_modules/@popperjs/core/lib/utils/debounce.js"
- );
- /* harmony import */ var _utils_mergeByName_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./utils/mergeByName.js */ "./node_modules/@popperjs/core/lib/utils/mergeByName.js"
- );
- /* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_8__ =
- __webpack_require__(
- /*! ./utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"
- );
- /* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
-
- var DEFAULT_OPTIONS = {
- placement: "bottom",
- modifiers: [],
- strategy: "absolute",
- };
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- function areValidElements() {
- for (
- var _len = arguments.length,
- args = new Array(_len),
- _key = 0;
- _key < _len;
- _key++
- ) {
- args[_key] = arguments[_key];
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ createPopper: () => (/* binding */ createPopper),
+/* harmony export */ detectOverflow: () => (/* reexport safe */ _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
+/* harmony export */ popperGenerator: () => (/* binding */ popperGenerator)
+/* harmony export */ });
+/* harmony import */ var _dom_utils_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dom-utils/getCompositeRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js");
+/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js");
+/* harmony import */ var _dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dom-utils/listScrollParents.js */ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js");
+/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js");
+/* harmony import */ var _utils_orderModifiers_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/orderModifiers.js */ "./node_modules/@popperjs/core/lib/utils/orderModifiers.js");
+/* harmony import */ var _utils_debounce_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/debounce.js */ "./node_modules/@popperjs/core/lib/utils/debounce.js");
+/* harmony import */ var _utils_mergeByName_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/mergeByName.js */ "./node_modules/@popperjs/core/lib/utils/mergeByName.js");
+/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js");
+/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
- return !args.some(function (element) {
- return !(
- element &&
- typeof element.getBoundingClientRect === "function"
- );
- });
- }
- function popperGenerator(generatorOptions) {
- if (generatorOptions === void 0) {
- generatorOptions = {};
- }
- var _generatorOptions = generatorOptions,
- _generatorOptions$def =
- _generatorOptions.defaultModifiers,
- defaultModifiers =
- _generatorOptions$def === void 0
- ? []
- : _generatorOptions$def,
- _generatorOptions$def2 =
- _generatorOptions.defaultOptions,
- defaultOptions =
- _generatorOptions$def2 === void 0
- ? DEFAULT_OPTIONS
- : _generatorOptions$def2;
- return function createPopper(reference, popper, options) {
- if (options === void 0) {
- options = defaultOptions;
- }
- var state = {
- placement: "bottom",
- orderedModifiers: [],
- options: Object.assign(
- {},
- DEFAULT_OPTIONS,
- defaultOptions
- ),
- modifiersData: {},
- elements: {
- reference: reference,
- popper: popper,
- },
- attributes: {},
- styles: {},
- };
- var effectCleanupFns = [];
- var isDestroyed = false;
- var instance = {
- state: state,
- setOptions: function setOptions(setOptionsAction) {
- var options =
- typeof setOptionsAction === "function"
- ? setOptionsAction(state.options)
- : setOptionsAction;
- cleanupModifierEffects();
- state.options = Object.assign(
- {},
- defaultOptions,
- state.options,
- options
- );
- state.scrollParents = {
- reference: (0,
- _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isElement)(
- reference
- )
- ? (0,
- _dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(reference)
- : reference.contextElement
- ? (0,
- _dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(reference.contextElement)
- : [],
- popper: (0,
- _dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(popper),
- }; // Orders the modifiers based on their dependencies and `phase`
- // properties
-
- var orderedModifiers = (0,
- _utils_orderModifiers_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(
- (0,
- _utils_mergeByName_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(
- [].concat(
- defaultModifiers,
- state.options.modifiers
- )
- )
- ); // Strip out disabled modifiers
-
- state.orderedModifiers =
- orderedModifiers.filter(function (m) {
- return m.enabled;
- });
- runModifierEffects();
- return instance.update();
- },
- // Sync update – it will always be executed, even if not necessary. This
- // is useful for low frequency updates where sync behavior simplifies the
- // logic.
- // For high frequency updates (e.g. `resize` and `scroll` events), always
- // prefer the async Popper#update method
- forceUpdate: function forceUpdate() {
- if (isDestroyed) {
- return;
- }
- var _state$elements = state.elements,
- reference = _state$elements.reference,
- popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
- // anymore
-
- if (!areValidElements(reference, popper)) {
- return;
- } // Store the reference and popper rects to be read by modifiers
-
- state.rects = {
- reference: (0,
- _dom_utils_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ])(
- reference,
- (0,
- _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_5__[
- "default"
- ])(popper),
- state.options.strategy === "fixed"
- ),
- popper: (0,
- _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ])(popper),
- }; // Modifiers have the ability to reset the current update cycle. The
- // most common use case for this is the `flip` modifier changing the
- // placement, which then needs to re-run all the modifiers, because the
- // logic was previously ran for the previous placement and is therefore
- // stale/incorrect
-
- state.reset = false;
- state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
- // is filled with the initial data specified by the modifier. This means
- // it doesn't persist and is fresh on each update.
- // To ensure persistent data, use `${name}#persistent`
-
- state.orderedModifiers.forEach(function (
- modifier
- ) {
- return (state.modifiersData[modifier.name] =
- Object.assign({}, modifier.data));
- });
-
- for (
- var index = 0;
- index < state.orderedModifiers.length;
- index++
- ) {
- if (state.reset === true) {
- state.reset = false;
- index = -1;
- continue;
- }
- var _state$orderedModifie =
- state.orderedModifiers[index],
- fn = _state$orderedModifie.fn,
- _state$orderedModifie2 =
- _state$orderedModifie.options,
- _options =
- _state$orderedModifie2 === void 0
- ? {}
- : _state$orderedModifie2,
- name = _state$orderedModifie.name;
-
- if (typeof fn === "function") {
- state =
- fn({
- state: state,
- options: _options,
- name: name,
- instance: instance,
- }) || state;
- }
- }
- },
- // Async and optimistically optimized update – it will not be executed if
- // not necessary (debounced to run at most once-per-tick)
- update: (0,
- _utils_debounce_js__WEBPACK_IMPORTED_MODULE_7__[
- "default"
- ])(function () {
- return new Promise(function (resolve) {
- instance.forceUpdate();
- resolve(state);
- });
- }),
- destroy: function destroy() {
- cleanupModifierEffects();
- isDestroyed = true;
- },
- };
- if (!areValidElements(reference, popper)) {
- return instance;
- }
- instance.setOptions(options).then(function (state) {
- if (!isDestroyed && options.onFirstUpdate) {
- options.onFirstUpdate(state);
- }
- }); // Modifiers have the ability to execute arbitrary code before the first
- // update cycle runs. They will be executed in the same order as the update
- // cycle. This is useful when a modifier adds some persistent data that
- // other modifiers need to use, but the modifier is run after the dependent
- // one.
-
- function runModifierEffects() {
- state.orderedModifiers.forEach(function (_ref) {
- var name = _ref.name,
- _ref$options = _ref.options,
- options =
- _ref$options === void 0
- ? {}
- : _ref$options,
- effect = _ref.effect;
-
- if (typeof effect === "function") {
- var cleanupFn = effect({
- state: state,
- name: name,
- instance: instance,
- options: options,
- });
-
- var noopFn = function noopFn() {};
-
- effectCleanupFns.push(cleanupFn || noopFn);
- }
- });
- }
- function cleanupModifierEffects() {
- effectCleanupFns.forEach(function (fn) {
- return fn();
- });
- effectCleanupFns = [];
- }
+var DEFAULT_OPTIONS = {
+ placement: 'bottom',
+ modifiers: [],
+ strategy: 'absolute'
+};
- return instance;
- };
- }
- var createPopper = /*#__PURE__*/ popperGenerator(); // eslint-disable-next-line import/no-unused-modules
+function areValidElements() {
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
- /***/
- },
+ return !args.some(function (element) {
+ return !(element && typeof element.getBoundingClientRect === 'function');
+ });
+}
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/contains.js":
- /*!***************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/contains.js ***!
- \***************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ contains,
- /* harmony export */
- }
- );
- /* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
+function popperGenerator(generatorOptions) {
+ if (generatorOptions === void 0) {
+ generatorOptions = {};
+ }
- function contains(parent, child) {
- var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
+ var _generatorOptions = generatorOptions,
+ _generatorOptions$def = _generatorOptions.defaultModifiers,
+ defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
+ _generatorOptions$def2 = _generatorOptions.defaultOptions,
+ defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
+ return function createPopper(reference, popper, options) {
+ if (options === void 0) {
+ options = defaultOptions;
+ }
- if (parent.contains(child)) {
- return true;
- } // then fallback to custom implementation with Shadow DOM support
- else if (
- rootNode &&
- (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isShadowRoot)(
- rootNode
- )
- ) {
- var next = child;
-
- do {
- if (next && parent.isSameNode(next)) {
- return true;
- } // $FlowFixMe[prop-missing]: need a better way to handle this...
-
- next = next.parentNode || next.host;
- } while (next);
- } // Give up, the result is false
-
- return false;
- }
+ var state = {
+ placement: 'bottom',
+ orderedModifiers: [],
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
+ modifiersData: {},
+ elements: {
+ reference: reference,
+ popper: popper
+ },
+ attributes: {},
+ styles: {}
+ };
+ var effectCleanupFns = [];
+ var isDestroyed = false;
+ var instance = {
+ state: state,
+ setOptions: function setOptions(setOptionsAction) {
+ var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
+ cleanupModifierEffects();
+ state.options = Object.assign({}, defaultOptions, state.options, options);
+ state.scrollParents = {
+ reference: (0,_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isElement)(reference) ? (0,_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_1__["default"])(reference) : reference.contextElement ? (0,_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_1__["default"])(reference.contextElement) : [],
+ popper: (0,_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_1__["default"])(popper)
+ }; // Orders the modifiers based on their dependencies and `phase`
+ // properties
+
+ var orderedModifiers = (0,_utils_orderModifiers_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_utils_mergeByName_js__WEBPACK_IMPORTED_MODULE_3__["default"])([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
+
+ state.orderedModifiers = orderedModifiers.filter(function (m) {
+ return m.enabled;
+ });
+ runModifierEffects();
+ return instance.update();
+ },
+ // Sync update – it will always be executed, even if not necessary. This
+ // is useful for low frequency updates where sync behavior simplifies the
+ // logic.
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
+ // prefer the async Popper#update method
+ forceUpdate: function forceUpdate() {
+ if (isDestroyed) {
+ return;
+ }
- /***/
- },
+ var _state$elements = state.elements,
+ reference = _state$elements.reference,
+ popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
+ // anymore
+
+ if (!areValidElements(reference, popper)) {
+ return;
+ } // Store the reference and popper rects to be read by modifiers
+
+
+ state.rects = {
+ reference: (0,_dom_utils_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_4__["default"])(reference, (0,_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_5__["default"])(popper), state.options.strategy === 'fixed'),
+ popper: (0,_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_6__["default"])(popper)
+ }; // Modifiers have the ability to reset the current update cycle. The
+ // most common use case for this is the `flip` modifier changing the
+ // placement, which then needs to re-run all the modifiers, because the
+ // logic was previously ran for the previous placement and is therefore
+ // stale/incorrect
+
+ state.reset = false;
+ state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
+ // is filled with the initial data specified by the modifier. This means
+ // it doesn't persist and is fresh on each update.
+ // To ensure persistent data, use `${name}#persistent`
+
+ state.orderedModifiers.forEach(function (modifier) {
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
+ });
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js":
- /*!****************************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js ***!
- \****************************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getBoundingClientRect,
- /* harmony export */
- }
- );
- /* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
- /* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"
- );
- /* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"
- );
- /* harmony import */ var _isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./isLayoutViewport.js */ "./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js"
- );
-
- function getBoundingClientRect(
- element,
- includeScale,
- isFixedStrategy
- ) {
- if (includeScale === void 0) {
- includeScale = false;
- }
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
+ if (state.reset === true) {
+ state.reset = false;
+ index = -1;
+ continue;
+ }
+
+ var _state$orderedModifie = state.orderedModifiers[index],
+ fn = _state$orderedModifie.fn,
+ _state$orderedModifie2 = _state$orderedModifie.options,
+ _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
+ name = _state$orderedModifie.name;
+
+ if (typeof fn === 'function') {
+ state = fn({
+ state: state,
+ options: _options,
+ name: name,
+ instance: instance
+ }) || state;
+ }
+ }
+ },
+ // Async and optimistically optimized update – it will not be executed if
+ // not necessary (debounced to run at most once-per-tick)
+ update: (0,_utils_debounce_js__WEBPACK_IMPORTED_MODULE_7__["default"])(function () {
+ return new Promise(function (resolve) {
+ instance.forceUpdate();
+ resolve(state);
+ });
+ }),
+ destroy: function destroy() {
+ cleanupModifierEffects();
+ isDestroyed = true;
+ }
+ };
- if (isFixedStrategy === void 0) {
- isFixedStrategy = false;
- }
+ if (!areValidElements(reference, popper)) {
+ return instance;
+ }
- var clientRect = element.getBoundingClientRect();
- var scaleX = 1;
- var scaleY = 1;
-
- if (
- includeScale &&
- (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(
- element
- )
- ) {
- scaleX =
- element.offsetWidth > 0
- ? (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_1__.round)(
- clientRect.width
- ) / element.offsetWidth || 1
- : 1;
- scaleY =
- element.offsetHeight > 0
- ? (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_1__.round)(
- clientRect.height
- ) / element.offsetHeight || 1
- : 1;
- }
+ instance.setOptions(options).then(function (state) {
+ if (!isDestroyed && options.onFirstUpdate) {
+ options.onFirstUpdate(state);
+ }
+ }); // Modifiers have the ability to execute arbitrary code before the first
+ // update cycle runs. They will be executed in the same order as the update
+ // cycle. This is useful when a modifier adds some persistent data that
+ // other modifiers need to use, but the modifier is run after the dependent
+ // one.
+
+ function runModifierEffects() {
+ state.orderedModifiers.forEach(function (_ref) {
+ var name = _ref.name,
+ _ref$options = _ref.options,
+ options = _ref$options === void 0 ? {} : _ref$options,
+ effect = _ref.effect;
+
+ if (typeof effect === 'function') {
+ var cleanupFn = effect({
+ state: state,
+ name: name,
+ instance: instance,
+ options: options
+ });
+
+ var noopFn = function noopFn() {};
+
+ effectCleanupFns.push(cleanupFn || noopFn);
+ }
+ });
+ }
- var _ref = (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isElement)(
- element
- )
- ? (0,
- _getWindow_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(element)
- : window,
- visualViewport = _ref.visualViewport;
-
- var addVisualOffsets =
- !(0,
- _isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])() && isFixedStrategy;
- var x =
- (clientRect.left +
- (addVisualOffsets && visualViewport
- ? visualViewport.offsetLeft
- : 0)) /
- scaleX;
- var y =
- (clientRect.top +
- (addVisualOffsets && visualViewport
- ? visualViewport.offsetTop
- : 0)) /
- scaleY;
- var width = clientRect.width / scaleX;
- var height = clientRect.height / scaleY;
- return {
- width: width,
- height: height,
- top: y,
- right: x + width,
- bottom: y + height,
- left: x,
- x: x,
- y: y,
- };
- }
+ function cleanupModifierEffects() {
+ effectCleanupFns.forEach(function (fn) {
+ return fn();
+ });
+ effectCleanupFns = [];
+ }
- /***/
- },
+ return instance;
+ };
+}
+var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js ***!
- \**********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getClippingRect,
- /* harmony export */
- }
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
- /* harmony import */ var _getViewportRect_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./getViewportRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"
- );
- /* harmony import */ var _getDocumentRect_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ./getDocumentRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"
- );
- /* harmony import */ var _listScrollParents_js__WEBPACK_IMPORTED_MODULE_7__ =
- __webpack_require__(
- /*! ./listScrollParents.js */ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"
- );
- /* harmony import */ var _getOffsetParent_js__WEBPACK_IMPORTED_MODULE_10__ =
- __webpack_require__(
- /*! ./getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"
- );
- /* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"
- );
- /* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_9__ =
- __webpack_require__(
- /*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"
- );
- /* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
- /* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"
- );
- /* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_8__ =
- __webpack_require__(
- /*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"
- );
- /* harmony import */ var _contains_js__WEBPACK_IMPORTED_MODULE_11__ =
- __webpack_require__(
- /*! ./contains.js */ "./node_modules/@popperjs/core/lib/dom-utils/contains.js"
- );
- /* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_12__ =
- __webpack_require__(
- /*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"
- );
- /* harmony import */ var _utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ../utils/rectToClientRect.js */ "./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"
- );
- /* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_13__ =
- __webpack_require__(
- /*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"
- );
-
- function getInnerBoundingClientRect(element, strategy) {
- var rect = (0,
- _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(element, false, strategy === "fixed");
- rect.top = rect.top + element.clientTop;
- rect.left = rect.left + element.clientLeft;
- rect.bottom = rect.top + element.clientHeight;
- rect.right = rect.left + element.clientWidth;
- rect.width = element.clientWidth;
- rect.height = element.clientHeight;
- rect.x = rect.left;
- rect.y = rect.top;
- return rect;
- }
- function getClientRectFromMixedType(
- element,
- clippingParent,
- strategy
- ) {
- return clippingParent ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.viewport
- ? (0,
- _utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(
- (0,
- _getViewportRect_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(element, strategy)
- )
- : (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_4__.isElement)(
- clippingParent
- )
- ? getInnerBoundingClientRect(clippingParent, strategy)
- : (0,
- _utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(
- (0,
- _getDocumentRect_js__WEBPACK_IMPORTED_MODULE_5__[
- "default"
- ])(
- (0,
- _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ])(element)
- )
- );
- } // A "clipping parent" is an overflowable container with the characteristic of
- // clipping (or hiding) overflowing elements with a position different from
- // `initial`
-
- function getClippingParents(element) {
- var clippingParents = (0,
- _listScrollParents_js__WEBPACK_IMPORTED_MODULE_7__[
- "default"
- ])(
- (0,
- _getParentNode_js__WEBPACK_IMPORTED_MODULE_8__[
- "default"
- ])(element)
- );
- var canEscapeClipping =
- ["absolute", "fixed"].indexOf(
- (0,
- _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_9__[
- "default"
- ])(element).position
- ) >= 0;
- var clipperElement =
- canEscapeClipping &&
- (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_4__.isHTMLElement)(
- element
- )
- ? (0,
- _getOffsetParent_js__WEBPACK_IMPORTED_MODULE_10__[
- "default"
- ])(element)
- : element;
-
- if (
- !(0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_4__.isElement)(
- clipperElement
- )
- ) {
- return [];
- } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
-
- return clippingParents.filter(function (clippingParent) {
- return (
- (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_4__.isElement)(
- clippingParent
- ) &&
- (0,
- _contains_js__WEBPACK_IMPORTED_MODULE_11__[
- "default"
- ])(clippingParent, clipperElement) &&
- (0,
- _getNodeName_js__WEBPACK_IMPORTED_MODULE_12__[
- "default"
- ])(clippingParent) !== "body"
- );
- });
- } // Gets the maximum area that the element is visible in due to any number of
- // clipping parents
-
- function getClippingRect(
- element,
- boundary,
- rootBoundary,
- strategy
- ) {
- var mainClippingParents =
- boundary === "clippingParents"
- ? getClippingParents(element)
- : [].concat(boundary);
- var clippingParents = [].concat(mainClippingParents, [
- rootBoundary,
- ]);
- var firstClippingParent = clippingParents[0];
- var clippingRect = clippingParents.reduce(function (
- accRect,
- clippingParent
- ) {
- var rect = getClientRectFromMixedType(
- element,
- clippingParent,
- strategy
- );
- accRect.top = (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_13__.max)(
- rect.top,
- accRect.top
- );
- accRect.right = (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_13__.min)(
- rect.right,
- accRect.right
- );
- accRect.bottom = (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_13__.min)(
- rect.bottom,
- accRect.bottom
- );
- accRect.left = (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_13__.max)(
- rect.left,
- accRect.left
- );
- return accRect;
- },
- getClientRectFromMixedType(element, firstClippingParent, strategy));
- clippingRect.width = clippingRect.right - clippingRect.left;
- clippingRect.height =
- clippingRect.bottom - clippingRect.top;
- clippingRect.x = clippingRect.left;
- clippingRect.y = clippingRect.top;
- return clippingRect;
- }
- /***/
- },
+/***/ }),
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js ***!
- \***********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getCompositeRect,
- /* harmony export */
- }
- );
- /* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"
- );
- /* harmony import */ var _getNodeScroll_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ./getNodeScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"
- );
- /* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"
- );
- /* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
- /* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_7__ =
- __webpack_require__(
- /*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"
- );
- /* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"
- );
- /* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ./isScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"
- );
- /* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"
- );
-
- function isElementScaled(element) {
- var rect = element.getBoundingClientRect();
- var scaleX =
- (0, _utils_math_js__WEBPACK_IMPORTED_MODULE_0__.round)(
- rect.width
- ) / element.offsetWidth || 1;
- var scaleY =
- (0, _utils_math_js__WEBPACK_IMPORTED_MODULE_0__.round)(
- rect.height
- ) / element.offsetHeight || 1;
- return scaleX !== 1 || scaleY !== 1;
- } // Returns the composite rect of an element relative to its offsetParent.
- // Composite means it takes into account transforms as well as layout.
-
- function getCompositeRect(
- elementOrVirtualElement,
- offsetParent,
- isFixed
- ) {
- if (isFixed === void 0) {
- isFixed = false;
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/contains.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/contains.js ***!
+ \***************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- var isOffsetParentAnElement = (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(
- offsetParent
- );
- var offsetParentIsScaled =
- (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(
- offsetParent
- ) && isElementScaled(offsetParent);
- var documentElement = (0,
- _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(offsetParent);
- var rect = (0,
- _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(elementOrVirtualElement, offsetParentIsScaled, isFixed);
- var scroll = {
- scrollLeft: 0,
- scrollTop: 0,
- };
- var offsets = {
- x: 0,
- y: 0,
- };
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ contains)
+/* harmony export */ });
+/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
- if (
- isOffsetParentAnElement ||
- (!isOffsetParentAnElement && !isFixed)
- ) {
- if (
- (0,
- _getNodeName_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ])(offsetParent) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
- (0,
- _isScrollParent_js__WEBPACK_IMPORTED_MODULE_5__[
- "default"
- ])(documentElement)
- ) {
- scroll = (0,
- _getNodeScroll_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ])(offsetParent);
- }
+function contains(parent, child) {
+ var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
- if (
- (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(
- offsetParent
- )
- ) {
- offsets = (0,
- _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(offsetParent, true);
- offsets.x += offsetParent.clientLeft;
- offsets.y += offsetParent.clientTop;
- } else if (documentElement) {
- offsets.x = (0,
- _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_7__[
- "default"
- ])(documentElement);
- }
- }
+ if (parent.contains(child)) {
+ return true;
+ } // then fallback to custom implementation with Shadow DOM support
+ else if (rootNode && (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isShadowRoot)(rootNode)) {
+ var next = child;
- return {
- x: rect.left + scroll.scrollLeft - offsets.x,
- y: rect.top + scroll.scrollTop - offsets.y,
- width: rect.width,
- height: rect.height,
- };
- }
+ do {
+ if (next && parent.isSameNode(next)) {
+ return true;
+ } // $FlowFixMe[prop-missing]: need a better way to handle this...
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js ***!
- \***********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getComputedStyle,
- /* harmony export */
- }
- );
- /* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"
- );
-
- function getComputedStyle(element) {
- return (0,
- _getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
- element
- ).getComputedStyle(element);
- }
+ next = next.parentNode || next.host;
+ } while (next);
+ } // Give up, the result is false
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js ***!
- \*************************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getDocumentElement,
- /* harmony export */
- }
- );
- /* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
-
- function getDocumentElement(element) {
- // $FlowFixMe[incompatible-return]: assume body is always available
- return (
- ((0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isElement)(
- element
- )
- ? element.ownerDocument // $FlowFixMe[prop-missing]
- : element.document) || window.document
- ).documentElement;
- }
+ return false;
+}
- /***/
- },
+/***/ }),
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js ***!
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js":
+/*!****************************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js ***!
+ \****************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getBoundingClientRect)
+/* harmony export */ });
+/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
+/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js");
+/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
+/* harmony import */ var _isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isLayoutViewport.js */ "./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");
+
+
+
+
+function getBoundingClientRect(element, includeScale, isFixedStrategy) {
+ if (includeScale === void 0) {
+ includeScale = false;
+ }
+
+ if (isFixedStrategy === void 0) {
+ isFixedStrategy = false;
+ }
+
+ var clientRect = element.getBoundingClientRect();
+ var scaleX = 1;
+ var scaleY = 1;
+
+ if (includeScale && (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element)) {
+ scaleX = element.offsetWidth > 0 ? (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_1__.round)(clientRect.width) / element.offsetWidth || 1 : 1;
+ scaleY = element.offsetHeight > 0 ? (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_1__.round)(clientRect.height) / element.offsetHeight || 1 : 1;
+ }
+
+ var _ref = (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isElement)(element) ? (0,_getWindow_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element) : window,
+ visualViewport = _ref.visualViewport;
+
+ var addVisualOffsets = !(0,_isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_3__["default"])() && isFixedStrategy;
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
+ var width = clientRect.width / scaleX;
+ var height = clientRect.height / scaleY;
+ return {
+ width: width,
+ height: height,
+ top: y,
+ right: x + width,
+ bottom: y + height,
+ left: x,
+ x: x,
+ y: y
+ };
+}
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js":
+/*!**********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js ***!
\**********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getDocumentRect,
- /* harmony export */
- }
- );
- /* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"
- );
- /* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"
- );
- /* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"
- );
- /* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"
- );
- /* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"
- );
-
- // Gets the entire size of the scrollable document area, even extending outside
- // of the `` and `
` rect bounds if horizontally scrollable
-
- function getDocumentRect(element) {
- var _element$ownerDocumen;
-
- var html = (0,
- _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(element);
- var winScroll = (0,
- _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(element);
- var body =
- (_element$ownerDocumen = element.ownerDocument) == null
- ? void 0
- : _element$ownerDocumen.body;
- var width = (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_2__.max)(
- html.scrollWidth,
- html.clientWidth,
- body ? body.scrollWidth : 0,
- body ? body.clientWidth : 0
- );
- var height = (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_2__.max)(
- html.scrollHeight,
- html.clientHeight,
- body ? body.scrollHeight : 0,
- body ? body.clientHeight : 0
- );
- var x =
- -winScroll.scrollLeft +
- (0,
- _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(element);
- var y = -winScroll.scrollTop;
-
- if (
- (0,
- _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ])(body || html).direction === "rtl"
- ) {
- x +=
- (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_2__.max)(
- html.clientWidth,
- body ? body.clientWidth : 0
- ) - width;
- }
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- return {
- width: width,
- height: height,
- x: x,
- y: y,
- };
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getClippingRect)
+/* harmony export */ });
+/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
+/* harmony import */ var _getViewportRect_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getViewportRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js");
+/* harmony import */ var _getDocumentRect_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getDocumentRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js");
+/* harmony import */ var _listScrollParents_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./listScrollParents.js */ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js");
+/* harmony import */ var _getOffsetParent_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js");
+/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
+/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
+/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
+/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");
+/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js");
+/* harmony import */ var _contains_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./contains.js */ "./node_modules/@popperjs/core/lib/dom-utils/contains.js");
+/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
+/* harmony import */ var _utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/rectToClientRect.js */ "./node_modules/@popperjs/core/lib/utils/rectToClientRect.js");
+/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js");
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js":
- /*!***************************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js ***!
- \***************************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getHTMLElementScroll,
- /* harmony export */
- }
- );
- function getHTMLElementScroll(element) {
- return {
- scrollLeft: element.scrollLeft,
- scrollTop: element.scrollTop,
- };
- }
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js":
- /*!********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js ***!
- \********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getLayoutRect,
- /* harmony export */
- }
- );
- /* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"
- );
- // Returns the layout rect of an element relative to its offsetParent. Layout
- // means it doesn't take into account transforms.
-
- function getLayoutRect(element) {
- var clientRect = (0,
- _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(element); // Use the clientRect sizes if it's not been transformed.
- // Fixes https://github.com/popperjs/popper-core/issues/1223
-
- var width = element.offsetWidth;
- var height = element.offsetHeight;
-
- if (Math.abs(clientRect.width - width) <= 1) {
- width = clientRect.width;
- }
- if (Math.abs(clientRect.height - height) <= 1) {
- height = clientRect.height;
- }
- return {
- x: element.offsetLeft,
- y: element.offsetTop,
- width: width,
- height: height,
- };
- }
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js":
- /*!******************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js ***!
- \******************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getNodeName,
- /* harmony export */
- }
- );
- function getNodeName(element) {
- return element
- ? (element.nodeName || "").toLowerCase()
- : null;
- }
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js":
- /*!********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js ***!
- \********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getNodeScroll,
- /* harmony export */
- }
- );
- /* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"
- );
- /* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"
- );
- /* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
- /* harmony import */ var _getHTMLElementScroll_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./getHTMLElementScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js"
- );
-
- function getNodeScroll(node) {
- if (
- node ===
- (0,
- _getWindow_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(node) ||
- !(0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(
- node
- )
- ) {
- return (0,
- _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(node);
- } else {
- return (0,
- _getHTMLElementScroll_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(node);
- }
- }
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js ***!
- \**********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getOffsetParent,
- /* harmony export */
- }
- );
- /* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"
- );
- /* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"
- );
- /* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"
- );
- /* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
- /* harmony import */ var _isTableElement_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ./isTableElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"
- );
- /* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"
- );
- /* harmony import */ var _utils_userAgent_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ../utils/userAgent.js */ "./node_modules/@popperjs/core/lib/utils/userAgent.js"
- );
-
- function getTrueOffsetParent(element) {
- if (
- !(0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(
- element
- ) || // https://github.com/popperjs/popper-core/issues/837
- (0,
- _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(element).position === "fixed"
- ) {
- return null;
- }
- return element.offsetParent;
- } // `.offsetParent` reports `null` for fixed elements, while absolute elements
- // return the containing block
-
- function getContainingBlock(element) {
- var isFirefox = /firefox/i.test(
- (0,
- _utils_userAgent_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])()
- );
- var isIE = /Trident/i.test(
- (0,
- _utils_userAgent_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])()
- );
-
- if (
- isIE &&
- (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(
- element
- )
- ) {
- // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
- var elementCss = (0,
- _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(element);
-
- if (elementCss.position === "fixed") {
- return null;
- }
- }
- var currentNode = (0,
- _getParentNode_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
- element
- );
-
- if (
- (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isShadowRoot)(
- currentNode
- )
- ) {
- currentNode = currentNode.host;
- }
- while (
- (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(
- currentNode
- ) &&
- ["html", "body"].indexOf(
- (0,
- _getNodeName_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ])(currentNode)
- ) < 0
- ) {
- var css = (0,
- _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(currentNode); // This is non-exhaustive but covers the most common CSS properties that
- // create a containing block.
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
-
- 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")
- ) {
- return currentNode;
- } else {
- currentNode = currentNode.parentNode;
- }
- }
+function getInnerBoundingClientRect(element, strategy) {
+ var rect = (0,_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element, false, strategy === 'fixed');
+ rect.top = rect.top + element.clientTop;
+ rect.left = rect.left + element.clientLeft;
+ rect.bottom = rect.top + element.clientHeight;
+ rect.right = rect.left + element.clientWidth;
+ rect.width = element.clientWidth;
+ rect.height = element.clientHeight;
+ rect.x = rect.left;
+ rect.y = rect.top;
+ return rect;
+}
- return null;
- } // Gets the closest ancestor positioned element. Handles some edge cases,
- // such as table ancestors and cross browser bugs.
-
- function getOffsetParent(element) {
- var window = (0,
- _getWindow_js__WEBPACK_IMPORTED_MODULE_5__["default"])(
- element
- );
- var offsetParent = getTrueOffsetParent(element);
-
- while (
- offsetParent &&
- (0,
- _isTableElement_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ])(offsetParent) &&
- (0,
- _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(offsetParent).position === "static"
- ) {
- offsetParent = getTrueOffsetParent(offsetParent);
- }
+function getClientRectFromMixedType(element, clippingParent, strategy) {
+ return clippingParent === _enums_js__WEBPACK_IMPORTED_MODULE_1__.viewport ? (0,_utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_getViewportRect_js__WEBPACK_IMPORTED_MODULE_3__["default"])(element, strategy)) : (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_4__.isElement)(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : (0,_utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_getDocumentRect_js__WEBPACK_IMPORTED_MODULE_5__["default"])((0,_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_6__["default"])(element)));
+} // A "clipping parent" is an overflowable container with the characteristic of
+// clipping (or hiding) overflowing elements with a position different from
+// `initial`
- if (
- offsetParent &&
- ((0,
- _getNodeName_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ])(offsetParent) === "html" ||
- ((0,
- _getNodeName_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ])(offsetParent) === "body" &&
- (0,
- _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(offsetParent).position === "static"))
- ) {
- return window;
- }
- return (
- offsetParent || getContainingBlock(element) || window
- );
- }
+function getClippingParents(element) {
+ var clippingParents = (0,_listScrollParents_js__WEBPACK_IMPORTED_MODULE_7__["default"])((0,_getParentNode_js__WEBPACK_IMPORTED_MODULE_8__["default"])(element));
+ var canEscapeClipping = ['absolute', 'fixed'].indexOf((0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_9__["default"])(element).position) >= 0;
+ var clipperElement = canEscapeClipping && (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_4__.isHTMLElement)(element) ? (0,_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_10__["default"])(element) : element;
- /***/
- },
+ if (!(0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_4__.isElement)(clipperElement)) {
+ return [];
+ } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js":
- /*!********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js ***!
- \********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getParentNode,
- /* harmony export */
- }
- );
- /* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"
- );
- /* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"
- );
- /* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
-
- function getParentNode(element) {
- if (
- (0,
- _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(element) === "html"
- ) {
- return element;
- }
- return (
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
- // $FlowFixMe[incompatible-return]
- // $FlowFixMe[prop-missing]
- element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
- element.parentNode || // DOM Element detected
- ((0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isShadowRoot)(
- element
- )
- ? element.host
- : null) || // ShadowRoot detected
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
- (0,
- _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(element) // fallback
- );
- }
+ return clippingParents.filter(function (clippingParent) {
+ return (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_4__.isElement)(clippingParent) && (0,_contains_js__WEBPACK_IMPORTED_MODULE_11__["default"])(clippingParent, clipperElement) && (0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_12__["default"])(clippingParent) !== 'body';
+ });
+} // Gets the maximum area that the element is visible in due to any number of
+// clipping parents
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js ***!
- \**********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getScrollParent,
- /* harmony export */
- }
- );
- /* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"
- );
- /* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./isScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"
- );
- /* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"
- );
- /* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
-
- function getScrollParent(node) {
- if (
- ["html", "body", "#document"].indexOf(
- (0,
- _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(node)
- ) >= 0
- ) {
- // $FlowFixMe[incompatible-return]: assume body is always available
- return node.ownerDocument.body;
- }
+function getClippingRect(element, boundary, rootBoundary, strategy) {
+ var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
+ var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
+ var firstClippingParent = clippingParents[0];
+ var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
+ var rect = getClientRectFromMixedType(element, clippingParent, strategy);
+ accRect.top = (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_13__.max)(rect.top, accRect.top);
+ accRect.right = (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_13__.min)(rect.right, accRect.right);
+ accRect.bottom = (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_13__.min)(rect.bottom, accRect.bottom);
+ accRect.left = (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_13__.max)(rect.left, accRect.left);
+ return accRect;
+ }, getClientRectFromMixedType(element, firstClippingParent, strategy));
+ clippingRect.width = clippingRect.right - clippingRect.left;
+ clippingRect.height = clippingRect.bottom - clippingRect.top;
+ clippingRect.x = clippingRect.left;
+ clippingRect.y = clippingRect.top;
+ return clippingRect;
+}
- if (
- (0,
- _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(
- node
- ) &&
- (0,
- _isScrollParent_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(node)
- ) {
- return node;
- }
+/***/ }),
- return getScrollParent(
- (0,
- _getParentNode_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(node)
- );
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js":
+/*!***********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js ***!
+ \***********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- /***/
- },
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getCompositeRect)
+/* harmony export */ });
+/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");
+/* harmony import */ var _getNodeScroll_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getNodeScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js");
+/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
+/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
+/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js");
+/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
+/* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./isScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js");
+/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js");
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js ***!
- \**********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getViewportRect,
- /* harmony export */
- }
- );
- /* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"
- );
- /* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"
- );
- /* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"
- );
- /* harmony import */ var _isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./isLayoutViewport.js */ "./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js"
- );
-
- function getViewportRect(element, strategy) {
- var win = (0,
- _getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
- element
- );
- var html = (0,
- _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(element);
- var visualViewport = win.visualViewport;
- var width = html.clientWidth;
- var height = html.clientHeight;
- var x = 0;
- var y = 0;
-
- if (visualViewport) {
- width = visualViewport.width;
- height = visualViewport.height;
- var layoutViewport = (0,
- _isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])();
-
- if (
- layoutViewport ||
- (!layoutViewport && strategy === "fixed")
- ) {
- x = visualViewport.offsetLeft;
- y = visualViewport.offsetTop;
- }
- }
- return {
- width: width,
- height: height,
- x:
- x +
- (0,
- _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(element),
- y: y,
- };
- }
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js":
- /*!****************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js ***!
- \****************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getWindow,
- /* harmony export */
- }
- );
- function getWindow(node) {
- if (node == null) {
- return window;
- }
- if (node.toString() !== "[object Window]") {
- var ownerDocument = node.ownerDocument;
- return ownerDocument
- ? ownerDocument.defaultView || window
- : window;
- }
- return node;
- }
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js ***!
- \**********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getWindowScroll,
- /* harmony export */
- }
- );
- /* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"
- );
-
- function getWindowScroll(node) {
- var win = (0,
- _getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
- node
- );
- var scrollLeft = win.pageXOffset;
- var scrollTop = win.pageYOffset;
- return {
- scrollLeft: scrollLeft,
- scrollTop: scrollTop,
- };
- }
- /***/
- },
+function isElementScaled(element) {
+ var rect = element.getBoundingClientRect();
+ var scaleX = (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_0__.round)(rect.width) / element.offsetWidth || 1;
+ var scaleY = (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_0__.round)(rect.height) / element.offsetHeight || 1;
+ return scaleX !== 1 || scaleY !== 1;
+} // Returns the composite rect of an element relative to its offsetParent.
+// Composite means it takes into account transforms as well as layout.
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js":
- /*!**************************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js ***!
- \**************************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getWindowScrollBarX,
- /* harmony export */
- }
- );
- /* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"
- );
- /* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"
- );
- /* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"
- );
-
- function getWindowScrollBarX(element) {
- // If has a CSS width greater than the viewport, then this will be
- // incorrect for RTL.
- // Popper 1 is broken in this case and never had a bug report so let's assume
- // it's not an issue. I don't think anyone ever specifies width on
- // anyway.
- // Browsers where the left scrollbar doesn't cause an issue report `0` for
- // this (e.g. Edge 2019, IE11, Safari)
- return (
- (0,
- _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(
- (0,
- _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(element)
- ).left +
- (0,
- _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(element).scrollLeft
- );
- }
- /***/
- },
+function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
+ if (isFixed === void 0) {
+ isFixed = false;
+ }
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js ***!
- \*****************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ isElement: () =>
- /* binding */ isElement,
- /* harmony export */ isHTMLElement: () =>
- /* binding */ isHTMLElement,
- /* harmony export */ isShadowRoot: () =>
- /* binding */ isShadowRoot,
- /* harmony export */
- }
- );
- /* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"
- );
-
- function isElement(node) {
- var OwnElement = (0,
- _getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
- node
- ).Element;
- return (
- node instanceof OwnElement || node instanceof Element
- );
- }
+ var isOffsetParentAnElement = (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(offsetParent);
+ var offsetParentIsScaled = (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(offsetParent) && isElementScaled(offsetParent);
+ var documentElement = (0,_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(offsetParent);
+ var rect = (0,_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_3__["default"])(elementOrVirtualElement, offsetParentIsScaled, isFixed);
+ var scroll = {
+ scrollLeft: 0,
+ scrollTop: 0
+ };
+ var offsets = {
+ x: 0,
+ y: 0
+ };
- function isHTMLElement(node) {
- var OwnElement = (0,
- _getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
- node
- ).HTMLElement;
- return (
- node instanceof OwnElement ||
- node instanceof HTMLElement
- );
- }
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if ((0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_4__["default"])(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
+ (0,_isScrollParent_js__WEBPACK_IMPORTED_MODULE_5__["default"])(documentElement)) {
+ scroll = (0,_getNodeScroll_js__WEBPACK_IMPORTED_MODULE_6__["default"])(offsetParent);
+ }
- function isShadowRoot(node) {
- // IE 11 has no ShadowRoot
- if (typeof ShadowRoot === "undefined") {
- return false;
- }
+ if ((0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(offsetParent)) {
+ offsets = (0,_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_3__["default"])(offsetParent, true);
+ offsets.x += offsetParent.clientLeft;
+ offsets.y += offsetParent.clientTop;
+ } else if (documentElement) {
+ offsets.x = (0,_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_7__["default"])(documentElement);
+ }
+ }
- var OwnElement = (0,
- _getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
- node
- ).ShadowRoot;
- return (
- node instanceof OwnElement || node instanceof ShadowRoot
- );
- }
+ return {
+ x: rect.left + scroll.scrollLeft - offsets.x,
+ y: rect.top + scroll.scrollTop - offsets.y,
+ width: rect.width,
+ height: rect.height
+ };
+}
- /***/
- },
+/***/ }),
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js ***!
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js":
+/*!***********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js ***!
\***********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ isLayoutViewport,
- /* harmony export */
- }
- );
- /* harmony import */ var _utils_userAgent_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../utils/userAgent.js */ "./node_modules/@popperjs/core/lib/utils/userAgent.js"
- );
-
- function isLayoutViewport() {
- return !/^((?!chrome|android).)*safari/i.test(
- (0,
- _utils_userAgent_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])()
- );
- }
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- /***/
- },
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getComputedStyle)
+/* harmony export */ });
+/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js ***!
- \*********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ isScrollParent,
- /* harmony export */
- }
- );
- /* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"
- );
-
- function isScrollParent(element) {
- // Firefox wants us to check `-x` and `-y` variations as well
- var _getComputedStyle = (0,
- _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(element),
- overflow = _getComputedStyle.overflow,
- overflowX = _getComputedStyle.overflowX,
- overflowY = _getComputedStyle.overflowY;
-
- return /auto|scroll|overlay|hidden/.test(
- overflow + overflowY + overflowX
- );
- }
+function getComputedStyle(element) {
+ return (0,_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element).getComputedStyle(element);
+}
- /***/
- },
+/***/ }),
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js ***!
- \*********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ isTableElement,
- /* harmony export */
- }
- );
- /* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"
- );
-
- function isTableElement(element) {
- return (
- ["table", "td", "th"].indexOf(
- (0,
- _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(element)
- ) >= 0
- );
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js":
+/*!*************************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js ***!
+ \*************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- /***/
- },
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getDocumentElement)
+/* harmony export */ });
+/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
- /***/ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js":
- /*!************************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js ***!
- \************************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ listScrollParents,
- /* harmony export */
- }
- );
- /* harmony import */ var _getScrollParent_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"
- );
- /* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"
- );
- /* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"
- );
- /* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./isScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"
- );
-
- /*
-given a DOM element, return the list of all scroll parents, up the list of ancesors
-until we get to the top window object. This list is what we attach scroll listeners
-to, because if any of these parent elements scroll, we'll need to re-calculate the
-reference element's position.
-*/
+function getDocumentElement(element) {
+ // $FlowFixMe[incompatible-return]: assume body is always available
+ return (((0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isElement)(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
+ element.document) || window.document).documentElement;
+}
- function listScrollParents(element, list) {
- var _element$ownerDocumen;
+/***/ }),
- if (list === void 0) {
- list = [];
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js":
+/*!**********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js ***!
+ \**********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- var scrollParent = (0,
- _getScrollParent_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(element);
- var isBody =
- scrollParent ===
- ((_element$ownerDocumen = element.ownerDocument) == null
- ? void 0
- : _element$ownerDocumen.body);
- var win = (0,
- _getWindow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(
- scrollParent
- );
- var target = isBody
- ? [win].concat(
- win.visualViewport || [],
- (0,
- _isScrollParent_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(scrollParent)
- ? scrollParent
- : []
- )
- : scrollParent;
- var updatedList = list.concat(target);
- return isBody
- ? updatedList // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
- : updatedList.concat(
- listScrollParents(
- (0,
- _getParentNode_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(target)
- )
- );
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getDocumentRect)
+/* harmony export */ });
+/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
+/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
+/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js");
+/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");
+/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js");
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/enums.js":
- /*!**************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/enums.js ***!
- \**************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ afterMain: () =>
- /* binding */ afterMain,
- /* harmony export */ afterRead: () =>
- /* binding */ afterRead,
- /* harmony export */ afterWrite: () =>
- /* binding */ afterWrite,
- /* harmony export */ auto: () => /* binding */ auto,
- /* harmony export */ basePlacements: () =>
- /* binding */ basePlacements,
- /* harmony export */ beforeMain: () =>
- /* binding */ beforeMain,
- /* harmony export */ beforeRead: () =>
- /* binding */ beforeRead,
- /* harmony export */ beforeWrite: () =>
- /* binding */ beforeWrite,
- /* harmony export */ bottom: () => /* binding */ bottom,
- /* harmony export */ clippingParents: () =>
- /* binding */ clippingParents,
- /* harmony export */ end: () => /* binding */ end,
- /* harmony export */ left: () => /* binding */ left,
- /* harmony export */ main: () => /* binding */ main,
- /* harmony export */ modifierPhases: () =>
- /* binding */ modifierPhases,
- /* harmony export */ placements: () =>
- /* binding */ placements,
- /* harmony export */ popper: () => /* binding */ popper,
- /* harmony export */ read: () => /* binding */ read,
- /* harmony export */ reference: () =>
- /* binding */ reference,
- /* harmony export */ right: () => /* binding */ right,
- /* harmony export */ start: () => /* binding */ start,
- /* harmony export */ top: () => /* binding */ top,
- /* harmony export */ variationPlacements: () =>
- /* binding */ variationPlacements,
- /* harmony export */ viewport: () =>
- /* binding */ viewport,
- /* harmony export */ write: () => /* binding */ write,
- /* harmony export */
- }
- );
- var top = "top";
- var bottom = "bottom";
- var right = "right";
- var left = "left";
- var auto = "auto";
- var basePlacements = [top, bottom, right, left];
- var start = "start";
- var end = "end";
- var clippingParents = "clippingParents";
- var viewport = "viewport";
- var popper = "popper";
- var reference = "reference";
- var variationPlacements = /*#__PURE__*/ basePlacements.reduce(
- function (acc, placement) {
- return acc.concat([
- placement + "-" + start,
- placement + "-" + end,
- ]);
- },
- []
- );
- var placements = /*#__PURE__*/ []
- .concat(basePlacements, [auto])
- .reduce(function (acc, placement) {
- return acc.concat([
- placement,
- placement + "-" + start,
- placement + "-" + end,
- ]);
- }, []); // modifiers that need to read the DOM
-
- var beforeRead = "beforeRead";
- var read = "read";
- var afterRead = "afterRead"; // pure-logic modifiers
-
- var beforeMain = "beforeMain";
- var main = "main";
- var afterMain = "afterMain"; // modifier with the purpose to write to the DOM (or write into a framework state)
-
- var beforeWrite = "beforeWrite";
- var write = "write";
- var afterWrite = "afterWrite";
- var modifierPhases = [
- beforeRead,
- read,
- afterRead,
- beforeMain,
- main,
- afterMain,
- beforeWrite,
- write,
- afterWrite,
- ];
-
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js":
- /*!******************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/modifiers/applyStyles.js ***!
- \******************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */
- }
- );
- /* harmony import */ var _dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ../dom-utils/getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"
- );
- /* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
-
- // This modifier takes the styles prepared by the `computeStyles` modifier
- // and applies them to the HTMLElements such as popper and arrow
-
- function applyStyles(_ref) {
- var state = _ref.state;
- Object.keys(state.elements).forEach(function (name) {
- var style = state.styles[name] || {};
- var attributes = state.attributes[name] || {};
- var element = state.elements[name]; // arrow is optional + virtual elements
-
- if (
- !(0,
- _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(
- element
- ) ||
- !(0,
- _dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(element)
- ) {
- return;
- } // Flow doesn't support to extend this property, but it's the most
- // effective way to apply styles to an HTMLElement
- // $FlowFixMe[cannot-write]
-
- Object.assign(element.style, style);
- Object.keys(attributes).forEach(function (name) {
- var value = attributes[name];
-
- if (value === false) {
- element.removeAttribute(name);
- } else {
- element.setAttribute(
- name,
- value === true ? "" : value
- );
- }
- });
- });
- }
- function effect(_ref2) {
- var state = _ref2.state;
- var initialStyles = {
- popper: {
- position: state.options.strategy,
- left: "0",
- top: "0",
- margin: "0",
- },
- arrow: {
- position: "absolute",
- },
- reference: {},
- };
- Object.assign(
- state.elements.popper.style,
- initialStyles.popper
- );
- state.styles = initialStyles;
-
- if (state.elements.arrow) {
- Object.assign(
- state.elements.arrow.style,
- initialStyles.arrow
- );
- }
+ // Gets the entire size of the scrollable document area, even extending outside
+// of the `` and `` rect bounds if horizontally scrollable
- return function () {
- Object.keys(state.elements).forEach(function (name) {
- var element = state.elements[name];
- var attributes = state.attributes[name] || {};
- var styleProperties = Object.keys(
- state.styles.hasOwnProperty(name)
- ? state.styles[name]
- : initialStyles[name]
- ); // Set all values to an empty string to unset them
-
- var style = styleProperties.reduce(function (
- style,
- property
- ) {
- style[property] = "";
- return style;
- },
- {}); // arrow is optional + virtual elements
-
- if (
- !(0,
- _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(
- element
- ) ||
- !(0,
- _dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(element)
- ) {
- return;
- }
+function getDocumentRect(element) {
+ var _element$ownerDocumen;
- Object.assign(element.style, style);
- Object.keys(attributes).forEach(function (
- attribute
- ) {
- element.removeAttribute(attribute);
- });
- });
- };
- } // eslint-disable-next-line import/no-unused-modules
-
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ =
- {
- name: "applyStyles",
- enabled: true,
- phase: "write",
- fn: applyStyles,
- effect: effect,
- requires: ["computeStyles"],
- };
+ var html = (0,_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
+ var winScroll = (0,_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element);
+ var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
+ var width = (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_2__.max)(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
+ var height = (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_2__.max)(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
+ var x = -winScroll.scrollLeft + (0,_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_3__["default"])(element);
+ var y = -winScroll.scrollTop;
- /***/
- },
+ if ((0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__["default"])(body || html).direction === 'rtl') {
+ x += (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_2__.max)(html.clientWidth, body ? body.clientWidth : 0) - width;
+ }
- /***/ "./node_modules/@popperjs/core/lib/modifiers/arrow.js":
- /*!************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/modifiers/arrow.js ***!
- \************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */
- }
- );
- /* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"
- );
- /* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ../dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"
- );
- /* harmony import */ var _dom_utils_contains_js__WEBPACK_IMPORTED_MODULE_8__ =
- __webpack_require__(
- /*! ../dom-utils/contains.js */ "./node_modules/@popperjs/core/lib/dom-utils/contains.js"
- );
- /* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"
- );
- /* harmony import */ var _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ../utils/getMainAxisFromPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"
- );
- /* harmony import */ var _utils_within_js__WEBPACK_IMPORTED_MODULE_7__ =
- __webpack_require__(
- /*! ../utils/within.js */ "./node_modules/@popperjs/core/lib/utils/within.js"
- );
- /* harmony import */ var _utils_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../utils/mergePaddingObject.js */ "./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"
- );
- /* harmony import */ var _utils_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ../utils/expandToHashMap.js */ "./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
-
- // eslint-disable-next-line import/no-unused-modules
-
- var toPaddingObject = function toPaddingObject(padding, state) {
- padding =
- typeof padding === "function"
- ? padding(
- Object.assign({}, state.rects, {
- placement: state.placement,
- })
- )
- : padding;
- return (0,
- _utils_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(
- typeof padding !== "number"
- ? padding
- : (0,
- _utils_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(
- padding,
- _enums_js__WEBPACK_IMPORTED_MODULE_2__.basePlacements
- )
- );
- };
+ return {
+ width: width,
+ height: height,
+ x: x,
+ y: y
+ };
+}
- function arrow(_ref) {
- var _state$modifiersData$;
-
- var state = _ref.state,
- name = _ref.name,
- options = _ref.options;
- var arrowElement = state.elements.arrow;
- var popperOffsets = state.modifiersData.popperOffsets;
- var basePlacement = (0,
- _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(state.placement);
- var axis = (0,
- _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ])(basePlacement);
- var isVertical =
- [
- _enums_js__WEBPACK_IMPORTED_MODULE_2__.left,
- _enums_js__WEBPACK_IMPORTED_MODULE_2__.right,
- ].indexOf(basePlacement) >= 0;
- var len = isVertical ? "height" : "width";
-
- if (!arrowElement || !popperOffsets) {
- return;
- }
+/***/ }),
- var paddingObject = toPaddingObject(options.padding, state);
- var arrowRect = (0,
- _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_5__[
- "default"
- ])(arrowElement);
- var minProp =
- axis === "y"
- ? _enums_js__WEBPACK_IMPORTED_MODULE_2__.top
- : _enums_js__WEBPACK_IMPORTED_MODULE_2__.left;
- var maxProp =
- axis === "y"
- ? _enums_js__WEBPACK_IMPORTED_MODULE_2__.bottom
- : _enums_js__WEBPACK_IMPORTED_MODULE_2__.right;
- var endDiff =
- state.rects.reference[len] +
- state.rects.reference[axis] -
- popperOffsets[axis] -
- state.rects.popper[len];
- var startDiff =
- popperOffsets[axis] - state.rects.reference[axis];
- var arrowOffsetParent = (0,
- _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ])(arrowElement);
- var clientSize = arrowOffsetParent
- ? axis === "y"
- ? arrowOffsetParent.clientHeight || 0
- : arrowOffsetParent.clientWidth || 0
- : 0;
- var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
- // outside of the popper bounds
-
- var min = paddingObject[minProp];
- var max =
- clientSize - arrowRect[len] - paddingObject[maxProp];
- var center =
- clientSize / 2 - arrowRect[len] / 2 + centerToReference;
- var offset = (0,
- _utils_within_js__WEBPACK_IMPORTED_MODULE_7__.within)(
- min,
- center,
- max
- ); // Prevents breaking syntax highlighting...
-
- var axisProp = axis;
- state.modifiersData[name] =
- ((_state$modifiersData$ = {}),
- (_state$modifiersData$[axisProp] = offset),
- (_state$modifiersData$.centerOffset = offset - center),
- _state$modifiersData$);
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js":
+/*!***************************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js ***!
+ \***************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getHTMLElementScroll)
+/* harmony export */ });
+function getHTMLElementScroll(element) {
+ return {
+ scrollLeft: element.scrollLeft,
+ scrollTop: element.scrollTop
+ };
+}
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js":
+/*!********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js ***!
+ \********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getLayoutRect)
+/* harmony export */ });
+/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");
+ // Returns the layout rect of an element relative to its offsetParent. Layout
+// means it doesn't take into account transforms.
+
+function getLayoutRect(element) {
+ var clientRect = (0,_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element); // Use the clientRect sizes if it's not been transformed.
+ // Fixes https://github.com/popperjs/popper-core/issues/1223
+
+ var width = element.offsetWidth;
+ var height = element.offsetHeight;
+
+ if (Math.abs(clientRect.width - width) <= 1) {
+ width = clientRect.width;
+ }
+
+ if (Math.abs(clientRect.height - height) <= 1) {
+ height = clientRect.height;
+ }
+
+ return {
+ x: element.offsetLeft,
+ y: element.offsetTop,
+ width: width,
+ height: height
+ };
+}
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js":
+/*!******************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js ***!
+ \******************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- function effect(_ref2) {
- var state = _ref2.state,
- options = _ref2.options;
- var _options$element = options.element,
- arrowElement =
- _options$element === void 0
- ? "[data-popper-arrow]"
- : _options$element;
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getNodeName)
+/* harmony export */ });
+function getNodeName(element) {
+ return element ? (element.nodeName || '').toLowerCase() : null;
+}
- if (arrowElement == null) {
- return;
- } // CSS selector
+/***/ }),
- if (typeof arrowElement === "string") {
- arrowElement =
- state.elements.popper.querySelector(arrowElement);
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js":
+/*!********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js ***!
+ \********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- if (!arrowElement) {
- return;
- }
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getNodeScroll)
+/* harmony export */ });
+/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");
+/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
+/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
+/* harmony import */ var _getHTMLElementScroll_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getHTMLElementScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js");
- if (
- !(0,
- _dom_utils_contains_js__WEBPACK_IMPORTED_MODULE_8__[
- "default"
- ])(state.elements.popper, arrowElement)
- ) {
- return;
- }
- state.elements.arrow = arrowElement;
- } // eslint-disable-next-line import/no-unused-modules
-
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ =
- {
- name: "arrow",
- enabled: true,
- phase: "main",
- fn: arrow,
- effect: effect,
- requires: ["popperOffsets"],
- requiresIfExists: ["preventOverflow"],
- };
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js":
- /*!********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js ***!
- \********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */ mapToStyles: () =>
- /* binding */ mapToStyles,
- /* harmony export */
- }
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
- /* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"
- );
- /* harmony import */ var _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ../dom-utils/getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"
- );
- /* harmony import */ var _dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ../dom-utils/getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"
- );
- /* harmony import */ var _dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ../dom-utils/getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"
- );
- /* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"
- );
- /* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_7__ =
- __webpack_require__(
- /*! ../utils/getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js"
- );
- /* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"
- );
-
- // eslint-disable-next-line import/no-unused-modules
-
- var unsetSides = {
- top: "auto",
- right: "auto",
- bottom: "auto",
- left: "auto",
- }; // Round the offsets to the nearest suitable subpixel based on the DPR.
- // Zooming can change the DPR, but it seems to report a value that will
- // cleanly divide the values into the appropriate subpixels.
-
- function roundOffsetsByDPR(_ref, win) {
- var x = _ref.x,
- y = _ref.y;
- var dpr = win.devicePixelRatio || 1;
- return {
- x:
- (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_0__.round)(
- x * dpr
- ) / dpr || 0,
- y:
- (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_0__.round)(
- y * dpr
- ) / dpr || 0,
- };
- }
+function getNodeScroll(node) {
+ if (node === (0,_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node) || !(0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(node)) {
+ return (0,_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__["default"])(node);
+ } else {
+ return (0,_getHTMLElementScroll_js__WEBPACK_IMPORTED_MODULE_3__["default"])(node);
+ }
+}
- function mapToStyles(_ref2) {
- var _Object$assign2;
-
- var popper = _ref2.popper,
- popperRect = _ref2.popperRect,
- placement = _ref2.placement,
- variation = _ref2.variation,
- offsets = _ref2.offsets,
- position = _ref2.position,
- gpuAcceleration = _ref2.gpuAcceleration,
- adaptive = _ref2.adaptive,
- roundOffsets = _ref2.roundOffsets,
- isFixed = _ref2.isFixed;
- var _offsets$x = offsets.x,
- x = _offsets$x === void 0 ? 0 : _offsets$x,
- _offsets$y = offsets.y,
- y = _offsets$y === void 0 ? 0 : _offsets$y;
-
- var _ref3 =
- typeof roundOffsets === "function"
- ? roundOffsets({
- x: x,
- y: y,
- })
- : {
- x: x,
- y: y,
- };
-
- x = _ref3.x;
- y = _ref3.y;
- var hasX = offsets.hasOwnProperty("x");
- var hasY = offsets.hasOwnProperty("y");
- var sideX = _enums_js__WEBPACK_IMPORTED_MODULE_1__.left;
- var sideY = _enums_js__WEBPACK_IMPORTED_MODULE_1__.top;
- var win = window;
-
- if (adaptive) {
- var offsetParent = (0,
- _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(popper);
- var heightProp = "clientHeight";
- var widthProp = "clientWidth";
-
- if (
- offsetParent ===
- (0,
- _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(popper)
- ) {
- offsetParent = (0,
- _dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ])(popper);
-
- if (
- (0,
- _dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_5__[
- "default"
- ])(offsetParent).position !== "static" &&
- position === "absolute"
- ) {
- heightProp = "scrollHeight";
- widthProp = "scrollWidth";
- }
- } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
-
- offsetParent = offsetParent;
-
- if (
- placement ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.top ||
- ((placement ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.left ||
- placement ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.right) &&
- variation ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.end)
- ) {
- sideY =
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.bottom;
- var offsetY =
- isFixed &&
- offsetParent === win &&
- win.visualViewport
- ? win.visualViewport.height // $FlowFixMe[prop-missing]
- : offsetParent[heightProp];
- y -= offsetY - popperRect.height;
- y *= gpuAcceleration ? 1 : -1;
- }
+/***/ }),
- if (
- placement ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.left ||
- ((placement ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.top ||
- placement ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.bottom) &&
- variation ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.end)
- ) {
- sideX =
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.right;
- var offsetX =
- isFixed &&
- offsetParent === win &&
- win.visualViewport
- ? win.visualViewport.width // $FlowFixMe[prop-missing]
- : offsetParent[widthProp];
- x -= offsetX - popperRect.width;
- x *= gpuAcceleration ? 1 : -1;
- }
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js":
+/*!**********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js ***!
+ \**********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- var commonStyles = Object.assign(
- {
- position: position,
- },
- adaptive && unsetSides
- );
-
- var _ref4 =
- roundOffsets === true
- ? roundOffsetsByDPR(
- {
- x: x,
- y: y,
- },
- (0,
- _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(popper)
- )
- : {
- x: x,
- y: y,
- };
-
- x = _ref4.x;
- y = _ref4.y;
-
- if (gpuAcceleration) {
- var _Object$assign;
-
- 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)
- );
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getOffsetParent)
+/* harmony export */ });
+/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
+/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
+/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
+/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
+/* harmony import */ var _isTableElement_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isTableElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js");
+/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js");
+/* harmony import */ var _utils_userAgent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/userAgent.js */ "./node_modules/@popperjs/core/lib/utils/userAgent.js");
- return Object.assign(
- {},
- commonStyles,
- ((_Object$assign2 = {}),
- (_Object$assign2[sideY] = hasY ? y + "px" : ""),
- (_Object$assign2[sideX] = hasX ? x + "px" : ""),
- (_Object$assign2.transform = ""),
- _Object$assign2)
- );
- }
- function computeStyles(_ref5) {
- var state = _ref5.state,
- options = _ref5.options;
- var _options$gpuAccelerat = options.gpuAcceleration,
- gpuAcceleration =
- _options$gpuAccelerat === void 0
- ? true
- : _options$gpuAccelerat,
- _options$adaptive = options.adaptive,
- adaptive =
- _options$adaptive === void 0
- ? true
- : _options$adaptive,
- _options$roundOffsets = options.roundOffsets,
- roundOffsets =
- _options$roundOffsets === void 0
- ? true
- : _options$roundOffsets;
- var commonStyles = {
- placement: (0,
- _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ])(state.placement),
- variation: (0,
- _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_7__[
- "default"
- ])(state.placement),
- popper: state.elements.popper,
- popperRect: state.rects.popper,
- gpuAcceleration: gpuAcceleration,
- isFixed: state.options.strategy === "fixed",
- };
- if (state.modifiersData.popperOffsets != null) {
- state.styles.popper = Object.assign(
- {},
- state.styles.popper,
- mapToStyles(
- Object.assign({}, commonStyles, {
- offsets: state.modifiersData.popperOffsets,
- position: state.options.strategy,
- adaptive: adaptive,
- roundOffsets: roundOffsets,
- })
- )
- );
- }
- if (state.modifiersData.arrow != null) {
- state.styles.arrow = Object.assign(
- {},
- state.styles.arrow,
- mapToStyles(
- Object.assign({}, commonStyles, {
- offsets: state.modifiersData.arrow,
- position: "absolute",
- adaptive: false,
- roundOffsets: roundOffsets,
- })
- )
- );
- }
- state.attributes.popper = Object.assign(
- {},
- state.attributes.popper,
- {
- "data-popper-placement": state.placement,
- }
- );
- } // eslint-disable-next-line import/no-unused-modules
-
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ =
- {
- name: "computeStyles",
- enabled: true,
- phase: "beforeWrite",
- fn: computeStyles,
- data: {},
- };
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/modifiers/eventListeners.js ***!
- \*********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */
- }
- );
- /* harmony import */ var _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../dom-utils/getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"
- );
- // eslint-disable-next-line import/no-unused-modules
-
- var passive = {
- passive: true,
- };
- function effect(_ref) {
- var state = _ref.state,
- instance = _ref.instance,
- options = _ref.options;
- var _options$scroll = options.scroll,
- scroll =
- _options$scroll === void 0 ? true : _options$scroll,
- _options$resize = options.resize,
- resize =
- _options$resize === void 0 ? true : _options$resize;
- var window = (0,
- _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(state.elements.popper);
- var scrollParents = [].concat(
- state.scrollParents.reference,
- state.scrollParents.popper
- );
-
- if (scroll) {
- scrollParents.forEach(function (scrollParent) {
- scrollParent.addEventListener(
- "scroll",
- instance.update,
- passive
- );
- });
- }
+function getTrueOffsetParent(element) {
+ if (!(0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element) || // https://github.com/popperjs/popper-core/issues/837
+ (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element).position === 'fixed') {
+ return null;
+ }
- if (resize) {
- window.addEventListener(
- "resize",
- instance.update,
- passive
- );
- }
+ return element.offsetParent;
+} // `.offsetParent` reports `null` for fixed elements, while absolute elements
+// return the containing block
- return function () {
- if (scroll) {
- scrollParents.forEach(function (scrollParent) {
- scrollParent.removeEventListener(
- "scroll",
- instance.update,
- passive
- );
- });
- }
- if (resize) {
- window.removeEventListener(
- "resize",
- instance.update,
- passive
- );
- }
- };
- } // eslint-disable-next-line import/no-unused-modules
-
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ =
- {
- name: "eventListeners",
- enabled: true,
- phase: "write",
- fn: function fn() {},
- effect: effect,
- data: {},
- };
+function getContainingBlock(element) {
+ var isFirefox = /firefox/i.test((0,_utils_userAgent_js__WEBPACK_IMPORTED_MODULE_2__["default"])());
+ var isIE = /Trident/i.test((0,_utils_userAgent_js__WEBPACK_IMPORTED_MODULE_2__["default"])());
- /***/
- },
+ if (isIE && (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element)) {
+ // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
+ var elementCss = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element);
- /***/ "./node_modules/@popperjs/core/lib/modifiers/flip.js":
- /*!***********************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/modifiers/flip.js ***!
- \***********************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */
- }
- );
- /* harmony import */ var _utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ../utils/getOppositePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"
- );
- /* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"
- );
- /* harmony import */ var _utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ../utils/getOppositeVariationPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"
- );
- /* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"
- );
- /* harmony import */ var _utils_computeAutoPlacement_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ../utils/computeAutoPlacement.js */ "./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
- /* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ../utils/getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js"
- );
-
- // eslint-disable-next-line import/no-unused-modules
-
- function getExpandedFallbackPlacements(placement) {
- if (
- (0,
- _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(placement) ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.auto
- ) {
- return [];
- }
+ if (elementCss.position === 'fixed') {
+ return null;
+ }
+ }
- var oppositePlacement = (0,
- _utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(placement);
- return [
- (0,
- _utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(placement),
- oppositePlacement,
- (0,
- _utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(oppositePlacement),
- ];
- }
+ var currentNode = (0,_getParentNode_js__WEBPACK_IMPORTED_MODULE_3__["default"])(element);
- function flip(_ref) {
- var state = _ref.state,
- options = _ref.options,
- name = _ref.name;
+ if ((0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isShadowRoot)(currentNode)) {
+ currentNode = currentNode.host;
+ }
- if (state.modifiersData[name]._skip) {
- return;
- }
+ while ((0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(currentNode) && ['html', 'body'].indexOf((0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_4__["default"])(currentNode)) < 0) {
+ var css = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(currentNode); // This is non-exhaustive but covers the most common CSS properties that
+ // create a containing block.
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
- var _options$mainAxis = options.mainAxis,
- checkMainAxis =
- _options$mainAxis === void 0
- ? true
- : _options$mainAxis,
- _options$altAxis = options.altAxis,
- checkAltAxis =
- _options$altAxis === void 0
- ? true
- : _options$altAxis,
- specifiedFallbackPlacements =
- options.fallbackPlacements,
- padding = options.padding,
- boundary = options.boundary,
- rootBoundary = options.rootBoundary,
- altBoundary = options.altBoundary,
- _options$flipVariatio = options.flipVariations,
- flipVariations =
- _options$flipVariatio === void 0
- ? true
- : _options$flipVariatio,
- allowedAutoPlacements = options.allowedAutoPlacements;
- var preferredPlacement = state.options.placement;
- var basePlacement = (0,
- _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(preferredPlacement);
- var isBasePlacement = basePlacement === preferredPlacement;
- var fallbackPlacements =
- specifiedFallbackPlacements ||
- (isBasePlacement || !flipVariations
- ? [
- (0,
- _utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(preferredPlacement),
- ]
- : getExpandedFallbackPlacements(
- preferredPlacement
- ));
- var placements = [preferredPlacement]
- .concat(fallbackPlacements)
- .reduce(function (acc, placement) {
- return acc.concat(
- (0,
- _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(placement) ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.auto
- ? (0,
- _utils_computeAutoPlacement_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ])(state, {
- placement: placement,
- boundary: boundary,
- rootBoundary: rootBoundary,
- padding: padding,
- flipVariations: flipVariations,
- allowedAutoPlacements:
- allowedAutoPlacements,
- })
- : placement
- );
- }, []);
- var referenceRect = state.rects.reference;
- var popperRect = state.rects.popper;
- var checksMap = new Map();
- var makeFallbackChecks = true;
- var firstFittingPlacement = placements[0];
-
- for (var i = 0; i < placements.length; i++) {
- var placement = placements[i];
-
- var _basePlacement = (0,
- _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(placement);
-
- var isStartVariation =
- (0,
- _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_5__[
- "default"
- ])(placement) ===
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.start;
- var isVertical =
- [
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.top,
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.bottom,
- ].indexOf(_basePlacement) >= 0;
- var len = isVertical ? "width" : "height";
- var overflow = (0,
- _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ])(state, {
- placement: placement,
- boundary: boundary,
- rootBoundary: rootBoundary,
- altBoundary: altBoundary,
- padding: padding,
- });
- var mainVariationSide = isVertical
- ? isStartVariation
- ? _enums_js__WEBPACK_IMPORTED_MODULE_1__.right
- : _enums_js__WEBPACK_IMPORTED_MODULE_1__.left
- : isStartVariation
- ? _enums_js__WEBPACK_IMPORTED_MODULE_1__.bottom
- : _enums_js__WEBPACK_IMPORTED_MODULE_1__.top;
-
- if (referenceRect[len] > popperRect[len]) {
- mainVariationSide = (0,
- _utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(mainVariationSide);
- }
+ 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') {
+ return currentNode;
+ } else {
+ currentNode = currentNode.parentNode;
+ }
+ }
- var altVariationSide = (0,
- _utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(mainVariationSide);
- var checks = [];
+ return null;
+} // Gets the closest ancestor positioned element. Handles some edge cases,
+// such as table ancestors and cross browser bugs.
- if (checkMainAxis) {
- checks.push(overflow[_basePlacement] <= 0);
- }
- if (checkAltAxis) {
- checks.push(
- overflow[mainVariationSide] <= 0,
- overflow[altVariationSide] <= 0
- );
- }
+function getOffsetParent(element) {
+ var window = (0,_getWindow_js__WEBPACK_IMPORTED_MODULE_5__["default"])(element);
+ var offsetParent = getTrueOffsetParent(element);
- if (
- checks.every(function (check) {
- return check;
- })
- ) {
- firstFittingPlacement = placement;
- makeFallbackChecks = false;
- break;
- }
+ while (offsetParent && (0,_isTableElement_js__WEBPACK_IMPORTED_MODULE_6__["default"])(offsetParent) && (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent).position === 'static') {
+ offsetParent = getTrueOffsetParent(offsetParent);
+ }
- checksMap.set(placement, checks);
- }
+ if (offsetParent && ((0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_4__["default"])(offsetParent) === 'html' || (0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_4__["default"])(offsetParent) === 'body' && (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent).position === 'static')) {
+ return window;
+ }
- if (makeFallbackChecks) {
- // `2` may be desired in some cases – research later
- var numberOfChecks = flipVariations ? 3 : 1;
-
- var _loop = function _loop(_i) {
- var fittingPlacement = placements.find(function (
- placement
- ) {
- var checks = checksMap.get(placement);
-
- if (checks) {
- return checks
- .slice(0, _i)
- .every(function (check) {
- return check;
- });
- }
- });
+ return offsetParent || getContainingBlock(element) || window;
+}
- if (fittingPlacement) {
- firstFittingPlacement = fittingPlacement;
- return "break";
- }
- };
+/***/ }),
- for (var _i = numberOfChecks; _i > 0; _i--) {
- var _ret = _loop(_i);
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js":
+/*!********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js ***!
+ \********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- if (_ret === "break") break;
- }
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getParentNode)
+/* harmony export */ });
+/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
+/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
+/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
- if (state.placement !== firstFittingPlacement) {
- state.modifiersData[name]._skip = true;
- state.placement = firstFittingPlacement;
- state.reset = true;
- }
- } // eslint-disable-next-line import/no-unused-modules
-
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ =
- {
- name: "flip",
- enabled: true,
- phase: "main",
- fn: flip,
- requiresIfExists: ["offset"],
- data: {
- _skip: false,
- },
- };
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/modifiers/hide.js":
- /*!***********************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/modifiers/hide.js ***!
- \***********************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */
- }
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
- /* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"
- );
-
- function getSideOffsets(overflow, rect, preventedOffsets) {
- if (preventedOffsets === void 0) {
- preventedOffsets = {
- x: 0,
- y: 0,
- };
- }
+function getParentNode(element) {
+ if ((0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element) === 'html') {
+ return element;
+ }
- return {
- top: overflow.top - rect.height - preventedOffsets.y,
- right: overflow.right - rect.width + preventedOffsets.x,
- bottom:
- overflow.bottom - rect.height + preventedOffsets.y,
- left: overflow.left - rect.width - preventedOffsets.x,
- };
- }
+ return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
+ // $FlowFixMe[incompatible-return]
+ // $FlowFixMe[prop-missing]
+ element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
+ element.parentNode || ( // DOM Element detected
+ (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isShadowRoot)(element) ? element.host : null) || // ShadowRoot detected
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
+ (0,_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element) // fallback
- function isAnySideFullyClipped(overflow) {
- return [
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.top,
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.right,
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.bottom,
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.left,
- ].some(function (side) {
- return overflow[side] >= 0;
- });
- }
+ );
+}
- function hide(_ref) {
- var state = _ref.state,
- name = _ref.name;
- var referenceRect = state.rects.reference;
- var popperRect = state.rects.popper;
- var preventedOffsets = state.modifiersData.preventOverflow;
- var referenceOverflow = (0,
- _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(state, {
- elementContext: "reference",
- });
- var popperAltOverflow = (0,
- _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(state, {
- altBoundary: true,
- });
- var referenceClippingOffsets = getSideOffsets(
- referenceOverflow,
- referenceRect
- );
- var popperEscapeOffsets = getSideOffsets(
- popperAltOverflow,
- popperRect,
- preventedOffsets
- );
- var isReferenceHidden = isAnySideFullyClipped(
- referenceClippingOffsets
- );
- var hasPopperEscaped =
- isAnySideFullyClipped(popperEscapeOffsets);
- state.modifiersData[name] = {
- referenceClippingOffsets: referenceClippingOffsets,
- popperEscapeOffsets: popperEscapeOffsets,
- isReferenceHidden: isReferenceHidden,
- hasPopperEscaped: hasPopperEscaped,
- };
- state.attributes.popper = Object.assign(
- {},
- state.attributes.popper,
- {
- "data-popper-reference-hidden": isReferenceHidden,
- "data-popper-escaped": hasPopperEscaped,
- }
- );
- } // eslint-disable-next-line import/no-unused-modules
-
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ =
- {
- name: "hide",
- enabled: true,
- phase: "main",
- requiresIfExists: ["preventOverflow"],
- fn: hide,
- };
+/***/ }),
- /***/
- },
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js":
+/*!**********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js ***!
+ \**********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- /***/ "./node_modules/@popperjs/core/lib/modifiers/index.js":
- /*!************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/modifiers/index.js ***!
- \************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ applyStyles: () =>
- /* reexport safe */ _applyStyles_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ],
- /* harmony export */ arrow: () =>
- /* reexport safe */ _arrow_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ],
- /* harmony export */ computeStyles: () =>
- /* reexport safe */ _computeStyles_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ],
- /* harmony export */ eventListeners: () =>
- /* reexport safe */ _eventListeners_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ],
- /* harmony export */ flip: () =>
- /* reexport safe */ _flip_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ],
- /* harmony export */ hide: () =>
- /* reexport safe */ _hide_js__WEBPACK_IMPORTED_MODULE_5__[
- "default"
- ],
- /* harmony export */ offset: () =>
- /* reexport safe */ _offset_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ],
- /* harmony export */ popperOffsets: () =>
- /* reexport safe */ _popperOffsets_js__WEBPACK_IMPORTED_MODULE_7__[
- "default"
- ],
- /* harmony export */ preventOverflow: () =>
- /* reexport safe */ _preventOverflow_js__WEBPACK_IMPORTED_MODULE_8__[
- "default"
- ],
- /* harmony export */
- }
- );
- /* harmony import */ var _applyStyles_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./applyStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"
- );
- /* harmony import */ var _arrow_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./arrow.js */ "./node_modules/@popperjs/core/lib/modifiers/arrow.js"
- );
- /* harmony import */ var _computeStyles_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./computeStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"
- );
- /* harmony import */ var _eventListeners_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./eventListeners.js */ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"
- );
- /* harmony import */ var _flip_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ./flip.js */ "./node_modules/@popperjs/core/lib/modifiers/flip.js"
- );
- /* harmony import */ var _hide_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ./hide.js */ "./node_modules/@popperjs/core/lib/modifiers/hide.js"
- );
- /* harmony import */ var _offset_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ./offset.js */ "./node_modules/@popperjs/core/lib/modifiers/offset.js"
- );
- /* harmony import */ var _popperOffsets_js__WEBPACK_IMPORTED_MODULE_7__ =
- __webpack_require__(
- /*! ./popperOffsets.js */ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"
- );
- /* harmony import */ var _preventOverflow_js__WEBPACK_IMPORTED_MODULE_8__ =
- __webpack_require__(
- /*! ./preventOverflow.js */ "./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"
- );
-
- /***/
- },
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getScrollParent)
+/* harmony export */ });
+/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js");
+/* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js");
+/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
+/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
- /***/ "./node_modules/@popperjs/core/lib/modifiers/offset.js":
- /*!*************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/modifiers/offset.js ***!
- \*************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */ distanceAndSkiddingToXY: () =>
- /* binding */ distanceAndSkiddingToXY,
- /* harmony export */
- }
- );
- /* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
-
- // eslint-disable-next-line import/no-unused-modules
-
- function distanceAndSkiddingToXY(placement, rects, offset) {
- var basePlacement = (0,
- _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(placement);
- var invertDistance =
- [
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.left,
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.top,
- ].indexOf(basePlacement) >= 0
- ? -1
- : 1;
-
- var _ref =
- typeof offset === "function"
- ? offset(
- Object.assign({}, rects, {
- placement: placement,
- })
- )
- : offset,
- skidding = _ref[0],
- distance = _ref[1];
-
- skidding = skidding || 0;
- distance = (distance || 0) * invertDistance;
- return [
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.left,
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.right,
- ].indexOf(basePlacement) >= 0
- ? {
- x: distance,
- y: skidding,
- }
- : {
- x: skidding,
- y: distance,
- };
- }
- function offset(_ref2) {
- var state = _ref2.state,
- options = _ref2.options,
- name = _ref2.name;
- var _options$offset = options.offset,
- offset =
- _options$offset === void 0
- ? [0, 0]
- : _options$offset;
- var data =
- _enums_js__WEBPACK_IMPORTED_MODULE_1__.placements.reduce(
- function (acc, placement) {
- acc[placement] = distanceAndSkiddingToXY(
- placement,
- state.rects,
- offset
- );
- return acc;
- },
- {}
- );
- var _data$state$placement = data[state.placement],
- x = _data$state$placement.x,
- y = _data$state$placement.y;
-
- if (state.modifiersData.popperOffsets != null) {
- state.modifiersData.popperOffsets.x += x;
- state.modifiersData.popperOffsets.y += y;
- }
- state.modifiersData[name] = data;
- } // eslint-disable-next-line import/no-unused-modules
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ =
- {
- name: "offset",
- enabled: true,
- phase: "main",
- requires: ["popperOffsets"],
- fn: offset,
- };
+function getScrollParent(node) {
+ if (['html', 'body', '#document'].indexOf((0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node)) >= 0) {
+ // $FlowFixMe[incompatible-return]: assume body is always available
+ return node.ownerDocument.body;
+ }
- /***/
- },
+ if ((0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(node) && (0,_isScrollParent_js__WEBPACK_IMPORTED_MODULE_2__["default"])(node)) {
+ return node;
+ }
- /***/ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js":
- /*!********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js ***!
- \********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */
- }
- );
- /* harmony import */ var _utils_computeOffsets_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../utils/computeOffsets.js */ "./node_modules/@popperjs/core/lib/utils/computeOffsets.js"
- );
-
- function popperOffsets(_ref) {
- var state = _ref.state,
- name = _ref.name;
- // Offsets are the actual position the popper needs to have to be
- // properly positioned near its reference element
- // This is the most basic placement, and will be adjusted by
- // the modifiers in the next step
- state.modifiersData[name] = (0,
- _utils_computeOffsets_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])({
- reference: state.rects.reference,
- element: state.rects.popper,
- strategy: "absolute",
- placement: state.placement,
- });
- } // eslint-disable-next-line import/no-unused-modules
-
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ =
- {
- name: "popperOffsets",
- enabled: true,
- phase: "read",
- fn: popperOffsets,
- data: {},
- };
+ return getScrollParent((0,_getParentNode_js__WEBPACK_IMPORTED_MODULE_3__["default"])(node));
+}
- /***/
- },
+/***/ }),
- /***/ "./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js ***!
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js":
+/*!**********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js ***!
\**********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */
- }
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
- /* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"
- );
- /* harmony import */ var _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ../utils/getMainAxisFromPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"
- );
- /* harmony import */ var _utils_getAltAxis_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ../utils/getAltAxis.js */ "./node_modules/@popperjs/core/lib/utils/getAltAxis.js"
- );
- /* harmony import */ var _utils_within_js__WEBPACK_IMPORTED_MODULE_8__ =
- __webpack_require__(
- /*! ../utils/within.js */ "./node_modules/@popperjs/core/lib/utils/within.js"
- );
- /* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ../dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"
- );
- /* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_9__ =
- __webpack_require__(
- /*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"
- );
- /* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"
- );
- /* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ../utils/getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js"
- );
- /* harmony import */ var _utils_getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_7__ =
- __webpack_require__(
- /*! ../utils/getFreshSideObject.js */ "./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"
- );
- /* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_10__ =
- __webpack_require__(
- /*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"
- );
-
- function preventOverflow(_ref) {
- var state = _ref.state,
- options = _ref.options,
- name = _ref.name;
- var _options$mainAxis = options.mainAxis,
- checkMainAxis =
- _options$mainAxis === void 0
- ? true
- : _options$mainAxis,
- _options$altAxis = options.altAxis,
- checkAltAxis =
- _options$altAxis === void 0
- ? false
- : _options$altAxis,
- boundary = options.boundary,
- rootBoundary = options.rootBoundary,
- altBoundary = options.altBoundary,
- padding = options.padding,
- _options$tether = options.tether,
- tether =
- _options$tether === void 0 ? true : _options$tether,
- _options$tetherOffset = options.tetherOffset,
- tetherOffset =
- _options$tetherOffset === void 0
- ? 0
- : _options$tetherOffset;
- var overflow = (0,
- _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(state, {
- boundary: boundary,
- rootBoundary: rootBoundary,
- padding: padding,
- altBoundary: altBoundary,
- });
- var basePlacement = (0,
- _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(state.placement);
- var variation = (0,
- _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(state.placement);
- var isBasePlacement = !variation;
- var mainAxis = (0,
- _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(basePlacement);
- var altAxis = (0,
- _utils_getAltAxis_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ])(mainAxis);
- var popperOffsets = state.modifiersData.popperOffsets;
- var referenceRect = state.rects.reference;
- var popperRect = state.rects.popper;
- var tetherOffsetValue =
- typeof tetherOffset === "function"
- ? tetherOffset(
- Object.assign({}, state.rects, {
- placement: state.placement,
- })
- )
- : tetherOffset;
- var normalizedTetherOffsetValue =
- typeof tetherOffsetValue === "number"
- ? {
- mainAxis: tetherOffsetValue,
- altAxis: tetherOffsetValue,
- }
- : Object.assign(
- {
- mainAxis: 0,
- altAxis: 0,
- },
- tetherOffsetValue
- );
- var offsetModifierState = state.modifiersData.offset
- ? state.modifiersData.offset[state.placement]
- : null;
- var data = {
- x: 0,
- y: 0,
- };
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getViewportRect)
+/* harmony export */ });
+/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
+/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
+/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js");
+/* harmony import */ var _isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isLayoutViewport.js */ "./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");
+
+
+
+
+function getViewportRect(element, strategy) {
+ var win = (0,_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
+ var html = (0,_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element);
+ var visualViewport = win.visualViewport;
+ var width = html.clientWidth;
+ var height = html.clientHeight;
+ var x = 0;
+ var y = 0;
+
+ if (visualViewport) {
+ width = visualViewport.width;
+ height = visualViewport.height;
+ var layoutViewport = (0,_isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_2__["default"])();
+
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
+ x = visualViewport.offsetLeft;
+ y = visualViewport.offsetTop;
+ }
+ }
- if (!popperOffsets) {
- return;
- }
+ return {
+ width: width,
+ height: height,
+ x: x + (0,_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_3__["default"])(element),
+ y: y
+ };
+}
- if (checkMainAxis) {
- var _offsetModifierState$;
-
- var mainSide =
- mainAxis === "y"
- ? _enums_js__WEBPACK_IMPORTED_MODULE_5__.top
- : _enums_js__WEBPACK_IMPORTED_MODULE_5__.left;
- var altSide =
- mainAxis === "y"
- ? _enums_js__WEBPACK_IMPORTED_MODULE_5__.bottom
- : _enums_js__WEBPACK_IMPORTED_MODULE_5__.right;
- var len = mainAxis === "y" ? "height" : "width";
- var offset = popperOffsets[mainAxis];
- var min = offset + overflow[mainSide];
- var max = offset - overflow[altSide];
- var additive = tether ? -popperRect[len] / 2 : 0;
- var minLen =
- variation ===
- _enums_js__WEBPACK_IMPORTED_MODULE_5__.start
- ? referenceRect[len]
- : popperRect[len];
- var maxLen =
- variation ===
- _enums_js__WEBPACK_IMPORTED_MODULE_5__.start
- ? -popperRect[len]
- : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
- // outside the reference bounds
-
- var arrowElement = state.elements.arrow;
- var arrowRect =
- tether && arrowElement
- ? (0,
- _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ])(arrowElement)
- : {
- width: 0,
- height: 0,
- };
- var arrowPaddingObject = state.modifiersData[
- "arrow#persistent"
- ]
- ? state.modifiersData["arrow#persistent"].padding
- : (0,
- _utils_getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_7__[
- "default"
- ])();
- var arrowPaddingMin = arrowPaddingObject[mainSide];
- var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
- // to include its full size in the calculation. If the reference is small
- // and near the edge of a boundary, the popper can overflow even if the
- // reference is not overflowing as well (e.g. virtual elements with no
- // width or height)
-
- var arrowLen = (0,
- _utils_within_js__WEBPACK_IMPORTED_MODULE_8__.within)(
- 0,
- referenceRect[len],
- arrowRect[len]
- );
- var minOffset = isBasePlacement
- ? referenceRect[len] / 2 -
- additive -
- arrowLen -
- arrowPaddingMin -
- normalizedTetherOffsetValue.mainAxis
- : minLen -
- arrowLen -
- arrowPaddingMin -
- normalizedTetherOffsetValue.mainAxis;
- var maxOffset = isBasePlacement
- ? -referenceRect[len] / 2 +
- additive +
- arrowLen +
- arrowPaddingMax +
- normalizedTetherOffsetValue.mainAxis
- : maxLen +
- arrowLen +
- arrowPaddingMax +
- normalizedTetherOffsetValue.mainAxis;
- var arrowOffsetParent =
- state.elements.arrow &&
- (0,
- _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_9__[
- "default"
- ])(state.elements.arrow);
- var clientOffset = arrowOffsetParent
- ? mainAxis === "y"
- ? arrowOffsetParent.clientTop || 0
- : arrowOffsetParent.clientLeft || 0
- : 0;
- var offsetModifierValue =
- (_offsetModifierState$ =
- offsetModifierState == null
- ? void 0
- : offsetModifierState[mainAxis]) != null
- ? _offsetModifierState$
- : 0;
- var tetherMin =
- offset +
- minOffset -
- offsetModifierValue -
- clientOffset;
- var tetherMax =
- offset + maxOffset - offsetModifierValue;
- var preventedOffset = (0,
- _utils_within_js__WEBPACK_IMPORTED_MODULE_8__.within)(
- tether
- ? (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_10__.min)(
- min,
- tetherMin
- )
- : min,
- offset,
- tether
- ? (0,
- _utils_math_js__WEBPACK_IMPORTED_MODULE_10__.max)(
- max,
- tetherMax
- )
- : max
- );
- popperOffsets[mainAxis] = preventedOffset;
- data[mainAxis] = preventedOffset - offset;
- }
+/***/ }),
- if (checkAltAxis) {
- var _offsetModifierState$2;
-
- var _mainSide =
- mainAxis === "x"
- ? _enums_js__WEBPACK_IMPORTED_MODULE_5__.top
- : _enums_js__WEBPACK_IMPORTED_MODULE_5__.left;
-
- var _altSide =
- mainAxis === "x"
- ? _enums_js__WEBPACK_IMPORTED_MODULE_5__.bottom
- : _enums_js__WEBPACK_IMPORTED_MODULE_5__.right;
-
- var _offset = popperOffsets[altAxis];
-
- var _len = altAxis === "y" ? "height" : "width";
-
- var _min = _offset + overflow[_mainSide];
-
- var _max = _offset - overflow[_altSide];
-
- var isOriginSide =
- [
- _enums_js__WEBPACK_IMPORTED_MODULE_5__.top,
- _enums_js__WEBPACK_IMPORTED_MODULE_5__.left,
- ].indexOf(basePlacement) !== -1;
-
- var _offsetModifierValue =
- (_offsetModifierState$2 =
- offsetModifierState == null
- ? void 0
- : offsetModifierState[altAxis]) != null
- ? _offsetModifierState$2
- : 0;
-
- var _tetherMin = isOriginSide
- ? _min
- : _offset -
- referenceRect[_len] -
- popperRect[_len] -
- _offsetModifierValue +
- normalizedTetherOffsetValue.altAxis;
-
- var _tetherMax = isOriginSide
- ? _offset +
- referenceRect[_len] +
- popperRect[_len] -
- _offsetModifierValue -
- normalizedTetherOffsetValue.altAxis
- : _max;
-
- var _preventedOffset =
- tether && isOriginSide
- ? (0,
- _utils_within_js__WEBPACK_IMPORTED_MODULE_8__.withinMaxClamp)(
- _tetherMin,
- _offset,
- _tetherMax
- )
- : (0,
- _utils_within_js__WEBPACK_IMPORTED_MODULE_8__.within)(
- tether ? _tetherMin : _min,
- _offset,
- tether ? _tetherMax : _max
- );
-
- popperOffsets[altAxis] = _preventedOffset;
- data[altAxis] = _preventedOffset - _offset;
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js ***!
+ \****************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getWindow)
+/* harmony export */ });
+function getWindow(node) {
+ if (node == null) {
+ return window;
+ }
+
+ if (node.toString() !== '[object Window]') {
+ var ownerDocument = node.ownerDocument;
+ return ownerDocument ? ownerDocument.defaultView || window : window;
+ }
+
+ return node;
+}
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js":
+/*!**********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js ***!
+ \**********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getWindowScroll)
+/* harmony export */ });
+/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
+
+function getWindowScroll(node) {
+ var win = (0,_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node);
+ var scrollLeft = win.pageXOffset;
+ var scrollTop = win.pageYOffset;
+ return {
+ scrollLeft: scrollLeft,
+ scrollTop: scrollTop
+ };
+}
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js":
+/*!**************************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js ***!
+ \**************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ getWindowScrollBarX)
+/* harmony export */ });
+/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");
+/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
+/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");
+
+
+
+function getWindowScrollBarX(element) {
+ // If has a CSS width greater than the viewport, then this will be
+ // incorrect for RTL.
+ // Popper 1 is broken in this case and never had a bug report so let's assume
+ // it's not an issue. I don't think anyone ever specifies width on
+ // anyway.
+ // Browsers where the left scrollbar doesn't cause an issue report `0` for
+ // this (e.g. Edge 2019, IE11, Safari)
+ return (0,_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element)).left + (0,_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element).scrollLeft;
+}
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js":
+/*!*****************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js ***!
+ \*****************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- state.modifiersData[name] = data;
- } // eslint-disable-next-line import/no-unused-modules
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ isElement: () => (/* binding */ isElement),
+/* harmony export */ isHTMLElement: () => (/* binding */ isHTMLElement),
+/* harmony export */ isShadowRoot: () => (/* binding */ isShadowRoot)
+/* harmony export */ });
+/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ =
- {
- name: "preventOverflow",
- enabled: true,
- phase: "main",
- fn: preventOverflow,
- requiresIfExists: ["offset"],
- };
- /***/
- },
+function isElement(node) {
+ var OwnElement = (0,_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node).Element;
+ return node instanceof OwnElement || node instanceof Element;
+}
- /***/ "./node_modules/@popperjs/core/lib/popper-lite.js":
- /*!********************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/popper-lite.js ***!
- \********************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ createPopper: () =>
- /* binding */ createPopper,
- /* harmony export */ defaultModifiers: () =>
- /* binding */ defaultModifiers,
- /* harmony export */ detectOverflow: () =>
- /* reexport safe */ _createPopper_js__WEBPACK_IMPORTED_MODULE_5__[
- "default"
- ],
- /* harmony export */ popperGenerator: () =>
- /* reexport safe */ _createPopper_js__WEBPACK_IMPORTED_MODULE_4__.popperGenerator,
- /* harmony export */
- }
- );
- /* harmony import */ var _createPopper_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ./createPopper.js */ "./node_modules/@popperjs/core/lib/createPopper.js"
- );
- /* harmony import */ var _createPopper_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ./createPopper.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"
- );
- /* harmony import */ var _modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./modifiers/eventListeners.js */ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"
- );
- /* harmony import */ var _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./modifiers/popperOffsets.js */ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"
- );
- /* harmony import */ var _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./modifiers/computeStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"
- );
- /* harmony import */ var _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./modifiers/applyStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"
- );
-
- var defaultModifiers = [
- _modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ],
- _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ],
- _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ],
- _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ],
- ];
- var createPopper = /*#__PURE__*/ (0,
- _createPopper_js__WEBPACK_IMPORTED_MODULE_4__.popperGenerator)({
- defaultModifiers: defaultModifiers,
- }); // eslint-disable-next-line import/no-unused-modules
-
- /***/
- },
+function isHTMLElement(node) {
+ var OwnElement = (0,_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node).HTMLElement;
+ return node instanceof OwnElement || node instanceof HTMLElement;
+}
- /***/ "./node_modules/@popperjs/core/lib/popper.js":
- /*!***************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/popper.js ***!
- \***************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ applyStyles: () =>
- /* reexport safe */ _modifiers_index_js__WEBPACK_IMPORTED_MODULE_12__.applyStyles,
- /* harmony export */ arrow: () =>
- /* reexport safe */ _modifiers_index_js__WEBPACK_IMPORTED_MODULE_12__.arrow,
- /* harmony export */ computeStyles: () =>
- /* reexport safe */ _modifiers_index_js__WEBPACK_IMPORTED_MODULE_12__.computeStyles,
- /* harmony export */ createPopper: () =>
- /* binding */ createPopper,
- /* harmony export */ createPopperLite: () =>
- /* reexport safe */ _popper_lite_js__WEBPACK_IMPORTED_MODULE_11__.createPopper,
- /* harmony export */ defaultModifiers: () =>
- /* binding */ defaultModifiers,
- /* harmony export */ detectOverflow: () =>
- /* reexport safe */ _createPopper_js__WEBPACK_IMPORTED_MODULE_10__[
- "default"
- ],
- /* harmony export */ eventListeners: () =>
- /* reexport safe */ _modifiers_index_js__WEBPACK_IMPORTED_MODULE_12__.eventListeners,
- /* harmony export */ flip: () =>
- /* reexport safe */ _modifiers_index_js__WEBPACK_IMPORTED_MODULE_12__.flip,
- /* harmony export */ hide: () =>
- /* reexport safe */ _modifiers_index_js__WEBPACK_IMPORTED_MODULE_12__.hide,
- /* harmony export */ offset: () =>
- /* reexport safe */ _modifiers_index_js__WEBPACK_IMPORTED_MODULE_12__.offset,
- /* harmony export */ popperGenerator: () =>
- /* reexport safe */ _createPopper_js__WEBPACK_IMPORTED_MODULE_9__.popperGenerator,
- /* harmony export */ popperOffsets: () =>
- /* reexport safe */ _modifiers_index_js__WEBPACK_IMPORTED_MODULE_12__.popperOffsets,
- /* harmony export */ preventOverflow: () =>
- /* reexport safe */ _modifiers_index_js__WEBPACK_IMPORTED_MODULE_12__.preventOverflow,
- /* harmony export */
- }
- );
- /* harmony import */ var _createPopper_js__WEBPACK_IMPORTED_MODULE_9__ =
- __webpack_require__(
- /*! ./createPopper.js */ "./node_modules/@popperjs/core/lib/createPopper.js"
- );
- /* harmony import */ var _createPopper_js__WEBPACK_IMPORTED_MODULE_10__ =
- __webpack_require__(
- /*! ./createPopper.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"
- );
- /* harmony import */ var _modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./modifiers/eventListeners.js */ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"
- );
- /* harmony import */ var _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./modifiers/popperOffsets.js */ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"
- );
- /* harmony import */ var _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./modifiers/computeStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"
- );
- /* harmony import */ var _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./modifiers/applyStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"
- );
- /* harmony import */ var _modifiers_offset_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ./modifiers/offset.js */ "./node_modules/@popperjs/core/lib/modifiers/offset.js"
- );
- /* harmony import */ var _modifiers_flip_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ./modifiers/flip.js */ "./node_modules/@popperjs/core/lib/modifiers/flip.js"
- );
- /* harmony import */ var _modifiers_preventOverflow_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ./modifiers/preventOverflow.js */ "./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"
- );
- /* harmony import */ var _modifiers_arrow_js__WEBPACK_IMPORTED_MODULE_7__ =
- __webpack_require__(
- /*! ./modifiers/arrow.js */ "./node_modules/@popperjs/core/lib/modifiers/arrow.js"
- );
- /* harmony import */ var _modifiers_hide_js__WEBPACK_IMPORTED_MODULE_8__ =
- __webpack_require__(
- /*! ./modifiers/hide.js */ "./node_modules/@popperjs/core/lib/modifiers/hide.js"
- );
- /* harmony import */ var _popper_lite_js__WEBPACK_IMPORTED_MODULE_11__ =
- __webpack_require__(
- /*! ./popper-lite.js */ "./node_modules/@popperjs/core/lib/popper-lite.js"
- );
- /* harmony import */ var _modifiers_index_js__WEBPACK_IMPORTED_MODULE_12__ =
- __webpack_require__(
- /*! ./modifiers/index.js */ "./node_modules/@popperjs/core/lib/modifiers/index.js"
- );
-
- var defaultModifiers = [
- _modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ],
- _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ],
- _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ],
- _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ],
- _modifiers_offset_js__WEBPACK_IMPORTED_MODULE_4__[
- "default"
- ],
- _modifiers_flip_js__WEBPACK_IMPORTED_MODULE_5__["default"],
- _modifiers_preventOverflow_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ],
- _modifiers_arrow_js__WEBPACK_IMPORTED_MODULE_7__["default"],
- _modifiers_hide_js__WEBPACK_IMPORTED_MODULE_8__["default"],
- ];
- var createPopper = /*#__PURE__*/ (0,
- _createPopper_js__WEBPACK_IMPORTED_MODULE_9__.popperGenerator)({
- defaultModifiers: defaultModifiers,
- }); // eslint-disable-next-line import/no-unused-modules
-
- // eslint-disable-next-line import/no-unused-modules
-
- // eslint-disable-next-line import/no-unused-modules
-
- /***/
- },
+function isShadowRoot(node) {
+ // IE 11 has no ShadowRoot
+ if (typeof ShadowRoot === 'undefined') {
+ return false;
+ }
- /***/ "./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js ***!
- \***********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ computeAutoPlacement,
- /* harmony export */
- }
- );
- /* harmony import */ var _getVariation_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js"
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
- /* harmony import */ var _detectOverflow_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"
- );
- /* harmony import */ var _getBasePlacement_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"
- );
-
- function computeAutoPlacement(state, options) {
- if (options === void 0) {
- options = {};
- }
+ var OwnElement = (0,_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node).ShadowRoot;
+ return node instanceof OwnElement || node instanceof ShadowRoot;
+}
- var _options = options,
- placement = _options.placement,
- boundary = _options.boundary,
- rootBoundary = _options.rootBoundary,
- padding = _options.padding,
- flipVariations = _options.flipVariations,
- _options$allowedAutoP = _options.allowedAutoPlacements,
- allowedAutoPlacements =
- _options$allowedAutoP === void 0
- ? _enums_js__WEBPACK_IMPORTED_MODULE_0__.placements
- : _options$allowedAutoP;
- var variation = (0,
- _getVariation_js__WEBPACK_IMPORTED_MODULE_1__["default"])(
- placement
- );
- var placements = variation
- ? flipVariations
- ? _enums_js__WEBPACK_IMPORTED_MODULE_0__.variationPlacements
- : _enums_js__WEBPACK_IMPORTED_MODULE_0__.variationPlacements.filter(
- function (placement) {
- return (
- (0,
- _getVariation_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(placement) === variation
- );
- }
- )
- : _enums_js__WEBPACK_IMPORTED_MODULE_0__.basePlacements;
- var allowedPlacements = placements.filter(function (
- placement
- ) {
- return allowedAutoPlacements.indexOf(placement) >= 0;
- });
- if (allowedPlacements.length === 0) {
- allowedPlacements = placements;
- } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
-
- var overflows = allowedPlacements.reduce(function (
- acc,
- placement
- ) {
- acc[placement] = (0,
- _detectOverflow_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(state, {
- placement: placement,
- boundary: boundary,
- rootBoundary: rootBoundary,
- padding: padding,
- })[
- (0,
- _getBasePlacement_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(placement)
- ];
- return acc;
- },
- {});
- return Object.keys(overflows).sort(function (a, b) {
- return overflows[a] - overflows[b];
- });
- }
- /***/
- },
+/***/ }),
- /***/ "./node_modules/@popperjs/core/lib/utils/computeOffsets.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/computeOffsets.js ***!
- \*****************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ computeOffsets,
- /* harmony export */
- }
- );
- /* harmony import */ var _getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"
- );
- /* harmony import */ var _getVariation_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js"
- );
- /* harmony import */ var _getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ./getMainAxisFromPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
-
- function computeOffsets(_ref) {
- var reference = _ref.reference,
- element = _ref.element,
- placement = _ref.placement;
- var basePlacement = placement
- ? (0,
- _getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(placement)
- : null;
- var variation = placement
- ? (0,
- _getVariation_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(placement)
- : null;
- var commonX =
- reference.x + reference.width / 2 - element.width / 2;
- var commonY =
- reference.y + reference.height / 2 - element.height / 2;
- var offsets;
-
- switch (basePlacement) {
- case _enums_js__WEBPACK_IMPORTED_MODULE_2__.top:
- offsets = {
- x: commonX,
- y: reference.y - element.height,
- };
- break;
-
- case _enums_js__WEBPACK_IMPORTED_MODULE_2__.bottom:
- offsets = {
- x: commonX,
- y: reference.y + reference.height,
- };
- break;
-
- case _enums_js__WEBPACK_IMPORTED_MODULE_2__.right:
- offsets = {
- x: reference.x + reference.width,
- y: commonY,
- };
- break;
-
- case _enums_js__WEBPACK_IMPORTED_MODULE_2__.left:
- offsets = {
- x: reference.x - element.width,
- y: commonY,
- };
- break;
-
- default:
- offsets = {
- x: reference.x,
- y: reference.y,
- };
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js":
+/*!***********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js ***!
+ \***********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- var mainAxis = basePlacement
- ? (0,
- _getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(basePlacement)
- : null;
-
- if (mainAxis != null) {
- var len = mainAxis === "y" ? "height" : "width";
-
- switch (variation) {
- case _enums_js__WEBPACK_IMPORTED_MODULE_2__.start:
- offsets[mainAxis] =
- offsets[mainAxis] -
- (reference[len] / 2 - element[len] / 2);
- break;
-
- case _enums_js__WEBPACK_IMPORTED_MODULE_2__.end:
- offsets[mainAxis] =
- offsets[mainAxis] +
- (reference[len] / 2 - element[len] / 2);
- break;
-
- default:
- }
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ isLayoutViewport)
+/* harmony export */ });
+/* harmony import */ var _utils_userAgent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/userAgent.js */ "./node_modules/@popperjs/core/lib/utils/userAgent.js");
- return offsets;
- }
+function isLayoutViewport() {
+ return !/^((?!chrome|android).)*safari/i.test((0,_utils_userAgent_js__WEBPACK_IMPORTED_MODULE_0__["default"])());
+}
- /***/
- },
+/***/ }),
- /***/ "./node_modules/@popperjs/core/lib/utils/debounce.js":
- /*!***********************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/debounce.js ***!
- \***********************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ debounce,
- /* harmony export */
- }
- );
- function debounce(fn) {
- var pending;
- return function () {
- if (!pending) {
- pending = new Promise(function (resolve) {
- Promise.resolve().then(function () {
- pending = undefined;
- resolve(fn());
- });
- });
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js":
+/*!*********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js ***!
+ \*********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- return pending;
- };
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ isScrollParent)
+/* harmony export */ });
+/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
- /***/
- },
+function isScrollParent(element) {
+ // Firefox wants us to check `-x` and `-y` variations as well
+ var _getComputedStyle = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element),
+ overflow = _getComputedStyle.overflow,
+ overflowX = _getComputedStyle.overflowX,
+ overflowY = _getComputedStyle.overflowY;
- /***/ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/detectOverflow.js ***!
- \*****************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ detectOverflow,
- /* harmony export */
- }
- );
- /* harmony import */ var _dom_utils_getClippingRect_js__WEBPACK_IMPORTED_MODULE_3__ =
- __webpack_require__(
- /*! ../dom-utils/getClippingRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"
- );
- /* harmony import */ var _dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__ =
- __webpack_require__(
- /*! ../dom-utils/getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"
- );
- /* harmony import */ var _dom_utils_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_6__ =
- __webpack_require__(
- /*! ../dom-utils/getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"
- );
- /* harmony import */ var _computeOffsets_js__WEBPACK_IMPORTED_MODULE_7__ =
- __webpack_require__(
- /*! ./computeOffsets.js */ "./node_modules/@popperjs/core/lib/utils/computeOffsets.js"
- );
- /* harmony import */ var _rectToClientRect_js__WEBPACK_IMPORTED_MODULE_8__ =
- __webpack_require__(
- /*! ./rectToClientRect.js */ "./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
- /* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_4__ =
- __webpack_require__(
- /*! ../dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"
- );
- /* harmony import */ var _mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! ./mergePaddingObject.js */ "./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"
- );
- /* harmony import */ var _expandToHashMap_js__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! ./expandToHashMap.js */ "./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"
- );
-
- // eslint-disable-next-line import/no-unused-modules
-
- function detectOverflow(state, options) {
- if (options === void 0) {
- options = {};
- }
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
+}
- var _options = options,
- _options$placement = _options.placement,
- placement =
- _options$placement === void 0
- ? state.placement
- : _options$placement,
- _options$strategy = _options.strategy,
- strategy =
- _options$strategy === void 0
- ? state.strategy
- : _options$strategy,
- _options$boundary = _options.boundary,
- boundary =
- _options$boundary === void 0
- ? _enums_js__WEBPACK_IMPORTED_MODULE_0__.clippingParents
- : _options$boundary,
- _options$rootBoundary = _options.rootBoundary,
- rootBoundary =
- _options$rootBoundary === void 0
- ? _enums_js__WEBPACK_IMPORTED_MODULE_0__.viewport
- : _options$rootBoundary,
- _options$elementConte = _options.elementContext,
- elementContext =
- _options$elementConte === void 0
- ? _enums_js__WEBPACK_IMPORTED_MODULE_0__.popper
- : _options$elementConte,
- _options$altBoundary = _options.altBoundary,
- altBoundary =
- _options$altBoundary === void 0
- ? false
- : _options$altBoundary,
- _options$padding = _options.padding,
- padding =
- _options$padding === void 0 ? 0 : _options$padding;
- var paddingObject = (0,
- _mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_1__[
- "default"
- ])(
- typeof padding !== "number"
- ? padding
- : (0,
- _expandToHashMap_js__WEBPACK_IMPORTED_MODULE_2__[
- "default"
- ])(
- padding,
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.basePlacements
- )
- );
- var altContext =
- elementContext ===
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.popper
- ? _enums_js__WEBPACK_IMPORTED_MODULE_0__.reference
- : _enums_js__WEBPACK_IMPORTED_MODULE_0__.popper;
- var popperRect = state.rects.popper;
- var element =
- state.elements[
- altBoundary ? altContext : elementContext
- ];
- var clippingClientRect = (0,
- _dom_utils_getClippingRect_js__WEBPACK_IMPORTED_MODULE_3__[
- "default"
- ])(
- (0,
- _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_4__.isElement)(
- element
- )
- ? element
- : element.contextElement ||
- (0,
- _dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__[
- "default"
- ])(state.elements.popper),
- boundary,
- rootBoundary,
- strategy
- );
- var referenceClientRect = (0,
- _dom_utils_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_6__[
- "default"
- ])(state.elements.reference);
- var popperOffsets = (0,
- _computeOffsets_js__WEBPACK_IMPORTED_MODULE_7__["default"])(
- {
- reference: referenceClientRect,
- element: popperRect,
- strategy: "absolute",
- placement: placement,
- }
- );
- var popperClientRect = (0,
- _rectToClientRect_js__WEBPACK_IMPORTED_MODULE_8__[
- "default"
- ])(Object.assign({}, popperRect, popperOffsets));
- var elementClientRect =
- elementContext ===
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.popper
- ? popperClientRect
- : referenceClientRect; // positive = overflowing the clipping rect
- // 0 or negative = within the clipping rect
-
- var overflowOffsets = {
- top:
- clippingClientRect.top -
- elementClientRect.top +
- paddingObject.top,
- bottom:
- elementClientRect.bottom -
- clippingClientRect.bottom +
- paddingObject.bottom,
- left:
- clippingClientRect.left -
- elementClientRect.left +
- paddingObject.left,
- right:
- elementClientRect.right -
- clippingClientRect.right +
- paddingObject.right,
- };
- var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
-
- if (
- elementContext ===
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.popper &&
- offsetData
- ) {
- var offset = offsetData[placement];
- Object.keys(overflowOffsets).forEach(function (key) {
- var multiply =
- [
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.right,
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.bottom,
- ].indexOf(key) >= 0
- ? 1
- : -1;
- var axis =
- [
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.top,
- _enums_js__WEBPACK_IMPORTED_MODULE_0__.bottom,
- ].indexOf(key) >= 0
- ? "y"
- : "x";
- overflowOffsets[key] += offset[axis] * multiply;
- });
- }
+/***/ }),
- return overflowOffsets;
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js":
+/*!*********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js ***!
+ \*********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- /***/
- },
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ isTableElement)
+/* harmony export */ });
+/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
- /***/ "./node_modules/@popperjs/core/lib/utils/expandToHashMap.js":
- /*!******************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/expandToHashMap.js ***!
- \******************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ expandToHashMap,
- /* harmony export */
- }
- );
- function expandToHashMap(value, keys) {
- return keys.reduce(function (hashMap, key) {
- hashMap[key] = value;
- return hashMap;
- }, {});
- }
+function isTableElement(element) {
+ return ['table', 'td', 'th'].indexOf((0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element)) >= 0;
+}
- /***/
- },
+/***/ }),
- /***/ "./node_modules/@popperjs/core/lib/utils/getAltAxis.js":
- /*!*************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/getAltAxis.js ***!
- \*************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getAltAxis,
- /* harmony export */
- }
- );
- function getAltAxis(axis) {
- return axis === "x" ? "y" : "x";
- }
+/***/ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js":
+/*!************************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js ***!
+ \************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- /***/
- },
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ listScrollParents)
+/* harmony export */ });
+/* harmony import */ var _getScrollParent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js");
+/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js");
+/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
+/* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js");
- /***/ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/getBasePlacement.js ***!
- \*******************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getBasePlacement,
- /* harmony export */
- }
- );
- function getBasePlacement(placement) {
- return placement.split("-")[0];
- }
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js ***!
- \*********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getFreshSideObject,
- /* harmony export */
- }
- );
- function getFreshSideObject() {
- return {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0,
- };
- }
+/*
+given a DOM element, return the list of all scroll parents, up the list of ancesors
+until we get to the top window object. This list is what we attach scroll listeners
+to, because if any of these parent elements scroll, we'll need to re-calculate the
+reference element's position.
+*/
- /***/
- },
+function listScrollParents(element, list) {
+ var _element$ownerDocumen;
- /***/ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js":
- /*!***************************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js ***!
- \***************************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getMainAxisFromPlacement,
- /* harmony export */
- }
- );
- function getMainAxisFromPlacement(placement) {
- return ["top", "bottom"].indexOf(placement) >= 0
- ? "x"
- : "y";
- }
+ if (list === void 0) {
+ list = [];
+ }
- /***/
- },
+ var scrollParent = (0,_getScrollParent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
+ var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
+ var win = (0,_getWindow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scrollParent);
+ var target = isBody ? [win].concat(win.visualViewport || [], (0,_isScrollParent_js__WEBPACK_IMPORTED_MODULE_2__["default"])(scrollParent) ? scrollParent : []) : scrollParent;
+ var updatedList = list.concat(target);
+ return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
+ updatedList.concat(listScrollParents((0,_getParentNode_js__WEBPACK_IMPORTED_MODULE_3__["default"])(target)));
+}
- /***/ "./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js ***!
- \***********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getOppositePlacement,
- /* harmony export */
- }
- );
- var hash = {
- left: "right",
- right: "left",
- bottom: "top",
- top: "bottom",
- };
- function getOppositePlacement(placement) {
- return placement.replace(
- /left|right|bottom|top/g,
- function (matched) {
- return hash[matched];
- }
- );
- }
+/***/ }),
- /***/
- },
+/***/ "./node_modules/@popperjs/core/lib/enums.js":
+/*!**************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/enums.js ***!
+ \**************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ afterMain: () => (/* binding */ afterMain),
+/* harmony export */ afterRead: () => (/* binding */ afterRead),
+/* harmony export */ afterWrite: () => (/* binding */ afterWrite),
+/* harmony export */ auto: () => (/* binding */ auto),
+/* harmony export */ basePlacements: () => (/* binding */ basePlacements),
+/* harmony export */ beforeMain: () => (/* binding */ beforeMain),
+/* harmony export */ beforeRead: () => (/* binding */ beforeRead),
+/* harmony export */ beforeWrite: () => (/* binding */ beforeWrite),
+/* harmony export */ bottom: () => (/* binding */ bottom),
+/* harmony export */ clippingParents: () => (/* binding */ clippingParents),
+/* harmony export */ end: () => (/* binding */ end),
+/* harmony export */ left: () => (/* binding */ left),
+/* harmony export */ main: () => (/* binding */ main),
+/* harmony export */ modifierPhases: () => (/* binding */ modifierPhases),
+/* harmony export */ placements: () => (/* binding */ placements),
+/* harmony export */ popper: () => (/* binding */ popper),
+/* harmony export */ read: () => (/* binding */ read),
+/* harmony export */ reference: () => (/* binding */ reference),
+/* harmony export */ right: () => (/* binding */ right),
+/* harmony export */ start: () => (/* binding */ start),
+/* harmony export */ top: () => (/* binding */ top),
+/* harmony export */ variationPlacements: () => (/* binding */ variationPlacements),
+/* harmony export */ viewport: () => (/* binding */ viewport),
+/* harmony export */ write: () => (/* binding */ write)
+/* harmony export */ });
+var top = 'top';
+var bottom = 'bottom';
+var right = 'right';
+var left = 'left';
+var auto = 'auto';
+var basePlacements = [top, bottom, right, left];
+var start = 'start';
+var end = 'end';
+var clippingParents = 'clippingParents';
+var viewport = 'viewport';
+var popper = 'popper';
+var reference = 'reference';
+var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
+ return acc.concat([placement + "-" + start, placement + "-" + end]);
+}, []);
+var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
+ return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
+}, []); // modifiers that need to read the DOM
+
+var beforeRead = 'beforeRead';
+var read = 'read';
+var afterRead = 'afterRead'; // pure-logic modifiers
+
+var beforeMain = 'beforeMain';
+var main = 'main';
+var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
+
+var beforeWrite = 'beforeWrite';
+var write = 'write';
+var afterWrite = 'afterWrite';
+var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js":
+/*!******************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/modifiers/applyStyles.js ***!
+ \******************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
+/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
+
+ // This modifier takes the styles prepared by the `computeStyles` modifier
+// and applies them to the HTMLElements such as popper and arrow
+
+function applyStyles(_ref) {
+ var state = _ref.state;
+ Object.keys(state.elements).forEach(function (name) {
+ var style = state.styles[name] || {};
+ var attributes = state.attributes[name] || {};
+ var element = state.elements[name]; // arrow is optional + virtual elements
+
+ if (!(0,_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element) || !(0,_dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element)) {
+ return;
+ } // Flow doesn't support to extend this property, but it's the most
+ // effective way to apply styles to an HTMLElement
+ // $FlowFixMe[cannot-write]
+
+
+ Object.assign(element.style, style);
+ Object.keys(attributes).forEach(function (name) {
+ var value = attributes[name];
+
+ if (value === false) {
+ element.removeAttribute(name);
+ } else {
+ element.setAttribute(name, value === true ? '' : value);
+ }
+ });
+ });
+}
+
+function effect(_ref2) {
+ var state = _ref2.state;
+ var initialStyles = {
+ popper: {
+ position: state.options.strategy,
+ left: '0',
+ top: '0',
+ margin: '0'
+ },
+ arrow: {
+ position: 'absolute'
+ },
+ reference: {}
+ };
+ Object.assign(state.elements.popper.style, initialStyles.popper);
+ state.styles = initialStyles;
+
+ if (state.elements.arrow) {
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
+ }
+
+ return function () {
+ Object.keys(state.elements).forEach(function (name) {
+ var element = state.elements[name];
+ var attributes = state.attributes[name] || {};
+ var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
+
+ var style = styleProperties.reduce(function (style, property) {
+ style[property] = '';
+ return style;
+ }, {}); // arrow is optional + virtual elements
+
+ if (!(0,_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element) || !(0,_dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element)) {
+ return;
+ }
+
+ Object.assign(element.style, style);
+ Object.keys(attributes).forEach(function (attribute) {
+ element.removeAttribute(attribute);
+ });
+ });
+ };
+} // eslint-disable-next-line import/no-unused-modules
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ name: 'applyStyles',
+ enabled: true,
+ phase: 'write',
+ fn: applyStyles,
+ effect: effect,
+ requires: ['computeStyles']
+});
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/modifiers/arrow.js":
+/*!************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/modifiers/arrow.js ***!
+ \************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- /***/ "./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js":
- /*!********************************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js ***!
- \********************************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getOppositeVariationPlacement,
- /* harmony export */
- }
- );
- var hash = {
- start: "end",
- end: "start",
- };
- function getOppositeVariationPlacement(placement) {
- return placement.replace(/start|end/g, function (matched) {
- return hash[matched];
- });
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");
+/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js");
+/* harmony import */ var _dom_utils_contains_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../dom-utils/contains.js */ "./node_modules/@popperjs/core/lib/dom-utils/contains.js");
+/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js");
+/* harmony import */ var _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/getMainAxisFromPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js");
+/* harmony import */ var _utils_within_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/within.js */ "./node_modules/@popperjs/core/lib/utils/within.js");
+/* harmony import */ var _utils_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/mergePaddingObject.js */ "./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js");
+/* harmony import */ var _utils_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/expandToHashMap.js */ "./node_modules/@popperjs/core/lib/utils/expandToHashMap.js");
+/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/utils/getVariation.js":
- /*!***************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/getVariation.js ***!
- \***************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getVariation,
- /* harmony export */
- }
- );
- function getVariation(placement) {
- return placement.split("-")[1];
- }
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/utils/math.js":
- /*!*******************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/math.js ***!
- \*******************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ max: () => /* binding */ max,
- /* harmony export */ min: () => /* binding */ min,
- /* harmony export */ round: () => /* binding */ round,
- /* harmony export */
- }
- );
- var max = Math.max;
- var min = Math.min;
- var round = Math.round;
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/utils/mergeByName.js":
- /*!**************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/mergeByName.js ***!
- \**************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ mergeByName,
- /* harmony export */
- }
- );
- function mergeByName(modifiers) {
- var merged = modifiers.reduce(function (merged, current) {
- var existing = merged[current.name];
- merged[current.name] = existing
- ? Object.assign({}, existing, current, {
- options: Object.assign(
- {},
- existing.options,
- current.options
- ),
- data: Object.assign(
- {},
- existing.data,
- current.data
- ),
- })
- : current;
- return merged;
- }, {}); // IE11 does not support Object.values
-
- return Object.keys(merged).map(function (key) {
- return merged[key];
- });
- }
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js ***!
- \*********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ mergePaddingObject,
- /* harmony export */
- }
- );
- /* harmony import */ var _getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./getFreshSideObject.js */ "./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"
- );
-
- function mergePaddingObject(paddingObject) {
- return Object.assign(
- {},
- (0,
- _getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_0__[
- "default"
- ])(),
- paddingObject
- );
- }
+ // eslint-disable-next-line import/no-unused-modules
- /***/
- },
+var toPaddingObject = function toPaddingObject(padding, state) {
+ padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
+ placement: state.placement
+ })) : padding;
+ return (0,_utils_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_0__["default"])(typeof padding !== 'number' ? padding : (0,_utils_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_1__["default"])(padding, _enums_js__WEBPACK_IMPORTED_MODULE_2__.basePlacements));
+};
- /***/ "./node_modules/@popperjs/core/lib/utils/orderModifiers.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/orderModifiers.js ***!
- \*****************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ orderModifiers,
- /* harmony export */
- }
- );
- /* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"
- );
- // source: https://stackoverflow.com/questions/49875255
-
- function order(modifiers) {
- var map = new Map();
- var visited = new Set();
- var result = [];
- modifiers.forEach(function (modifier) {
- map.set(modifier.name, modifier);
- }); // On visiting object, check for its dependencies and visit them recursively
-
- function sort(modifier) {
- visited.add(modifier.name);
- var requires = [].concat(
- modifier.requires || [],
- modifier.requiresIfExists || []
- );
- requires.forEach(function (dep) {
- if (!visited.has(dep)) {
- var depModifier = map.get(dep);
-
- if (depModifier) {
- sort(depModifier);
- }
- }
- });
- result.push(modifier);
- }
+function arrow(_ref) {
+ var _state$modifiersData$;
- modifiers.forEach(function (modifier) {
- if (!visited.has(modifier.name)) {
- // check for visited object
- sort(modifier);
- }
- });
- return result;
- }
+ var state = _ref.state,
+ name = _ref.name,
+ options = _ref.options;
+ var arrowElement = state.elements.arrow;
+ var popperOffsets = state.modifiersData.popperOffsets;
+ var basePlacement = (0,_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_3__["default"])(state.placement);
+ var axis = (0,_utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_4__["default"])(basePlacement);
+ var isVertical = [_enums_js__WEBPACK_IMPORTED_MODULE_2__.left, _enums_js__WEBPACK_IMPORTED_MODULE_2__.right].indexOf(basePlacement) >= 0;
+ var len = isVertical ? 'height' : 'width';
- function orderModifiers(modifiers) {
- // order based on dependencies
- var orderedModifiers = order(modifiers); // order based on phase
-
- return _enums_js__WEBPACK_IMPORTED_MODULE_0__.modifierPhases.reduce(
- function (acc, phase) {
- return acc.concat(
- orderedModifiers.filter(function (modifier) {
- return modifier.phase === phase;
- })
- );
- },
- []
- );
- }
+ if (!arrowElement || !popperOffsets) {
+ return;
+ }
- /***/
- },
+ var paddingObject = toPaddingObject(options.padding, state);
+ var arrowRect = (0,_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_5__["default"])(arrowElement);
+ var minProp = axis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_2__.top : _enums_js__WEBPACK_IMPORTED_MODULE_2__.left;
+ var maxProp = axis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_2__.bottom : _enums_js__WEBPACK_IMPORTED_MODULE_2__.right;
+ var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
+ var startDiff = popperOffsets[axis] - state.rects.reference[axis];
+ var arrowOffsetParent = (0,_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_6__["default"])(arrowElement);
+ var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
+ var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
+ // outside of the popper bounds
- /***/ "./node_modules/@popperjs/core/lib/utils/rectToClientRect.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/rectToClientRect.js ***!
- \*******************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ rectToClientRect,
- /* harmony export */
- }
- );
- function rectToClientRect(rect) {
- return Object.assign({}, rect, {
- left: rect.x,
- top: rect.y,
- right: rect.x + rect.width,
- bottom: rect.y + rect.height,
- });
- }
+ var min = paddingObject[minProp];
+ var max = clientSize - arrowRect[len] - paddingObject[maxProp];
+ var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
+ var offset = (0,_utils_within_js__WEBPACK_IMPORTED_MODULE_7__.within)(min, center, max); // Prevents breaking syntax highlighting...
- /***/
- },
+ var axisProp = axis;
+ state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
+}
- /***/ "./node_modules/@popperjs/core/lib/utils/userAgent.js":
- /*!************************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/userAgent.js ***!
- \************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ default: () =>
- /* binding */ getUAString,
- /* harmony export */
- }
- );
- function getUAString() {
- var uaData = navigator.userAgentData;
-
- if (
- uaData != null &&
- uaData.brands &&
- Array.isArray(uaData.brands)
- ) {
- return uaData.brands
- .map(function (item) {
- return item.brand + "/" + item.version;
- })
- .join(" ");
- }
+function effect(_ref2) {
+ var state = _ref2.state,
+ options = _ref2.options;
+ var _options$element = options.element,
+ arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
- return navigator.userAgent;
- }
+ if (arrowElement == null) {
+ return;
+ } // CSS selector
- /***/
- },
- /***/ "./node_modules/@popperjs/core/lib/utils/within.js":
- /*!*********************************************************!*\
- !*** ./node_modules/@popperjs/core/lib/utils/within.js ***!
- \*********************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ within: () => /* binding */ within,
- /* harmony export */ withinMaxClamp: () =>
- /* binding */ withinMaxClamp,
- /* harmony export */
- }
- );
- /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! ./math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"
- );
-
- function within(min, value, max) {
- return (0, _math_js__WEBPACK_IMPORTED_MODULE_0__.max)(
- min,
- (0, _math_js__WEBPACK_IMPORTED_MODULE_0__.min)(
- value,
- max
- )
- );
- }
- function withinMaxClamp(min, value, max) {
- var v = within(min, value, max);
- return v > max ? max : v;
- }
+ if (typeof arrowElement === 'string') {
+ arrowElement = state.elements.popper.querySelector(arrowElement);
- /***/
- },
+ if (!arrowElement) {
+ return;
+ }
+ }
- /***/ "./node_modules/@stripe/stripe-js/dist/stripe.esm.js":
- /*!***********************************************************!*\
- !*** ./node_modules/@stripe/stripe-js/dist/stripe.esm.js ***!
+ if (!(0,_dom_utils_contains_js__WEBPACK_IMPORTED_MODULE_8__["default"])(state.elements.popper, arrowElement)) {
+ return;
+ }
+
+ state.elements.arrow = arrowElement;
+} // eslint-disable-next-line import/no-unused-modules
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ name: 'arrow',
+ enabled: true,
+ phase: 'main',
+ fn: arrow,
+ effect: effect,
+ requires: ['popperOffsets'],
+ requiresIfExists: ['preventOverflow']
+});
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js":
+/*!********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js ***!
+ \********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
+/* harmony export */ mapToStyles: () => (/* binding */ mapToStyles)
+/* harmony export */ });
+/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
+/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js");
+/* harmony import */ var _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-utils/getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
+/* harmony import */ var _dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dom-utils/getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
+/* harmony import */ var _dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../dom-utils/getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
+/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");
+/* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js");
+/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js");
+
+
+
+
+
+
+
+ // eslint-disable-next-line import/no-unused-modules
+
+var unsetSides = {
+ top: 'auto',
+ right: 'auto',
+ bottom: 'auto',
+ left: 'auto'
+}; // Round the offsets to the nearest suitable subpixel based on the DPR.
+// Zooming can change the DPR, but it seems to report a value that will
+// cleanly divide the values into the appropriate subpixels.
+
+function roundOffsetsByDPR(_ref, win) {
+ var x = _ref.x,
+ y = _ref.y;
+ var dpr = win.devicePixelRatio || 1;
+ return {
+ x: (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_0__.round)(x * dpr) / dpr || 0,
+ y: (0,_utils_math_js__WEBPACK_IMPORTED_MODULE_0__.round)(y * dpr) / dpr || 0
+ };
+}
+
+function mapToStyles(_ref2) {
+ var _Object$assign2;
+
+ var popper = _ref2.popper,
+ popperRect = _ref2.popperRect,
+ placement = _ref2.placement,
+ variation = _ref2.variation,
+ offsets = _ref2.offsets,
+ position = _ref2.position,
+ gpuAcceleration = _ref2.gpuAcceleration,
+ adaptive = _ref2.adaptive,
+ roundOffsets = _ref2.roundOffsets,
+ isFixed = _ref2.isFixed;
+ var _offsets$x = offsets.x,
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
+ _offsets$y = offsets.y,
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
+
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
+ x: x,
+ y: y
+ }) : {
+ x: x,
+ y: y
+ };
+
+ x = _ref3.x;
+ y = _ref3.y;
+ var hasX = offsets.hasOwnProperty('x');
+ var hasY = offsets.hasOwnProperty('y');
+ var sideX = _enums_js__WEBPACK_IMPORTED_MODULE_1__.left;
+ var sideY = _enums_js__WEBPACK_IMPORTED_MODULE_1__.top;
+ var win = window;
+
+ if (adaptive) {
+ var offsetParent = (0,_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_2__["default"])(popper);
+ var heightProp = 'clientHeight';
+ var widthProp = 'clientWidth';
+
+ if (offsetParent === (0,_dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_3__["default"])(popper)) {
+ offsetParent = (0,_dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_4__["default"])(popper);
+
+ if ((0,_dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_5__["default"])(offsetParent).position !== 'static' && position === 'absolute') {
+ heightProp = 'scrollHeight';
+ widthProp = 'scrollWidth';
+ }
+ } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
+
+
+ offsetParent = offsetParent;
+
+ if (placement === _enums_js__WEBPACK_IMPORTED_MODULE_1__.top || (placement === _enums_js__WEBPACK_IMPORTED_MODULE_1__.left || placement === _enums_js__WEBPACK_IMPORTED_MODULE_1__.right) && variation === _enums_js__WEBPACK_IMPORTED_MODULE_1__.end) {
+ sideY = _enums_js__WEBPACK_IMPORTED_MODULE_1__.bottom;
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
+ offsetParent[heightProp];
+ y -= offsetY - popperRect.height;
+ y *= gpuAcceleration ? 1 : -1;
+ }
+
+ if (placement === _enums_js__WEBPACK_IMPORTED_MODULE_1__.left || (placement === _enums_js__WEBPACK_IMPORTED_MODULE_1__.top || placement === _enums_js__WEBPACK_IMPORTED_MODULE_1__.bottom) && variation === _enums_js__WEBPACK_IMPORTED_MODULE_1__.end) {
+ sideX = _enums_js__WEBPACK_IMPORTED_MODULE_1__.right;
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
+ offsetParent[widthProp];
+ x -= offsetX - popperRect.width;
+ x *= gpuAcceleration ? 1 : -1;
+ }
+ }
+
+ var commonStyles = Object.assign({
+ position: position
+ }, adaptive && unsetSides);
+
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
+ x: x,
+ y: y
+ }, (0,_dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_3__["default"])(popper)) : {
+ x: x,
+ y: y
+ };
+
+ x = _ref4.x;
+ y = _ref4.y;
+
+ if (gpuAcceleration) {
+ var _Object$assign;
+
+ 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));
+ }
+
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
+}
+
+function computeStyles(_ref5) {
+ var state = _ref5.state,
+ options = _ref5.options;
+ var _options$gpuAccelerat = options.gpuAcceleration,
+ gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
+ _options$adaptive = options.adaptive,
+ adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
+ _options$roundOffsets = options.roundOffsets,
+ roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
+ var commonStyles = {
+ placement: (0,_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_6__["default"])(state.placement),
+ variation: (0,_utils_getVariation_js__WEBPACK_IMPORTED_MODULE_7__["default"])(state.placement),
+ popper: state.elements.popper,
+ popperRect: state.rects.popper,
+ gpuAcceleration: gpuAcceleration,
+ isFixed: state.options.strategy === 'fixed'
+ };
+
+ if (state.modifiersData.popperOffsets != null) {
+ state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
+ offsets: state.modifiersData.popperOffsets,
+ position: state.options.strategy,
+ adaptive: adaptive,
+ roundOffsets: roundOffsets
+ })));
+ }
+
+ if (state.modifiersData.arrow != null) {
+ state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
+ offsets: state.modifiersData.arrow,
+ position: 'absolute',
+ adaptive: false,
+ roundOffsets: roundOffsets
+ })));
+ }
+
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
+ 'data-popper-placement': state.placement
+ });
+} // eslint-disable-next-line import/no-unused-modules
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ name: 'computeStyles',
+ enabled: true,
+ phase: 'beforeWrite',
+ fn: computeStyles,
+ data: {}
+});
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js":
+/*!*********************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/modifiers/eventListeners.js ***!
+ \*********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
+ // eslint-disable-next-line import/no-unused-modules
+
+var passive = {
+ passive: true
+};
+
+function effect(_ref) {
+ var state = _ref.state,
+ instance = _ref.instance,
+ options = _ref.options;
+ var _options$scroll = options.scroll,
+ scroll = _options$scroll === void 0 ? true : _options$scroll,
+ _options$resize = options.resize,
+ resize = _options$resize === void 0 ? true : _options$resize;
+ var window = (0,_dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(state.elements.popper);
+ var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
+
+ if (scroll) {
+ scrollParents.forEach(function (scrollParent) {
+ scrollParent.addEventListener('scroll', instance.update, passive);
+ });
+ }
+
+ if (resize) {
+ window.addEventListener('resize', instance.update, passive);
+ }
+
+ return function () {
+ if (scroll) {
+ scrollParents.forEach(function (scrollParent) {
+ scrollParent.removeEventListener('scroll', instance.update, passive);
+ });
+ }
+
+ if (resize) {
+ window.removeEventListener('resize', instance.update, passive);
+ }
+ };
+} // eslint-disable-next-line import/no-unused-modules
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ name: 'eventListeners',
+ enabled: true,
+ phase: 'write',
+ fn: function fn() {},
+ effect: effect,
+ data: {}
+});
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/modifiers/flip.js":
+/*!***********************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/modifiers/flip.js ***!
\***********************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ loadStripe: () =>
- /* binding */ loadStripe,
- /* harmony export */
- }
- );
- var V3_URL = "https://js.stripe.com/v3";
- var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
- var EXISTING_SCRIPT_MESSAGE =
- "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";
- var findScript = function findScript() {
- var scripts = document.querySelectorAll(
- 'script[src^="'.concat(V3_URL, '"]')
- );
-
- for (var i = 0; i < scripts.length; i++) {
- var script = scripts[i];
-
- if (!V3_URL_REGEX.test(script.src)) {
- continue;
- }
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/getOppositePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js");
+/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");
+/* harmony import */ var _utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/getOppositeVariationPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js");
+/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js");
+/* harmony import */ var _utils_computeAutoPlacement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/computeAutoPlacement.js */ "./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js");
+/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
+/* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js");
+
+
+
+
+
+
+ // eslint-disable-next-line import/no-unused-modules
+
+function getExpandedFallbackPlacements(placement) {
+ if ((0,_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_1__.auto) {
+ return [];
+ }
+
+ var oppositePlacement = (0,_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(placement);
+ return [(0,_utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_3__["default"])(placement), oppositePlacement, (0,_utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_3__["default"])(oppositePlacement)];
+}
+
+function flip(_ref) {
+ var state = _ref.state,
+ options = _ref.options,
+ name = _ref.name;
+
+ if (state.modifiersData[name]._skip) {
+ return;
+ }
+
+ var _options$mainAxis = options.mainAxis,
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
+ _options$altAxis = options.altAxis,
+ checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
+ specifiedFallbackPlacements = options.fallbackPlacements,
+ padding = options.padding,
+ boundary = options.boundary,
+ rootBoundary = options.rootBoundary,
+ altBoundary = options.altBoundary,
+ _options$flipVariatio = options.flipVariations,
+ flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
+ allowedAutoPlacements = options.allowedAutoPlacements;
+ var preferredPlacement = state.options.placement;
+ var basePlacement = (0,_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(preferredPlacement);
+ var isBasePlacement = basePlacement === preferredPlacement;
+ var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [(0,_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
+ var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
+ return acc.concat((0,_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_1__.auto ? (0,_utils_computeAutoPlacement_js__WEBPACK_IMPORTED_MODULE_4__["default"])(state, {
+ placement: placement,
+ boundary: boundary,
+ rootBoundary: rootBoundary,
+ padding: padding,
+ flipVariations: flipVariations,
+ allowedAutoPlacements: allowedAutoPlacements
+ }) : placement);
+ }, []);
+ var referenceRect = state.rects.reference;
+ var popperRect = state.rects.popper;
+ var checksMap = new Map();
+ var makeFallbackChecks = true;
+ var firstFittingPlacement = placements[0];
+
+ for (var i = 0; i < placements.length; i++) {
+ var placement = placements[i];
+
+ var _basePlacement = (0,_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement);
+
+ var isStartVariation = (0,_utils_getVariation_js__WEBPACK_IMPORTED_MODULE_5__["default"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_1__.start;
+ var isVertical = [_enums_js__WEBPACK_IMPORTED_MODULE_1__.top, _enums_js__WEBPACK_IMPORTED_MODULE_1__.bottom].indexOf(_basePlacement) >= 0;
+ var len = isVertical ? 'width' : 'height';
+ var overflow = (0,_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_6__["default"])(state, {
+ placement: placement,
+ boundary: boundary,
+ rootBoundary: rootBoundary,
+ altBoundary: altBoundary,
+ padding: padding
+ });
+ var mainVariationSide = isVertical ? isStartVariation ? _enums_js__WEBPACK_IMPORTED_MODULE_1__.right : _enums_js__WEBPACK_IMPORTED_MODULE_1__.left : isStartVariation ? _enums_js__WEBPACK_IMPORTED_MODULE_1__.bottom : _enums_js__WEBPACK_IMPORTED_MODULE_1__.top;
+
+ if (referenceRect[len] > popperRect[len]) {
+ mainVariationSide = (0,_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(mainVariationSide);
+ }
- return script;
- }
+ var altVariationSide = (0,_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(mainVariationSide);
+ var checks = [];
- return null;
- };
+ if (checkMainAxis) {
+ checks.push(overflow[_basePlacement] <= 0);
+ }
- var injectScript = function injectScript(params) {
- var queryString =
- params && !params.advancedFraudSignals
- ? "?advancedFraudSignals=false"
- : "";
- var script = document.createElement("script");
- script.src = "".concat(V3_URL).concat(queryString);
- var headOrBody = document.head || document.body;
-
- if (!headOrBody) {
- throw new Error(
- "Expected document.body not to be null. Stripe.js requires a element."
- );
- }
+ if (checkAltAxis) {
+ checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
+ }
- headOrBody.appendChild(script);
- return script;
- };
+ if (checks.every(function (check) {
+ return check;
+ })) {
+ firstFittingPlacement = placement;
+ makeFallbackChecks = false;
+ break;
+ }
- var registerWrapper = function registerWrapper(
- stripe,
- startTime
- ) {
- if (!stripe || !stripe._registerWrapper) {
- return;
- }
+ checksMap.set(placement, checks);
+ }
- stripe._registerWrapper({
- name: "stripe-js",
- version: "1.53.0",
- startTime: startTime,
- });
- };
+ if (makeFallbackChecks) {
+ // `2` may be desired in some cases – research later
+ var numberOfChecks = flipVariations ? 3 : 1;
- var stripePromise = null;
- var loadScript = function loadScript(params) {
- // Ensure that we only attempt to load Stripe.js at most once
- if (stripePromise !== null) {
- return stripePromise;
- }
+ var _loop = function _loop(_i) {
+ var fittingPlacement = placements.find(function (placement) {
+ var checks = checksMap.get(placement);
- stripePromise = new Promise(function (resolve, reject) {
- if (
- typeof window === "undefined" ||
- typeof document === "undefined"
- ) {
- // Resolve to null when imported server side. This makes the module
- // safe to import in an isomorphic code base.
- resolve(null);
- return;
- }
+ if (checks) {
+ return checks.slice(0, _i).every(function (check) {
+ return check;
+ });
+ }
+ });
- if (window.Stripe && params) {
- console.warn(EXISTING_SCRIPT_MESSAGE);
- }
+ if (fittingPlacement) {
+ firstFittingPlacement = fittingPlacement;
+ return "break";
+ }
+ };
- if (window.Stripe) {
- resolve(window.Stripe);
- return;
- }
+ for (var _i = numberOfChecks; _i > 0; _i--) {
+ var _ret = _loop(_i);
- try {
- var script = findScript();
+ if (_ret === "break") break;
+ }
+ }
+
+ if (state.placement !== firstFittingPlacement) {
+ state.modifiersData[name]._skip = true;
+ state.placement = firstFittingPlacement;
+ state.reset = true;
+ }
+} // eslint-disable-next-line import/no-unused-modules
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ name: 'flip',
+ enabled: true,
+ phase: 'main',
+ fn: flip,
+ requiresIfExists: ['offset'],
+ data: {
+ _skip: false
+ }
+});
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/modifiers/hide.js":
+/*!***********************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/modifiers/hide.js ***!
+ \***********************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- if (script && params) {
- console.warn(EXISTING_SCRIPT_MESSAGE);
- } else if (!script) {
- script = injectScript(params);
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
+/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js");
- script.addEventListener("load", function () {
- if (window.Stripe) {
- resolve(window.Stripe);
- } else {
- reject(
- new Error("Stripe.js not available")
- );
- }
- });
- script.addEventListener("error", function () {
- reject(new Error("Failed to load Stripe.js"));
- });
- } catch (error) {
- reject(error);
- return;
- }
- });
- return stripePromise;
- };
- var initStripe = function initStripe(
- maybeStripe,
- args,
- startTime
- ) {
- if (maybeStripe === null) {
- return null;
- }
- var stripe = maybeStripe.apply(undefined, args);
- registerWrapper(stripe, startTime);
- return stripe;
- }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
- // own script injection.
+function getSideOffsets(overflow, rect, preventedOffsets) {
+ if (preventedOffsets === void 0) {
+ preventedOffsets = {
+ x: 0,
+ y: 0
+ };
+ }
+
+ return {
+ top: overflow.top - rect.height - preventedOffsets.y,
+ right: overflow.right - rect.width + preventedOffsets.x,
+ bottom: overflow.bottom - rect.height + preventedOffsets.y,
+ left: overflow.left - rect.width - preventedOffsets.x
+ };
+}
+
+function isAnySideFullyClipped(overflow) {
+ return [_enums_js__WEBPACK_IMPORTED_MODULE_0__.top, _enums_js__WEBPACK_IMPORTED_MODULE_0__.right, _enums_js__WEBPACK_IMPORTED_MODULE_0__.bottom, _enums_js__WEBPACK_IMPORTED_MODULE_0__.left].some(function (side) {
+ return overflow[side] >= 0;
+ });
+}
+
+function hide(_ref) {
+ var state = _ref.state,
+ name = _ref.name;
+ var referenceRect = state.rects.reference;
+ var popperRect = state.rects.popper;
+ var preventedOffsets = state.modifiersData.preventOverflow;
+ var referenceOverflow = (0,_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(state, {
+ elementContext: 'reference'
+ });
+ var popperAltOverflow = (0,_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(state, {
+ altBoundary: true
+ });
+ var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
+ var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
+ var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
+ var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
+ state.modifiersData[name] = {
+ referenceClippingOffsets: referenceClippingOffsets,
+ popperEscapeOffsets: popperEscapeOffsets,
+ isReferenceHidden: isReferenceHidden,
+ hasPopperEscaped: hasPopperEscaped
+ };
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
+ 'data-popper-reference-hidden': isReferenceHidden,
+ 'data-popper-escaped': hasPopperEscaped
+ });
+} // eslint-disable-next-line import/no-unused-modules
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ name: 'hide',
+ enabled: true,
+ phase: 'main',
+ requiresIfExists: ['preventOverflow'],
+ fn: hide
+});
+
+/***/ }),
+
+/***/ "./node_modules/@popperjs/core/lib/modifiers/index.js":
+/*!************************************************************!*\
+ !*** ./node_modules/@popperjs/core/lib/modifiers/index.js ***!
+ \************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
- var stripePromise$1 = Promise.resolve().then(function () {
- return loadScript(null);
- });
- var loadCalled = false;
- stripePromise$1["catch"](function (err) {
- if (!loadCalled) {
- console.warn(err);
- }
- });
- var loadStripe = function loadStripe() {
- for (
- var _len = arguments.length,
- args = new Array(_len),
- _key = 0;
- _key < _len;
- _key++
- ) {
- args[_key] = arguments[_key];
- }
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ applyStyles: () => (/* reexport safe */ _applyStyles_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
+/* harmony export */ arrow: () => (/* reexport safe */ _arrow_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
+/* harmony export */ computeStyles: () => (/* reexport safe */ _computeStyles_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
+/* harmony export */ eventListeners: () => (/* reexport safe */ _eventListeners_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
+/* harmony export */ flip: () => (/* reexport safe */ _flip_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
+/* harmony export */ hide: () => (/* reexport safe */ _hide_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
+/* harmony export */ offset: () => (/* reexport safe */ _offset_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
+/* harmony export */ popperOffsets: () => (/* reexport safe */ _popperOffsets_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
+/* harmony export */ preventOverflow: () => (/* reexport safe */ _preventOverflow_js__WEBPACK_IMPORTED_MODULE_8__["default"])
+/* harmony export */ });
+/* harmony import */ var _applyStyles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./applyStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js");
+/* harmony import */ var _arrow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./arrow.js */ "./node_modules/@popperjs/core/lib/modifiers/arrow.js");
+/* harmony import */ var _computeStyles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./computeStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js");
+/* harmony import */ var _eventListeners_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./eventListeners.js */ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js");
+/* harmony import */ var _flip_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./flip.js */ "./node_modules/@popperjs/core/lib/modifiers/flip.js");
+/* harmony import */ var _hide_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hide.js */ "./node_modules/@popperjs/core/lib/modifiers/hide.js");
+/* harmony import */ var _offset_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./offset.js */ "./node_modules/@popperjs/core/lib/modifiers/offset.js");
+/* harmony import */ var _popperOffsets_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./popperOffsets.js */ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js");
+/* harmony import */ var _preventOverflow_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./preventOverflow.js */ "./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js");
- loadCalled = true;
- var startTime = Date.now();
- return stripePromise$1.then(function (maybeStripe) {
- return initStripe(maybeStripe, args, startTime);
- });
- };
- /***/
- },
- /***/ "./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js":
- /*!***************************************************************************!*\
- !*** ./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js ***!
- \***************************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ BASE_TRANSITION: () =>
- /* binding */ BASE_TRANSITION,
- /* harmony export */ CAMELIZE: () =>
- /* binding */ CAMELIZE,
- /* harmony export */ CAPITALIZE: () =>
- /* binding */ CAPITALIZE,
- /* harmony export */ CREATE_BLOCK: () =>
- /* binding */ CREATE_BLOCK,
- /* harmony export */ CREATE_COMMENT: () =>
- /* binding */ CREATE_COMMENT,
- /* harmony export */ CREATE_ELEMENT_BLOCK: () =>
- /* binding */ CREATE_ELEMENT_BLOCK,
- /* harmony export */ CREATE_ELEMENT_VNODE: () =>
- /* binding */ CREATE_ELEMENT_VNODE,
- /* harmony export */ CREATE_SLOTS: () =>
- /* binding */ CREATE_SLOTS,
- /* harmony export */ CREATE_STATIC: () =>
- /* binding */ CREATE_STATIC,
- /* harmony export */ CREATE_TEXT: () =>
- /* binding */ CREATE_TEXT,
- /* harmony export */ CREATE_VNODE: () =>
- /* binding */ CREATE_VNODE,
- /* harmony export */ FRAGMENT: () =>
- /* binding */ FRAGMENT,
- /* harmony export */ GUARD_REACTIVE_PROPS: () =>
- /* binding */ GUARD_REACTIVE_PROPS,
- /* harmony export */ IS_MEMO_SAME: () =>
- /* binding */ IS_MEMO_SAME,
- /* harmony export */ IS_REF: () => /* binding */ IS_REF,
- /* harmony export */ KEEP_ALIVE: () =>
- /* binding */ KEEP_ALIVE,
- /* harmony export */ MERGE_PROPS: () =>
- /* binding */ MERGE_PROPS,
- /* harmony export */ NORMALIZE_CLASS: () =>
- /* binding */ NORMALIZE_CLASS,
- /* harmony export */ NORMALIZE_PROPS: () =>
- /* binding */ NORMALIZE_PROPS,
- /* harmony export */ NORMALIZE_STYLE: () =>
- /* binding */ NORMALIZE_STYLE,
- /* harmony export */ OPEN_BLOCK: () =>
- /* binding */ OPEN_BLOCK,
- /* harmony export */ POP_SCOPE_ID: () =>
- /* binding */ POP_SCOPE_ID,
- /* harmony export */ PUSH_SCOPE_ID: () =>
- /* binding */ PUSH_SCOPE_ID,
- /* harmony export */ RENDER_LIST: () =>
- /* binding */ RENDER_LIST,
- /* harmony export */ RENDER_SLOT: () =>
- /* binding */ RENDER_SLOT,
- /* harmony export */ RESOLVE_COMPONENT: () =>
- /* binding */ RESOLVE_COMPONENT,
- /* harmony export */ RESOLVE_DIRECTIVE: () =>
- /* binding */ RESOLVE_DIRECTIVE,
- /* harmony export */ RESOLVE_DYNAMIC_COMPONENT: () =>
- /* binding */ RESOLVE_DYNAMIC_COMPONENT,
- /* harmony export */ RESOLVE_FILTER: () =>
- /* binding */ RESOLVE_FILTER,
- /* harmony export */ SET_BLOCK_TRACKING: () =>
- /* binding */ SET_BLOCK_TRACKING,
- /* harmony export */ SUSPENSE: () =>
- /* binding */ SUSPENSE,
- /* harmony export */ TELEPORT: () =>
- /* binding */ TELEPORT,
- /* harmony export */ TO_DISPLAY_STRING: () =>
- /* binding */ TO_DISPLAY_STRING,
- /* harmony export */ TO_HANDLERS: () =>
- /* binding */ TO_HANDLERS,
- /* harmony export */ TO_HANDLER_KEY: () =>
- /* binding */ TO_HANDLER_KEY,
- /* harmony export */ TS_NODE_TYPES: () =>
- /* binding */ TS_NODE_TYPES,
- /* harmony export */ UNREF: () => /* binding */ UNREF,
- /* harmony export */ WITH_CTX: () =>
- /* binding */ WITH_CTX,
- /* harmony export */ WITH_DIRECTIVES: () =>
- /* binding */ WITH_DIRECTIVES,
- /* harmony export */ WITH_MEMO: () =>
- /* binding */ WITH_MEMO,
- /* harmony export */ advancePositionWithClone: () =>
- /* binding */ advancePositionWithClone,
- /* harmony export */ advancePositionWithMutation: () =>
- /* binding */ advancePositionWithMutation,
- /* harmony export */ assert: () => /* binding */ assert,
- /* harmony export */ baseCompile: () =>
- /* binding */ baseCompile,
- /* harmony export */ baseParse: () =>
- /* binding */ baseParse,
- /* harmony export */ buildDirectiveArgs: () =>
- /* binding */ buildDirectiveArgs,
- /* harmony export */ buildProps: () =>
- /* binding */ buildProps,
- /* harmony export */ buildSlots: () =>
- /* binding */ buildSlots,
- /* harmony export */ checkCompatEnabled: () =>
- /* binding */ checkCompatEnabled,
- /* harmony export */ convertToBlock: () =>
- /* binding */ convertToBlock,
- /* harmony export */ createArrayExpression: () =>
- /* binding */ createArrayExpression,
- /* harmony export */ createAssignmentExpression: () =>
- /* binding */ createAssignmentExpression,
- /* harmony export */ createBlockStatement: () =>
- /* binding */ createBlockStatement,
- /* harmony export */ createCacheExpression: () =>
- /* binding */ createCacheExpression,
- /* harmony export */ createCallExpression: () =>
- /* binding */ createCallExpression,
- /* harmony export */ createCompilerError: () =>
- /* binding */ createCompilerError,
- /* harmony export */ createCompoundExpression: () =>
- /* binding */ createCompoundExpression,
- /* harmony export */ createConditionalExpression: () =>
- /* binding */ createConditionalExpression,
- /* harmony export */ createForLoopParams: () =>
- /* binding */ createForLoopParams,
- /* harmony export */ createFunctionExpression: () =>
- /* binding */ createFunctionExpression,
- /* harmony export */ createIfStatement: () =>
- /* binding */ createIfStatement,
- /* harmony export */ createInterpolation: () =>
- /* binding */ createInterpolation,
- /* harmony export */ createObjectExpression: () =>
- /* binding */ createObjectExpression,
- /* harmony export */ createObjectProperty: () =>
- /* binding */ createObjectProperty,
- /* harmony export */ createReturnStatement: () =>
- /* binding */ createReturnStatement,
- /* harmony export */ createRoot: () =>
- /* binding */ createRoot,
- /* harmony export */ createSequenceExpression: () =>
- /* binding */ createSequenceExpression,
- /* harmony export */ createSimpleExpression: () =>
- /* binding */ createSimpleExpression,
- /* harmony export */ createStructuralDirectiveTransform:
- () =>
- /* binding */ createStructuralDirectiveTransform,
- /* harmony export */ createTemplateLiteral: () =>
- /* binding */ createTemplateLiteral,
- /* harmony export */ createTransformContext: () =>
- /* binding */ createTransformContext,
- /* harmony export */ createVNodeCall: () =>
- /* binding */ createVNodeCall,
- /* harmony export */ extractIdentifiers: () =>
- /* binding */ extractIdentifiers,
- /* harmony export */ findDir: () =>
- /* binding */ findDir,
- /* harmony export */ findProp: () =>
- /* binding */ findProp,
- /* harmony export */ generate: () =>
- /* binding */ generate,
- /* harmony export */ generateCodeFrame: () =>
- /* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_0__.generateCodeFrame,
- /* harmony export */ getBaseTransformPreset: () =>
- /* binding */ getBaseTransformPreset,
- /* harmony export */ getConstantType: () =>
- /* binding */ getConstantType,
- /* harmony export */ getInnerRange: () =>
- /* binding */ getInnerRange,
- /* harmony export */ getMemoedVNodeCall: () =>
- /* binding */ getMemoedVNodeCall,
- /* harmony export */ getVNodeBlockHelper: () =>
- /* binding */ getVNodeBlockHelper,
- /* harmony export */ getVNodeHelper: () =>
- /* binding */ getVNodeHelper,
- /* harmony export */ hasDynamicKeyVBind: () =>
- /* binding */ hasDynamicKeyVBind,
- /* harmony export */ hasScopeRef: () =>
- /* binding */ hasScopeRef,
- /* harmony export */ helperNameMap: () =>
- /* binding */ helperNameMap,
- /* harmony export */ injectProp: () =>
- /* binding */ injectProp,
- /* harmony export */ isBuiltInType: () =>
- /* binding */ isBuiltInType,
- /* harmony export */ isCoreComponent: () =>
- /* binding */ isCoreComponent,
- /* harmony export */ isFunctionType: () =>
- /* binding */ isFunctionType,
- /* harmony export */ isInDestructureAssignment: () =>
- /* binding */ isInDestructureAssignment,
- /* harmony export */ isMemberExpression: () =>
- /* binding */ isMemberExpression,
- /* harmony export */ isMemberExpressionBrowser: () =>
- /* binding */ isMemberExpressionBrowser,
- /* harmony export */ isMemberExpressionNode: () =>
- /* binding */ isMemberExpressionNode,
- /* harmony export */ isReferencedIdentifier: () =>
- /* binding */ isReferencedIdentifier,
- /* harmony export */ isSimpleIdentifier: () =>
- /* binding */ isSimpleIdentifier,
- /* harmony export */ isSlotOutlet: () =>
- /* binding */ isSlotOutlet,
- /* harmony export */ isStaticArgOf: () =>
- /* binding */ isStaticArgOf,
- /* harmony export */ isStaticExp: () =>
- /* binding */ isStaticExp,
- /* harmony export */ isStaticProperty: () =>
- /* binding */ isStaticProperty,
- /* harmony export */ isStaticPropertyKey: () =>
- /* binding */ isStaticPropertyKey,
- /* harmony export */ isTemplateNode: () =>
- /* binding */ isTemplateNode,
- /* harmony export */ isText: () =>
- /* binding */ isText$1,
- /* harmony export */ isVSlot: () =>
- /* binding */ isVSlot,
- /* harmony export */ locStub: () =>
- /* binding */ locStub,
- /* harmony export */ noopDirectiveTransform: () =>
- /* binding */ noopDirectiveTransform,
- /* harmony export */ processExpression: () =>
- /* binding */ processExpression,
- /* harmony export */ processFor: () =>
- /* binding */ processFor,
- /* harmony export */ processIf: () =>
- /* binding */ processIf,
- /* harmony export */ processSlotOutlet: () =>
- /* binding */ processSlotOutlet,
- /* harmony export */ registerRuntimeHelpers: () =>
- /* binding */ registerRuntimeHelpers,
- /* harmony export */ resolveComponentType: () =>
- /* binding */ resolveComponentType,
- /* harmony export */ stringifyExpression: () =>
- /* binding */ stringifyExpression,
- /* harmony export */ toValidAssetId: () =>
- /* binding */ toValidAssetId,
- /* harmony export */ trackSlotScopes: () =>
- /* binding */ trackSlotScopes,
- /* harmony export */ trackVForSlotScopes: () =>
- /* binding */ trackVForSlotScopes,
- /* harmony export */ transform: () =>
- /* binding */ transform,
- /* harmony export */ transformBind: () =>
- /* binding */ transformBind,
- /* harmony export */ transformElement: () =>
- /* binding */ transformElement,
- /* harmony export */ transformExpression: () =>
- /* binding */ transformExpression,
- /* harmony export */ transformModel: () =>
- /* binding */ transformModel,
- /* harmony export */ transformOn: () =>
- /* binding */ transformOn,
- /* harmony export */ traverseNode: () =>
- /* binding */ traverseNode,
- /* harmony export */ walkBlockDeclarations: () =>
- /* binding */ walkBlockDeclarations,
- /* harmony export */ walkFunctionParams: () =>
- /* binding */ walkFunctionParams,
- /* harmony export */ walkIdentifiers: () =>
- /* binding */ walkIdentifiers,
- /* harmony export */ warnDeprecation: () =>
- /* binding */ warnDeprecation,
- /* harmony export */
- }
- );
- /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js"
- );
- function defaultOnError(error) {
- throw error;
- }
- function defaultOnWarn(msg) {
- true && console.warn(`[Vue warn] ${msg.message}`);
- }
- function createCompilerError(
- code,
- loc,
- messages,
- additionalMessage
- ) {
- const msg = true
- ? (messages || errorMessages)[code] +
- (additionalMessage || ``)
- : 0;
- const error = new SyntaxError(String(msg));
- error.code = code;
- error.loc = loc;
- return error;
- }
- const errorMessages = {
- // parse errors
- [0]: "Illegal comment.",
- [1]: "CDATA section is allowed only in XML context.",
- [2]: "Duplicate attribute.",
- [3]: "End tag cannot have attributes.",
- [4]: "Illegal '/' in tags.",
- [5]: "Unexpected EOF in tag.",
- [6]: "Unexpected EOF in CDATA section.",
- [7]: "Unexpected EOF in comment.",
- [8]: "Unexpected EOF in script.",
- [9]: "Unexpected EOF in tag.",
- [10]: "Incorrectly closed comment.",
- [11]: "Incorrectly opened comment.",
- [12]: "Illegal tag name. Use '<' to print '<'.",
- [13]: "Attribute value was expected.",
- [14]: "End tag name was expected.",
- [15]: "Whitespace was expected.",
- [16]: "Unexpected '|--!>| looseEqual(item, val));
+}
+
+const toDisplayString = (val) => {
+ return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
+};
+const replacer = (_key, val) => {
+ if (val && val.__v_isRef) {
+ return replacer(_key, val.value);
+ } else if (isMap(val)) {
+ return {
+ [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val2]) => {
+ entries[`${key} =>`] = val2;
+ return entries;
+ }, {})
+ };
+ } else if (isSet(val)) {
+ return {
+ [`Set(${val.size})`]: [...val.values()]
+ };
+ } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
+ return String(val);
+ }
+ return val;
+};
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/index.js":
+/*!*************************************!*\
+ !*** ./node_modules/axios/index.js ***!
+ \*************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js");
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/adapters/xhr.js":
+/*!************************************************!*\
+ !*** ./node_modules/axios/lib/adapters/xhr.js ***!
+ \************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
+var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
+var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
+var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
+var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
+var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
+var transitionalDefaults = __webpack_require__(/*! ../defaults/transitional */ "./node_modules/axios/lib/defaults/transitional.js");
+var AxiosError = __webpack_require__(/*! ../core/AxiosError */ "./node_modules/axios/lib/core/AxiosError.js");
+var CanceledError = __webpack_require__(/*! ../cancel/CanceledError */ "./node_modules/axios/lib/cancel/CanceledError.js");
+var parseProtocol = __webpack_require__(/*! ../helpers/parseProtocol */ "./node_modules/axios/lib/helpers/parseProtocol.js");
+
+module.exports = function xhrAdapter(config) {
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
+ var requestData = config.data;
+ var requestHeaders = config.headers;
+ var responseType = config.responseType;
+ var onCanceled;
+ function done() {
+ if (config.cancelToken) {
+ config.cancelToken.unsubscribe(onCanceled);
+ }
+
+ if (config.signal) {
+ config.signal.removeEventListener('abort', onCanceled);
+ }
+ }
+
+ if (utils.isFormData(requestData) && utils.isStandardBrowserEnv()) {
+ delete requestHeaders['Content-Type']; // Let the browser set it
+ }
+
+ var request = new XMLHttpRequest();
+
+ // HTTP basic authentication
+ if (config.auth) {
+ var username = config.auth.username || '';
+ var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
+ requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
+ }
+
+ var fullPath = buildFullPath(config.baseURL, config.url);
+
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
+
+ // Set the request timeout in MS
+ request.timeout = config.timeout;
+
+ function onloadend() {
+ if (!request) {
+ return;
+ }
+ // Prepare the response
+ var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
+ var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
+ request.responseText : request.response;
+ var response = {
+ data: responseData,
+ status: request.status,
+ statusText: request.statusText,
+ headers: responseHeaders,
+ config: config,
+ request: request
+ };
+
+ settle(function _resolve(value) {
+ resolve(value);
+ done();
+ }, function _reject(err) {
+ reject(err);
+ done();
+ }, response);
+
+ // Clean up request
+ request = null;
+ }
+
+ if ('onloadend' in request) {
+ // Use onloadend if available
+ request.onloadend = onloadend;
+ } else {
+ // Listen for ready state to emulate onloadend
+ request.onreadystatechange = function handleLoad() {
+ if (!request || request.readyState !== 4) {
+ return;
+ }
+
+ // The request errored out and we didn't get a response, this will be
+ // handled by onerror instead
+ // With one exception: request that using file: protocol, most browsers
+ // will return status as 0 even though it's a successful request
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
+ return;
+ }
+ // readystate handler is calling before onerror or ontimeout handlers,
+ // so we should call onloadend on the next 'tick'
+ setTimeout(onloadend);
+ };
+ }
+
+ // Handle browser request cancellation (as opposed to a manual cancellation)
+ request.onabort = function handleAbort() {
+ if (!request) {
+ return;
+ }
+
+ reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
+
+ // Clean up request
+ request = null;
+ };
+
+ // Handle low level network errors
+ request.onerror = function handleError() {
+ // Real errors are hidden from us by the browser
+ // onerror should only fire if it's a network error
+ reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request, request));
+
+ // Clean up request
+ request = null;
+ };
+
+ // Handle timeout
+ request.ontimeout = function handleTimeout() {
+ var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
+ var transitional = config.transitional || transitionalDefaults;
+ if (config.timeoutErrorMessage) {
+ timeoutErrorMessage = config.timeoutErrorMessage;
+ }
+ reject(new AxiosError(
+ timeoutErrorMessage,
+ transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
+ config,
+ request));
+
+ // Clean up request
+ request = null;
+ };
+
+ // Add xsrf header
+ // This is only done if running in a standard browser environment.
+ // Specifically not if we're in a web worker, or react-native.
+ if (utils.isStandardBrowserEnv()) {
+ // Add xsrf header
+ var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
+ cookies.read(config.xsrfCookieName) :
+ undefined;
+
+ if (xsrfValue) {
+ requestHeaders[config.xsrfHeaderName] = xsrfValue;
+ }
+ }
+
+ // Add headers to the request
+ if ('setRequestHeader' in request) {
+ utils.forEach(requestHeaders, function setRequestHeader(val, key) {
+ if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
+ // Remove Content-Type if data is undefined
+ delete requestHeaders[key];
+ } else {
+ // Otherwise add header to the request
+ request.setRequestHeader(key, val);
+ }
+ });
+ }
+
+ // Add withCredentials to request if needed
+ if (!utils.isUndefined(config.withCredentials)) {
+ request.withCredentials = !!config.withCredentials;
+ }
+
+ // Add responseType to request if needed
+ if (responseType && responseType !== 'json') {
+ request.responseType = config.responseType;
+ }
+
+ // Handle progress if needed
+ if (typeof config.onDownloadProgress === 'function') {
+ request.addEventListener('progress', config.onDownloadProgress);
+ }
+
+ // Not all browsers support upload events
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
+ request.upload.addEventListener('progress', config.onUploadProgress);
+ }
+
+ if (config.cancelToken || config.signal) {
+ // Handle cancellation
+ // eslint-disable-next-line func-names
+ onCanceled = function(cancel) {
+ if (!request) {
+ return;
+ }
+ reject(!cancel || (cancel && cancel.type) ? new CanceledError() : cancel);
+ request.abort();
+ request = null;
+ };
+
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
+ if (config.signal) {
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
+ }
+ }
+
+ if (!requestData) {
+ requestData = null;
+ }
+
+ var protocol = parseProtocol(fullPath);
+
+ if (protocol && [ 'http', 'https', 'file' ].indexOf(protocol) === -1) {
+ reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
+ return;
+ }
+
+
+ // Send the request
+ request.send(requestData);
+ });
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/axios.js":
+/*!*****************************************!*\
+ !*** ./node_modules/axios/lib/axios.js ***!
+ \*****************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
+var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
+var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
+var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
+var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults/index.js");
+
+/**
+ * Create an instance of Axios
+ *
+ * @param {Object} defaultConfig The default config for the instance
+ * @return {Axios} A new instance of Axios
+ */
+function createInstance(defaultConfig) {
+ var context = new Axios(defaultConfig);
+ var instance = bind(Axios.prototype.request, context);
+
+ // Copy axios.prototype to instance
+ utils.extend(instance, Axios.prototype, context);
+
+ // Copy context to instance
+ utils.extend(instance, context);
+
+ // Factory for creating new instances
+ instance.create = function create(instanceConfig) {
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
+ };
+
+ return instance;
+}
+
+// Create the default instance to be exported
+var axios = createInstance(defaults);
+
+// Expose Axios class to allow class inheritance
+axios.Axios = Axios;
+
+// Expose Cancel & CancelToken
+axios.CanceledError = __webpack_require__(/*! ./cancel/CanceledError */ "./node_modules/axios/lib/cancel/CanceledError.js");
+axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js");
+axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
+axios.VERSION = (__webpack_require__(/*! ./env/data */ "./node_modules/axios/lib/env/data.js").version);
+axios.toFormData = __webpack_require__(/*! ./helpers/toFormData */ "./node_modules/axios/lib/helpers/toFormData.js");
+
+// Expose AxiosError class
+axios.AxiosError = __webpack_require__(/*! ../lib/core/AxiosError */ "./node_modules/axios/lib/core/AxiosError.js");
+
+// alias for CanceledError for backward compatibility
+axios.Cancel = axios.CanceledError;
+
+// Expose all/spread
+axios.all = function all(promises) {
+ return Promise.all(promises);
+};
+axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
+
+// Expose isAxiosError
+axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js");
+
+module.exports = axios;
+
+// Allow use of default import syntax in TypeScript
+module.exports["default"] = axios;
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/cancel/CancelToken.js":
+/*!******************************************************!*\
+ !*** ./node_modules/axios/lib/cancel/CancelToken.js ***!
+ \******************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var CanceledError = __webpack_require__(/*! ./CanceledError */ "./node_modules/axios/lib/cancel/CanceledError.js");
+
+/**
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
+ *
+ * @class
+ * @param {Function} executor The executor function.
+ */
+function CancelToken(executor) {
+ if (typeof executor !== 'function') {
+ throw new TypeError('executor must be a function.');
+ }
+
+ var resolvePromise;
+
+ this.promise = new Promise(function promiseExecutor(resolve) {
+ resolvePromise = resolve;
+ });
+
+ var token = this;
+
+ // eslint-disable-next-line func-names
+ this.promise.then(function(cancel) {
+ if (!token._listeners) return;
+
+ var i;
+ var l = token._listeners.length;
+
+ for (i = 0; i < l; i++) {
+ token._listeners[i](cancel);
+ }
+ token._listeners = null;
+ });
+
+ // eslint-disable-next-line func-names
+ this.promise.then = function(onfulfilled) {
+ var _resolve;
+ // eslint-disable-next-line func-names
+ var promise = new Promise(function(resolve) {
+ token.subscribe(resolve);
+ _resolve = resolve;
+ }).then(onfulfilled);
+
+ promise.cancel = function reject() {
+ token.unsubscribe(_resolve);
+ };
+
+ return promise;
+ };
+
+ executor(function cancel(message) {
+ if (token.reason) {
+ // Cancellation has already been requested
+ return;
+ }
+
+ token.reason = new CanceledError(message);
+ resolvePromise(token.reason);
+ });
+}
+
+/**
+ * Throws a `CanceledError` if cancellation has been requested.
+ */
+CancelToken.prototype.throwIfRequested = function throwIfRequested() {
+ if (this.reason) {
+ throw this.reason;
+ }
+};
+
+/**
+ * Subscribe to the cancel signal
+ */
+
+CancelToken.prototype.subscribe = function subscribe(listener) {
+ if (this.reason) {
+ listener(this.reason);
+ return;
+ }
+
+ if (this._listeners) {
+ this._listeners.push(listener);
+ } else {
+ this._listeners = [listener];
+ }
+};
+
+/**
+ * Unsubscribe from the cancel signal
+ */
+
+CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
+ if (!this._listeners) {
+ return;
+ }
+ var index = this._listeners.indexOf(listener);
+ if (index !== -1) {
+ this._listeners.splice(index, 1);
+ }
+};
+
+/**
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
+ * cancels the `CancelToken`.
+ */
+CancelToken.source = function source() {
+ var cancel;
+ var token = new CancelToken(function executor(c) {
+ cancel = c;
+ });
+ return {
+ token: token,
+ cancel: cancel
+ };
+};
+
+module.exports = CancelToken;
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/cancel/CanceledError.js":
+/*!********************************************************!*\
+ !*** ./node_modules/axios/lib/cancel/CanceledError.js ***!
+ \********************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var AxiosError = __webpack_require__(/*! ../core/AxiosError */ "./node_modules/axios/lib/core/AxiosError.js");
+var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
+
+/**
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
+ *
+ * @class
+ * @param {string=} message The message.
+ */
+function CanceledError(message) {
+ // eslint-disable-next-line no-eq-null,eqeqeq
+ AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED);
+ this.name = 'CanceledError';
+}
+
+utils.inherits(CanceledError, AxiosError, {
+ __CANCEL__: true
+});
+
+module.exports = CanceledError;
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/cancel/isCancel.js":
+/*!***************************************************!*\
+ !*** ./node_modules/axios/lib/cancel/isCancel.js ***!
+ \***************************************************/
+/***/ ((module) => {
+
+"use strict";
+
+
+module.exports = function isCancel(value) {
+ return !!(value && value.__CANCEL__);
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/Axios.js":
+/*!**********************************************!*\
+ !*** ./node_modules/axios/lib/core/Axios.js ***!
+ \**********************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
+var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
+var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
+var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
+var buildFullPath = __webpack_require__(/*! ./buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
+var validator = __webpack_require__(/*! ../helpers/validator */ "./node_modules/axios/lib/helpers/validator.js");
+
+var validators = validator.validators;
+/**
+ * Create a new instance of Axios
+ *
+ * @param {Object} instanceConfig The default config for the instance
+ */
+function Axios(instanceConfig) {
+ this.defaults = instanceConfig;
+ this.interceptors = {
+ request: new InterceptorManager(),
+ response: new InterceptorManager()
+ };
+}
+
+/**
+ * Dispatch a request
+ *
+ * @param {Object} config The config specific for this request (merged with this.defaults)
+ */
+Axios.prototype.request = function request(configOrUrl, config) {
+ /*eslint no-param-reassign:0*/
+ // Allow for axios('example/url'[, config]) a la fetch API
+ if (typeof configOrUrl === 'string') {
+ config = config || {};
+ config.url = configOrUrl;
+ } else {
+ config = configOrUrl || {};
+ }
+
+ config = mergeConfig(this.defaults, config);
+
+ // Set config.method
+ if (config.method) {
+ config.method = config.method.toLowerCase();
+ } else if (this.defaults.method) {
+ config.method = this.defaults.method.toLowerCase();
+ } else {
+ config.method = 'get';
+ }
+
+ var transitional = config.transitional;
+
+ if (transitional !== undefined) {
+ validator.assertOptions(transitional, {
+ silentJSONParsing: validators.transitional(validators.boolean),
+ forcedJSONParsing: validators.transitional(validators.boolean),
+ clarifyTimeoutError: validators.transitional(validators.boolean)
+ }, false);
+ }
+
+ // filter out skipped interceptors
+ var requestInterceptorChain = [];
+ var synchronousRequestInterceptors = true;
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
+ return;
+ }
+
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
+
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
+ });
- const isTeleport = (type) => type.__isTeleport;
- const isTeleportDisabled = (props) =>
- props && (props.disabled || props.disabled === "");
- const isTargetSVG = (target) =>
- typeof SVGElement !== "undefined" &&
- target instanceof SVGElement;
- const resolveTarget = (props, select) => {
- const targetSelector = props && props.to;
- if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(
- targetSelector
- )
- ) {
- if (!select) {
- true &&
- warn(
- `Current renderer does not support string target for Teleports. (missing querySelector renderer option)`
- );
- return null;
- } else {
- const target = select(targetSelector);
- if (!target) {
- true &&
- warn(
- `Failed to locate Teleport target with selector "${targetSelector}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`
- );
- }
- return target;
- }
- } else {
- if (
- true &&
- !targetSelector &&
- !isTeleportDisabled(props)
- ) {
- warn(`Invalid Teleport target: ${targetSelector}`);
- }
- return targetSelector;
- }
- };
- const TeleportImpl = {
- __isTeleport: true,
- process(
- n1,
- n2,
- container,
- anchor,
- parentComponent,
- parentSuspense,
- isSVG,
- slotScopeIds,
- optimized,
- internals
- ) {
- const {
- mc: mountChildren,
- pc: patchChildren,
- pbc: patchBlockChildren,
- o: {
- insert,
- querySelector,
- createText,
- createComment,
- },
- } = internals;
- const disabled = isTeleportDisabled(n2.props);
- let { shapeFlag, children, dynamicChildren } = n2;
- if (true && isHmrUpdating) {
- optimized = false;
- dynamicChildren = null;
- }
- if (n1 == null) {
- const placeholder = (n2.el = true
- ? createComment("teleport start")
- : 0);
- const mainAnchor = (n2.anchor = true
- ? createComment("teleport end")
- : 0);
- insert(placeholder, container, anchor);
- insert(mainAnchor, container, anchor);
- const target = (n2.target = resolveTarget(
- n2.props,
- querySelector
- ));
- const targetAnchor = (n2.targetAnchor =
- createText(""));
- if (target) {
- insert(targetAnchor, target);
- isSVG = isSVG || isTargetSVG(target);
- } else if (true && !disabled) {
- warn(
- "Invalid Teleport target on mount:",
- target,
- `(${typeof target})`
- );
- }
- const mount = (container2, anchor2) => {
- if (shapeFlag & 16) {
- mountChildren(
- children,
- container2,
- anchor2,
- parentComponent,
- parentSuspense,
- isSVG,
- slotScopeIds,
- optimized
- );
- }
- };
- if (disabled) {
- mount(container, mainAnchor);
- } else if (target) {
- mount(target, targetAnchor);
- }
- } else {
- n2.el = n1.el;
- const mainAnchor = (n2.anchor = n1.anchor);
- const target = (n2.target = n1.target);
- const targetAnchor = (n2.targetAnchor =
- n1.targetAnchor);
- const wasDisabled = isTeleportDisabled(n1.props);
- const currentContainer = wasDisabled
- ? container
- : target;
- const currentAnchor = wasDisabled
- ? mainAnchor
- : targetAnchor;
- isSVG = isSVG || isTargetSVG(target);
- if (dynamicChildren) {
- patchBlockChildren(
- n1.dynamicChildren,
- dynamicChildren,
- currentContainer,
- parentComponent,
- parentSuspense,
- isSVG,
- slotScopeIds
- );
- traverseStaticChildren(n1, n2, true);
- } else if (!optimized) {
- patchChildren(
- n1,
- n2,
- currentContainer,
- currentAnchor,
- parentComponent,
- parentSuspense,
- isSVG,
- slotScopeIds,
- false
- );
- }
- if (disabled) {
- if (!wasDisabled) {
- moveTeleport(
- n2,
- container,
- mainAnchor,
- internals,
- 1
- );
- }
- } else {
- if (
- (n2.props && n2.props.to) !==
- (n1.props && n1.props.to)
- ) {
- const nextTarget = (n2.target =
- resolveTarget(n2.props, querySelector));
- if (nextTarget) {
- moveTeleport(
- n2,
- nextTarget,
- null,
- internals,
- 0
- );
- } else if (true) {
- warn(
- "Invalid Teleport target on update:",
- target,
- `(${typeof target})`
- );
- }
- } else if (wasDisabled) {
- moveTeleport(
- n2,
- target,
- targetAnchor,
- internals,
- 1
- );
- }
- }
- }
- updateCssVars(n2);
- },
- remove(
- vnode,
- parentComponent,
- parentSuspense,
- optimized,
- { um: unmount, o: { remove: hostRemove } },
- doRemove
- ) {
- const {
- shapeFlag,
- children,
- anchor,
- targetAnchor,
- target,
- props,
- } = vnode;
- if (target) {
- hostRemove(targetAnchor);
- }
- if (doRemove || !isTeleportDisabled(props)) {
- hostRemove(anchor);
- if (shapeFlag & 16) {
- for (let i = 0; i < children.length; i++) {
- const child = children[i];
- unmount(
- child,
- parentComponent,
- parentSuspense,
- true,
- !!child.dynamicChildren
- );
- }
- }
- }
- },
- move: moveTeleport,
- hydrate: hydrateTeleport,
- };
- function moveTeleport(
- vnode,
- container,
- parentAnchor,
- { o: { insert }, m: move },
- moveType = 2
- ) {
- if (moveType === 0) {
- insert(vnode.targetAnchor, container, parentAnchor);
- }
- const { el, anchor, shapeFlag, children, props } = vnode;
- const isReorder = moveType === 2;
- if (isReorder) {
- insert(el, container, parentAnchor);
- }
- if (!isReorder || isTeleportDisabled(props)) {
- if (shapeFlag & 16) {
- for (let i = 0; i < children.length; i++) {
- move(children[i], container, parentAnchor, 2);
- }
- }
- }
- if (isReorder) {
- insert(anchor, container, parentAnchor);
- }
- }
- function hydrateTeleport(
- node,
- vnode,
- parentComponent,
- parentSuspense,
- slotScopeIds,
- optimized,
- { o: { nextSibling, parentNode, querySelector } },
- hydrateChildren
- ) {
- const target = (vnode.target = resolveTarget(
- vnode.props,
- querySelector
- ));
- if (target) {
- const targetNode = target._lpa || target.firstChild;
- if (vnode.shapeFlag & 16) {
- if (isTeleportDisabled(vnode.props)) {
- vnode.anchor = hydrateChildren(
- nextSibling(node),
- vnode,
- parentNode(node),
- parentComponent,
- parentSuspense,
- slotScopeIds,
- optimized
- );
- vnode.targetAnchor = targetNode;
- } else {
- vnode.anchor = nextSibling(node);
- let targetAnchor = targetNode;
- while (targetAnchor) {
- targetAnchor = nextSibling(targetAnchor);
- if (
- targetAnchor &&
- targetAnchor.nodeType === 8 &&
- targetAnchor.data === "teleport anchor"
- ) {
- vnode.targetAnchor = targetAnchor;
- target._lpa =
- vnode.targetAnchor &&
- nextSibling(vnode.targetAnchor);
- break;
- }
- }
- hydrateChildren(
- targetNode,
- vnode,
- target,
- parentComponent,
- parentSuspense,
- slotScopeIds,
- optimized
- );
- }
- }
- updateCssVars(vnode);
- }
- return vnode.anchor && nextSibling(vnode.anchor);
- }
- const Teleport = TeleportImpl;
- function updateCssVars(vnode) {
- const ctx = vnode.ctx;
- if (ctx && ctx.ut) {
- let node = vnode.children[0].el;
- while (node !== vnode.targetAnchor) {
- if (node.nodeType === 1)
- node.setAttribute("data-v-owner", ctx.uid);
- node = node.nextSibling;
- }
- ctx.ut();
- }
- }
+ var responseInterceptorChain = [];
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
+ });
- const Fragment = Symbol.for("v-fgt");
- const Text = Symbol.for("v-txt");
- const Comment = Symbol.for("v-cmt");
- const Static = Symbol.for("v-stc");
- const blockStack = [];
- let currentBlock = null;
- function openBlock(disableTracking = false) {
- blockStack.push(
- (currentBlock = disableTracking ? null : [])
- );
- }
- function closeBlock() {
- blockStack.pop();
- currentBlock = blockStack[blockStack.length - 1] || null;
- }
- let isBlockTreeEnabled = 1;
- function setBlockTracking(value) {
- isBlockTreeEnabled += value;
- }
- function setupBlock(vnode) {
- vnode.dynamicChildren =
- isBlockTreeEnabled > 0
- ? currentBlock ||
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR
- : null;
- closeBlock();
- if (isBlockTreeEnabled > 0 && currentBlock) {
- currentBlock.push(vnode);
- }
- return vnode;
- }
- function createElementBlock(
- type,
- props,
- children,
- patchFlag,
- dynamicProps,
- shapeFlag
- ) {
- return setupBlock(
- createBaseVNode(
- type,
- props,
- children,
- patchFlag,
- dynamicProps,
- shapeFlag,
- true
- /* isBlock */
- )
- );
- }
- function createBlock(
- type,
- props,
- children,
- patchFlag,
- dynamicProps
- ) {
- return setupBlock(
- createVNode(
- type,
- props,
- children,
- patchFlag,
- dynamicProps,
- true
- /* isBlock: prevent a block from tracking itself */
- )
- );
- }
- function isVNode(value) {
- return value ? value.__v_isVNode === true : false;
- }
- function isSameVNodeType(n1, n2) {
- if (
- true &&
- n2.shapeFlag & 6 &&
- hmrDirtyComponents.has(n2.type)
- ) {
- n1.shapeFlag &= ~256;
- n2.shapeFlag &= ~512;
- return false;
- }
- return n1.type === n2.type && n1.key === n2.key;
- }
- let vnodeArgsTransformer;
- function transformVNodeArgs(transformer) {
- vnodeArgsTransformer = transformer;
- }
- const createVNodeWithArgsTransform = (...args) => {
- return _createVNode(
- ...(vnodeArgsTransformer
- ? vnodeArgsTransformer(
- args,
- currentRenderingInstance
- )
- : args)
- );
- };
- const InternalObjectKey = `__vInternal`;
- const normalizeKey = ({ key }) => (key != null ? key : null);
- const normalizeRef = ({ ref, ref_key, ref_for }) => {
- if (typeof ref === "number") {
- ref = "" + ref;
- }
- return ref != null
- ? (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(
- ref
- ) ||
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(
- ref
- ) ||
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(
- ref
- )
- ? {
- i: currentRenderingInstance,
- r: ref,
- k: ref_key,
- f: !!ref_for,
- }
- : ref
- : null;
- };
- function createBaseVNode(
- type,
- props = null,
- children = null,
- patchFlag = 0,
- dynamicProps = null,
- shapeFlag = type === Fragment ? 0 : 1,
- isBlockNode = false,
- needFullChildrenNormalization = false
- ) {
- const vnode = {
- __v_isVNode: true,
- __v_skip: true,
- type,
- props,
- key: props && normalizeKey(props),
- ref: props && normalizeRef(props),
- scopeId: currentScopeId,
- slotScopeIds: null,
- children,
- component: null,
- suspense: null,
- ssContent: null,
- ssFallback: null,
- dirs: null,
- transition: null,
- el: null,
- anchor: null,
- target: null,
- targetAnchor: null,
- staticCount: 0,
- shapeFlag,
- patchFlag,
- dynamicProps,
- dynamicChildren: null,
- appContext: null,
- ctx: currentRenderingInstance,
- };
- if (needFullChildrenNormalization) {
- normalizeChildren(vnode, children);
- if (shapeFlag & 128) {
- type.normalize(vnode);
- }
- } else if (children) {
- vnode.shapeFlag |= (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(
- children
- )
- ? 8
- : 16;
- }
- if (true && vnode.key !== vnode.key) {
- warn(
- `VNode created with invalid key (NaN). VNode type:`,
- vnode.type
- );
- }
- if (
- isBlockTreeEnabled > 0 && // avoid a block node from tracking itself
- !isBlockNode && // has current parent block
- currentBlock && // presence of a patch flag indicates this node needs patching on updates.
- // component nodes also should always be patched, because even if the
- // component doesn't need to update, it needs to persist the instance on to
- // the next vnode so that it can be properly unmounted later.
- (vnode.patchFlag > 0 || shapeFlag & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
- // vnode should not be considered dynamic due to handler caching.
- vnode.patchFlag !== 32
- ) {
- currentBlock.push(vnode);
- }
- return vnode;
- }
- const createVNode = true ? createVNodeWithArgsTransform : 0;
- function _createVNode(
- type,
- props = null,
- children = null,
- patchFlag = 0,
- dynamicProps = null,
- isBlockNode = false
- ) {
- if (!type || type === NULL_DYNAMIC_COMPONENT) {
- if (true && !type) {
- warn(
- `Invalid vnode type when creating vnode: ${type}.`
- );
- }
- type = Comment;
- }
- if (isVNode(type)) {
- const cloned = cloneVNode(
- type,
- props,
- true
- /* mergeRef: true */
- );
- if (children) {
- normalizeChildren(cloned, children);
- }
- if (
- isBlockTreeEnabled > 0 &&
- !isBlockNode &&
- currentBlock
- ) {
- if (cloned.shapeFlag & 6) {
- currentBlock[currentBlock.indexOf(type)] =
- cloned;
- } else {
- currentBlock.push(cloned);
- }
- }
- cloned.patchFlag |= -2;
- return cloned;
- }
- if (isClassComponent(type)) {
- type = type.__vccOpts;
- }
- if (props) {
- props = guardReactiveProps(props);
- let { class: klass, style } = props;
- if (
- klass &&
- !(0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(
- klass
- )
- ) {
- props.class = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)(
- klass
- );
- }
- if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(
- style
- )
- ) {
- if (
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(
- style
- ) &&
- !(0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- style
- )
- ) {
- style = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(
- {},
- style
- );
- }
- props.style = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)(
- style
- );
- }
- }
- const shapeFlag = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(type)
- ? 1
- : isSuspense(type)
- ? 128
- : isTeleport(type)
- ? 64
- : (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(
- type
- )
- ? 4
- : (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(
- type
- )
- ? 2
- : 0;
- if (
- true &&
- shapeFlag & 4 &&
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(
- type
- )
- ) {
- type = (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(
- type
- );
- warn(
- `Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with \`markRaw\` or using \`shallowRef\` instead of \`ref\`.`,
- `
-Component that was made reactive: `,
- type
- );
- }
- return createBaseVNode(
- type,
- props,
- children,
- patchFlag,
- dynamicProps,
- shapeFlag,
- isBlockNode,
- true
- );
- }
- function guardReactiveProps(props) {
- if (!props) return null;
- return (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(
- props
- ) || InternalObjectKey in props
- ? (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(
- {},
- props
- )
- : props;
- }
- function cloneVNode(vnode, extraProps, mergeRef = false) {
- const { props, ref, patchFlag, children } = vnode;
- const mergedProps = extraProps
- ? mergeProps(props || {}, extraProps)
- : props;
- const cloned = {
- __v_isVNode: true,
- __v_skip: true,
- type: vnode.type,
- props: mergedProps,
- key: mergedProps && normalizeKey(mergedProps),
- ref:
- extraProps && extraProps.ref
- ? // #2078 in the case of
- // if the vnode itself already has a ref, cloneVNode will need to merge
- // the refs so the single vnode can be set on multiple refs
- mergeRef && ref
- ? (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- ref
- )
- ? ref.concat(normalizeRef(extraProps))
- : [ref, normalizeRef(extraProps)]
- : normalizeRef(extraProps)
- : ref,
- scopeId: vnode.scopeId,
- slotScopeIds: vnode.slotScopeIds,
- children:
- true &&
- patchFlag === -1 &&
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- children
- )
- ? children.map(deepCloneVNode)
- : children,
- target: vnode.target,
- targetAnchor: vnode.targetAnchor,
- staticCount: vnode.staticCount,
- shapeFlag: vnode.shapeFlag,
- // if the vnode is cloned with extra props, we can no longer assume its
- // existing patch flag to be reliable and need to add the FULL_PROPS flag.
- // note: preserve flag for fragments since they use the flag for children
- // fast paths only.
- patchFlag:
- extraProps && vnode.type !== Fragment
- ? patchFlag === -1
- ? 16
- : patchFlag | 16
- : patchFlag,
- dynamicProps: vnode.dynamicProps,
- dynamicChildren: vnode.dynamicChildren,
- appContext: vnode.appContext,
- dirs: vnode.dirs,
- transition: vnode.transition,
- // These should technically only be non-null on mounted VNodes. However,
- // they *should* be copied for kept-alive vnodes. So we just always copy
- // them since them being non-null during a mount doesn't affect the logic as
- // they will simply be overwritten.
- component: vnode.component,
- suspense: vnode.suspense,
- ssContent:
- vnode.ssContent && cloneVNode(vnode.ssContent),
- ssFallback:
- vnode.ssFallback && cloneVNode(vnode.ssFallback),
- el: vnode.el,
- anchor: vnode.anchor,
- ctx: vnode.ctx,
- ce: vnode.ce,
- };
- return cloned;
- }
- function deepCloneVNode(vnode) {
- const cloned = cloneVNode(vnode);
- if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- vnode.children
- )
- ) {
- cloned.children = vnode.children.map(deepCloneVNode);
- }
- return cloned;
- }
- function createTextVNode(text = " ", flag = 0) {
- return createVNode(Text, null, text, flag);
- }
- function createStaticVNode(content, numberOfNodes) {
- const vnode = createVNode(Static, null, content);
- vnode.staticCount = numberOfNodes;
- return vnode;
- }
- function createCommentVNode(text = "", asBlock = false) {
- return asBlock
- ? (openBlock(), createBlock(Comment, null, text))
- : createVNode(Comment, null, text);
- }
- function normalizeVNode(child) {
- if (child == null || typeof child === "boolean") {
- return createVNode(Comment);
- } else if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- child
- )
- ) {
- return createVNode(
- Fragment,
- null,
- // #3666, avoid reference pollution when reusing vnode
- child.slice()
- );
- } else if (typeof child === "object") {
- return cloneIfMounted(child);
- } else {
- return createVNode(Text, null, String(child));
- }
- }
- function cloneIfMounted(child) {
- return (child.el === null && child.patchFlag !== -1) ||
- child.memo
- ? child
- : cloneVNode(child);
- }
- function normalizeChildren(vnode, children) {
- let type = 0;
- const { shapeFlag } = vnode;
- if (children == null) {
- children = null;
- } else if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- children
- )
- ) {
- type = 16;
- } else if (typeof children === "object") {
- if (shapeFlag & (1 | 64)) {
- const slot = children.default;
- if (slot) {
- slot._c && (slot._d = false);
- normalizeChildren(vnode, slot());
- slot._c && (slot._d = true);
- }
- return;
- } else {
- type = 32;
- const slotFlag = children._;
- if (!slotFlag && !(InternalObjectKey in children)) {
- children._ctx = currentRenderingInstance;
- } else if (
- slotFlag === 3 &&
- currentRenderingInstance
- ) {
- if (currentRenderingInstance.slots._ === 1) {
- children._ = 1;
- } else {
- children._ = 2;
- vnode.patchFlag |= 1024;
- }
- }
- }
- } else if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(
- children
- )
- ) {
- children = {
- default: children,
- _ctx: currentRenderingInstance,
- };
- type = 32;
- } else {
- children = String(children);
- if (shapeFlag & 64) {
- type = 16;
- children = [createTextVNode(children)];
- } else {
- type = 8;
- }
- }
- vnode.children = children;
- vnode.shapeFlag |= type;
- }
- function mergeProps(...args) {
- const ret = {};
- for (let i = 0; i < args.length; i++) {
- const toMerge = args[i];
- for (const key in toMerge) {
- if (key === "class") {
- if (ret.class !== toMerge.class) {
- ret.class = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)(
- [ret.class, toMerge.class]
- );
- }
- } else if (key === "style") {
- ret.style = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)(
- [ret.style, toMerge.style]
- );
- } else if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(
- key
- )
- ) {
- const existing = ret[key];
- const incoming = toMerge[key];
- if (
- incoming &&
- existing !== incoming &&
- !(
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- existing
- ) && existing.includes(incoming)
- )
- ) {
- ret[key] = existing
- ? [].concat(existing, incoming)
- : incoming;
- }
- } else if (key !== "") {
- ret[key] = toMerge[key];
- }
- }
- }
- return ret;
- }
- function invokeVNodeHook(
- hook,
- instance,
- vnode,
- prevVNode = null
- ) {
- callWithAsyncErrorHandling(hook, instance, 7, [
- vnode,
- prevVNode,
- ]);
- }
+ var promise;
- const emptyAppContext = createAppContext();
- let uid = 0;
- function createComponentInstance(vnode, parent, suspense) {
- const type = vnode.type;
- const appContext =
- (parent ? parent.appContext : vnode.appContext) ||
- emptyAppContext;
- const instance = {
- uid: uid++,
- vnode,
- type,
- parent,
- appContext,
- root: null,
- // to be immediately set
- next: null,
- subTree: null,
- // will be set synchronously right after creation
- effect: null,
- update: null,
- // will be set synchronously right after creation
- scope: new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.EffectScope(
- true
- /* detached */
- ),
- render: null,
- proxy: null,
- exposed: null,
- exposeProxy: null,
- withProxy: null,
- provides: parent
- ? parent.provides
- : Object.create(appContext.provides),
- accessCache: null,
- renderCache: [],
- // local resolved assets
- components: null,
- directives: null,
- // resolved props and emits options
- propsOptions: normalizePropsOptions(type, appContext),
- emitsOptions: normalizeEmitsOptions(type, appContext),
- // emit
- emit: null,
- // to be set immediately
- emitted: null,
- // props default value
- propsDefaults:
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
- // inheritAttrs
- inheritAttrs: type.inheritAttrs,
- // state
- ctx: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
- data: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
- props: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
- attrs: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
- slots: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
- refs: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
- setupState:
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
- setupContext: null,
- attrsProxy: null,
- slotsProxy: null,
- // suspense related
- suspense,
- suspenseId: suspense ? suspense.pendingId : 0,
- asyncDep: null,
- asyncResolved: false,
- // lifecycle hooks
- // not using enums here because it results in computed properties
- isMounted: false,
- isUnmounted: false,
- isDeactivated: false,
- bc: null,
- c: null,
- bm: null,
- m: null,
- bu: null,
- u: null,
- um: null,
- bum: null,
- da: null,
- a: null,
- rtg: null,
- rtc: null,
- ec: null,
- sp: null,
- };
- if (true) {
- instance.ctx = createDevRenderContext(instance);
- } else {
- }
- instance.root = parent ? parent.root : instance;
- instance.emit = emit.bind(null, instance);
- if (vnode.ce) {
- vnode.ce(instance);
- }
- return instance;
- }
- let currentInstance = null;
- const getCurrentInstance = () =>
- currentInstance || currentRenderingInstance;
- let internalSetCurrentInstance;
- let globalCurrentInstanceSetters;
- let settersKey = "__VUE_INSTANCE_SETTERS__";
- {
- if (
- !(globalCurrentInstanceSetters = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.getGlobalThis)()[
- settersKey
- ])
- ) {
- globalCurrentInstanceSetters = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.getGlobalThis)()[
- settersKey
- ] = [];
- }
- globalCurrentInstanceSetters.push(
- (i) => (currentInstance = i)
- );
- internalSetCurrentInstance = (instance) => {
- if (globalCurrentInstanceSetters.length > 1) {
- globalCurrentInstanceSetters.forEach((s) =>
- s(instance)
- );
- } else {
- globalCurrentInstanceSetters[0](instance);
- }
- };
- }
- const setCurrentInstance = (instance) => {
- internalSetCurrentInstance(instance);
- instance.scope.on();
- };
- const unsetCurrentInstance = () => {
- currentInstance && currentInstance.scope.off();
- internalSetCurrentInstance(null);
- };
- const isBuiltInTag = /* @__PURE__ */ (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(
- "slot,component"
- );
- function validateComponentName(name, config) {
- const appIsNativeTag =
- config.isNativeTag ||
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NO;
- if (isBuiltInTag(name) || appIsNativeTag(name)) {
- warn(
- "Do not use built-in or reserved HTML elements as component id: " +
- name
- );
- }
- }
- function isStatefulComponent(instance) {
- return instance.vnode.shapeFlag & 4;
- }
- let isInSSRComponentSetup = false;
- function setupComponent(instance, isSSR = false) {
- isInSSRComponentSetup = isSSR;
- const { props, children } = instance.vnode;
- const isStateful = isStatefulComponent(instance);
- initProps(instance, props, isStateful, isSSR);
- initSlots(instance, children);
- const setupResult = isStateful
- ? setupStatefulComponent(instance, isSSR)
- : void 0;
- isInSSRComponentSetup = false;
- return setupResult;
- }
- function setupStatefulComponent(instance, isSSR) {
- var _a;
- const Component = instance.type;
- if (true) {
- if (Component.name) {
- validateComponentName(
- Component.name,
- instance.appContext.config
- );
- }
- if (Component.components) {
- const names = Object.keys(Component.components);
- for (let i = 0; i < names.length; i++) {
- validateComponentName(
- names[i],
- instance.appContext.config
- );
- }
- }
- if (Component.directives) {
- const names = Object.keys(Component.directives);
- for (let i = 0; i < names.length; i++) {
- validateDirectiveName(names[i]);
- }
- }
- if (Component.compilerOptions && isRuntimeOnly()) {
- warn(
- `"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.`
- );
- }
- }
- instance.accessCache = /* @__PURE__ */ Object.create(null);
- instance.proxy = (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw)(
- new Proxy(instance.ctx, PublicInstanceProxyHandlers)
- );
- if (true) {
- exposePropsOnRenderContext(instance);
- }
- const { setup } = Component;
- if (setup) {
- const setupContext = (instance.setupContext =
- setup.length > 1
- ? createSetupContext(instance)
- : null);
- setCurrentInstance(instance);
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
- const setupResult = callWithErrorHandling(
- setup,
- instance,
- 0,
- [
- true
- ? (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(
- instance.props
- )
- : 0,
- setupContext,
- ]
- );
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
- unsetCurrentInstance();
- if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(
- setupResult
- )
- ) {
- setupResult.then(
- unsetCurrentInstance,
- unsetCurrentInstance
- );
- if (isSSR) {
- return setupResult
- .then((resolvedResult) => {
- handleSetupResult(
- instance,
- resolvedResult,
- isSSR
- );
- })
- .catch((e) => {
- handleError(e, instance, 0);
- });
- } else {
- instance.asyncDep = setupResult;
- if (true && !instance.suspense) {
- const name =
- (_a = Component.name) != null
- ? _a
- : "Anonymous";
- warn(
- `Component <${name}>: setup function returned a promise, but no boundary was found in the parent component tree. A component with async setup() must be nested in a in order to be rendered.`
- );
- }
- }
- } else {
- handleSetupResult(instance, setupResult, isSSR);
- }
- } else {
- finishComponentSetup(instance, isSSR);
- }
- }
- function handleSetupResult(instance, setupResult, isSSR) {
- if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(
- setupResult
- )
- ) {
- if (instance.type.__ssrInlineRender) {
- instance.ssrRender = setupResult;
- } else {
- instance.render = setupResult;
- }
- } else if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(
- setupResult
- )
- ) {
- if (true && isVNode(setupResult)) {
- warn(
- `setup() should not return VNodes directly - return a render function instead.`
- );
- }
- if (true) {
- instance.devtoolsRawSetupState = setupResult;
- }
- instance.setupState = (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs)(
- setupResult
- );
- if (true) {
- exposeSetupStateOnRenderContext(instance);
- }
- } else if (true && setupResult !== void 0) {
- warn(
- `setup() should return an object. Received: ${
- setupResult === null
- ? "null"
- : typeof setupResult
- }`
- );
- }
- finishComponentSetup(instance, isSSR);
- }
- let compile;
- let installWithProxy;
- function registerRuntimeCompiler(_compile) {
- compile = _compile;
- installWithProxy = (i) => {
- if (i.render._rc) {
- i.withProxy = new Proxy(
- i.ctx,
- RuntimeCompiledPublicInstanceProxyHandlers
- );
- }
- };
- }
- const isRuntimeOnly = () => !compile;
- function finishComponentSetup(instance, isSSR, skipOptions) {
- const Component = instance.type;
- if (!instance.render) {
- if (!isSSR && compile && !Component.render) {
- const template =
- Component.template ||
- resolveMergedOptions(instance).template;
- if (template) {
- if (true) {
- startMeasure(instance, `compile`);
- }
- const { isCustomElement, compilerOptions } =
- instance.appContext.config;
- const {
- delimiters,
- compilerOptions: componentCompilerOptions,
- } = Component;
- const finalCompilerOptions = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(
- {
- isCustomElement,
- delimiters,
- },
- compilerOptions
- ),
- componentCompilerOptions
- );
- Component.render = compile(
- template,
- finalCompilerOptions
- );
- if (true) {
- endMeasure(instance, `compile`);
- }
- }
- }
- instance.render =
- Component.render ||
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
- if (installWithProxy) {
- installWithProxy(instance);
- }
- }
- if (true) {
- setCurrentInstance(instance);
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
- applyOptions(instance);
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
- unsetCurrentInstance();
- }
- if (
- true &&
- !Component.render &&
- instance.render ===
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP &&
- !isSSR
- ) {
- if (!compile && Component.template) {
- warn(
- `Component provided template option but runtime compilation is not supported in this build of Vue.` +
- ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
- /* should not happen */
- );
- } else {
- warn(
- `Component is missing template or render function.`
- );
- }
- }
- }
- function getAttrsProxy(instance) {
- return (
- instance.attrsProxy ||
- (instance.attrsProxy = new Proxy(
- instance.attrs,
- true
- ? {
- get(target, key) {
- markAttrsAccessed();
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.track)(
- instance,
- "get",
- "$attrs"
- );
- return target[key];
- },
- set() {
- warn(
- `setupContext.attrs is readonly.`
- );
- return false;
- },
- deleteProperty() {
- warn(
- `setupContext.attrs is readonly.`
- );
- return false;
- },
- }
- : 0
- ))
- );
- }
- function getSlotsProxy(instance) {
- return (
- instance.slotsProxy ||
- (instance.slotsProxy = new Proxy(instance.slots, {
- get(target, key) {
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.track)(
- instance,
- "get",
- "$slots"
- );
- return target[key];
- },
- }))
- );
- }
- function createSetupContext(instance) {
- const expose = (exposed) => {
- if (true) {
- if (instance.exposed) {
- warn(
- `expose() should be called only once per setup().`
- );
- }
- if (exposed != null) {
- let exposedType = typeof exposed;
- if (exposedType === "object") {
- if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- exposed
- )
- ) {
- exposedType = "array";
- } else if (
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(
- exposed
- )
- ) {
- exposedType = "ref";
- }
- }
- if (exposedType !== "object") {
- warn(
- `expose() should be passed a plain object, received ${exposedType}.`
- );
- }
- }
- }
- instance.exposed = exposed || {};
- };
- if (true) {
- return Object.freeze({
- get attrs() {
- return getAttrsProxy(instance);
- },
- get slots() {
- return getSlotsProxy(instance);
- },
- get emit() {
- return (event, ...args) =>
- instance.emit(event, ...args);
- },
- expose,
- });
- } else {
- }
- }
- function getExposeProxy(instance) {
- if (instance.exposed) {
- return (
- instance.exposeProxy ||
- (instance.exposeProxy = new Proxy(
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs)(
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw)(
- instance.exposed
- )
- ),
- {
- get(target, key) {
- if (key in target) {
- return target[key];
- } else if (key in publicPropertiesMap) {
- return publicPropertiesMap[key](
- instance
- );
- }
- },
- has(target, key) {
- return (
- key in target ||
- key in publicPropertiesMap
- );
- },
- }
- ))
- );
- }
- }
- const classifyRE = /(?:^|[-_])(\w)/g;
- const classify = (str) =>
- str
- .replace(classifyRE, (c) => c.toUpperCase())
- .replace(/[-_]/g, "");
- function getComponentName(Component, includeInferred = true) {
- return (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(
- Component
- )
- ? Component.displayName || Component.name
- : Component.name ||
- (includeInferred && Component.__name);
- }
- function formatComponentName(
- instance,
- Component,
- isRoot = false
- ) {
- let name = getComponentName(Component);
- if (!name && Component.__file) {
- const match = Component.__file.match(/([^/\\]+)\.\w+$/);
- if (match) {
- name = match[1];
- }
- }
- if (!name && instance && instance.parent) {
- const inferFromRegistry = (registry) => {
- for (const key in registry) {
- if (registry[key] === Component) {
- return key;
- }
- }
- };
- name =
- inferFromRegistry(
- instance.components ||
- instance.parent.type.components
- ) ||
- inferFromRegistry(instance.appContext.components);
- }
- return name ? classify(name) : isRoot ? `App` : `Anonymous`;
- }
- function isClassComponent(value) {
- return (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(
- value
- ) && "__vccOpts" in value
- );
- }
+ if (!synchronousRequestInterceptors) {
+ var chain = [dispatchRequest, undefined];
+
+ Array.prototype.unshift.apply(chain, requestInterceptorChain);
+ chain = chain.concat(responseInterceptorChain);
+
+ promise = Promise.resolve(config);
+ while (chain.length) {
+ promise = promise.then(chain.shift(), chain.shift());
+ }
+
+ return promise;
+ }
+
+
+ var newConfig = config;
+ while (requestInterceptorChain.length) {
+ var onFulfilled = requestInterceptorChain.shift();
+ var onRejected = requestInterceptorChain.shift();
+ try {
+ newConfig = onFulfilled(newConfig);
+ } catch (error) {
+ onRejected(error);
+ break;
+ }
+ }
+
+ try {
+ promise = dispatchRequest(newConfig);
+ } catch (error) {
+ return Promise.reject(error);
+ }
+
+ while (responseInterceptorChain.length) {
+ promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
+ }
+
+ return promise;
+};
+
+Axios.prototype.getUri = function getUri(config) {
+ config = mergeConfig(this.defaults, config);
+ var fullPath = buildFullPath(config.baseURL, config.url);
+ return buildURL(fullPath, config.params, config.paramsSerializer);
+};
+
+// Provide aliases for supported request methods
+utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
+ /*eslint func-names:0*/
+ Axios.prototype[method] = function(url, config) {
+ return this.request(mergeConfig(config || {}, {
+ method: method,
+ url: url,
+ data: (config || {}).data
+ }));
+ };
+});
+
+utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+ /*eslint func-names:0*/
+
+ function generateHTTPMethod(isForm) {
+ return function httpMethod(url, data, config) {
+ return this.request(mergeConfig(config || {}, {
+ method: method,
+ headers: isForm ? {
+ 'Content-Type': 'multipart/form-data'
+ } : {},
+ url: url,
+ data: data
+ }));
+ };
+ }
+
+ Axios.prototype[method] = generateHTTPMethod();
+
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
+});
+
+module.exports = Axios;
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/AxiosError.js":
+/*!***************************************************!*\
+ !*** ./node_modules/axios/lib/core/AxiosError.js ***!
+ \***************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
+
+/**
+ * Create an Error with the specified message, config, error code, request and response.
+ *
+ * @param {string} message The error message.
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
+ * @param {Object} [config] The config.
+ * @param {Object} [request] The request.
+ * @param {Object} [response] The response.
+ * @returns {Error} The created error.
+ */
+function AxiosError(message, code, config, request, response) {
+ Error.call(this);
+ this.message = message;
+ this.name = 'AxiosError';
+ code && (this.code = code);
+ config && (this.config = config);
+ request && (this.request = request);
+ response && (this.response = response);
+}
+
+utils.inherits(AxiosError, Error, {
+ toJSON: function toJSON() {
+ return {
+ // Standard
+ message: this.message,
+ name: this.name,
+ // Microsoft
+ description: this.description,
+ number: this.number,
+ // Mozilla
+ fileName: this.fileName,
+ lineNumber: this.lineNumber,
+ columnNumber: this.columnNumber,
+ stack: this.stack,
+ // Axios
+ config: this.config,
+ code: this.code,
+ status: this.response && this.response.status ? this.response.status : null
+ };
+ }
+});
+
+var prototype = AxiosError.prototype;
+var descriptors = {};
+
+[
+ 'ERR_BAD_OPTION_VALUE',
+ 'ERR_BAD_OPTION',
+ 'ECONNABORTED',
+ 'ETIMEDOUT',
+ 'ERR_NETWORK',
+ 'ERR_FR_TOO_MANY_REDIRECTS',
+ 'ERR_DEPRECATED',
+ 'ERR_BAD_RESPONSE',
+ 'ERR_BAD_REQUEST',
+ 'ERR_CANCELED'
+// eslint-disable-next-line func-names
+].forEach(function(code) {
+ descriptors[code] = {value: code};
+});
+
+Object.defineProperties(AxiosError, descriptors);
+Object.defineProperty(prototype, 'isAxiosError', {value: true});
+
+// eslint-disable-next-line func-names
+AxiosError.from = function(error, code, config, request, response, customProps) {
+ var axiosError = Object.create(prototype);
+
+ utils.toFlatObject(error, axiosError, function filter(obj) {
+ return obj !== Error.prototype;
+ });
+
+ AxiosError.call(axiosError, error.message, code, config, request, response);
+
+ axiosError.name = error.name;
+
+ customProps && Object.assign(axiosError, customProps);
+
+ return axiosError;
+};
+
+module.exports = AxiosError;
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/InterceptorManager.js":
+/*!***********************************************************!*\
+ !*** ./node_modules/axios/lib/core/InterceptorManager.js ***!
+ \***********************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+
+function InterceptorManager() {
+ this.handlers = [];
+}
+
+/**
+ * Add a new interceptor to the stack
+ *
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
+ *
+ * @return {Number} An ID used to remove interceptor later
+ */
+InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
+ this.handlers.push({
+ fulfilled: fulfilled,
+ rejected: rejected,
+ synchronous: options ? options.synchronous : false,
+ runWhen: options ? options.runWhen : null
+ });
+ return this.handlers.length - 1;
+};
+
+/**
+ * Remove an interceptor from the stack
+ *
+ * @param {Number} id The ID that was returned by `use`
+ */
+InterceptorManager.prototype.eject = function eject(id) {
+ if (this.handlers[id]) {
+ this.handlers[id] = null;
+ }
+};
+
+/**
+ * Iterate over all the registered interceptors
+ *
+ * This method is particularly useful for skipping over any
+ * interceptors that may have become `null` calling `eject`.
+ *
+ * @param {Function} fn The function to call for each interceptor
+ */
+InterceptorManager.prototype.forEach = function forEach(fn) {
+ utils.forEach(this.handlers, function forEachHandler(h) {
+ if (h !== null) {
+ fn(h);
+ }
+ });
+};
+
+module.exports = InterceptorManager;
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/buildFullPath.js":
+/*!******************************************************!*\
+ !*** ./node_modules/axios/lib/core/buildFullPath.js ***!
+ \******************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
+var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
+
+/**
+ * Creates a new URL by combining the baseURL with the requestedURL,
+ * only when the requestedURL is not already an absolute URL.
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
+ *
+ * @param {string} baseURL The base URL
+ * @param {string} requestedURL Absolute or relative URL to combine
+ * @returns {string} The combined full path
+ */
+module.exports = function buildFullPath(baseURL, requestedURL) {
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
+ return combineURLs(baseURL, requestedURL);
+ }
+ return requestedURL;
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/dispatchRequest.js":
+/*!********************************************************!*\
+ !*** ./node_modules/axios/lib/core/dispatchRequest.js ***!
+ \********************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
- const computed = (getterOrOptions, debugOptions) => {
- return (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.computed)(
- getterOrOptions,
- debugOptions,
- isInSSRComponentSetup
- );
- };
+"use strict";
- function h(type, propsOrChildren, children) {
- const l = arguments.length;
- if (l === 2) {
- if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(
- propsOrChildren
- ) &&
- !(0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- propsOrChildren
- )
- ) {
- if (isVNode(propsOrChildren)) {
- return createVNode(type, null, [
- propsOrChildren,
- ]);
- }
- return createVNode(type, propsOrChildren);
- } else {
- return createVNode(type, null, propsOrChildren);
- }
- } else {
- if (l > 3) {
- children = Array.prototype.slice.call(arguments, 2);
- } else if (l === 3 && isVNode(children)) {
- children = [children];
- }
- return createVNode(type, propsOrChildren, children);
- }
- }
- const ssrContextKey = Symbol.for("v-scx");
- const useSSRContext = () => {
- {
- const ctx = inject(ssrContextKey);
- if (!ctx) {
- true &&
- warn(
- `Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
- );
- }
- return ctx;
- }
- };
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
+var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
+var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults/index.js");
+var CanceledError = __webpack_require__(/*! ../cancel/CanceledError */ "./node_modules/axios/lib/cancel/CanceledError.js");
- function isShallow(value) {
- return !!(value && value["__v_isShallow"]);
- }
+/**
+ * Throws a `CanceledError` if cancellation has been requested.
+ */
+function throwIfCancellationRequested(config) {
+ if (config.cancelToken) {
+ config.cancelToken.throwIfRequested();
+ }
+
+ if (config.signal && config.signal.aborted) {
+ throw new CanceledError();
+ }
+}
+
+/**
+ * Dispatch a request to the server using the configured adapter.
+ *
+ * @param {object} config The config that is to be used for the request
+ * @returns {Promise} The Promise to be fulfilled
+ */
+module.exports = function dispatchRequest(config) {
+ throwIfCancellationRequested(config);
+
+ // Ensure headers exist
+ config.headers = config.headers || {};
+
+ // Transform request data
+ config.data = transformData.call(
+ config,
+ config.data,
+ config.headers,
+ config.transformRequest
+ );
+
+ // Flatten headers
+ config.headers = utils.merge(
+ config.headers.common || {},
+ config.headers[config.method] || {},
+ config.headers
+ );
+
+ utils.forEach(
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
+ function cleanHeaderConfig(method) {
+ delete config.headers[method];
+ }
+ );
- function initCustomFormatter() {
- if (false || typeof window === "undefined") {
- return;
- }
- const vueStyle = { style: "color:#3ba776" };
- const numberStyle = { style: "color:#0b1bc9" };
- const stringStyle = { style: "color:#b62e24" };
- const keywordStyle = { style: "color:#9d288c" };
- const formatter = {
- header(obj) {
- if (
- !(0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(
- obj
- )
- ) {
- return null;
- }
- if (obj.__isVue) {
- return ["div", vueStyle, `VueInstance`];
- } else if (
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(
- obj
- )
- ) {
- return [
- "div",
- {},
- ["span", vueStyle, genRefFlag(obj)],
- "<",
- formatValue(obj.value),
- `>`,
- ];
- } else if (
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(
- obj
- )
- ) {
- return [
- "div",
- {},
- [
- "span",
- vueStyle,
- isShallow(obj)
- ? "ShallowReactive"
- : "Reactive",
- ],
- "<",
- formatValue(obj),
- `>${
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly)(
- obj
- )
- ? ` (readonly)`
- : ``
- }`,
- ];
- } else if (
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly)(
- obj
- )
- ) {
- return [
- "div",
- {},
- [
- "span",
- vueStyle,
- isShallow(obj)
- ? "ShallowReadonly"
- : "Readonly",
- ],
- "<",
- formatValue(obj),
- ">",
- ];
- }
- return null;
- },
- hasBody(obj) {
- return obj && obj.__isVue;
- },
- body(obj) {
- if (obj && obj.__isVue) {
- return ["div", {}, ...formatInstance(obj.$)];
- }
- },
- };
- function formatInstance(instance) {
- const blocks = [];
- if (instance.type.props && instance.props) {
- blocks.push(
- createInstanceBlock(
- "props",
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(
- instance.props
- )
- )
- );
- }
- if (
- instance.setupState !==
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ
- ) {
- blocks.push(
- createInstanceBlock(
- "setup",
- instance.setupState
- )
- );
- }
- if (
- instance.data !==
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ
- ) {
- blocks.push(
- createInstanceBlock(
- "data",
- (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(
- instance.data
- )
- )
- );
- }
- const computed = extractKeys(instance, "computed");
- if (computed) {
- blocks.push(
- createInstanceBlock("computed", computed)
- );
- }
- const injected = extractKeys(instance, "inject");
- if (injected) {
- blocks.push(
- createInstanceBlock("injected", injected)
- );
- }
- blocks.push([
- "div",
- {},
- [
- "span",
- {
- style: keywordStyle.style + ";opacity:0.66",
- },
- "$ (internal): ",
- ],
- ["object", { object: instance }],
- ]);
- return blocks;
- }
- function createInstanceBlock(type, target) {
- target = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(
- {},
- target
- );
- if (!Object.keys(target).length) {
- return ["span", {}];
- }
- return [
- "div",
- { style: "line-height:1.25em;margin-bottom:0.6em" },
- [
- "div",
- {
- style: "color:#476582",
- },
- type,
- ],
- [
- "div",
- {
- style: "padding-left:1.25em",
- },
- ...Object.keys(target).map((key) => {
- return [
- "div",
- {},
- ["span", keywordStyle, key + ": "],
- formatValue(target[key], false),
- ];
- }),
- ],
- ];
- }
- function formatValue(v, asRaw = true) {
- if (typeof v === "number") {
- return ["span", numberStyle, v];
- } else if (typeof v === "string") {
- return ["span", stringStyle, JSON.stringify(v)];
- } else if (typeof v === "boolean") {
- return ["span", keywordStyle, v];
- } else if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(
- v
- )
- ) {
- return [
- "object",
- {
- object: asRaw
- ? (0,
- _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(
- v
- )
- : v,
- },
- ];
- } else {
- return ["span", stringStyle, String(v)];
- }
- }
- function extractKeys(instance, type) {
- const Comp = instance.type;
- if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(
- Comp
- )
- ) {
- return;
- }
- const extracted = {};
- for (const key in instance.ctx) {
- if (isKeyOfType(Comp, key, type)) {
- extracted[key] = instance.ctx[key];
- }
- }
- return extracted;
- }
- function isKeyOfType(Comp, key, type) {
- const opts = Comp[type];
- if (
- ((0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- opts
- ) &&
- opts.includes(key)) ||
- ((0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(
- opts
- ) &&
- key in opts)
- ) {
- return true;
- }
- if (
- Comp.extends &&
- isKeyOfType(Comp.extends, key, type)
- ) {
- return true;
- }
- if (
- Comp.mixins &&
- Comp.mixins.some((m) => isKeyOfType(m, key, type))
- ) {
- return true;
- }
- }
- function genRefFlag(v) {
- if (isShallow(v)) {
- return `ShallowRef`;
- }
- if (v.effect) {
- return `ComputedRef`;
- }
- return `Ref`;
- }
- if (window.devtoolsFormatters) {
- window.devtoolsFormatters.push(formatter);
- } else {
- window.devtoolsFormatters = [formatter];
- }
- }
+ var adapter = config.adapter || defaults.adapter;
- function withMemo(memo, render, cache, index) {
- const cached = cache[index];
- if (cached && isMemoSame(cached, memo)) {
- return cached;
- }
- const ret = render();
- ret.memo = memo.slice();
- return (cache[index] = ret);
- }
- function isMemoSame(cached, memo) {
- const prev = cached.memo;
- if (prev.length != memo.length) {
- return false;
- }
- for (let i = 0; i < prev.length; i++) {
- if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasChanged)(
- prev[i],
- memo[i]
- )
- ) {
- return false;
- }
- }
- if (isBlockTreeEnabled > 0 && currentBlock) {
- currentBlock.push(cached);
- }
- return true;
- }
+ return adapter(config).then(function onAdapterResolution(response) {
+ throwIfCancellationRequested(config);
- const version = "3.3.4";
- const _ssrUtils = {
- createComponentInstance,
- setupComponent,
- renderComponentRoot,
- setCurrentRenderingInstance,
- isVNode: isVNode,
- normalizeVNode,
- };
- const ssrUtils = _ssrUtils;
- const resolveFilter = null;
- const compatUtils = null;
+ // Transform response data
+ response.data = transformData.call(
+ config,
+ response.data,
+ response.headers,
+ config.transformResponse
+ );
- /***/
- },
+ return response;
+ }, function onAdapterRejection(reason) {
+ if (!isCancel(reason)) {
+ throwIfCancellationRequested(config);
+
+ // Transform response data
+ if (reason && reason.response) {
+ reason.response.data = transformData.call(
+ config,
+ reason.response.data,
+ reason.response.headers,
+ config.transformResponse
+ );
+ }
+ }
- /***/ "./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js ***!
- \***********************************************************************/
- /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(
- __webpack_exports__,
- {
- /* harmony export */ BaseTransition: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition,
- /* harmony export */ BaseTransitionPropsValidators:
- () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransitionPropsValidators,
- /* harmony export */ Comment: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Comment,
- /* harmony export */ EffectScope: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.EffectScope,
- /* harmony export */ Fragment: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment,
- /* harmony export */ KeepAlive: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.KeepAlive,
- /* harmony export */ ReactiveEffect: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect,
- /* harmony export */ Static: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Static,
- /* harmony export */ Suspense: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Suspense,
- /* harmony export */ Teleport: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Teleport,
- /* harmony export */ Text: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Text,
- /* harmony export */ Transition: () =>
- /* binding */ Transition,
- /* harmony export */ TransitionGroup: () =>
- /* binding */ TransitionGroup,
- /* harmony export */ VueElement: () =>
- /* binding */ VueElement,
- /* harmony export */ assertNumber: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.assertNumber,
- /* harmony export */ callWithAsyncErrorHandling: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling,
- /* harmony export */ callWithErrorHandling: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithErrorHandling,
- /* harmony export */ camelize: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.camelize,
- /* harmony export */ capitalize: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.capitalize,
- /* harmony export */ cloneVNode: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.cloneVNode,
- /* harmony export */ compatUtils: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.compatUtils,
- /* harmony export */ computed: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.computed,
- /* harmony export */ createApp: () =>
- /* binding */ createApp,
- /* harmony export */ createBlock: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createBlock,
- /* harmony export */ createCommentVNode: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode,
- /* harmony export */ createElementBlock: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createElementBlock,
- /* harmony export */ createElementVNode: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createElementVNode,
- /* harmony export */ createHydrationRenderer: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer,
- /* harmony export */ createPropsRestProxy: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createPropsRestProxy,
- /* harmony export */ createRenderer: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createRenderer,
- /* harmony export */ createSSRApp: () =>
- /* binding */ createSSRApp,
- /* harmony export */ createSlots: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createSlots,
- /* harmony export */ createStaticVNode: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode,
- /* harmony export */ createTextVNode: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createTextVNode,
- /* harmony export */ createVNode: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode,
- /* harmony export */ customRef: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.customRef,
- /* harmony export */ defineAsyncComponent: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent,
- /* harmony export */ defineComponent: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineComponent,
- /* harmony export */ defineCustomElement: () =>
- /* binding */ defineCustomElement,
- /* harmony export */ defineEmits: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineEmits,
- /* harmony export */ defineExpose: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineExpose,
- /* harmony export */ defineModel: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineModel,
- /* harmony export */ defineOptions: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineOptions,
- /* harmony export */ defineProps: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineProps,
- /* harmony export */ defineSSRCustomElement: () =>
- /* binding */ defineSSRCustomElement,
- /* harmony export */ defineSlots: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineSlots,
- /* harmony export */ devtools: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.devtools,
- /* harmony export */ effect: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.effect,
- /* harmony export */ effectScope: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.effectScope,
- /* harmony export */ getCurrentInstance: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance,
- /* harmony export */ getCurrentScope: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope,
- /* harmony export */ getTransitionRawChildren: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren,
- /* harmony export */ guardReactiveProps: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps,
- /* harmony export */ h: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.h,
- /* harmony export */ handleError: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.handleError,
- /* harmony export */ hasInjectionContext: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.hasInjectionContext,
- /* harmony export */ hydrate: () =>
- /* binding */ hydrate,
- /* harmony export */ initCustomFormatter: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.initCustomFormatter,
- /* harmony export */ initDirectivesForSSR: () =>
- /* binding */ initDirectivesForSSR,
- /* harmony export */ inject: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.inject,
- /* harmony export */ isMemoSame: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isMemoSame,
- /* harmony export */ isProxy: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isProxy,
- /* harmony export */ isReactive: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isReactive,
- /* harmony export */ isReadonly: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isReadonly,
- /* harmony export */ isRef: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRef,
- /* harmony export */ isRuntimeOnly: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly,
- /* harmony export */ isShallow: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isShallow,
- /* harmony export */ isVNode: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isVNode,
- /* harmony export */ markRaw: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.markRaw,
- /* harmony export */ mergeDefaults: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeDefaults,
- /* harmony export */ mergeModels: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeModels,
- /* harmony export */ mergeProps: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeProps,
- /* harmony export */ nextTick: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.nextTick,
- /* harmony export */ normalizeClass: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeClass,
- /* harmony export */ normalizeProps: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeProps,
- /* harmony export */ normalizeStyle: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle,
- /* harmony export */ onActivated: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onActivated,
- /* harmony export */ onBeforeMount: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeMount,
- /* harmony export */ onBeforeUnmount: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeUnmount,
- /* harmony export */ onBeforeUpdate: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate,
- /* harmony export */ onDeactivated: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onDeactivated,
- /* harmony export */ onErrorCaptured: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured,
- /* harmony export */ onMounted: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onMounted,
- /* harmony export */ onRenderTracked: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onRenderTracked,
- /* harmony export */ onRenderTriggered: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onRenderTriggered,
- /* harmony export */ onScopeDispose: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose,
- /* harmony export */ onServerPrefetch: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onServerPrefetch,
- /* harmony export */ onUnmounted: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUnmounted,
- /* harmony export */ onUpdated: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUpdated,
- /* harmony export */ openBlock: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.openBlock,
- /* harmony export */ popScopeId: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.popScopeId,
- /* harmony export */ provide: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.provide,
- /* harmony export */ proxyRefs: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.proxyRefs,
- /* harmony export */ pushScopeId: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.pushScopeId,
- /* harmony export */ queuePostFlushCb: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.queuePostFlushCb,
- /* harmony export */ reactive: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.reactive,
- /* harmony export */ readonly: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.readonly,
- /* harmony export */ ref: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ref,
- /* harmony export */ registerRuntimeCompiler: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeCompiler,
- /* harmony export */ render: () => /* binding */ render,
- /* harmony export */ renderList: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.renderList,
- /* harmony export */ renderSlot: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.renderSlot,
- /* harmony export */ resolveComponent: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveComponent,
- /* harmony export */ resolveDirective: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveDirective,
- /* harmony export */ resolveDynamicComponent: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent,
- /* harmony export */ resolveFilter: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveFilter,
- /* harmony export */ resolveTransitionHooks: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks,
- /* harmony export */ setBlockTracking: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setBlockTracking,
- /* harmony export */ setDevtoolsHook: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setDevtoolsHook,
- /* harmony export */ setTransitionHooks: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks,
- /* harmony export */ shallowReactive: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowReactive,
- /* harmony export */ shallowReadonly: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly,
- /* harmony export */ shallowRef: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowRef,
- /* harmony export */ ssrContextKey: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ssrContextKey,
- /* harmony export */ ssrUtils: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ssrUtils,
- /* harmony export */ stop: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.stop,
- /* harmony export */ toDisplayString: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toDisplayString,
- /* harmony export */ toHandlerKey: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey,
- /* harmony export */ toHandlers: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toHandlers,
- /* harmony export */ toRaw: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRaw,
- /* harmony export */ toRef: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRef,
- /* harmony export */ toRefs: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRefs,
- /* harmony export */ toValue: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toValue,
- /* harmony export */ transformVNodeArgs: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.transformVNodeArgs,
- /* harmony export */ triggerRef: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.triggerRef,
- /* harmony export */ unref: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.unref,
- /* harmony export */ useAttrs: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useAttrs,
- /* harmony export */ useCssModule: () =>
- /* binding */ useCssModule,
- /* harmony export */ useCssVars: () =>
- /* binding */ useCssVars,
- /* harmony export */ useModel: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useModel,
- /* harmony export */ useSSRContext: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useSSRContext,
- /* harmony export */ useSlots: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useSlots,
- /* harmony export */ useTransitionState: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useTransitionState,
- /* harmony export */ vModelCheckbox: () =>
- /* binding */ vModelCheckbox,
- /* harmony export */ vModelDynamic: () =>
- /* binding */ vModelDynamic,
- /* harmony export */ vModelRadio: () =>
- /* binding */ vModelRadio,
- /* harmony export */ vModelSelect: () =>
- /* binding */ vModelSelect,
- /* harmony export */ vModelText: () =>
- /* binding */ vModelText,
- /* harmony export */ vShow: () => /* binding */ vShow,
- /* harmony export */ version: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.version,
- /* harmony export */ warn: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn,
- /* harmony export */ watch: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watch,
- /* harmony export */ watchEffect: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchEffect,
- /* harmony export */ watchPostEffect: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect,
- /* harmony export */ watchSyncEffect: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchSyncEffect,
- /* harmony export */ withAsyncContext: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withAsyncContext,
- /* harmony export */ withCtx: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withCtx,
- /* harmony export */ withDefaults: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withDefaults,
- /* harmony export */ withDirectives: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withDirectives,
- /* harmony export */ withKeys: () =>
- /* binding */ withKeys,
- /* harmony export */ withMemo: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withMemo,
- /* harmony export */ withModifiers: () =>
- /* binding */ withModifiers,
- /* harmony export */ withScopeId: () =>
- /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withScopeId,
- /* harmony export */
- }
- );
- /* harmony import */ var _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(
- /*! @vue/runtime-core */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"
- );
- /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(
- /*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js"
- );
- /* harmony import */ var _vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__ =
- __webpack_require__(
- /*! @vue/runtime-core */ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js"
- );
-
- const svgNS = "http://www.w3.org/2000/svg";
- const doc = typeof document !== "undefined" ? document : null;
- const templateContainer =
- doc && /* @__PURE__ */ doc.createElement("template");
- const nodeOps = {
- insert: (child, parent, anchor) => {
- parent.insertBefore(child, anchor || null);
- },
- remove: (child) => {
- const parent = child.parentNode;
- if (parent) {
- parent.removeChild(child);
- }
- },
- createElement: (tag, isSVG, is, props) => {
- const el = isSVG
- ? doc.createElementNS(svgNS, tag)
- : doc.createElement(tag, is ? { is } : void 0);
- if (
- tag === "select" &&
- props &&
- props.multiple != null
- ) {
- el.setAttribute("multiple", props.multiple);
- }
- return el;
- },
- createText: (text) => doc.createTextNode(text),
- createComment: (text) => doc.createComment(text),
- setText: (node, text) => {
- node.nodeValue = text;
- },
- setElementText: (el, text) => {
- el.textContent = text;
- },
- parentNode: (node) => node.parentNode,
- nextSibling: (node) => node.nextSibling,
- querySelector: (selector) => doc.querySelector(selector),
- setScopeId(el, id) {
- el.setAttribute(id, "");
- },
- // __UNSAFE__
- // Reason: innerHTML.
- // Static content here can only come from compiled templates.
- // As long as the user only uses trusted templates, this is safe.
- insertStaticContent(
- content,
- parent,
- anchor,
- isSVG,
- start,
- end
- ) {
- const before = anchor
- ? anchor.previousSibling
- : parent.lastChild;
- if (start && (start === end || start.nextSibling)) {
- while (true) {
- parent.insertBefore(
- start.cloneNode(true),
- anchor
- );
- if (
- start === end ||
- !(start = start.nextSibling)
- )
- break;
- }
- } else {
- templateContainer.innerHTML = isSVG
- ? ``
- : content;
- const template = templateContainer.content;
- if (isSVG) {
- const wrapper = template.firstChild;
- while (wrapper.firstChild) {
- template.appendChild(wrapper.firstChild);
- }
- template.removeChild(wrapper);
- }
- parent.insertBefore(template, anchor);
- }
- return [
- // first
- before ? before.nextSibling : parent.firstChild,
- // last
- anchor ? anchor.previousSibling : parent.lastChild,
- ];
- },
- };
+ return Promise.reject(reason);
+ });
+};
- function patchClass(el, value, isSVG) {
- const transitionClasses = el._vtc;
- if (transitionClasses) {
- value = (
- value
- ? [value, ...transitionClasses]
- : [...transitionClasses]
- ).join(" ");
- }
- if (value == null) {
- el.removeAttribute("class");
- } else if (isSVG) {
- el.setAttribute("class", value);
- } else {
- el.className = value;
- }
- }
- function patchStyle(el, prev, next) {
- const style = el.style;
- const isCssString = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(next);
- if (next && !isCssString) {
- if (
- prev &&
- !(0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(
- prev
- )
- ) {
- for (const key in prev) {
- if (next[key] == null) {
- setStyle(style, key, "");
- }
- }
- }
- for (const key in next) {
- setStyle(style, key, next[key]);
- }
- } else {
- const currentDisplay = style.display;
- if (isCssString) {
- if (prev !== next) {
- style.cssText = next;
- }
- } else if (prev) {
- el.removeAttribute("style");
- }
- if ("_vod" in el) {
- style.display = currentDisplay;
- }
- }
- }
- const semicolonRE = /[^\\];\s*$/;
- const importantRE = /\s*!important$/;
- function setStyle(style, name, val) {
- if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- val
- )
- ) {
- val.forEach((v) => setStyle(style, name, v));
- } else {
- if (val == null) val = "";
- if (true) {
- if (semicolonRE.test(val)) {
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(
- `Unexpected semicolon at the end of '${name}' style value: '${val}'`
- );
- }
- }
- if (name.startsWith("--")) {
- style.setProperty(name, val);
- } else {
- const prefixed = autoPrefix(style, name);
- if (importantRE.test(val)) {
- style.setProperty(
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(
- prefixed
- ),
- val.replace(importantRE, ""),
- "important"
- );
- } else {
- style[prefixed] = val;
- }
- }
- }
- }
- const prefixes = ["Webkit", "Moz", "ms"];
- const prefixCache = {};
- function autoPrefix(style, rawName) {
- const cached = prefixCache[rawName];
- if (cached) {
- return cached;
- }
- let name = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(rawName);
- if (name !== "filter" && name in style) {
- return (prefixCache[rawName] = name);
- }
- name = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)(name);
- for (let i = 0; i < prefixes.length; i++) {
- const prefixed = prefixes[i] + name;
- if (prefixed in style) {
- return (prefixCache[rawName] = prefixed);
- }
- }
- return rawName;
- }
+/***/ }),
- const xlinkNS = "http://www.w3.org/1999/xlink";
- function patchAttr(el, key, value, isSVG, instance) {
- if (isSVG && key.startsWith("xlink:")) {
- if (value == null) {
- el.removeAttributeNS(
- xlinkNS,
- key.slice(6, key.length)
- );
- } else {
- el.setAttributeNS(xlinkNS, key, value);
- }
- } else {
- const isBoolean = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSpecialBooleanAttr)(
- key
- );
- if (
- value == null ||
- (isBoolean &&
- !(0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.includeBooleanAttr)(
- value
- ))
- ) {
- el.removeAttribute(key);
- } else {
- el.setAttribute(key, isBoolean ? "" : value);
- }
- }
- }
+/***/ "./node_modules/axios/lib/core/mergeConfig.js":
+/*!****************************************************!*\
+ !*** ./node_modules/axios/lib/core/mergeConfig.js ***!
+ \****************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
- function patchDOMProp(
- el,
- key,
- value,
- prevChildren,
- parentComponent,
- parentSuspense,
- unmountChildren
- ) {
- if (key === "innerHTML" || key === "textContent") {
- if (prevChildren) {
- unmountChildren(
- prevChildren,
- parentComponent,
- parentSuspense
- );
- }
- el[key] = value == null ? "" : value;
- return;
- }
- const tag = el.tagName;
- if (
- key === "value" &&
- tag !== "PROGRESS" && // custom elements may use _value internally
- !tag.includes("-")
- ) {
- el._value = value;
- const oldValue =
- tag === "OPTION"
- ? el.getAttribute("value")
- : el.value;
- const newValue = value == null ? "" : value;
- if (oldValue !== newValue) {
- el.value = newValue;
- }
- if (value == null) {
- el.removeAttribute(key);
- }
- return;
- }
- let needRemove = false;
- if (value === "" || value == null) {
- const type = typeof el[key];
- if (type === "boolean") {
- value = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.includeBooleanAttr)(
- value
- );
- } else if (value == null && type === "string") {
- value = "";
- needRemove = true;
- } else if (type === "number") {
- value = 0;
- needRemove = true;
- }
- }
- try {
- el[key] = value;
- } catch (e) {
- if (true && !needRemove) {
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(
- `Failed setting prop "${key}" on <${tag.toLowerCase()}>: value ${value} is invalid.`,
- e
- );
- }
- }
- needRemove && el.removeAttribute(key);
- }
+"use strict";
- function addEventListener(el, event, handler, options) {
- el.addEventListener(event, handler, options);
- }
- function removeEventListener(el, event, handler, options) {
- el.removeEventListener(event, handler, options);
- }
- function patchEvent(
- el,
- rawName,
- prevValue,
- nextValue,
- instance = null
- ) {
- const invokers = el._vei || (el._vei = {});
- const existingInvoker = invokers[rawName];
- if (nextValue && existingInvoker) {
- existingInvoker.value = nextValue;
- } else {
- const [name, options] = parseName(rawName);
- if (nextValue) {
- const invoker = (invokers[rawName] = createInvoker(
- nextValue,
- instance
- ));
- addEventListener(el, name, invoker, options);
- } else if (existingInvoker) {
- removeEventListener(
- el,
- name,
- existingInvoker,
- options
- );
- invokers[rawName] = void 0;
- }
- }
- }
- const optionsModifierRE = /(?:Once|Passive|Capture)$/;
- function parseName(name) {
- let options;
- if (optionsModifierRE.test(name)) {
- options = {};
- let m;
- while ((m = name.match(optionsModifierRE))) {
- name = name.slice(0, name.length - m[0].length);
- options[m[0].toLowerCase()] = true;
- }
- }
- const event =
- name[2] === ":"
- ? name.slice(3)
- : (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(
- name.slice(2)
- );
- return [event, options];
- }
- let cachedNow = 0;
- const p = /* @__PURE__ */ Promise.resolve();
- const getNow = () =>
- cachedNow ||
- (p.then(() => (cachedNow = 0)), (cachedNow = Date.now()));
- function createInvoker(initialValue, instance) {
- const invoker = (e) => {
- if (!e._vts) {
- e._vts = Date.now();
- } else if (e._vts <= invoker.attached) {
- return;
- }
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling)(
- patchStopImmediatePropagation(e, invoker.value),
- instance,
- 5,
- [e]
- );
- };
- invoker.value = initialValue;
- invoker.attached = getNow();
- return invoker;
- }
- function patchStopImmediatePropagation(e, value) {
- if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- value
- )
- ) {
- const originalStop = e.stopImmediatePropagation;
- e.stopImmediatePropagation = () => {
- originalStop.call(e);
- e._stopped = true;
- };
- return value.map(
- (fn) => (e2) => !e2._stopped && fn && fn(e2)
- );
- } else {
- return value;
- }
- }
- const nativeOnRE = /^on[a-z]/;
- const patchProp = (
- el,
- key,
- prevValue,
- nextValue,
- isSVG = false,
- prevChildren,
- parentComponent,
- parentSuspense,
- unmountChildren
- ) => {
- if (key === "class") {
- patchClass(el, nextValue, isSVG);
- } else if (key === "style") {
- patchStyle(el, prevValue, nextValue);
- } else if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)
- ) {
- if (
- !(0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(
- key
- )
- ) {
- patchEvent(
- el,
- key,
- prevValue,
- nextValue,
- parentComponent
- );
- }
- } else if (
- key[0] === "."
- ? ((key = key.slice(1)), true)
- : key[0] === "^"
- ? ((key = key.slice(1)), false)
- : shouldSetAsProp(el, key, nextValue, isSVG)
- ) {
- patchDOMProp(
- el,
- key,
- nextValue,
- prevChildren,
- parentComponent,
- parentSuspense,
- unmountChildren
- );
- } else {
- if (key === "true-value") {
- el._trueValue = nextValue;
- } else if (key === "false-value") {
- el._falseValue = nextValue;
- }
- patchAttr(el, key, nextValue, isSVG);
- }
- };
- function shouldSetAsProp(el, key, value, isSVG) {
- if (isSVG) {
- if (key === "innerHTML" || key === "textContent") {
- return true;
- }
- if (
- key in el &&
- nativeOnRE.test(key) &&
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(
- value
- )
- ) {
- return true;
- }
- return false;
- }
- if (
- key === "spellcheck" ||
- key === "draggable" ||
- key === "translate"
- ) {
- return false;
- }
- if (key === "form") {
- return false;
- }
- if (key === "list" && el.tagName === "INPUT") {
- return false;
- }
- if (key === "type" && el.tagName === "TEXTAREA") {
- return false;
- }
- if (
- nativeOnRE.test(key) &&
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(
- value
- )
- ) {
- return false;
- }
- return key in el;
- }
+var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
- function defineCustomElement(options, hydrate2) {
- const Comp = (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineComponent)(
- options
- );
- class VueCustomElement extends VueElement {
- constructor(initialProps) {
- super(Comp, initialProps, hydrate2);
- }
- }
- VueCustomElement.def = Comp;
- return VueCustomElement;
- }
- const defineSSRCustomElement = (options) => {
- return defineCustomElement(options, hydrate);
- };
- const BaseClass =
- typeof HTMLElement !== "undefined" ? HTMLElement : class {};
- class VueElement extends BaseClass {
- constructor(_def, _props = {}, hydrate2) {
- super();
- this._def = _def;
- this._props = _props;
- /**
- * @internal
- */
- this._instance = null;
- this._connected = false;
- this._resolved = false;
- this._numberProps = null;
- if (this.shadowRoot && hydrate2) {
- hydrate2(this._createVNode(), this.shadowRoot);
- } else {
- if (true && this.shadowRoot) {
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(
- `Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use \`defineSSRCustomElement\`.`
- );
- }
- this.attachShadow({ mode: "open" });
- if (!this._def.__asyncLoader) {
- this._resolveProps(this._def);
- }
- }
- }
- connectedCallback() {
- this._connected = true;
- if (!this._instance) {
- if (this._resolved) {
- this._update();
- } else {
- this._resolveDef();
- }
- }
- }
- disconnectedCallback() {
- this._connected = false;
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.nextTick)(
- () => {
- if (!this._connected) {
- render(null, this.shadowRoot);
- this._instance = null;
- }
- }
- );
- }
- /**
- * resolve inner component definition (handle possible async component)
- */
- _resolveDef() {
- this._resolved = true;
- for (let i = 0; i < this.attributes.length; i++) {
- this._setAttr(this.attributes[i].name);
- }
- new MutationObserver((mutations) => {
- for (const m of mutations) {
- this._setAttr(m.attributeName);
- }
- }).observe(this, { attributes: true });
- const resolve = (def, isAsync = false) => {
- const { props, styles } = def;
- let numberProps;
- if (
- props &&
- !(0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- props
- )
- ) {
- for (const key in props) {
- const opt = props[key];
- if (
- opt === Number ||
- (opt && opt.type === Number)
- ) {
- if (key in this._props) {
- this._props[key] = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(
- this._props[key]
- );
- }
- (numberProps ||
- (numberProps =
- /* @__PURE__ */ Object.create(
- null
- )))[
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(
- key
- )
- ] = true;
- }
- }
- }
- this._numberProps = numberProps;
- if (isAsync) {
- this._resolveProps(def);
- }
- this._applyStyles(styles);
- this._update();
- };
- const asyncDef = this._def.__asyncLoader;
- if (asyncDef) {
- asyncDef().then((def) => resolve(def, true));
- } else {
- resolve(this._def);
- }
- }
- _resolveProps(def) {
- const { props } = def;
- const declaredPropKeys = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(props)
- ? props
- : Object.keys(props || {});
- for (const key of Object.keys(this)) {
- if (
- key[0] !== "_" &&
- declaredPropKeys.includes(key)
- ) {
- this._setProp(key, this[key], true, false);
- }
- }
- for (const key of declaredPropKeys.map(
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize
- )) {
- Object.defineProperty(this, key, {
- get() {
- return this._getProp(key);
- },
- set(val) {
- this._setProp(key, val);
- },
- });
- }
- }
- _setAttr(key) {
- let value = this.getAttribute(key);
- const camelKey = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key);
- if (this._numberProps && this._numberProps[camelKey]) {
- value = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(
- value
- );
- }
- this._setProp(camelKey, value, false);
- }
- /**
- * @internal
- */
- _getProp(key) {
- return this._props[key];
- }
- /**
- * @internal
- */
- _setProp(
- key,
- val,
- shouldReflect = true,
- shouldUpdate = true
- ) {
- if (val !== this._props[key]) {
- this._props[key] = val;
- if (shouldUpdate && this._instance) {
- this._update();
- }
- if (shouldReflect) {
- if (val === true) {
- this.setAttribute(
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(
- key
- ),
- ""
- );
- } else if (
- typeof val === "string" ||
- typeof val === "number"
- ) {
- this.setAttribute(
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(
- key
- ),
- val + ""
- );
- } else if (!val) {
- this.removeAttribute(
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(
- key
- )
- );
- }
- }
- }
- }
- _update() {
- render(this._createVNode(), this.shadowRoot);
- }
- _createVNode() {
- const vnode = (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode)(
- this._def,
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(
- {},
- this._props
- )
- );
- if (!this._instance) {
- vnode.ce = (instance) => {
- this._instance = instance;
- instance.isCE = true;
- if (true) {
- instance.ceReload = (newStyles) => {
- if (this._styles) {
- this._styles.forEach((s) =>
- this.shadowRoot.removeChild(s)
- );
- this._styles.length = 0;
- }
- this._applyStyles(newStyles);
- this._instance = null;
- this._update();
- };
- }
- const dispatch = (event, args) => {
- this.dispatchEvent(
- new CustomEvent(event, {
- detail: args,
- })
- );
- };
- instance.emit = (event, ...args) => {
- dispatch(event, args);
- if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(
- event
- ) !== event
- ) {
- dispatch(
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(
- event
- ),
- args
- );
- }
- };
- let parent = this;
- while (
- (parent =
- parent &&
- (parent.parentNode || parent.host))
- ) {
- if (parent instanceof VueElement) {
- instance.parent = parent._instance;
- instance.provides =
- parent._instance.provides;
- break;
- }
- }
- };
- }
- return vnode;
- }
- _applyStyles(styles) {
- if (styles) {
- styles.forEach((css) => {
- const s = document.createElement("style");
- s.textContent = css;
- this.shadowRoot.appendChild(s);
- if (true) {
- (this._styles || (this._styles = [])).push(
- s
- );
- }
- });
- }
- }
- }
+/**
+ * Config-specific merge-function which creates a new config-object
+ * by merging two configuration objects together.
+ *
+ * @param {Object} config1
+ * @param {Object} config2
+ * @returns {Object} New object resulting from merging config2 to config1
+ */
+module.exports = function mergeConfig(config1, config2) {
+ // eslint-disable-next-line no-param-reassign
+ config2 = config2 || {};
+ var config = {};
+
+ function getMergedValue(target, source) {
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
+ return utils.merge(target, source);
+ } else if (utils.isPlainObject(source)) {
+ return utils.merge({}, source);
+ } else if (utils.isArray(source)) {
+ return source.slice();
+ }
+ return source;
+ }
+
+ // eslint-disable-next-line consistent-return
+ function mergeDeepProperties(prop) {
+ if (!utils.isUndefined(config2[prop])) {
+ return getMergedValue(config1[prop], config2[prop]);
+ } else if (!utils.isUndefined(config1[prop])) {
+ return getMergedValue(undefined, config1[prop]);
+ }
+ }
+
+ // eslint-disable-next-line consistent-return
+ function valueFromConfig2(prop) {
+ if (!utils.isUndefined(config2[prop])) {
+ return getMergedValue(undefined, config2[prop]);
+ }
+ }
+
+ // eslint-disable-next-line consistent-return
+ function defaultToConfig2(prop) {
+ if (!utils.isUndefined(config2[prop])) {
+ return getMergedValue(undefined, config2[prop]);
+ } else if (!utils.isUndefined(config1[prop])) {
+ return getMergedValue(undefined, config1[prop]);
+ }
+ }
+
+ // eslint-disable-next-line consistent-return
+ function mergeDirectKeys(prop) {
+ if (prop in config2) {
+ return getMergedValue(config1[prop], config2[prop]);
+ } else if (prop in config1) {
+ return getMergedValue(undefined, config1[prop]);
+ }
+ }
+
+ var mergeMap = {
+ 'url': valueFromConfig2,
+ 'method': valueFromConfig2,
+ 'data': valueFromConfig2,
+ 'baseURL': defaultToConfig2,
+ 'transformRequest': defaultToConfig2,
+ 'transformResponse': defaultToConfig2,
+ 'paramsSerializer': defaultToConfig2,
+ 'timeout': defaultToConfig2,
+ 'timeoutMessage': defaultToConfig2,
+ 'withCredentials': defaultToConfig2,
+ 'adapter': defaultToConfig2,
+ 'responseType': defaultToConfig2,
+ 'xsrfCookieName': defaultToConfig2,
+ 'xsrfHeaderName': defaultToConfig2,
+ 'onUploadProgress': defaultToConfig2,
+ 'onDownloadProgress': defaultToConfig2,
+ 'decompress': defaultToConfig2,
+ 'maxContentLength': defaultToConfig2,
+ 'maxBodyLength': defaultToConfig2,
+ 'beforeRedirect': defaultToConfig2,
+ 'transport': defaultToConfig2,
+ 'httpAgent': defaultToConfig2,
+ 'httpsAgent': defaultToConfig2,
+ 'cancelToken': defaultToConfig2,
+ 'socketPath': defaultToConfig2,
+ 'responseEncoding': defaultToConfig2,
+ 'validateStatus': mergeDirectKeys
+ };
+
+ utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
+ var merge = mergeMap[prop] || mergeDeepProperties;
+ var configValue = merge(prop);
+ (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
+ });
+
+ return config;
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/settle.js":
+/*!***********************************************!*\
+ !*** ./node_modules/axios/lib/core/settle.js ***!
+ \***********************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var AxiosError = __webpack_require__(/*! ./AxiosError */ "./node_modules/axios/lib/core/AxiosError.js");
+
+/**
+ * Resolve or reject a Promise based on response status.
+ *
+ * @param {Function} resolve A function that resolves the promise.
+ * @param {Function} reject A function that rejects the promise.
+ * @param {object} response The response.
+ */
+module.exports = function settle(resolve, reject, response) {
+ var validateStatus = response.config.validateStatus;
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
+ resolve(response);
+ } else {
+ reject(new AxiosError(
+ 'Request failed with status code ' + response.status,
+ [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
+ response.config,
+ response.request,
+ response
+ ));
+ }
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/transformData.js":
+/*!******************************************************!*\
+ !*** ./node_modules/axios/lib/core/transformData.js ***!
+ \******************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
+var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults/index.js");
+
+/**
+ * Transform the data for a request or a response
+ *
+ * @param {Object|String} data The data to be transformed
+ * @param {Array} headers The headers for the request or response
+ * @param {Array|Function} fns A single function or Array of functions
+ * @returns {*} The resulting transformed data
+ */
+module.exports = function transformData(data, headers, fns) {
+ var context = this || defaults;
+ /*eslint no-param-reassign:0*/
+ utils.forEach(fns, function transform(fn) {
+ data = fn.call(context, data, headers);
+ });
+
+ return data;
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/defaults/index.js":
+/*!**************************************************!*\
+ !*** ./node_modules/axios/lib/defaults/index.js ***!
+ \**************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+/* provided dependency */ var process = __webpack_require__(/*! process/browser.js */ "./node_modules/process/browser.js");
+
+
+var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
+var normalizeHeaderName = __webpack_require__(/*! ../helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js");
+var AxiosError = __webpack_require__(/*! ../core/AxiosError */ "./node_modules/axios/lib/core/AxiosError.js");
+var transitionalDefaults = __webpack_require__(/*! ./transitional */ "./node_modules/axios/lib/defaults/transitional.js");
+var toFormData = __webpack_require__(/*! ../helpers/toFormData */ "./node_modules/axios/lib/helpers/toFormData.js");
+
+var DEFAULT_CONTENT_TYPE = {
+ 'Content-Type': 'application/x-www-form-urlencoded'
+};
+
+function setContentTypeIfUnset(headers, value) {
+ if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
+ headers['Content-Type'] = value;
+ }
+}
+
+function getDefaultAdapter() {
+ var adapter;
+ if (typeof XMLHttpRequest !== 'undefined') {
+ // For browsers use XHR adapter
+ adapter = __webpack_require__(/*! ../adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
+ } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
+ // For node use HTTP adapter
+ adapter = __webpack_require__(/*! ../adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
+ }
+ return adapter;
+}
+
+function stringifySafely(rawValue, parser, encoder) {
+ if (utils.isString(rawValue)) {
+ try {
+ (parser || JSON.parse)(rawValue);
+ return utils.trim(rawValue);
+ } catch (e) {
+ if (e.name !== 'SyntaxError') {
+ throw e;
+ }
+ }
+ }
+
+ return (encoder || JSON.stringify)(rawValue);
+}
+
+var defaults = {
+
+ transitional: transitionalDefaults,
+
+ adapter: getDefaultAdapter(),
+
+ transformRequest: [function transformRequest(data, headers) {
+ normalizeHeaderName(headers, 'Accept');
+ normalizeHeaderName(headers, 'Content-Type');
+
+ if (utils.isFormData(data) ||
+ utils.isArrayBuffer(data) ||
+ utils.isBuffer(data) ||
+ utils.isStream(data) ||
+ utils.isFile(data) ||
+ utils.isBlob(data)
+ ) {
+ return data;
+ }
+ if (utils.isArrayBufferView(data)) {
+ return data.buffer;
+ }
+ if (utils.isURLSearchParams(data)) {
+ setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
+ return data.toString();
+ }
+
+ var isObjectPayload = utils.isObject(data);
+ var contentType = headers && headers['Content-Type'];
+
+ var isFileList;
+
+ if ((isFileList = utils.isFileList(data)) || (isObjectPayload && contentType === 'multipart/form-data')) {
+ var _FormData = this.env && this.env.FormData;
+ return toFormData(isFileList ? {'files[]': data} : data, _FormData && new _FormData());
+ } else if (isObjectPayload || contentType === 'application/json') {
+ setContentTypeIfUnset(headers, 'application/json');
+ return stringifySafely(data);
+ }
+
+ return data;
+ }],
+
+ transformResponse: [function transformResponse(data) {
+ var transitional = this.transitional || defaults.transitional;
+ var silentJSONParsing = transitional && transitional.silentJSONParsing;
+ var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
+ var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
+
+ if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
+ try {
+ return JSON.parse(data);
+ } catch (e) {
+ if (strictJSONParsing) {
+ if (e.name === 'SyntaxError') {
+ throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
+ }
+ throw e;
+ }
+ }
+ }
+
+ return data;
+ }],
+
+ /**
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
+ * timeout is not created.
+ */
+ timeout: 0,
+
+ xsrfCookieName: 'XSRF-TOKEN',
+ xsrfHeaderName: 'X-XSRF-TOKEN',
+
+ maxContentLength: -1,
+ maxBodyLength: -1,
- function useCssModule(name = "$style") {
- {
- const instance = (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
- if (!instance) {
- true &&
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(
- `useCssModule must be called inside setup()`
- );
- return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
- }
- const modules = instance.type.__cssModules;
- if (!modules) {
- true &&
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(
- `Current instance does not have CSS modules injected.`
- );
- return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
- }
- const mod = modules[name];
- if (!mod) {
- true &&
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(
- `Current instance does not have CSS module named "${name}".`
- );
- return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
- }
- return mod;
- }
- }
+ env: {
+ FormData: __webpack_require__(/*! ./env/FormData */ "./node_modules/axios/lib/helpers/null.js")
+ },
- function useCssVars(getter) {
- const instance = (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
- if (!instance) {
- true &&
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(
- `useCssVars is called without current active component instance.`
- );
- return;
- }
- const updateTeleports = (instance.ut = (
- vars = getter(instance.proxy)
- ) => {
- Array.from(
- document.querySelectorAll(
- `[data-v-owner="${instance.uid}"]`
- )
- ).forEach((node) => setVarsOnNode(node, vars));
- });
- const setVars = () => {
- const vars = getter(instance.proxy);
- setVarsOnVNode(instance.subTree, vars);
- updateTeleports(vars);
- };
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect)(
- setVars
- );
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onMounted)(
- () => {
- const ob = new MutationObserver(setVars);
- ob.observe(instance.subTree.el.parentNode, {
- childList: true,
- });
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUnmounted)(
- () => ob.disconnect()
- );
- }
- );
- }
- function setVarsOnVNode(vnode, vars) {
- if (vnode.shapeFlag & 128) {
- const suspense = vnode.suspense;
- vnode = suspense.activeBranch;
- if (suspense.pendingBranch && !suspense.isHydrating) {
- suspense.effects.push(() => {
- setVarsOnVNode(suspense.activeBranch, vars);
- });
- }
- }
- while (vnode.component) {
- vnode = vnode.component.subTree;
- }
- if (vnode.shapeFlag & 1 && vnode.el) {
- setVarsOnNode(vnode.el, vars);
- } else if (
- vnode.type ===
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment
- ) {
- vnode.children.forEach((c) => setVarsOnVNode(c, vars));
- } else if (
- vnode.type ===
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Static
- ) {
- let { el, anchor } = vnode;
- while (el) {
- setVarsOnNode(el, vars);
- if (el === anchor) break;
- el = el.nextSibling;
- }
- }
- }
- function setVarsOnNode(el, vars) {
- if (el.nodeType === 1) {
- const style = el.style;
- for (const key in vars) {
- style.setProperty(`--${key}`, vars[key]);
- }
- }
- }
+ validateStatus: function validateStatus(status) {
+ return status >= 200 && status < 300;
+ },
- const TRANSITION = "transition";
- const ANIMATION = "animation";
- const Transition = (props, { slots }) =>
- (0, _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.h)(
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition,
- resolveTransitionProps(props),
- slots
- );
- Transition.displayName = "Transition";
- const DOMTransitionPropsValidators = {
- name: String,
- type: String,
- css: {
- type: Boolean,
- default: true,
- },
- duration: [String, Number, Object],
- enterFromClass: String,
- enterActiveClass: String,
- enterToClass: String,
- appearFromClass: String,
- appearActiveClass: String,
- appearToClass: String,
- leaveFromClass: String,
- leaveActiveClass: String,
- leaveToClass: String,
- };
- const TransitionPropsValidators = (Transition.props =
- /* @__PURE__ */ (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(
- {},
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransitionPropsValidators,
- DOMTransitionPropsValidators
- ));
- const callHook = (hook, args = []) => {
- if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- hook
- )
- ) {
- hook.forEach((h2) => h2(...args));
- } else if (hook) {
- hook(...args);
- }
- };
- const hasExplicitCallback = (hook) => {
- return hook
- ? (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- hook
- )
- ? hook.some((h2) => h2.length > 1)
- : hook.length > 1
- : false;
- };
- function resolveTransitionProps(rawProps) {
- const baseProps = {};
- for (const key in rawProps) {
- if (!(key in DOMTransitionPropsValidators)) {
- baseProps[key] = rawProps[key];
- }
- }
- if (rawProps.css === false) {
- return baseProps;
- }
- const {
- name = "v",
- type,
- duration,
- enterFromClass = `${name}-enter-from`,
- enterActiveClass = `${name}-enter-active`,
- enterToClass = `${name}-enter-to`,
- appearFromClass = enterFromClass,
- appearActiveClass = enterActiveClass,
- appearToClass = enterToClass,
- leaveFromClass = `${name}-leave-from`,
- leaveActiveClass = `${name}-leave-active`,
- leaveToClass = `${name}-leave-to`,
- } = rawProps;
- const durations = normalizeDuration(duration);
- const enterDuration = durations && durations[0];
- const leaveDuration = durations && durations[1];
- const {
- onBeforeEnter,
- onEnter,
- onEnterCancelled,
- onLeave,
- onLeaveCancelled,
- onBeforeAppear = onBeforeEnter,
- onAppear = onEnter,
- onAppearCancelled = onEnterCancelled,
- } = baseProps;
- const finishEnter = (el, isAppear, done) => {
- removeTransitionClass(
- el,
- isAppear ? appearToClass : enterToClass
- );
- removeTransitionClass(
- el,
- isAppear ? appearActiveClass : enterActiveClass
- );
- done && done();
- };
- const finishLeave = (el, done) => {
- el._isLeaving = false;
- removeTransitionClass(el, leaveFromClass);
- removeTransitionClass(el, leaveToClass);
- removeTransitionClass(el, leaveActiveClass);
- done && done();
- };
- const makeEnterHook = (isAppear) => {
- return (el, done) => {
- const hook = isAppear ? onAppear : onEnter;
- const resolve = () =>
- finishEnter(el, isAppear, done);
- callHook(hook, [el, resolve]);
- nextFrame(() => {
- removeTransitionClass(
- el,
- isAppear ? appearFromClass : enterFromClass
- );
- addTransitionClass(
- el,
- isAppear ? appearToClass : enterToClass
- );
- if (!hasExplicitCallback(hook)) {
- whenTransitionEnds(
- el,
- type,
- enterDuration,
- resolve
- );
- }
- });
- };
- };
- return (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(
- baseProps,
- {
- onBeforeEnter(el) {
- callHook(onBeforeEnter, [el]);
- addTransitionClass(el, enterFromClass);
- addTransitionClass(el, enterActiveClass);
- },
- onBeforeAppear(el) {
- callHook(onBeforeAppear, [el]);
- addTransitionClass(el, appearFromClass);
- addTransitionClass(el, appearActiveClass);
- },
- onEnter: makeEnterHook(false),
- onAppear: makeEnterHook(true),
- onLeave(el, done) {
- el._isLeaving = true;
- const resolve = () => finishLeave(el, done);
- addTransitionClass(el, leaveFromClass);
- forceReflow();
- addTransitionClass(el, leaveActiveClass);
- nextFrame(() => {
- if (!el._isLeaving) {
- return;
- }
- removeTransitionClass(el, leaveFromClass);
- addTransitionClass(el, leaveToClass);
- if (!hasExplicitCallback(onLeave)) {
- whenTransitionEnds(
- el,
- type,
- leaveDuration,
- resolve
- );
- }
- });
- callHook(onLeave, [el, resolve]);
- },
- onEnterCancelled(el) {
- finishEnter(el, false);
- callHook(onEnterCancelled, [el]);
- },
- onAppearCancelled(el) {
- finishEnter(el, true);
- callHook(onAppearCancelled, [el]);
- },
- onLeaveCancelled(el) {
- finishLeave(el);
- callHook(onLeaveCancelled, [el]);
- },
- }
- );
- }
- function normalizeDuration(duration) {
- if (duration == null) {
- return null;
- } else if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(
- duration
- )
- ) {
- return [
- NumberOf(duration.enter),
- NumberOf(duration.leave),
- ];
- } else {
- const n = NumberOf(duration);
- return [n, n];
- }
- }
- function NumberOf(val) {
- const res = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(val);
- if (true) {
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.assertNumber)(
- res,
- " explicit duration"
- );
- }
- return res;
- }
- function addTransitionClass(el, cls) {
- cls.split(/\s+/).forEach((c) => c && el.classList.add(c));
- (el._vtc || (el._vtc = /* @__PURE__ */ new Set())).add(cls);
- }
- function removeTransitionClass(el, cls) {
- cls.split(/\s+/).forEach(
- (c) => c && el.classList.remove(c)
- );
- const { _vtc } = el;
- if (_vtc) {
- _vtc.delete(cls);
- if (!_vtc.size) {
- el._vtc = void 0;
- }
- }
- }
- function nextFrame(cb) {
- requestAnimationFrame(() => {
- requestAnimationFrame(cb);
- });
- }
- let endId = 0;
- function whenTransitionEnds(
- el,
- expectedType,
- explicitTimeout,
- resolve
- ) {
- const id = (el._endId = ++endId);
- const resolveIfNotStale = () => {
- if (id === el._endId) {
- resolve();
- }
- };
- if (explicitTimeout) {
- return setTimeout(resolveIfNotStale, explicitTimeout);
- }
- const { type, timeout, propCount } = getTransitionInfo(
- el,
- expectedType
- );
- if (!type) {
- return resolve();
- }
- const endEvent = type + "end";
- let ended = 0;
- const end = () => {
- el.removeEventListener(endEvent, onEnd);
- resolveIfNotStale();
- };
- const onEnd = (e) => {
- if (e.target === el && ++ended >= propCount) {
- end();
- }
- };
- setTimeout(() => {
- if (ended < propCount) {
- end();
- }
- }, timeout + 1);
- el.addEventListener(endEvent, onEnd);
- }
- function getTransitionInfo(el, expectedType) {
- const styles = window.getComputedStyle(el);
- const getStyleProperties = (key) =>
- (styles[key] || "").split(", ");
- const transitionDelays = getStyleProperties(
- `${TRANSITION}Delay`
- );
- const transitionDurations = getStyleProperties(
- `${TRANSITION}Duration`
- );
- const transitionTimeout = getTimeout(
- transitionDelays,
- transitionDurations
- );
- const animationDelays = getStyleProperties(
- `${ANIMATION}Delay`
- );
- const animationDurations = getStyleProperties(
- `${ANIMATION}Duration`
- );
- const animationTimeout = getTimeout(
- animationDelays,
- animationDurations
- );
- let type = null;
- let timeout = 0;
- let propCount = 0;
- if (expectedType === TRANSITION) {
- if (transitionTimeout > 0) {
- type = TRANSITION;
- timeout = transitionTimeout;
- propCount = transitionDurations.length;
- }
- } else if (expectedType === ANIMATION) {
- if (animationTimeout > 0) {
- type = ANIMATION;
- timeout = animationTimeout;
- propCount = animationDurations.length;
- }
- } else {
- timeout = Math.max(transitionTimeout, animationTimeout);
- type =
- timeout > 0
- ? transitionTimeout > animationTimeout
- ? TRANSITION
- : ANIMATION
- : null;
- propCount = type
- ? type === TRANSITION
- ? transitionDurations.length
- : animationDurations.length
- : 0;
- }
- const hasTransform =
- type === TRANSITION &&
- /\b(transform|all)(,|$)/.test(
- getStyleProperties(
- `${TRANSITION}Property`
- ).toString()
- );
- return {
- type,
- timeout,
- propCount,
- hasTransform,
- };
- }
- function getTimeout(delays, durations) {
- while (delays.length < durations.length) {
- delays = delays.concat(delays);
- }
- return Math.max(
- ...durations.map((d, i) => toMs(d) + toMs(delays[i]))
- );
- }
- function toMs(s) {
- return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
- }
- function forceReflow() {
- return document.body.offsetHeight;
- }
+ headers: {
+ common: {
+ 'Accept': 'application/json, text/plain, */*'
+ }
+ }
+};
- const positionMap = /* @__PURE__ */ new WeakMap();
- const newPositionMap = /* @__PURE__ */ new WeakMap();
- const TransitionGroupImpl = {
- name: "TransitionGroup",
- props: /* @__PURE__ */ (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(
- {},
- TransitionPropsValidators,
- {
- tag: String,
- moveClass: String,
- }
- ),
- setup(props, { slots }) {
- const instance = (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
- const state = (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useTransitionState)();
- let prevChildren;
- let children;
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUpdated)(
- () => {
- if (!prevChildren.length) {
- return;
- }
- const moveClass =
- props.moveClass ||
- `${props.name || "v"}-move`;
- if (
- !hasCSSTransform(
- prevChildren[0].el,
- instance.vnode.el,
- moveClass
- )
- ) {
- return;
- }
- prevChildren.forEach(callPendingCbs);
- prevChildren.forEach(recordPosition);
- const movedChildren =
- prevChildren.filter(applyTranslation);
- forceReflow();
- movedChildren.forEach((c) => {
- const el = c.el;
- const style = el.style;
- addTransitionClass(el, moveClass);
- style.transform =
- style.webkitTransform =
- style.transitionDuration =
- "";
- const cb = (el._moveCb = (e) => {
- if (e && e.target !== el) {
- return;
- }
- if (
- !e ||
- /transform$/.test(e.propertyName)
- ) {
- el.removeEventListener(
- "transitionend",
- cb
- );
- el._moveCb = null;
- removeTransitionClass(
- el,
- moveClass
- );
- }
- });
- el.addEventListener("transitionend", cb);
- });
- }
- );
- return () => {
- const rawProps = (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__.toRaw)(
- props
- );
- const cssTransitionProps =
- resolveTransitionProps(rawProps);
- let tag =
- rawProps.tag ||
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment;
- prevChildren = children;
- children = slots.default
- ? (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren)(
- slots.default()
- )
- : [];
- for (let i = 0; i < children.length; i++) {
- const child = children[i];
- if (child.key != null) {
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks)(
- child,
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks)(
- child,
- cssTransitionProps,
- state,
- instance
- )
- );
- } else if (true) {
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(
- ` children must be keyed.`
- );
- }
- }
- if (prevChildren) {
- for (let i = 0; i < prevChildren.length; i++) {
- const child = prevChildren[i];
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks)(
- child,
- (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks)(
- child,
- cssTransitionProps,
- state,
- instance
- )
- );
- positionMap.set(
- child,
- child.el.getBoundingClientRect()
- );
- }
- }
- return (0,
- _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode)(
- tag,
- null,
- children
- );
- };
- },
- };
- const removeMode = (props) => delete props.mode;
- /* @__PURE__ */ removeMode(TransitionGroupImpl.props);
- const TransitionGroup = TransitionGroupImpl;
- function callPendingCbs(c) {
- const el = c.el;
- if (el._moveCb) {
- el._moveCb();
- }
- if (el._enterCb) {
- el._enterCb();
- }
- }
- function recordPosition(c) {
- newPositionMap.set(c, c.el.getBoundingClientRect());
- }
- function applyTranslation(c) {
- const oldPos = positionMap.get(c);
- const newPos = newPositionMap.get(c);
- const dx = oldPos.left - newPos.left;
- const dy = oldPos.top - newPos.top;
- if (dx || dy) {
- const s = c.el.style;
- s.transform =
- s.webkitTransform = `translate(${dx}px,${dy}px)`;
- s.transitionDuration = "0s";
- return c;
- }
- }
- function hasCSSTransform(el, root, moveClass) {
- const clone = el.cloneNode();
- if (el._vtc) {
- el._vtc.forEach((cls) => {
- cls.split(/\s+/).forEach(
- (c) => c && clone.classList.remove(c)
- );
- });
- }
- moveClass
- .split(/\s+/)
- .forEach((c) => c && clone.classList.add(c));
- clone.style.display = "none";
- const container =
- root.nodeType === 1 ? root : root.parentNode;
- container.appendChild(clone);
- const { hasTransform } = getTransitionInfo(clone);
- container.removeChild(clone);
- return hasTransform;
- }
+utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
+ defaults.headers[method] = {};
+});
- const getModelAssigner = (vnode) => {
- const fn = vnode.props["onUpdate:modelValue"] || false;
- return (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(fn)
- ? (value) =>
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(
- fn,
- value
- )
- : fn;
- };
- function onCompositionStart(e) {
- e.target.composing = true;
- }
- function onCompositionEnd(e) {
- const target = e.target;
- if (target.composing) {
- target.composing = false;
- target.dispatchEvent(new Event("input"));
- }
- }
- const vModelText = {
- created(el, { modifiers: { lazy, trim, number } }, vnode) {
- el._assign = getModelAssigner(vnode);
- const castToNumber =
- number ||
- (vnode.props && vnode.props.type === "number");
- addEventListener(el, lazy ? "change" : "input", (e) => {
- if (e.target.composing) return;
- let domValue = el.value;
- if (trim) {
- domValue = domValue.trim();
- }
- if (castToNumber) {
- domValue = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseToNumber)(
- domValue
- );
- }
- el._assign(domValue);
- });
- if (trim) {
- addEventListener(el, "change", () => {
- el.value = el.value.trim();
- });
- }
- if (!lazy) {
- addEventListener(
- el,
- "compositionstart",
- onCompositionStart
- );
- addEventListener(
- el,
- "compositionend",
- onCompositionEnd
- );
- addEventListener(el, "change", onCompositionEnd);
- }
- },
- // set value on mounted so it's after min/max for type="range"
- mounted(el, { value }) {
- el.value = value == null ? "" : value;
- },
- beforeUpdate(
- el,
- { value, modifiers: { lazy, trim, number } },
- vnode
- ) {
- el._assign = getModelAssigner(vnode);
- if (el.composing) return;
- if (
- document.activeElement === el &&
- el.type !== "range"
- ) {
- if (lazy) {
- return;
- }
- if (trim && el.value.trim() === value) {
- return;
- }
- if (
- (number || el.type === "number") &&
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseToNumber)(
- el.value
- ) === value
- ) {
- return;
- }
- }
- const newValue = value == null ? "" : value;
- if (el.value !== newValue) {
- el.value = newValue;
- }
- },
- };
- const vModelCheckbox = {
- // #4096 array checkboxes need to be deep traversed
- deep: true,
- created(el, _, vnode) {
- el._assign = getModelAssigner(vnode);
- addEventListener(el, "change", () => {
- const modelValue = el._modelValue;
- const elementValue = getValue(el);
- const checked = el.checked;
- const assign = el._assign;
- if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- modelValue
- )
- ) {
- const index = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(
- modelValue,
- elementValue
- );
- const found = index !== -1;
- if (checked && !found) {
- assign(modelValue.concat(elementValue));
- } else if (!checked && found) {
- const filtered = [...modelValue];
- filtered.splice(index, 1);
- assign(filtered);
- }
- } else if (
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(
- modelValue
- )
- ) {
- const cloned = new Set(modelValue);
- if (checked) {
- cloned.add(elementValue);
- } else {
- cloned.delete(elementValue);
- }
- assign(cloned);
- } else {
- assign(getCheckboxValue(el, checked));
- }
- });
- },
- // set initial checked on mount to wait for true-value/false-value
- mounted: setChecked,
- beforeUpdate(el, binding, vnode) {
- el._assign = getModelAssigner(vnode);
- setChecked(el, binding, vnode);
- },
- };
- function setChecked(el, { value, oldValue }, vnode) {
- el._modelValue = value;
- if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(
- value
- )
- ) {
- el.checked =
- (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(
- value,
- vnode.props.value
- ) > -1;
- } else if (
- (0, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(
- value
- )
- ) {
- el.checked = value.has(vnode.props.value);
- } else if (value !== oldValue) {
- el.checked = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(
- value,
- getCheckboxValue(el, true)
- );
- }
- }
- const vModelRadio = {
- created(el, { value }, vnode) {
- el.checked = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(
- value,
- vnode.props.value
- );
- el._assign = getModelAssigner(vnode);
- addEventListener(el, "change", () => {
- el._assign(getValue(el));
- });
- },
- beforeUpdate(el, { value, oldValue }, vnode) {
- el._assign = getModelAssigner(vnode);
- if (value !== oldValue) {
- el.checked = (0,
- _vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(
- value,
- vnode.props.value
- );
- }
- },
- };
- const vModelSelect = {
- //