/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/compiled/"; /******/ // WebpackRequireFrom /******/ typeof __webpack_require__ !== "undefined" && Object.defineProperty(__webpack_require__, "p", { /******/ get: function () { /******/ return "/compiled/"; /******/ }, /******/ set: function (newPublicPath) { /******/ console.warn("WebpackRequireFrom: something is trying to override webpack public path. Ignoring the new value" + newPublicPath + "."); /******/ } /******/ }); /******/ // WebpackRequireFrom /******/ typeof __webpack_require__ !== "undefined" && Object.defineProperty(__webpack_require__, "p", { /******/ get: function () { /******/ return "//d37qdfc5zluhf3.cloudfront.net/"; /******/ }, /******/ set: function (newPublicPath) { /******/ console.warn("WebpackRequireFrom: something is trying to override webpack public path. Ignoring the new value" + newPublicPath + "."); /******/ } /******/ }); /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 59); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); // utils is a library of generic helper functions non-specific to axios const {toString} = Object.prototype; const {getPrototypeOf} = Object; const kindOf = (cache => thing => { const str = toString.call(thing); return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); })(Object.create(null)); const kindOfTest = (type) => { type = type.toLowerCase(); return (thing) => kindOf(thing) === type } const typeOfTest = type => thing => typeof thing === type; /** * Determine if a value is an Array * * @param {Object} val The value to test * * @returns {boolean} True if value is an Array, otherwise false */ const {isArray} = Array; /** * Determine if a value is undefined * * @param {*} val The value to test * * @returns {boolean} True if the value is undefined, otherwise false */ const isUndefined = typeOfTest('undefined'); /** * Determine if a value is a Buffer * * @param {*} val The value to test * * @returns {boolean} True if value is a Buffer, otherwise false */ function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); } /** * Determine if a value is an ArrayBuffer * * @param {*} val The value to test * * @returns {boolean} True if value is an ArrayBuffer, otherwise false */ const isArrayBuffer = kindOfTest('ArrayBuffer'); /** * Determine if a value is a view on an ArrayBuffer * * @param {*} val The value to test * * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false */ function isArrayBufferView(val) { let result; if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { result = ArrayBuffer.isView(val); } else { result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); } return result; } /** * Determine if a value is a String * * @param {*} val The value to test * * @returns {boolean} True if value is a String, otherwise false */ const isString = typeOfTest('string'); /** * Determine if a value is a Function * * @param {*} val The value to test * @returns {boolean} True if value is a Function, otherwise false */ const isFunction = typeOfTest('function'); /** * Determine if a value is a Number * * @param {*} val The value to test * * @returns {boolean} True if value is a Number, otherwise false */ const isNumber = typeOfTest('number'); /** * Determine if a value is an Object * * @param {*} thing The value to test * * @returns {boolean} True if value is an Object, otherwise false */ const isObject = (thing) => thing !== null && typeof thing === 'object'; /** * Determine if a value is a Boolean * * @param {*} thing The value to test * @returns {boolean} True if value is a Boolean, otherwise false */ const isBoolean = thing => thing === true || thing === false; /** * Determine if a value is a plain Object * * @param {*} val The value to test * * @returns {boolean} True if value is a plain Object, otherwise false */ const isPlainObject = (val) => { if (kindOf(val) !== 'object') { return false; } const prototype = getPrototypeOf(val); return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); } /** * Determine if a value is a Date * * @param {*} val The value to test * * @returns {boolean} True if value is a Date, otherwise false */ const isDate = kindOfTest('Date'); /** * Determine if a value is a File * * @param {*} val The value to test * * @returns {boolean} True if value is a File, otherwise false */ const isFile = kindOfTest('File'); /** * Determine if a value is a Blob * * @param {*} val The value to test * * @returns {boolean} True if value is a Blob, otherwise false */ const isBlob = kindOfTest('Blob'); /** * Determine if a value is a FileList * * @param {*} val The value to test * * @returns {boolean} True if value is a File, otherwise false */ const isFileList = kindOfTest('FileList'); /** * Determine if a value is a Stream * * @param {*} val The value to test * * @returns {boolean} True if value is a Stream, otherwise false */ const isStream = (val) => isObject(val) && isFunction(val.pipe); /** * Determine if a value is a FormData * * @param {*} thing The value to test * * @returns {boolean} True if value is an FormData, otherwise false */ const isFormData = (thing) => { let kind; return thing && ( (typeof FormData === 'function' && thing instanceof FormData) || ( isFunction(thing.append) && ( (kind = kindOf(thing)) === 'formdata' || // detect form-data instance (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]') ) ) ) } /** * Determine if a value is a URLSearchParams object * * @param {*} val The value to test * * @returns {boolean} True if value is a URLSearchParams object, otherwise false */ const isURLSearchParams = kindOfTest('URLSearchParams'); /** * Trim excess whitespace off the beginning and end of a string * * @param {String} str The String to trim * * @returns {String} The String freed of excess whitespace */ const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); /** * Iterate over an Array or an Object invoking a function for each item. * * If `obj` is an Array callback will be called passing * the value, index, and complete array for each item. * * If 'obj' is an Object callback will be called passing * the value, key, and complete object for each property. * * @param {Object|Array} obj The object to iterate * @param {Function} fn The callback to invoke for each item * * @param {Boolean} [allOwnKeys = false] * @returns {any} */ function forEach(obj, fn, {allOwnKeys = false} = {}) { // Don't bother if no value provided if (obj === null || typeof obj === 'undefined') { return; } let i; let l; // Force an array if not already something iterable if (typeof obj !== 'object') { /*eslint no-param-reassign:0*/ obj = [obj]; } if (isArray(obj)) { // Iterate over array values for (i = 0, l = obj.length; i < l; i++) { fn.call(null, obj[i], i, obj); } } else { // Iterate over object keys const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); const len = keys.length; let key; for (i = 0; i < len; i++) { key = keys[i]; fn.call(null, obj[key], key, obj); } } } function findKey(obj, key) { key = key.toLowerCase(); const keys = Object.keys(obj); let i = keys.length; let _key; while (i-- > 0) { _key = keys[i]; if (key === _key.toLowerCase()) { return _key; } } return null; } const _global = (() => { /*eslint no-undef:0*/ if (typeof globalThis !== "undefined") return globalThis; return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global) })(); const isContextDefined = (context) => !isUndefined(context) && context !== _global; /** * Accepts varargs expecting each argument to be an object, then * immutably merges the properties of each object and returns result. * * When multiple objects contain the same key the later object in * the arguments list will take precedence. * * Example: * * ```js * var result = merge({foo: 123}, {foo: 456}); * console.log(result.foo); // outputs 456 * ``` * * @param {Object} obj1 Object to merge * * @returns {Object} Result of all merge properties */ function merge(/* obj1, obj2, obj3, ... */) { const {caseless} = isContextDefined(this) && this || {}; const result = {}; const assignValue = (val, key) => { const targetKey = caseless && findKey(result, key) || key; if (isPlainObject(result[targetKey]) && isPlainObject(val)) { result[targetKey] = merge(result[targetKey], val); } else if (isPlainObject(val)) { result[targetKey] = merge({}, val); } else if (isArray(val)) { result[targetKey] = val.slice(); } else { result[targetKey] = val; } } for (let i = 0, l = arguments.length; i < l; i++) { arguments[i] && forEach(arguments[i], assignValue); } return result; } /** * Extends object a by mutably adding to it the properties of object b. * * @param {Object} a The object to be extended * @param {Object} b The object to copy properties from * @param {Object} thisArg The object to bind function to * * @param {Boolean} [allOwnKeys] * @returns {Object} The resulting value of object a */ const extend = (a, b, thisArg, {allOwnKeys}= {}) => { forEach(b, (val, key) => { if (thisArg && isFunction(val)) { a[key] = Object(_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(val, thisArg); } else { a[key] = val; } }, {allOwnKeys}); return a; } /** * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) * * @param {string} content with BOM * * @returns {string} content value without BOM */ const stripBOM = (content) => { if (content.charCodeAt(0) === 0xFEFF) { content = content.slice(1); } return content; } /** * Inherit the prototype methods from one constructor into another * @param {function} constructor * @param {function} superConstructor * @param {object} [props] * @param {object} [descriptors] * * @returns {void} */ const inherits = (constructor, superConstructor, props, descriptors) => { constructor.prototype = Object.create(superConstructor.prototype, descriptors); constructor.prototype.constructor = constructor; Object.defineProperty(constructor, 'super', { value: superConstructor.prototype }); props && Object.assign(constructor.prototype, props); } /** * Resolve object with deep prototype chain to a flat object * @param {Object} sourceObj source object * @param {Object} [destObj] * @param {Function|Boolean} [filter] * @param {Function} [propFilter] * * @returns {Object} */ const toFlatObject = (sourceObj, destObj, filter, propFilter) => { let props; let i; let prop; const merged = {}; destObj = destObj || {}; // eslint-disable-next-line no-eq-null,eqeqeq if (sourceObj == null) return destObj; do { props = Object.getOwnPropertyNames(sourceObj); i = props.length; while (i-- > 0) { prop = props[i]; if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { destObj[prop] = sourceObj[prop]; merged[prop] = true; } } sourceObj = filter !== false && getPrototypeOf(sourceObj); } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); return destObj; } /** * Determines whether a string ends with the characters of a specified string * * @param {String} str * @param {String} searchString * @param {Number} [position= 0] * * @returns {boolean} */ const endsWith = (str, searchString, position) => { str = String(str); if (position === undefined || position > str.length) { position = str.length; } position -= searchString.length; const lastIndex = str.indexOf(searchString, position); return lastIndex !== -1 && lastIndex === position; } /** * Returns new array from array like object or null if failed * * @param {*} [thing] * * @returns {?Array} */ const toArray = (thing) => { if (!thing) return null; if (isArray(thing)) return thing; let i = thing.length; if (!isNumber(i)) return null; const arr = new Array(i); while (i-- > 0) { arr[i] = thing[i]; } return arr; } /** * Checking if the Uint8Array exists and if it does, it returns a function that checks if the * thing passed in is an instance of Uint8Array * * @param {TypedArray} * * @returns {Array} */ // eslint-disable-next-line func-names const isTypedArray = (TypedArray => { // eslint-disable-next-line func-names return thing => { return TypedArray && thing instanceof TypedArray; }; })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); /** * For each entry in the object, call the function with the key and value. * * @param {Object} obj - The object to iterate over. * @param {Function} fn - The function to call for each entry. * * @returns {void} */ const forEachEntry = (obj, fn) => { const generator = obj && obj[Symbol.iterator]; const iterator = generator.call(obj); let result; while ((result = iterator.next()) && !result.done) { const pair = result.value; fn.call(obj, pair[0], pair[1]); } } /** * It takes a regular expression and a string, and returns an array of all the matches * * @param {string} regExp - The regular expression to match against. * @param {string} str - The string to search. * * @returns {Array} */ const matchAll = (regExp, str) => { let matches; const arr = []; while ((matches = regExp.exec(str)) !== null) { arr.push(matches); } return arr; } /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ const isHTMLForm = kindOfTest('HTMLFormElement'); const toCamelCase = str => { return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) { return p1.toUpperCase() + p2; } ); }; /* Creating a function that will check if an object has a property. */ const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); /** * Determine if a value is a RegExp object * * @param {*} val The value to test * * @returns {boolean} True if value is a RegExp object, otherwise false */ const isRegExp = kindOfTest('RegExp'); const reduceDescriptors = (obj, reducer) => { const descriptors = Object.getOwnPropertyDescriptors(obj); const reducedDescriptors = {}; forEach(descriptors, (descriptor, name) => { if (reducer(descriptor, name, obj) !== false) { reducedDescriptors[name] = descriptor; } }); Object.defineProperties(obj, reducedDescriptors); } /** * Makes all methods read-only * @param {Object} obj */ const freezeMethods = (obj) => { reduceDescriptors(obj, (descriptor, name) => { // skip restricted props in strict mode if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { return false; } const value = obj[name]; if (!isFunction(value)) return; descriptor.enumerable = false; if ('writable' in descriptor) { descriptor.writable = false; return; } if (!descriptor.set) { descriptor.set = () => { throw Error('Can not rewrite read-only method \'' + name + '\''); }; } }); } const toObjectSet = (arrayOrString, delimiter) => { const obj = {}; const define = (arr) => { arr.forEach(value => { obj[value] = true; }); } isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); return obj; } const noop = () => {} const toFiniteNumber = (value, defaultValue) => { value = +value; return Number.isFinite(value) ? value : defaultValue; } const ALPHA = 'abcdefghijklmnopqrstuvwxyz' const DIGIT = '0123456789'; const ALPHABET = { DIGIT, ALPHA, ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT } const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { let str = ''; const {length} = alphabet; while (size--) { str += alphabet[Math.random() * length|0] } return str; } /** * If the thing is a FormData object, return true, otherwise return false. * * @param {unknown} thing - The thing to check. * * @returns {boolean} */ function isSpecCompliantForm(thing) { return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); } const toJSONObject = (obj) => { const stack = new Array(10); const visit = (source, i) => { if (isObject(source)) { if (stack.indexOf(source) >= 0) { return; } if(!('toJSON' in source)) { stack[i] = source; const target = isArray(source) ? [] : {}; forEach(source, (value, key) => { const reducedValue = visit(value, i + 1); !isUndefined(reducedValue) && (target[key] = reducedValue); }); stack[i] = undefined; return target; } } return source; } return visit(obj, 0); } const isAsyncFn = kindOfTest('AsyncFunction'); const isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); /* harmony default export */ __webpack_exports__["a"] = ({ isArray, isArrayBuffer, isBuffer, isFormData, isArrayBufferView, isString, isNumber, isBoolean, isObject, isPlainObject, isUndefined, isDate, isFile, isBlob, isRegExp, isFunction, isStream, isURLSearchParams, isTypedArray, isFileList, forEach, merge, extend, trim, stripBOM, inherits, toFlatObject, kindOf, kindOfTest, endsWith, toArray, forEachEntry, matchAll, isHTMLForm, hasOwnProperty, hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection reduceDescriptors, freezeMethods, toObjectSet, toCamelCase, noop, toFiniteNumber, findKey, global: _global, isContextDefined, ALPHABET, generateString, isSpecCompliantForm, toJSONObject, isAsyncFn, isThenable }); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(10))) /***/ }), /* 1 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); /** * 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); if (Error.captureStackTrace) { Error.captureStackTrace(this, this.constructor); } else { this.stack = (new Error()).stack; } this.message = message; this.name = 'AxiosError'; code && (this.code = code); config && (this.config = config); request && (this.request = request); response && (this.response = response); } _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].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: _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null }; } }); const prototype = AxiosError.prototype; const 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', 'ERR_NOT_SUPPORT', 'ERR_INVALID_URL' // eslint-disable-next-line func-names ].forEach(code => { descriptors[code] = {value: code}; }); Object.defineProperties(AxiosError, descriptors); Object.defineProperty(prototype, 'isAxiosError', {value: true}); // eslint-disable-next-line func-names AxiosError.from = (error, code, config, request, response, customProps) => { const axiosError = Object.create(prototype); _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].toFlatObject(error, axiosError, function filter(obj) { return obj !== Error.prototype; }, prop => { return prop !== 'isAxiosError'; }); AxiosError.call(axiosError, error.message, code, config, request, response); axiosError.cause = error; axiosError.name = error.name; customProps && Object.assign(axiosError, customProps); return axiosError; }; /* harmony default export */ __webpack_exports__["a"] = (AxiosError); /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { !function(e,r){ true?module.exports=r(__webpack_require__(14)):undefined}(window,function(e){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=11)}([function(e,r){e.exports=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text/csv;charset=utf-8;",n=new Blob([e],{type:t}),o=URL.createObjectURL(n),i=document.createElement("a");i.href=o,i.setAttribute("download",r),i.click()}},function(e,r){e.exports=function(e){var r,t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return function(){for(var o=arguments.length,i=new Array(o),a=0;a-1){var n=e.split("x");t=n[1],e=n[0]}var o=e.replace(/[^0-9]/g,"");if(7===o.length)r="".concat(o.substring(0,3),"-").concat(o.substring(3,7));else if(10===o.length)r="(".concat(o.substring(0,3),") ").concat(o.substring(3,6),"-").concat(o.substring(6,10));else if(o.length>10){var i=o.length-10;r="+".concat(o.substring(0,i)," (").concat(o.substring(i,3+i),") ").concat(o.substring(3+i,6+i),"-").concat(o.substring(6+i,10+i))}return r+(t?", ext. "+t:"")}return e}},function(r,t){r.exports=e},function(e,r,t){var n=t(3);r.empty=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"==typeof e?!e||0===e.length||0===e.trim().length:0===e&&!r||0!==e&&(!e||0===e.length)};var o=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,24}))$/;r.validEmail=function(e){return o.test(e)},r.validZip=function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?/^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]{1}\d{1}[A-Za-z]{1}\d{1}[A-Za-z]{1}\d{1}$/.test(e):/^[0-9]{5}$/.test(e)},r.validPhone=function(e){return/^[0-9]{10}$/.test(e)},r.validCardNumber=function(e){return function(e){if(!/^[\d\-\s]+$/.test(e))return!1;for(var r=0,t=0,n=!1,o=e.replace(/\D/g,""),i=o.length-1;i>=0;i--){var a=o.charAt(i);t=parseInt(a,10),n&&(t*=2)>9&&(t-=9),r+=t,n=!n}return r%10==0}(e)},r.validCardCode=function(e){return/^[0-9]{3,4}$/.test(e)},r.validExpirationDate=function(e){if(!/^[0-9]{4}$/.test(e))return!1;var r=e.substring(0,2),t=e.substring(2),o=n((t="20"+t)+"-"+r+"-01");return!(!o.isValid()||o.isBefore(n(),"month"))}},function(e,r){e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new Promise(function(n,o){var i=document.scrollingElement;"string"==typeof e&&(e=document.querySelector(e)||o()),"number"!=typeof e&&(e=e.getBoundingClientRect().top+i.scrollTop),e+=t;var a=i.scrollTop,s=e-a,u=0;!function e(){var t=function(e,r,t,n){return(e/=n/2)<1?t/2*e*e+r:-t/2*(--e*(e-2)-1)+r}(u+=20,a,s,r);i.scrollTop=t,u1&&void 0!==arguments[1]?arguments[1]:2;return"number"!=typeof e?e:new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:r}).format(e)}},function(e,r){var t={VISA:"Visa",MASTER_CARD:"MasterCard",AMERICAN_EXPRESS:"American Express",DISCOVER:"Discover",MAESTRO:"Maestro"};r.CARD_TYPES=t,r.formatCreditCardType=function(e){return e&&"AmericanExpress"===e?"AMEX":e},r.formatMaskedCreditCard=function(e){if(e){var r=e.replace(/X/g,"*"),t=r.lastIndexOf("*");return r.slice(0,t+1)+" "+r.slice(t+1)}return e},r.cardType=function(e){for(var r=[{reg:/^4[0-9]{5}/gi,type:t.VISA},{reg:/^5[1-5][0-9]{4}/gi,type:t.MASTER_CARD},{reg:/^3[47][0-9]{3}/gi,type:t.AMERICAN_EXPRESS},{reg:/^6(?:011|5[0-9]{2})/gi,type:t.DISCOVER},{reg:/^(5[06-8]\d{4}|6\d{5})/gi,type:t.MAESTRO}],n="",o=0;o2&&void 0!==arguments[2])||arguments[2],o=t(e,r);if(o){var i=o.split("_"),a="";return n?i.forEach(function(e,r){a=a+(0===r?"":" ")+e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}):a=i.join(" "),a}return""}},function(e,r,t){var n=t(10),o=t(9);r.processError=o.processError,r.getKeyByValue=n.getKeyByValue,r.transformEnumForDisplay=n.transformEnumForDisplay,r.creditCard=t(8),r.currency=t(7),r.querystring=t(6),r.scrollToAnimated=t(5),r.validation=t(4),r.formatter=t(2),r.debounce=t(1),r.downloadBlob=t(0)}])}); /***/ }), /* 3 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export EMPTY_GUID */ /* unused harmony export DEFAULT_INVENTORY_BRAND_NAME */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOCATION_FILTER; }); /* unused harmony export PROPOSAL_STATUS */ /* unused harmony export ALLOCATION_STATUS */ /* unused harmony export PROPOSAL_APPROVAL_STATUS */ /* unused harmony export PROPOSAL_LINE_ITEM_APPROVAL_STATUS */ /* unused harmony export PROPOSAL_TYPE */ /* unused harmony export LINE_ITEM_TYPE */ /* unused harmony export SORT_DIRECTION */ /* unused harmony export PROPOSAL_SEND_TYPE */ /* unused harmony export PAYMENT_METHOD */ /* unused harmony export PAYMENT_STATUS */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return USER_PERMISSION; }); /* unused harmony export USER_DISCRIMINATOR */ /* unused harmony export PERMISSION_TYPE */ /* unused harmony export EMAIL_MESSAGE_STATUS */ /* unused harmony export NOTIFICATION_TYPES */ /* unused harmony export ORDER_STATUS */ /* unused harmony export ORDER_TYPE */ /* unused harmony export CHECKOUT_STATUS */ /* unused harmony export SHIPPING_TYPE */ /* unused harmony export SHIPMENT_STATUS */ /* unused harmony export PAYMENT_TERMS */ /* unused harmony export ADDRESS_TYPE */ /* unused harmony export TRANSACTION_TYPE */ /* unused harmony export ORDER_PRIORITY */ /* unused harmony export INVENTORY_TYPE */ /* unused harmony export INVENTORY_LOCATION_FILTER */ /* unused harmony export SHOPPING_STAGE */ /* unused harmony export DIGITAL_ASSET_DESIGNATION */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DIGITAL_ASSET_DOCUMENT_TYPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return DIGITAL_ASSET_IMAGE_TYPE; }); /* unused harmony export BRAND_NOTE_TYPE */ /* unused harmony export WHOLESALE_MARKEDDOWN_FROM */ const EMPTY_GUID = '00000000-0000-0000-0000-000000000000'; const DEFAULT_INVENTORY_BRAND_NAME = 'Rypen Collections'; // used to distinguish between properties, e.g. Studio vs Retail vs Dealer, etc. const LOCATION_FILTER = { RETAIL: 0, STUDIO: 1, DEALER: 2, RETAIL_STORE: 3, INVENTORY: 4, }; const PROPOSAL_STATUS = { INITIATED: 0, ACTIVE: 1, REVIEW: 2, WON: 3, LOST: 4, ARCHIVED: 5, }; const ALLOCATION_STATUS = { NONE: 0, PREALLOCATED: 1, ALLOCATED: 2, INSTALLED: 3, }; const PROPOSAL_APPROVAL_STATUS = { NONE: 0, // (None) 0 Normal Proposal status for non-trade proposals OR initial status for Projosal created on behalf of a Trade User QUOTE_NEEDED: 1, // (ApprovalNeeded) 1 Normal Projosal satus for when a trade user first creates a proposal OR changes their proposal QUOTE_READY: 2, // (Approved) 3 When the sales person approves the quote REQUEST_FOR_QUOTE_SUBMITTED: 3, // (ClientApproved) 2 When the client requests a quote NEW_PROJECT_FOR_REVIEW: 4, // (NewToClient) When a sales person creates a Projosal on the client's behalf and sends it to them MESSAGE_ONLY: 5, // (MessageOnly) Projosal was initiated based on a message, instead of requesting a quote BEING_UPDATED: 7, // (HoldForUpdates) Projosal is pulled back for additional editing by the Salesperson }; const PROPOSAL_LINE_ITEM_APPROVAL_STATUS = { NONE: 0, CANCELED: 1, APPROVAL_NEEDED: 2, MODIFIED_NOT_SENT: 3, ADDED_NOT_SENT: 4, NEW_TO_CLIENT: 5, }; const PROPOSAL_TYPE = { NORMAL: 0, //Normal Proposal PARTNER: 1, //Used for a normal Partner Package or Bulk Order BACK_TO_WAREHOUSE: 2, //Used for the internal workflow of putting an item back to the warehouse PARTNER_APPROVED: 3, //Used for the newest workflow of creating a bulk order on behalf of a package and assigning the inventory from the Rypen Warehouse RETAIL: 4, //Used for retail orders for custom products, etc. INVENTORY: 5, //Used for user created proposals for creating inventory on Rypen's account USER_PROJECT: 6, //Projosal! Trade user proposal/project DEALER_PROPOSAL: 7, //It's a new new thing, that's like a proposal but not one, it's a cart but not one... it's a Deposal? MAD_INVENTORY_CREATION: 100, //MAD Proposal for Inventory (TEMPORARY) MAD_PROPOSAL: 101, //MAD Proposal (TEMPORARY) RETAIL_STORE: 8, // Stoposal! Retail Store proposal/project }; const LINE_ITEM_TYPE = { PRODUCT: 0, //Rypen Product CUSTOM_PRODUCT: 1, //Custom Product INVENTORY: 2, //Something from Inventory HISTORIC_PRODUCT: 3, //Something from the past, based on Inventory Configs LABOR: 4, //Labor DISCOUNT: 5, //Discounts SERVICE: 6, //Non-product items (labor should roll into this) }; const SORT_DIRECTION = { ASCENDING: 0, DESCENDING: 1, }; const PROPOSAL_SEND_TYPE = { BOTH: 0, DETAILS: 1, BOARD: 2, }; // PAYMENTS const PAYMENT_METHOD = { CREDIT_CARD: 0, PAYPAL: 1, CHECK: 2, CASH: 3, OTHER: 4, WIRE_TRANSFER: 5, SQUARE_TERMINAL: 6, }; const PAYMENT_STATUS = { NO_PAYMENT: 0, DEPOSIT_RECEIVED: 1, PAID_IN_FULL: 2, OVERPAID: 3, }; const USER_PERMISSION = { RYPEN_ADMIN: 'RypenAdmin', RYPEN_USER: 'RypenUser', NO_SECURITY: 'NoSecurity', PIN_USER: 'PIN_User', INVENTORY_ADMIN: 'INV_Admin', INVENTORY_USER: 'INV_User', INVENTORY_OWNER: 'INV_Owner', AD_ADMIN: 'AD_Admin', //Domain Admin AD_USER: 'AD_User', //Any Domain User AD_ALL_PARTNER_CONTENT: 'AD_AllPartnerContent', //Access to all enterprise partners content AD_ALL_PROPOSALS: 'AD_AllProposals', //Access to all proposals for all clients AD_ALL_CLIENT: 'AD_AllClients', //Access to all clients AD_MY_CLIENT: 'AD_MyClients', //Access to only the sales persons clients AD_DISCOUNTS: 'AD_Discounts', //Access to View/Modify discounts AD_FINANCIALS: 'AD_Financials', //Access to all financial sections AD_FINANCIALS_SUMMARY: 'AD_FinancialsSummary', //Access to high level financial sections AD_INBOUND_ORDERS: 'AD_InboundOrders', //Access to view and receive Inbound Orders AD_MY_PARTNER_CONTENT: 'AD_MyPartnerContent', //Access to only the logged in users partner content AD_MY_PROPOSALS: 'AD_MyProposals', //Access to only the logged in users proposal AD_ORDERS: 'AD_Orders', //Access to all customer orders AD_PRODUCTS: 'AD_Products', //Access to all product data AD_RETURNS: 'AD_Returns', //Access to view, receive and create returns AD_SITE_CONTENT: 'AD_SiteContent', //Access to manage the content of information pages AD_VENDOR_ORDERS: 'AD_VendorOrders', //Access to view and update vendor orders AD_WAREHOUSE_INVENTORY: 'AD_WarehouseInventory', //Access to the internal inventory portal AD_WAREHOUSE_PORTAL: 'AD_WarehousePortal', //Access to the internal warehouse portal AD_APP_USERS: 'AD_AppUsers', //Access to view system users AD_APP_USERS_ADMIN: 'AD_AppUsersAdmin', //Access to view and update system users AD_PICKLISTS: 'AD_Picklists', //Access to the picklists on the studio side AD_APP_DEV: 'AD_AppDev', //Indicator for developers to keep them out of lists (even though they have lots of permissions) AD_INVENTORY_REPLENISHMENT: 'AD_InventoryReplenishment', //Access to create inventory and override the normal business rule of using up inventory on proposal creation TRADE_USER: 'TradeUser', //Has nothing to do with AD, this is a user on rypen.com that has access to special things on the site. //ServiceCommunication //This is the Role/Claim that allows services to talk to each other. AD_FINANCIAL_ADMIN: 'AD_FinancialAdmin', //We need yet another financial tier since reports have more information in them DEALER: 'DealerUser', //Has nothing to do with AD, this is a user on dealer.rypen.com AD_RYPEN_USER: 'AD_RypenUser', //User has access to the Rypen systems AD_MAD_USER: 'AD_MADUser', //User has access to the MAD systems AD_TEAM_SALES: 'AD_Team_Sales', //User that is designated as Sales person on our org chart (that's non existent) AD_RETAIL_STORE_PROPOSALS: 'AD_RetailStoreProposals', //Access to only Retail Store Proposals so they don't mistakenly show margin/wholesale/etc. AD_RETAIL_STORE_ADMIN_PROPOSALS: 'AD_RetailStoreAdminProposals', //Access to elevated permissions on Retail Store Proposals so they don't mistakenly show margin/wholesale/etc. AD_ORDERS_ADMIN: 'AD_OrdersAdmin', //Access to advanced Orders functions such as inventory adjustment AD_TEAM_SERVICE: 'AD_Team_Service', //User that is designated as Service Team person on our org chart (that's non existent) }; const USER_DISCRIMINATOR = { REGISTERED: 'RegisteredUser', GUEST: 'UserWithAnOrder', STUDIO: 'StudioUser', TRADE: 'TradeUser', DEALER: 'DealerUser', RETAIL: 'RetailStoreUser', }; // used to determine what level of visibility something has const PERMISSION_TYPE = { ADMIN: 0, INTERNAL: 1, EXTERNAL: 2, }; const EMAIL_MESSAGE_STATUS = { SENT: 0, REJECTED: 1, SPAM: 2, UNSUBSCRIBE: 3, HARD_BOUNCE: 4, SOFT_BOUNCE: 5, DEFERRED: 6, INBOUND: 7, }; const NOTIFICATION_TYPES = { NOTICE: 0, // Generic alert style notice, usually something bad or important MESSAGE: 1, // Alert for when someone comments on a thread you're watching REQUEST_A_QUOTE_SENT: 10, // When a projosal is sent to a salesperson to get approval and final pricing REQUEST_A_QUOTE_SENT_SALES: 11, // When a projosal is sent to a salesperson, alert the salesperson QUOTE_APPROVED: 12, // When a projosal is approved by a sales person UDPATE_SHIPPED: 15, // When a shipment status has been updated DOCUMENT_UPLOADED: 16, // When a document has been uploaded PROJECT_ADDED: 17, // When a trade user needs to be informed a Sales person has added a projosal on their behalf QUOTE_EXPIRATION: 50, // Alert for when a Proposal's quote is going to expire. }; const ORDER_STATUS = { PENDING: 1, NEW: 2, SHIPPED: 3, COMPLETE: 5, CANCELED: 7, DENIED: 8, CANCELED_REVERSAL: 9, FAILED: 10, REFUNDED: 11, REVERSED: 12, CHARGEBACK: 13, EXPIRED: 14, VENDOR_ORDER_PLACED: 15, VOIDED: 16 }; const ORDER_TYPE = { RETAIL: 0, TRADE: 1, INVENTORY: 2, CORPORATE: 3, DEALER: 4, RETAIL_STORE: 5, }; const CHECKOUT_STATUS = { PENDING: 0, IN_PROGRESS: 1, CANCEL_REQUESTED: 2, CANCELED: 3, COMPLETED: 4 }; const SHIPPING_TYPE = { RYPEN_DISCRETION: 0, CUSTOMER_PICKUP: 1, CUSTOMER_PICKUP_WITH_PALLETS: 2, WHITEGLOVE: 3, WHITEGLOVE_QUOTABLE: 4, WHITEGLOVE_EXPEDITED: 5, LOCAL_DELIVERY: 6, RYPEN_INSTALLATION_SERVICES: 7, }; const SHIPMENT_STATUS = { UNKNOWN: 0, SCHEDULED: 2, IN_TRANSIT: 5, DELAYED: 7, DELIVERED: 10, COMPLETE: 12, EXCEPTION: 20, }; const PAYMENT_TERMS = { MUST_PAY_IMMEDIATELY: 0, NET_30: 1, NET_60: 2, NET_90: 3, NET_50_IN_30: 50, CUSTOM: 100, }; const ADDRESS_TYPE = { RESIDENTIAL: 0, RESIDENTIAL_SPECIAL_SERVICES: 1, WAREHOUSE: 2, BUSINESS: 3, BUSINESS_SPECIAL_SERVICES: 4, }; const TRANSACTION_TYPE = { CREDIT: 0, // they paid us DEBIT: 1, // we paid them }; const ORDER_PRIORITY = { NORMAL: 0, MEDIUM: 1, HIGH: 2, URGENT: 3 }; const INVENTORY_TYPE = { DEFAULT: 0, // this could be a "part" or a "product" that has no parts (basically this is the root level of a "thing") RECIPE: 1, // this is a "product" that consists of parts PART: 2, // not used, may be deleted }; const INVENTORY_LOCATION_FILTER = { NORMAL_LOCATION: 0, NO_LOCATION: 1, INBOUND_FOR_STOCK: 2, }; const SHOPPING_STAGE = { PRELIMINARY: 1, // looking for a product quote FINAL: 10, // ready to purchase, needing confirmed lead times and shipping quotes }; const DIGITAL_ASSET_DESIGNATION = { BRAND: 0, PRODUCT: 1, INVENTORY: 2, }; const DIGITAL_ASSET_DOCUMENT_TYPE = { CAD_FILE: { Type: 0, Name: '2D/3D Files', SingularName: '2D/3D File', PluralName: '2D/3D Files', }, WARRANTY: { Type: 1, Name: 'Warranty Document', SingularName: 'Warranty Document', PluralName: 'Warranty Documents', }, SPEC_SHEET: { Type: 2, Name: 'Specifications Sheet', SingularName: 'Specifications Sheet', PluralName: 'Specifications Sheets', }, ASSEMBLY_INSTRUCTIONS: { Type: 3, Name: 'Assembly Instructions', SingularName: 'Assembly Instructions', PluralName: 'Assembly Instructions', }, }; const DIGITAL_ASSET_IMAGE_TYPE = { BASE: { Type: 0, Name: 'Base Images', SingularName: 'Base Image', PluralName: 'Base Images', }, TEAM: { Type: 1, Name: 'Team Images', SingularName: 'Team Image', PluralName: 'Team Images', }, SWATCH: { Type: 2, Name: 'Swatches', SingularName: 'Swatch', PluralName: 'Swatches', }, ADDITIONAL: { Type: 3, Name: 'Packshots', SingularName: 'Packshot', PluralName: 'Packshots', }, VARIANT: { Type: 4, Name: 'Variants', SingularName: 'Variant Image', PluralName: 'Variant Images', }, LIFESTYLE: { Type: 5, Name: 'Lifestyle', SingularName: 'Lifestyle Image', PluralName: 'Lifestyle Images', }, BANNER: { Type: 6, Name: 'Banners', SingularName: 'Banner', PluralName: 'Banners', }, PRIMARY: { Type: 7, Name: 'Primary', SingularName: 'Primary Image', PluralName: 'Primary Images', }, SILHOUETTE: { Type: 8, Name: 'Silhouettes', SingularName: 'Silhouette', PluralName: 'Silhouettes', }, FEATURED: { Type: 9, Name: 'Featured', SingularName: 'Featured Image', PluralName: 'Featured Images' } }; const BRAND_NOTE_TYPE = { OTHER: 0, MAP_PRICING: 1, SAMPLES: 2, COM_SERVICES: 3, CUSTOMIZABLE: 4, PRICING_UPDATE_INTERVAL: 5, CERTIFICATIONS: 6, UL_LIGHTING: 7, PRICING_STRUCTURE: 8, }; const WHOLESALE_MARKEDDOWN_FROM = { MAP: 0, MSRP: 1, }; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { /*\ |*| |*| :: cookies.js :: |*| |*| A complete cookies reader/writer framework with full unicode support. |*| |*| Revision #3 - July 13th, 2017 |*| |*| https://developer.mozilla.org/en-US/docs/Web/API/document.cookie |*| https://developer.mozilla.org/User:fusionchess |*| https://github.com/madmurphy/cookies.js |*| |*| This framework is released under the GNU Public License, version 3 or later. |*| http://www.gnu.org/licenses/gpl-3.0-standalone.html |*| |*| Syntaxes: |*| |*| * docCookies.setItem(name, value[, end[, path[, domain[, secure]]]]) |*| * docCookies.getItem(name) |*| * docCookies.removeItem(name[, path[, domain]]) |*| * docCookies.hasItem(name) |*| * docCookies.keys() |*| \*/ var docCookies = { getItem: function (sKey) { if (!sKey) { return null; } return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null; }, setItem: function (sKey, sValue, vEnd, sPath, sDomain, bSecure) { if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) { return false; } var sExpires = ""; if (vEnd) { switch (vEnd.constructor) { case Number: sExpires = vEnd === Infinity ? "; expires=Fri, 31 Dec 9999 23:59:59 GMT" : "; max-age=" + vEnd; /* Note: Despite officially defined in RFC 6265, the use of `max-age` is not compatible with any version of Internet Explorer, Edge and some mobile browsers. Therefore passing a number to the end parameter might not work as expected. A possible solution might be to convert the the relative time to an absolute time. For instance, replacing the previous line with: */ /* sExpires = vEnd === Infinity ? "; expires=Fri, 31 Dec 9999 23:59:59 GMT" : "; expires=" + (new Date(vEnd * 1e3 + Date.now())).toUTCString(); */ break; case String: sExpires = "; expires=" + vEnd; break; case Date: sExpires = "; expires=" + vEnd.toUTCString(); break; } } document.cookie = encodeURIComponent(sKey) + "=" + encodeURIComponent(sValue) + sExpires + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : "") + (bSecure ? "; secure" : ""); return true; }, removeItem: function (sKey, sPath, sDomain) { if (!this.hasItem(sKey)) { return false; } document.cookie = encodeURIComponent(sKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : ""); return true; }, hasItem: function (sKey) { if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) { return false; } return (new RegExp("(?:^|;\\s*)" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=")).test(document.cookie); }, keys: function () { var aKeys = document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, "").split(/\s*(?:\=[^;]*)?;\s*/); for (var nLen = aKeys.length, nIdx = 0; nIdx < nLen; nIdx++) { aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]); } return aKeys; } }; if ( true && typeof module.exports !== "undefined") { module.exports = docCookies; } /***/ }), /* 5 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); /* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1); /* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); // temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored /** * Determines if the given thing is a array or js object. * * @param {string} thing - The object or array to be visited. * * @returns {boolean} */ function isVisitable(thing) { return _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isPlainObject(thing) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isArray(thing); } /** * It removes the brackets from the end of a string * * @param {string} key - The key of the parameter. * * @returns {string} the key without the brackets. */ function removeBrackets(key) { return _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].endsWith(key, '[]') ? key.slice(0, -2) : key; } /** * It takes a path, a key, and a boolean, and returns a string * * @param {string} path - The path to the current key. * @param {string} key - The key of the current object being iterated over. * @param {string} dots - If true, the key will be rendered with dots instead of brackets. * * @returns {string} The path to the current key. */ function renderKey(path, key, dots) { if (!path) return key; return path.concat(key).map(function each(token, i) { // eslint-disable-next-line no-param-reassign token = removeBrackets(token); return !dots && i ? '[' + token + ']' : token; }).join(dots ? '.' : ''); } /** * If the array is an array and none of its elements are visitable, then it's a flat array. * * @param {Array} arr - The array to check * * @returns {boolean} */ function isFlatArray(arr) { return _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isArray(arr) && !arr.some(isVisitable); } const predicates = _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].toFlatObject(_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"], {}, null, function filter(prop) { return /^is[A-Z]/.test(prop); }); /** * Convert a data object to FormData * * @param {Object} obj * @param {?Object} [formData] * @param {?Object} [options] * @param {Function} [options.visitor] * @param {Boolean} [options.metaTokens = true] * @param {Boolean} [options.dots = false] * @param {?Boolean} [options.indexes = false] * * @returns {Object} **/ /** * It converts an object into a FormData object * * @param {Object} obj - The object to convert to form data. * @param {string} formData - The FormData object to append to. * @param {Object} options * * @returns */ function toFormData(obj, formData, options) { if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isObject(obj)) { throw new TypeError('target must be an object'); } // eslint-disable-next-line no-param-reassign formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"] || FormData)(); // eslint-disable-next-line no-param-reassign options = _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].toFlatObject(options, { metaTokens: true, dots: false, indexes: false }, false, function defined(option, source) { // eslint-disable-next-line no-eq-null,eqeqeq return !_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isUndefined(source[option]); }); const metaTokens = options.metaTokens; // eslint-disable-next-line no-use-before-define const visitor = options.visitor || defaultVisitor; const dots = options.dots; const indexes = options.indexes; const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isSpecCompliantForm(formData); if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isFunction(visitor)) { throw new TypeError('visitor must be a function'); } function convertValue(value) { if (value === null) return ''; if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isDate(value)) { return value.toISOString(); } if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isBlob(value)) { throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"]('Blob is not supported. Use a Buffer instead.'); } if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isTypedArray(value)) { return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); } return value; } /** * Default visitor. * * @param {*} value * @param {String|Number} key * @param {Array} path * @this {FormData} * * @returns {boolean} return true to visit the each prop of the value recursively */ function defaultVisitor(value, key, path) { let arr = value; if (value && !path && typeof value === 'object') { if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].endsWith(key, '{}')) { // eslint-disable-next-line no-param-reassign key = metaTokens ? key : key.slice(0, -2); // eslint-disable-next-line no-param-reassign value = JSON.stringify(value); } else if ( (_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isArray(value) && isFlatArray(value)) || ((_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].toArray(value)) )) { // eslint-disable-next-line no-param-reassign key = removeBrackets(key); arr.forEach(function each(el, index) { !(_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isUndefined(el) || el === null) && formData.append( // eslint-disable-next-line no-nested-ternary indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), convertValue(el) ); }); return false; } } if (isVisitable(value)) { return true; } formData.append(renderKey(path, key, dots), convertValue(value)); return false; } const stack = []; const exposedHelpers = Object.assign(predicates, { defaultVisitor, convertValue, isVisitable }); function build(value, path) { if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isUndefined(value)) return; if (stack.indexOf(value) !== -1) { throw Error('Circular reference detected in ' + path.join('.')); } stack.push(value); _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].forEach(value, function each(el, key) { const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isUndefined(el) || el === null) && visitor.call( formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isString(key) ? key.trim() : key, path, exposedHelpers ); if (result === true) { build(el, path ? path.concat(key) : [key]); } }); stack.pop(); } if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].isObject(obj)) { throw new TypeError('data must be an object'); } build(obj); return formData; } /* harmony default export */ __webpack_exports__["a"] = (toFormData); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(24).Buffer)) /***/ }), /* 6 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global, setImmediate) {/* unused harmony export EffectScope */ /* unused harmony export computed */ /* unused harmony export customRef */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Vue; }); /* unused harmony export defineAsyncComponent */ /* unused harmony export defineComponent */ /* unused harmony export del */ /* unused harmony export effectScope */ /* unused harmony export getCurrentInstance */ /* unused harmony export getCurrentScope */ /* unused harmony export h */ /* unused harmony export inject */ /* unused harmony export isProxy */ /* unused harmony export isReactive */ /* unused harmony export isReadonly */ /* unused harmony export isRef */ /* unused harmony export isShallow */ /* unused harmony export markRaw */ /* unused harmony export mergeDefaults */ /* unused harmony export nextTick */ /* unused harmony export onActivated */ /* unused harmony export onBeforeMount */ /* unused harmony export onBeforeUnmount */ /* unused harmony export onBeforeUpdate */ /* unused harmony export onDeactivated */ /* unused harmony export onErrorCaptured */ /* unused harmony export onMounted */ /* unused harmony export onRenderTracked */ /* unused harmony export onRenderTriggered */ /* unused harmony export onScopeDispose */ /* unused harmony export onServerPrefetch */ /* unused harmony export onUnmounted */ /* unused harmony export onUpdated */ /* unused harmony export provide */ /* unused harmony export proxyRefs */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return reactive; }); /* unused harmony export readonly */ /* unused harmony export ref */ /* unused harmony export set */ /* unused harmony export shallowReactive */ /* unused harmony export shallowReadonly */ /* unused harmony export shallowRef */ /* unused harmony export toRaw */ /* unused harmony export toRef */ /* unused harmony export toRefs */ /* unused harmony export triggerRef */ /* unused harmony export unref */ /* unused harmony export useAttrs */ /* unused harmony export useCssModule */ /* unused harmony export useCssVars */ /* unused harmony export useListeners */ /* unused harmony export useSlots */ /* unused harmony export version */ /* unused harmony export watch */ /* unused harmony export watchEffect */ /* unused harmony export watchPostEffect */ /* unused harmony export watchSyncEffect */ /*! * Vue.js v2.7.10 * (c) 2014-2022 Evan You * Released under the MIT License. */ var emptyObject = Object.freeze({}); var isArray = Array.isArray; // These helpers produce better VM code in JS engines due to their // explicitness and function inlining. function isUndef(v) { return v === undefined || v === null; } function isDef(v) { return v !== undefined && v !== null; } function isTrue(v) { return v === true; } function isFalse(v) { return v === false; } /** * Check if value is primitive. */ function isPrimitive(value) { return (typeof value === 'string' || typeof value === 'number' || // $flow-disable-line typeof value === 'symbol' || typeof value === 'boolean'); } function isFunction(value) { return typeof value === 'function'; } /** * Quick object check - this is primarily used to tell * objects from primitive values when we know the value * is a JSON-compliant type. */ function isObject(obj) { return obj !== null && typeof obj === 'object'; } /** * Get the raw type string of a value, e.g., [object Object]. */ var _toString = Object.prototype.toString; function toRawType(value) { return _toString.call(value).slice(8, -1); } /** * Strict object type check. Only returns true * for plain JavaScript objects. */ function isPlainObject(obj) { return _toString.call(obj) === '[object Object]'; } function isRegExp(v) { return _toString.call(v) === '[object RegExp]'; } /** * Check if val is a valid array index. */ function isValidArrayIndex(val) { var n = parseFloat(String(val)); return n >= 0 && Math.floor(n) === n && isFinite(val); } function isPromise(val) { return (isDef(val) && typeof val.then === 'function' && typeof val.catch === 'function'); } /** * Convert a value to a string that is actually rendered. */ function toString(val) { return val == null ? '' : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString) ? JSON.stringify(val, null, 2) : String(val); } /** * Convert an input value to a number for persistence. * If the conversion fails, return original string. */ function toNumber(val) { var n = parseFloat(val); return isNaN(n) ? val : n; } /** * Make a map and return a function for checking if a key * is in that map. */ function makeMap(str, expectsLowerCase) { var map = Object.create(null); var list = str.split(','); for (var i = 0; i < list.length; i++) { map[list[i]] = true; } return expectsLowerCase ? function (val) { return map[val.toLowerCase()]; } : function (val) { return map[val]; }; } /** * Check if a tag is a built-in tag. */ var isBuiltInTag = makeMap('slot,component', true); /** * Check if an attribute is a reserved attribute. */ var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is'); /** * Remove an item from an array. */ function remove$2(arr, item) { if (arr.length) { var index = arr.indexOf(item); if (index > -1) { return arr.splice(index, 1); } } } /** * Check whether an object has the property. */ var hasOwnProperty = Object.prototype.hasOwnProperty; function hasOwn(obj, key) { return hasOwnProperty.call(obj, key); } /** * Create a cached version of a pure function. */ function cached(fn) { var cache = Object.create(null); return function cachedFn(str) { var hit = cache[str]; return hit || (cache[str] = fn(str)); }; } /** * Camelize a hyphen-delimited string. */ var camelizeRE = /-(\w)/g; var camelize = cached(function (str) { return str.replace(camelizeRE, function (_, c) { return (c ? c.toUpperCase() : ''); }); }); /** * Capitalize a string. */ var capitalize = cached(function (str) { return str.charAt(0).toUpperCase() + str.slice(1); }); /** * Hyphenate a camelCase string. */ var hyphenateRE = /\B([A-Z])/g; var hyphenate = cached(function (str) { return str.replace(hyphenateRE, '-$1').toLowerCase(); }); /** * Simple bind polyfill for environments that do not support it, * e.g., PhantomJS 1.x. Technically, we don't need this anymore * since native bind is now performant enough in most browsers. * But removing it would mean breaking code that was able to run in * PhantomJS 1.x, so this must be kept for backward compatibility. */ /* istanbul ignore next */ function polyfillBind(fn, ctx) { function boundFn(a) { var l = arguments.length; return l ? l > 1 ? fn.apply(ctx, arguments) : fn.call(ctx, a) : fn.call(ctx); } boundFn._length = fn.length; return boundFn; } function nativeBind(fn, ctx) { return fn.bind(ctx); } // @ts-expect-error bind cannot be `undefined` var bind$1 = Function.prototype.bind ? nativeBind : polyfillBind; /** * Convert an Array-like object to a real Array. */ function toArray(list, start) { start = start || 0; var i = list.length - start; var ret = new Array(i); while (i--) { ret[i] = list[i + start]; } return ret; } /** * Mix properties into target object. */ function extend(to, _from) { for (var key in _from) { to[key] = _from[key]; } return to; } /** * Merge an Array of Objects into a single Object. */ function toObject(arr) { var res = {}; for (var i = 0; i < arr.length; i++) { if (arr[i]) { extend(res, arr[i]); } } return res; } /* eslint-disable no-unused-vars */ /** * Perform no operation. * Stubbing args to make Flow happy without leaving useless transpiled code * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/). */ function noop(a, b, c) { } /** * Always return false. */ var no = function (a, b, c) { return false; }; /* eslint-enable no-unused-vars */ /** * Return the same value. */ var identity = function (_) { return _; }; /** * Generate a string containing static keys from compiler modules. */ function genStaticKeys$1(modules) { return modules .reduce(function (keys, m) { return keys.concat(m.staticKeys || []); }, []) .join(','); } /** * Check if two values are loosely equal - that is, * if they are plain objects, do they have the same shape? */ function looseEqual(a, b) { if (a === b) return true; var isObjectA = isObject(a); var isObjectB = isObject(b); if (isObjectA && isObjectB) { try { var isArrayA = Array.isArray(a); var isArrayB = Array.isArray(b); if (isArrayA && isArrayB) { return (a.length === b.length && a.every(function (e, i) { return looseEqual(e, b[i]); })); } else if (a instanceof Date && b instanceof Date) { return a.getTime() === b.getTime(); } else if (!isArrayA && !isArrayB) { var keysA = Object.keys(a); var keysB = Object.keys(b); return (keysA.length === keysB.length && keysA.every(function (key) { return looseEqual(a[key], b[key]); })); } else { /* istanbul ignore next */ return false; } } catch (e) { /* istanbul ignore next */ return false; } } else if (!isObjectA && !isObjectB) { return String(a) === String(b); } else { return false; } } /** * Return the first index at which a loosely equal value can be * found in the array (if value is a plain object, the array must * contain an object of the same shape), or -1 if it is not present. */ function looseIndexOf(arr, val) { for (var i = 0; i < arr.length; i++) { if (looseEqual(arr[i], val)) return i; } return -1; } /** * Ensure a function is called only once. */ function once(fn) { var called = false; return function () { if (!called) { called = true; fn.apply(this, arguments); } }; } // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is#polyfill function hasChanged(x, y) { if (x === y) { return x === 0 && 1 / x !== 1 / y; } else { return x === x || y === y; } } var SSR_ATTR = 'data-server-rendered'; var ASSET_TYPES = ['component', 'directive', 'filter']; var LIFECYCLE_HOOKS = [ 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUpdate', 'updated', 'beforeDestroy', 'destroyed', 'activated', 'deactivated', 'errorCaptured', 'serverPrefetch', 'renderTracked', 'renderTriggered' ]; var config = { /** * Option merge strategies (used in core/util/options) */ // $flow-disable-line optionMergeStrategies: Object.create(null), /** * Whether to suppress warnings. */ silent: false, /** * Show production mode tip message on boot? */ productionTip: "production" !== 'production', /** * Whether to enable devtools */ devtools: "production" !== 'production', /** * Whether to record perf */ performance: false, /** * Error handler for watcher errors */ errorHandler: null, /** * Warn handler for watcher warns */ warnHandler: null, /** * Ignore certain custom elements */ ignoredElements: [], /** * Custom user key aliases for v-on */ // $flow-disable-line keyCodes: Object.create(null), /** * Check if a tag is reserved so that it cannot be registered as a * component. This is platform-dependent and may be overwritten. */ isReservedTag: no, /** * Check if an attribute is reserved so that it cannot be used as a component * prop. This is platform-dependent and may be overwritten. */ isReservedAttr: no, /** * Check if a tag is an unknown element. * Platform-dependent. */ isUnknownElement: no, /** * Get the namespace of an element */ getTagNamespace: noop, /** * Parse the real tag name for the specific platform. */ parsePlatformTagName: identity, /** * Check if an attribute must be bound using property, e.g. value * Platform-dependent. */ mustUseProp: no, /** * Perform updates asynchronously. Intended to be used by Vue Test Utils * This will significantly reduce performance if set to false. */ async: true, /** * Exposed for legacy reasons */ _lifecycleHooks: LIFECYCLE_HOOKS }; /** * unicode letters used for parsing html tags, component names and property paths. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname * skipping \u10000-\uEFFFF due to it freezing up PhantomJS */ var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/; /** * Check if a string starts with $ or _ */ function isReserved(str) { var c = (str + '').charCodeAt(0); return c === 0x24 || c === 0x5f; } /** * Define a property. */ function def(obj, key, val, enumerable) { Object.defineProperty(obj, key, { value: val, enumerable: !!enumerable, writable: true, configurable: true }); } /** * Parse simple path. */ var bailRE = new RegExp("[^".concat(unicodeRegExp.source, ".$_\\d]")); function parsePath(path) { if (bailRE.test(path)) { return; } var segments = path.split('.'); return function (obj) { for (var i = 0; i < segments.length; i++) { if (!obj) return; obj = obj[segments[i]]; } return obj; }; } // can we use __proto__? var hasProto = '__proto__' in {}; // Browser environment sniffing var inBrowser = typeof window !== 'undefined'; var UA = inBrowser && window.navigator.userAgent.toLowerCase(); var isIE = UA && /msie|trident/.test(UA); var isIE9 = UA && UA.indexOf('msie 9.0') > 0; var isEdge = UA && UA.indexOf('edge/') > 0; UA && UA.indexOf('android') > 0; var isIOS = UA && /iphone|ipad|ipod|ios/.test(UA); UA && /chrome\/\d+/.test(UA) && !isEdge; UA && /phantomjs/.test(UA); var isFF = UA && UA.match(/firefox\/(\d+)/); // Firefox has a "watch" function on Object.prototype... // @ts-expect-error firebox support var nativeWatch = {}.watch; var supportsPassive = false; if (inBrowser) { try { var opts = {}; Object.defineProperty(opts, 'passive', { get: function () { /* istanbul ignore next */ supportsPassive = true; } }); // https://github.com/facebook/flow/issues/285 window.addEventListener('test-passive', null, opts); } catch (e) { } } // this needs to be lazy-evaled because vue may be required before // vue-server-renderer can set VUE_ENV var _isServer; var isServerRendering = function () { if (_isServer === undefined) { /* istanbul ignore if */ if (!inBrowser && typeof global !== 'undefined') { // detect presence of vue-server-renderer and avoid // Webpack shimming the process _isServer = global['process'] && global['process'].env.VUE_ENV === 'server'; } else { _isServer = false; } } return _isServer; }; // detect devtools var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__; /* istanbul ignore next */ function isNative(Ctor) { return typeof Ctor === 'function' && /native code/.test(Ctor.toString()); } var hasSymbol = typeof Symbol !== 'undefined' && isNative(Symbol) && typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys); var _Set; // $flow-disable-line /* istanbul ignore if */ if (typeof Set !== 'undefined' && isNative(Set)) { // use native Set when available. _Set = Set; } else { // a non-standard Set polyfill that only works with primitive keys. _Set = /** @class */ (function () { function Set() { this.set = Object.create(null); } Set.prototype.has = function (key) { return this.set[key] === true; }; Set.prototype.add = function (key) { this.set[key] = true; }; Set.prototype.clear = function () { this.set = Object.create(null); }; return Set; }()); } var currentInstance = null; /** * This is exposed for compatibility with v3 (e.g. some functions in VueUse * relies on it). Do not use this internally, just use `currentInstance`. * * @internal this function needs manual type declaration because it relies * on previously manually authored types from Vue 2 */ function getCurrentInstance() { return currentInstance && { proxy: currentInstance }; } /** * @internal */ function setCurrentInstance(vm) { if (vm === void 0) { vm = null; } if (!vm) currentInstance && currentInstance._scope.off(); currentInstance = vm; vm && vm._scope.on(); } /** * @internal */ var VNode = /** @class */ (function () { function VNode(tag, data, children, text, elm, context, componentOptions, asyncFactory) { this.tag = tag; this.data = data; this.children = children; this.text = text; this.elm = elm; this.ns = undefined; this.context = context; this.fnContext = undefined; this.fnOptions = undefined; this.fnScopeId = undefined; this.key = data && data.key; this.componentOptions = componentOptions; this.componentInstance = undefined; this.parent = undefined; this.raw = false; this.isStatic = false; this.isRootInsert = true; this.isComment = false; this.isCloned = false; this.isOnce = false; this.asyncFactory = asyncFactory; this.asyncMeta = undefined; this.isAsyncPlaceholder = false; } Object.defineProperty(VNode.prototype, "child", { // DEPRECATED: alias for componentInstance for backwards compat. /* istanbul ignore next */ get: function () { return this.componentInstance; }, enumerable: false, configurable: true }); return VNode; }()); var createEmptyVNode = function (text) { if (text === void 0) { text = ''; } var node = new VNode(); node.text = text; node.isComment = true; return node; }; function createTextVNode(val) { return new VNode(undefined, undefined, undefined, String(val)); } // optimized shallow clone // used for static nodes and slot nodes because they may be reused across // multiple renders, cloning them avoids errors when DOM manipulations rely // on their elm reference. function cloneVNode(vnode) { var cloned = new VNode(vnode.tag, vnode.data, // #7975 // clone children array to avoid mutating original in case of cloning // a child. vnode.children && vnode.children.slice(), vnode.text, vnode.elm, vnode.context, vnode.componentOptions, vnode.asyncFactory); cloned.ns = vnode.ns; cloned.isStatic = vnode.isStatic; cloned.key = vnode.key; cloned.isComment = vnode.isComment; cloned.fnContext = vnode.fnContext; cloned.fnOptions = vnode.fnOptions; cloned.fnScopeId = vnode.fnScopeId; cloned.asyncMeta = vnode.asyncMeta; cloned.isCloned = true; return cloned; } /* not type checking this file because flow doesn't play well with Proxy */ var initProxy; if (false) { var getHandler_1, hasHandler_1, isBuiltInModifier_1, hasProxy_1, warnReservedPrefix_1, warnNonPresent_1, allowedGlobals_1; } /****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var __assign = function() { __assign = Object.assign || function __assign(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var uid$2 = 0; /** * A dep is an observable that can have multiple * directives subscribing to it. * @internal */ var Dep = /** @class */ (function () { function Dep() { this.id = uid$2++; this.subs = []; } Dep.prototype.addSub = function (sub) { this.subs.push(sub); }; Dep.prototype.removeSub = function (sub) { remove$2(this.subs, sub); }; Dep.prototype.depend = function (info) { if (Dep.target) { Dep.target.addDep(this); if (false) {} } }; Dep.prototype.notify = function (info) { // stabilize the subscriber list first var subs = this.subs.slice(); if (false) {} for (var i = 0, l = subs.length; i < l; i++) { if (false) { var sub; } subs[i].update(); } }; return Dep; }()); // The current target watcher being evaluated. // This is globally unique because only one watcher // can be evaluated at a time. Dep.target = null; var targetStack = []; function pushTarget(target) { targetStack.push(target); Dep.target = target; } function popTarget() { targetStack.pop(); Dep.target = targetStack[targetStack.length - 1]; } /* * not type checking this file because flow doesn't play well with * dynamically accessing methods on Array prototype */ var arrayProto = Array.prototype; var arrayMethods = Object.create(arrayProto); var methodsToPatch = [ 'push', 'pop', 'shift', 'unshift', 'splice', 'sort', 'reverse' ]; /** * Intercept mutating methods and emit events */ methodsToPatch.forEach(function (method) { // cache original method var original = arrayProto[method]; def(arrayMethods, method, function mutator() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var result = original.apply(this, args); var ob = this.__ob__; var inserted; switch (method) { case 'push': case 'unshift': inserted = args; break; case 'splice': inserted = args.slice(2); break; } if (inserted) ob.observeArray(inserted); // notify change if (false) {} else { ob.dep.notify(); } return result; }); }); var arrayKeys = Object.getOwnPropertyNames(arrayMethods); var NO_INIITIAL_VALUE = {}; /** * In some cases we may want to disable observation inside a component's * update computation. */ var shouldObserve = true; function toggleObserving(value) { shouldObserve = value; } // ssr mock dep var mockDep = { notify: noop, depend: noop, addSub: noop, removeSub: noop }; /** * Observer class that is attached to each observed * object. Once attached, the observer converts the target * object's property keys into getter/setters that * collect dependencies and dispatch updates. */ var Observer = /** @class */ (function () { function Observer(value, shallow, mock) { if (shallow === void 0) { shallow = false; } if (mock === void 0) { mock = false; } this.value = value; this.shallow = shallow; this.mock = mock; // this.value = value this.dep = mock ? mockDep : new Dep(); this.vmCount = 0; def(value, '__ob__', this); if (isArray(value)) { if (!mock) { if (hasProto) { value.__proto__ = arrayMethods; /* eslint-enable no-proto */ } else { for (var i = 0, l = arrayKeys.length; i < l; i++) { var key = arrayKeys[i]; def(value, key, arrayMethods[key]); } } } if (!shallow) { this.observeArray(value); } } else { /** * Walk through all properties and convert them into * getter/setters. This method should only be called when * value type is Object. */ var keys = Object.keys(value); for (var i = 0; i < keys.length; i++) { var key = keys[i]; defineReactive(value, key, NO_INIITIAL_VALUE, undefined, shallow, mock); } } } /** * Observe a list of Array items. */ Observer.prototype.observeArray = function (value) { for (var i = 0, l = value.length; i < l; i++) { observe(value[i], false, this.mock); } }; return Observer; }()); // helpers /** * Attempt to create an observer instance for a value, * returns the new observer if successfully observed, * or the existing observer if the value already has one. */ function observe(value, shallow, ssrMockReactivity) { if (!isObject(value) || isRef(value) || value instanceof VNode) { return; } var ob; if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) { ob = value.__ob__; } else if (shouldObserve && (ssrMockReactivity || !isServerRendering()) && (isArray(value) || isPlainObject(value)) && Object.isExtensible(value) && !value.__v_skip /* ReactiveFlags.SKIP */) { ob = new Observer(value, shallow, ssrMockReactivity); } return ob; } /** * Define a reactive property on an Object. */ function defineReactive(obj, key, val, customSetter, shallow, mock) { var dep = new Dep(); var property = Object.getOwnPropertyDescriptor(obj, key); if (property && property.configurable === false) { return; } // cater for pre-defined getter/setters var getter = property && property.get; var setter = property && property.set; if ((!getter || setter) && (val === NO_INIITIAL_VALUE || arguments.length === 2)) { val = obj[key]; } var childOb = !shallow && observe(val, false, mock); Object.defineProperty(obj, key, { enumerable: true, configurable: true, get: function reactiveGetter() { var value = getter ? getter.call(obj) : val; if (Dep.target) { if (false) {} else { dep.depend(); } if (childOb) { childOb.dep.depend(); if (isArray(value)) { dependArray(value); } } } return isRef(value) && !shallow ? value.value : value; }, set: function reactiveSetter(newVal) { var value = getter ? getter.call(obj) : val; if (!hasChanged(value, newVal)) { return; } if (false) {} if (setter) { setter.call(obj, newVal); } else if (getter) { // #7981: for accessor properties without setter return; } else if (!shallow && isRef(value) && !isRef(newVal)) { value.value = newVal; return; } else { val = newVal; } childOb = !shallow && observe(newVal, false, mock); if (false) {} else { dep.notify(); } } }); return dep; } function set(target, key, val) { if (false) {} if (isReadonly(target)) { false && false; return; } var ob = target.__ob__; if (isArray(target) && isValidArrayIndex(key)) { target.length = Math.max(target.length, key); target.splice(key, 1, val); // when mocking for SSR, array methods are not hijacked if (ob && !ob.shallow && ob.mock) { observe(val, false, true); } return val; } if (key in target && !(key in Object.prototype)) { target[key] = val; return val; } if (target._isVue || (ob && ob.vmCount)) { false && false; return val; } if (!ob) { target[key] = val; return val; } defineReactive(ob.value, key, val, undefined, ob.shallow, ob.mock); if (false) {} else { ob.dep.notify(); } return val; } function del(target, key) { if (false) {} if (isArray(target) && isValidArrayIndex(key)) { target.splice(key, 1); return; } var ob = target.__ob__; if (target._isVue || (ob && ob.vmCount)) { false && false; return; } if (isReadonly(target)) { false && false; return; } if (!hasOwn(target, key)) { return; } delete target[key]; if (!ob) { return; } if (false) {} else { ob.dep.notify(); } } /** * Collect dependencies on array elements when the array is touched, since * we cannot intercept array element access like property getters. */ function dependArray(value) { for (var e = void 0, i = 0, l = value.length; i < l; i++) { e = value[i]; if (e && e.__ob__) { e.__ob__.dep.depend(); } if (isArray(e)) { dependArray(e); } } } function reactive(target) { makeReactive(target, false); return target; } /** * Return a shallowly-reactive copy of the original object, where only the root * level properties are reactive. It also does not auto-unwrap refs (even at the * root level). */ function shallowReactive(target) { makeReactive(target, true); def(target, "__v_isShallow" /* ReactiveFlags.IS_SHALLOW */, true); return target; } function makeReactive(target, shallow) { // if trying to observe a readonly proxy, return the readonly version. if (!isReadonly(target)) { if (false) { var existingOb; } var ob = observe(target, shallow, isServerRendering() /* ssr mock reactivity */); if (false) {} } } function isReactive(value) { if (isReadonly(value)) { return isReactive(value["__v_raw" /* ReactiveFlags.RAW */]); } return !!(value && value.__ob__); } function isShallow(value) { return !!(value && value.__v_isShallow); } function isReadonly(value) { return !!(value && value.__v_isReadonly); } function isProxy(value) { return isReactive(value) || isReadonly(value); } function toRaw(observed) { var raw = observed && observed["__v_raw" /* ReactiveFlags.RAW */]; return raw ? toRaw(raw) : observed; } function markRaw(value) { def(value, "__v_skip" /* ReactiveFlags.SKIP */, true); return value; } /** * @internal */ function isCollectionType(value) { var type = toRawType(value); return (type === 'Map' || type === 'WeakMap' || type === 'Set' || type === 'WeakSet'); } /** * @internal */ var RefFlag = "__v_isRef"; function isRef(r) { return !!(r && r.__v_isRef === true); } function ref$1(value) { return createRef(value, false); } function shallowRef(value) { return createRef(value, true); } function createRef(rawValue, shallow) { if (isRef(rawValue)) { return rawValue; } var ref = {}; def(ref, RefFlag, true); def(ref, "__v_isShallow" /* ReactiveFlags.IS_SHALLOW */, shallow); def(ref, 'dep', defineReactive(ref, 'value', rawValue, null, shallow, isServerRendering())); return ref; } function triggerRef(ref) { if (false) {} if (false) {} else { ref.dep && ref.dep.notify(); } } function unref(ref) { return isRef(ref) ? ref.value : ref; } function proxyRefs(objectWithRefs) { if (isReactive(objectWithRefs)) { return objectWithRefs; } var proxy = {}; var keys = Object.keys(objectWithRefs); for (var i = 0; i < keys.length; i++) { proxyWithRefUnwrap(proxy, objectWithRefs, keys[i]); } return proxy; } function proxyWithRefUnwrap(target, source, key) { Object.defineProperty(target, key, { enumerable: true, configurable: true, get: function () { var val = source[key]; if (isRef(val)) { return val.value; } else { var ob = val && val.__ob__; if (ob) ob.dep.depend(); return val; } }, set: function (value) { var oldValue = source[key]; if (isRef(oldValue) && !isRef(value)) { oldValue.value = value; } else { source[key] = value; } } }); } function customRef(factory) { var dep = new Dep(); var _a = factory(function () { if (false) {} else { dep.depend(); } }, function () { if (false) {} else { dep.notify(); } }), get = _a.get, set = _a.set; var ref = { get value() { return get(); }, set value(newVal) { set(newVal); } }; def(ref, RefFlag, true); return ref; } function toRefs(object) { if (false) {} var ret = isArray(object) ? new Array(object.length) : {}; for (var key in object) { ret[key] = toRef(object, key); } return ret; } function toRef(object, key, defaultValue) { var val = object[key]; if (isRef(val)) { return val; } var ref = { get value() { var val = object[key]; return val === undefined ? defaultValue : val; }, set value(newVal) { object[key] = newVal; } }; def(ref, RefFlag, true); return ref; } var rawToReadonlyFlag = "__v_rawToReadonly"; var rawToShallowReadonlyFlag = "__v_rawToShallowReadonly"; function readonly(target) { return createReadonly(target, false); } function createReadonly(target, shallow) { if (!isPlainObject(target)) { if (false) {} return target; } // already a readonly object if (isReadonly(target)) { return target; } // already has a readonly proxy var existingFlag = shallow ? rawToShallowReadonlyFlag : rawToReadonlyFlag; var existingProxy = target[existingFlag]; if (existingProxy) { return existingProxy; } var proxy = Object.create(Object.getPrototypeOf(target)); def(target, existingFlag, proxy); def(proxy, "__v_isReadonly" /* ReactiveFlags.IS_READONLY */, true); def(proxy, "__v_raw" /* ReactiveFlags.RAW */, target); if (isRef(target)) { def(proxy, RefFlag, true); } if (shallow || isShallow(target)) { def(proxy, "__v_isShallow" /* ReactiveFlags.IS_SHALLOW */, true); } var keys = Object.keys(target); for (var i = 0; i < keys.length; i++) { defineReadonlyProperty(proxy, target, keys[i], shallow); } return proxy; } function defineReadonlyProperty(proxy, target, key, shallow) { Object.defineProperty(proxy, key, { enumerable: true, configurable: true, get: function () { var val = target[key]; return shallow || !isPlainObject(val) ? val : readonly(val); }, set: function () { false && false; } }); } /** * Returns a reactive-copy of the original object, where only the root level * properties are readonly, and does NOT unwrap refs nor recursively convert * returned properties. * This is used for creating the props proxy object for stateful components. */ function shallowReadonly(target) { return createReadonly(target, true); } function computed(getterOrOptions, debugOptions) { var getter; var setter; var onlyGetter = isFunction(getterOrOptions); if (onlyGetter) { getter = getterOrOptions; setter = false ? undefined : noop; } else { getter = getterOrOptions.get; setter = getterOrOptions.set; } var watcher = isServerRendering() ? null : new Watcher(currentInstance, getter, noop, { lazy: true }); if (false) {} var ref = { // some libs rely on the presence effect for checking computed refs // from normal refs, but the implementation doesn't matter effect: watcher, get value() { if (watcher) { if (watcher.dirty) { watcher.evaluate(); } if (Dep.target) { if (false) {} watcher.depend(); } return watcher.value; } else { return getter(); } }, set value(newVal) { setter(newVal); } }; def(ref, RefFlag, true); def(ref, "__v_isReadonly" /* ReactiveFlags.IS_READONLY */, onlyGetter); return ref; } var mark; var measure; if (false) { var perf_1; } var normalizeEvent = cached(function (name) { var passive = name.charAt(0) === '&'; name = passive ? name.slice(1) : name; var once = name.charAt(0) === '~'; // Prefixed last, checked first name = once ? name.slice(1) : name; var capture = name.charAt(0) === '!'; name = capture ? name.slice(1) : name; return { name: name, once: once, capture: capture, passive: passive }; }); function createFnInvoker(fns, vm) { function invoker() { var fns = invoker.fns; if (isArray(fns)) { var cloned = fns.slice(); for (var i = 0; i < cloned.length; i++) { invokeWithErrorHandling(cloned[i], null, arguments, vm, "v-on handler"); } } else { // return handler return value for single handlers return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler"); } } invoker.fns = fns; return invoker; } function updateListeners(on, oldOn, add, remove, createOnceHandler, vm) { var name, cur, old, event; for (name in on) { cur = on[name]; old = oldOn[name]; event = normalizeEvent(name); if (isUndef(cur)) { false && false; } else if (isUndef(old)) { if (isUndef(cur.fns)) { cur = on[name] = createFnInvoker(cur, vm); } if (isTrue(event.once)) { cur = on[name] = createOnceHandler(event.name, cur, event.capture); } add(event.name, cur, event.capture, event.passive, event.params); } else if (cur !== old) { old.fns = cur; on[name] = old; } } for (name in oldOn) { if (isUndef(on[name])) { event = normalizeEvent(name); remove(event.name, oldOn[name], event.capture); } } } function mergeVNodeHook(def, hookKey, hook) { if (def instanceof VNode) { def = def.data.hook || (def.data.hook = {}); } var invoker; var oldHook = def[hookKey]; function wrappedHook() { hook.apply(this, arguments); // important: remove merged hook to ensure it's called only once // and prevent memory leak remove$2(invoker.fns, wrappedHook); } if (isUndef(oldHook)) { // no existing hook invoker = createFnInvoker([wrappedHook]); } else { /* istanbul ignore if */ if (isDef(oldHook.fns) && isTrue(oldHook.merged)) { // already a merged invoker invoker = oldHook; invoker.fns.push(wrappedHook); } else { // existing plain hook invoker = createFnInvoker([oldHook, wrappedHook]); } } invoker.merged = true; def[hookKey] = invoker; } function extractPropsFromVNodeData(data, Ctor, tag) { // we are only extracting raw values here. // validation and default values are handled in the child // component itself. var propOptions = Ctor.options.props; if (isUndef(propOptions)) { return; } var res = {}; var attrs = data.attrs, props = data.props; if (isDef(attrs) || isDef(props)) { for (var key in propOptions) { var altKey = hyphenate(key); if (false) { var keyInLowerCase; } checkProp(res, props, key, altKey, true) || checkProp(res, attrs, key, altKey, false); } } return res; } function checkProp(res, hash, key, altKey, preserve) { if (isDef(hash)) { if (hasOwn(hash, key)) { res[key] = hash[key]; if (!preserve) { delete hash[key]; } return true; } else if (hasOwn(hash, altKey)) { res[key] = hash[altKey]; if (!preserve) { delete hash[altKey]; } return true; } } return false; } // The template compiler attempts to minimize the need for normalization by // statically analyzing the template at compile time. // // For plain HTML markup, normalization can be completely skipped because the // generated render function is guaranteed to return Array. There are // two cases where extra normalization is needed: // 1. When the children contains components - because a functional component // may return an Array instead of a single root. In this case, just a simple // normalization is needed - if any child is an Array, we flatten the whole // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep // because functional components already normalize their own children. function simpleNormalizeChildren(children) { for (var i = 0; i < children.length; i++) { if (isArray(children[i])) { return Array.prototype.concat.apply([], children); } } return children; } // 2. When the children contains constructs that always generated nested Arrays, // e.g.