From e39823f2b78bd142276de248d112e371c39a3120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 19 Feb 2020 12:23:24 +0300 Subject: [PATCH] OfflinePayment add new and vue issue solved. --- .../Http/Controllers/Settings.php | 36 +- .../Resources/assets/js/offline-payments.js | 115 +- .../assets/js/offline-payments.min.js | 148499 +-------------- .../Resources/views/edit.blade.php | 13 +- modules/OfflinePayments/composer.json | 15 - modules/OfflinePayments/package-lock.json | 14111 ++ 6 files changed, 14201 insertions(+), 148588 deletions(-) delete mode 100644 modules/OfflinePayments/composer.json create mode 100644 modules/OfflinePayments/package-lock.json diff --git a/modules/OfflinePayments/Http/Controllers/Settings.php b/modules/OfflinePayments/Http/Controllers/Settings.php index 873af90d6..c81d41c36 100644 --- a/modules/OfflinePayments/Http/Controllers/Settings.php +++ b/modules/OfflinePayments/Http/Controllers/Settings.php @@ -11,6 +11,7 @@ use Modules\OfflinePayments\Http\Requests\SettingDelete as DRequest; class Settings extends Controller { + /** * Show the form for editing the specified resource. * @@ -34,34 +35,34 @@ class Settings extends Controller { $methods = json_decode(setting('offline-payments.methods'), true); - if (isset($request['update_code'])) { + if (!empty($request->get('update_code', null))) { foreach ($methods as $key => $method) { - if ($method['code'] != $request['update_code']) { + if ($method['code'] != $request->get('update_code')) { continue; } - $method = explode('.', $request['update_code']); + $method = explode('.', $request->get('update_code')); $methods[$key] = [ - 'code' => 'offline-payments.' . $request['code'] . '.' . $method[2], - 'name' => $request['name'], - 'customer' => $request['customer'], - 'order' => $request['order'], - 'description' => $request['description'], + 'code' => 'offline-payments.' . $request->get('code') . '.' . $method[2], + 'name' => $request->get('name'), + 'customer' => $request->get('customer'), + 'order' => $request->get('order'), + 'description' => $request->get('description'), ]; } $message = trans('messages.success.updated', ['type' => $request['name']]); } else { $methods[] = [ - 'code' => 'offline-payments.' . $request['code'] . '.' . (count($methods) + 1), - 'name' => $request['name'], - 'customer' => $request['customer'], - 'order' => $request['order'], - 'description' => $request['description'], + 'code' => 'offline-payments.' . $request->get('code') . '.' . (count($methods) + 1), + 'name' => $request->get('name'), + 'customer' => $request->get('customer'), + 'order' => $request->get('order'), + 'description' => $request->get('description'), ]; - $message = trans('messages.success.added', ['type' => $request['name']]); + $message = trans('messages.success.added', ['type' => $request->get('name')]); } setting()->set('offline-payments.methods', json_encode($methods)); @@ -95,7 +96,7 @@ class Settings extends Controller { $data = []; - $code = $request['code']; + $code = $request->get('code'); $methods = json_decode(setting('offline-payments.methods'), true); @@ -132,7 +133,7 @@ class Settings extends Controller */ public function destroy(DRequest $request) { - $code = $request['code']; + $code = $request->get('code'); $methods = json_decode(setting('offline-payments.methods'), true); @@ -156,7 +157,8 @@ class Settings extends Controller $message = trans('messages.success.deleted', ['type' => $remove['name']]); - flash($message)->success(); + // because it show nofitication. + //flash($message)->success(); return response()->json([ 'errors' => false, diff --git a/modules/OfflinePayments/Resources/assets/js/offline-payments.js b/modules/OfflinePayments/Resources/assets/js/offline-payments.js index 0745c294f..c9e93ffef 100644 --- a/modules/OfflinePayments/Resources/assets/js/offline-payments.js +++ b/modules/OfflinePayments/Resources/assets/js/offline-payments.js @@ -12,6 +12,11 @@ import Global from './../../../../../resources/assets/js/mixins/global'; import Form from './../../../../../resources/assets/js/plugins/form'; +import DashboardPlugin from './../../../../../resources/assets/js/plugins/dashboard-plugin'; + +// plugin setup +Vue.use(DashboardPlugin); + const app = new Vue({ el: '#app', @@ -21,15 +26,7 @@ const app = new Vue({ data() { return { - form: new Form('offline-payments'), - confirm: { - code: '', - title: '', - message: '', - button_cancel: '', - button_delete: '', - show: false - }, + form: new Form('offline-payment'), } }, @@ -58,46 +55,72 @@ const app = new Vue({ // Actions > Delete confirmDelete(code, title, message, button_cancel, button_delete) { - this.confirm.code = code; - this.confirm.title = title; - this.confirm.message = message; - this.confirm.button_cancel = button_cancel; - this.confirm.button_delete = button_delete; - this.confirm.show = true; - }, + let confirm = { + code: code, + url: url, + title: title, + message: message, + button_cancel: button_cancel, + button_delete: button_delete, + show: true + }; - cancelDelete() { - this.confirm.code = ''; - this.confirm.title = ''; - this.confirm.message = ''; - this.confirm.show = false; - }, + this.component = Vue.component('add-new-component', (resolve, reject) => { + resolve({ + template : '
', - onDelete() { - axios({ - method: 'DELETE', - url: 'settings/delete', - data: { - code: this.confirm.code - } - }) - .then(response => { - if (response.data.success) { - if (response.data.redirect) { - window.location.href = response.data.redirect; + mixins: [ + Global + ], + + data: function () { + return { + confirm: confirm, + } + }, + + methods: { + // Delete action post + async onDelete() { + let promise = Promise.resolve(axios({ + method: 'DELETE', + url: 'settings/delete', + data: { + code: this.confirm.code + } + })); + + promise.then(response => { + var type = (response.data.success) ? 'success' : 'warning'; + + if (response.data.success) { + if (response.data.redirect) { + //window.location.href = response.data.redirect; + } + + document.getElementById('method-' + this.confirm.code).remove(); + + this.confirm.show = false; + } + + this.$notify({ + message: response.data.message, + timeout: 5000, + icon: 'fas fa-bell', + type + }); + }) + .catch(error => { + this.success = false; + }); + }, + + // Close modal empty default value + cancelDelete() { + this.confirm.show = false; + }, } - - document.getElementById('method-' + this.confirm.code).remove(); - - this.confirm.code = ''; - this.confirm.title = ''; - this.confirm.message = ''; - - this.confirm.show = false; - } - }) - .catch(error => { - this.success = false; + }) }); } } diff --git a/modules/OfflinePayments/Resources/assets/js/offline-payments.min.js b/modules/OfflinePayments/Resources/assets/js/offline-payments.min.js index 9c6a21027..89d104313 100644 --- a/modules/OfflinePayments/Resources/assets/js/offline-payments.min.js +++ b/modules/OfflinePayments/Resources/assets/js/offline-payments.min.js @@ -1,148498 +1 @@ -/******/ (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 = "/"; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "../../node_modules/async-validator/es/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/index.js ***! - \***************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "../../node_modules/babel-runtime/helpers/extends.js"); -/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "../../node_modules/babel-runtime/helpers/typeof.js"); -/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util */ "../../node_modules/async-validator/es/util.js"); -/* harmony import */ var _validator___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./validator/ */ "../../node_modules/async-validator/es/validator/index.js"); -/* harmony import */ var _messages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./messages */ "../../node_modules/async-validator/es/messages.js"); - - - - - - -/** - * Encapsulates a validation schema. - * - * @param descriptor An object declaring validation rules - * for this schema. - */ -function Schema(descriptor) { - this.rules = null; - this._messages = _messages__WEBPACK_IMPORTED_MODULE_4__["messages"]; - this.define(descriptor); -} - -Schema.prototype = { - messages: function messages(_messages) { - if (_messages) { - this._messages = Object(_util__WEBPACK_IMPORTED_MODULE_2__["deepMerge"])(Object(_messages__WEBPACK_IMPORTED_MODULE_4__["newMessages"])(), _messages); - } - return this._messages; - }, - define: function define(rules) { - if (!rules) { - throw new Error('Cannot configure a schema with no rules'); - } - if ((typeof rules === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(rules)) !== 'object' || Array.isArray(rules)) { - throw new Error('Rules must be an object'); - } - this.rules = {}; - var z = void 0; - var item = void 0; - for (z in rules) { - if (rules.hasOwnProperty(z)) { - item = rules[z]; - this.rules[z] = Array.isArray(item) ? item : [item]; - } - } - }, - validate: function validate(source_) { - var _this = this; - - var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var oc = arguments[2]; - - var source = source_; - var options = o; - var callback = oc; - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (!this.rules || Object.keys(this.rules).length === 0) { - if (callback) { - callback(); - } - return; - } - function complete(results) { - var i = void 0; - var field = void 0; - var errors = []; - var fields = {}; - - function add(e) { - if (Array.isArray(e)) { - errors = errors.concat.apply(errors, e); - } else { - errors.push(e); - } - } - - for (i = 0; i < results.length; i++) { - add(results[i]); - } - if (!errors.length) { - errors = null; - fields = null; - } else { - for (i = 0; i < errors.length; i++) { - field = errors[i].field; - fields[field] = fields[field] || []; - fields[field].push(errors[i]); - } - } - callback(errors, fields); - } - - if (options.messages) { - var messages = this.messages(); - if (messages === _messages__WEBPACK_IMPORTED_MODULE_4__["messages"]) { - messages = Object(_messages__WEBPACK_IMPORTED_MODULE_4__["newMessages"])(); - } - Object(_util__WEBPACK_IMPORTED_MODULE_2__["deepMerge"])(messages, options.messages); - options.messages = messages; - } else { - options.messages = this.messages(); - } - var arr = void 0; - var value = void 0; - var series = {}; - var keys = options.keys || Object.keys(this.rules); - keys.forEach(function (z) { - arr = _this.rules[z]; - value = source[z]; - arr.forEach(function (r) { - var rule = r; - if (typeof rule.transform === 'function') { - if (source === source_) { - source = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, source); - } - value = source[z] = rule.transform(value); - } - if (typeof rule === 'function') { - rule = { - validator: rule - }; - } else { - rule = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rule); - } - rule.validator = _this.getValidationMethod(rule); - rule.field = z; - rule.fullField = rule.fullField || z; - rule.type = _this.getType(rule); - if (!rule.validator) { - return; - } - series[z] = series[z] || []; - series[z].push({ - rule: rule, - value: value, - source: source, - field: z - }); - }); - }); - var errorFields = {}; - Object(_util__WEBPACK_IMPORTED_MODULE_2__["asyncMap"])(series, options, function (data, doIt) { - var rule = data.rule; - var deep = (rule.type === 'object' || rule.type === 'array') && (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(rule.fields) === 'object' || babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(rule.defaultField) === 'object'); - deep = deep && (rule.required || !rule.required && data.value); - rule.field = data.field; - function addFullfield(key, schema) { - return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, schema, { - fullField: rule.fullField + '.' + key - }); - } - - function cb() { - var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - - var errors = e; - if (!Array.isArray(errors)) { - errors = [errors]; - } - if (errors.length) { - Object(_util__WEBPACK_IMPORTED_MODULE_2__["warning"])('async-validator:', errors); - } - if (errors.length && rule.message) { - errors = [].concat(rule.message); - } - - errors = errors.map(Object(_util__WEBPACK_IMPORTED_MODULE_2__["complementError"])(rule)); - - if (options.first && errors.length) { - errorFields[rule.field] = 1; - return doIt(errors); - } - if (!deep) { - doIt(errors); - } else { - // if rule is required but the target object - // does not exist fail at the rule level and don't - // go deeper - if (rule.required && !data.value) { - if (rule.message) { - errors = [].concat(rule.message).map(Object(_util__WEBPACK_IMPORTED_MODULE_2__["complementError"])(rule)); - } else if (options.error) { - errors = [options.error(rule, Object(_util__WEBPACK_IMPORTED_MODULE_2__["format"])(options.messages.required, rule.field))]; - } else { - errors = []; - } - return doIt(errors); - } - - var fieldsSchema = {}; - if (rule.defaultField) { - for (var k in data.value) { - if (data.value.hasOwnProperty(k)) { - fieldsSchema[k] = rule.defaultField; - } - } - } - fieldsSchema = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, fieldsSchema, data.rule.fields); - for (var f in fieldsSchema) { - if (fieldsSchema.hasOwnProperty(f)) { - var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]]; - fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f)); - } - } - var schema = new Schema(fieldsSchema); - schema.messages(options.messages); - if (data.rule.options) { - data.rule.options.messages = options.messages; - data.rule.options.error = options.error; - } - schema.validate(data.value, data.rule.options || options, function (errs) { - doIt(errs && errs.length ? errors.concat(errs) : errs); - }); - } - } - - var res = rule.validator(rule, data.value, cb, data.source, options); - if (res && res.then) { - res.then(function () { - return cb(); - }, function (e) { - return cb(e); - }); - } - }, function (results) { - complete(results); - }); - }, - getType: function getType(rule) { - if (rule.type === undefined && rule.pattern instanceof RegExp) { - rule.type = 'pattern'; - } - if (typeof rule.validator !== 'function' && rule.type && !_validator___WEBPACK_IMPORTED_MODULE_3__["default"].hasOwnProperty(rule.type)) { - throw new Error(Object(_util__WEBPACK_IMPORTED_MODULE_2__["format"])('Unknown rule type %s', rule.type)); - } - return rule.type || 'string'; - }, - getValidationMethod: function getValidationMethod(rule) { - if (typeof rule.validator === 'function') { - return rule.validator; - } - var keys = Object.keys(rule); - var messageIndex = keys.indexOf('message'); - if (messageIndex !== -1) { - keys.splice(messageIndex, 1); - } - if (keys.length === 1 && keys[0] === 'required') { - return _validator___WEBPACK_IMPORTED_MODULE_3__["default"].required; - } - return _validator___WEBPACK_IMPORTED_MODULE_3__["default"][this.getType(rule)] || false; - } -}; - -Schema.register = function register(type, validator) { - if (typeof validator !== 'function') { - throw new Error('Cannot register a validator by type, validator is not a function'); - } - _validator___WEBPACK_IMPORTED_MODULE_3__["default"][type] = validator; -}; - -Schema.messages = _messages__WEBPACK_IMPORTED_MODULE_4__["messages"]; - -/* harmony default export */ __webpack_exports__["default"] = (Schema); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/messages.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/messages.js ***! - \******************************************************************************************/ -/*! exports provided: newMessages, messages */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "newMessages", function() { return newMessages; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "messages", function() { return messages; }); -function newMessages() { - return { - 'default': 'Validation error on field %s', - required: '%s is required', - 'enum': '%s must be one of %s', - whitespace: '%s cannot be empty', - date: { - format: '%s date %s is invalid for format %s', - parse: '%s date could not be parsed, %s is invalid ', - invalid: '%s date %s is invalid' - }, - types: { - string: '%s is not a %s', - method: '%s is not a %s (function)', - array: '%s is not an %s', - object: '%s is not an %s', - number: '%s is not a %s', - date: '%s is not a %s', - boolean: '%s is not a %s', - integer: '%s is not an %s', - float: '%s is not a %s', - regexp: '%s is not a valid %s', - email: '%s is not a valid %s', - url: '%s is not a valid %s', - hex: '%s is not a valid %s' - }, - string: { - len: '%s must be exactly %s characters', - min: '%s must be at least %s characters', - max: '%s cannot be longer than %s characters', - range: '%s must be between %s and %s characters' - }, - number: { - len: '%s must equal %s', - min: '%s cannot be less than %s', - max: '%s cannot be greater than %s', - range: '%s must be between %s and %s' - }, - array: { - len: '%s must be exactly %s in length', - min: '%s cannot be less than %s in length', - max: '%s cannot be greater than %s in length', - range: '%s must be between %s and %s in length' - }, - pattern: { - mismatch: '%s value %s does not match pattern %s' - }, - clone: function clone() { - var cloned = JSON.parse(JSON.stringify(this)); - cloned.clone = this.clone; - return cloned; - } - }; -} - -var messages = newMessages(); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/rule/enum.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/rule/enum.js ***! - \*******************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - -var ENUM = 'enum'; - -/** - * Rule for validating a value exists in an enumerable list. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function enumerable(rule, value, source, errors, options) { - rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : []; - if (rule[ENUM].indexOf(value) === -1) { - errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages[ENUM], rule.fullField, rule[ENUM].join(', '))); - } -} - -/* harmony default export */ __webpack_exports__["default"] = (enumerable); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/rule/index.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/rule/index.js ***! - \********************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _required__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./required */ "../../node_modules/async-validator/es/rule/required.js"); -/* harmony import */ var _whitespace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whitespace */ "../../node_modules/async-validator/es/rule/whitespace.js"); -/* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./type */ "../../node_modules/async-validator/es/rule/type.js"); -/* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./range */ "../../node_modules/async-validator/es/rule/range.js"); -/* harmony import */ var _enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./enum */ "../../node_modules/async-validator/es/rule/enum.js"); -/* harmony import */ var _pattern__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pattern */ "../../node_modules/async-validator/es/rule/pattern.js"); - - - - - - - -/* harmony default export */ __webpack_exports__["default"] = ({ - required: _required__WEBPACK_IMPORTED_MODULE_0__["default"], - whitespace: _whitespace__WEBPACK_IMPORTED_MODULE_1__["default"], - type: _type__WEBPACK_IMPORTED_MODULE_2__["default"], - range: _range__WEBPACK_IMPORTED_MODULE_3__["default"], - 'enum': _enum__WEBPACK_IMPORTED_MODULE_4__["default"], - pattern: _pattern__WEBPACK_IMPORTED_MODULE_5__["default"] -}); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/rule/pattern.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/rule/pattern.js ***! - \**********************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - -/** - * Rule for validating a regular expression pattern. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function pattern(rule, value, source, errors, options) { - if (rule.pattern) { - if (rule.pattern instanceof RegExp) { - // if a RegExp instance is passed, reset `lastIndex` in case its `global` - // flag is accidentally set to `true`, which in a validation scenario - // is not necessary and the result might be misleading - rule.pattern.lastIndex = 0; - if (!rule.pattern.test(value)) { - errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); - } - } else if (typeof rule.pattern === 'string') { - var _pattern = new RegExp(rule.pattern); - if (!_pattern.test(value)) { - errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); - } - } - } -} - -/* harmony default export */ __webpack_exports__["default"] = (pattern); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/rule/range.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/rule/range.js ***! - \********************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - -/** - * Rule for validating minimum and maximum allowed values. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function range(rule, value, source, errors, options) { - var len = typeof rule.len === 'number'; - var min = typeof rule.min === 'number'; - var max = typeof rule.max === 'number'; - // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane) - var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; - var val = value; - var key = null; - var num = typeof value === 'number'; - var str = typeof value === 'string'; - var arr = Array.isArray(value); - if (num) { - key = 'number'; - } else if (str) { - key = 'string'; - } else if (arr) { - key = 'array'; - } - // if the value is not of a supported type for range validation - // the validation rule rule should use the - // type property to also test for a particular type - if (!key) { - return false; - } - if (arr) { - val = value.length; - } - if (str) { - // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3 - val = value.replace(spRegexp, '_').length; - } - if (len) { - if (val !== rule.len) { - errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages[key].len, rule.fullField, rule.len)); - } - } else if (min && !max && val < rule.min) { - errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages[key].min, rule.fullField, rule.min)); - } else if (max && !min && val > rule.max) { - errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages[key].max, rule.fullField, rule.max)); - } else if (min && max && (val < rule.min || val > rule.max)) { - errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages[key].range, rule.fullField, rule.min, rule.max)); - } -} - -/* harmony default export */ __webpack_exports__["default"] = (range); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/rule/required.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/rule/required.js ***! - \***********************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - -/** - * Rule for validating required fields. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function required(rule, value, source, errors, options, type) { - if (rule.required && (!source.hasOwnProperty(rule.field) || _util__WEBPACK_IMPORTED_MODULE_0__["isEmptyValue"](value, type || rule.type))) { - errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages.required, rule.fullField)); - } -} - -/* harmony default export */ __webpack_exports__["default"] = (required); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/rule/type.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/rule/type.js ***! - \*******************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "../../node_modules/babel-runtime/helpers/typeof.js"); -/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); -/* harmony import */ var _required__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./required */ "../../node_modules/async-validator/es/rule/required.js"); - - - - -/* eslint max-len:0 */ - -var pattern = { - // http://emailregex.com/ - email: /^(([^<>()\[\]\\.,;:\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,}))$/, - url: new RegExp('^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$', 'i'), - hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i -}; - -var types = { - integer: function integer(value) { - return types.number(value) && parseInt(value, 10) === value; - }, - float: function float(value) { - return types.number(value) && !types.integer(value); - }, - array: function array(value) { - return Array.isArray(value); - }, - regexp: function regexp(value) { - if (value instanceof RegExp) { - return true; - } - try { - return !!new RegExp(value); - } catch (e) { - return false; - } - }, - date: function date(value) { - return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function'; - }, - number: function number(value) { - if (isNaN(value)) { - return false; - } - return typeof value === 'number'; - }, - object: function object(value) { - return (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) === 'object' && !types.array(value); - }, - method: function method(value) { - return typeof value === 'function'; - }, - email: function email(value) { - return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255; - }, - url: function url(value) { - return typeof value === 'string' && !!value.match(pattern.url); - }, - hex: function hex(value) { - return typeof value === 'string' && !!value.match(pattern.hex); - } -}; - -/** - * Rule for validating the type of a value. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function type(rule, value, source, errors, options) { - if (rule.required && value === undefined) { - Object(_required__WEBPACK_IMPORTED_MODULE_2__["default"])(rule, value, source, errors, options); - return; - } - var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex']; - var ruleType = rule.type; - if (custom.indexOf(ruleType) > -1) { - if (!types[ruleType](value)) { - errors.push(_util__WEBPACK_IMPORTED_MODULE_1__["format"](options.messages.types[ruleType], rule.fullField, rule.type)); - } - // straight typeof check - } else if (ruleType && (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) !== rule.type) { - errors.push(_util__WEBPACK_IMPORTED_MODULE_1__["format"](options.messages.types[ruleType], rule.fullField, rule.type)); - } -} - -/* harmony default export */ __webpack_exports__["default"] = (type); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/rule/whitespace.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/rule/whitespace.js ***! - \*************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - -/** - * Rule for validating whitespace. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param source The source object being validated. - * @param errors An array of errors that this rule may add - * validation errors to. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function whitespace(rule, value, source, errors, options) { - if (/^\s+$/.test(value) || value === '') { - errors.push(_util__WEBPACK_IMPORTED_MODULE_0__["format"](options.messages.whitespace, rule.fullField)); - } -} - -/* harmony default export */ __webpack_exports__["default"] = (whitespace); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/util.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/util.js ***! - \**************************************************************************************/ -/*! exports provided: warning, format, isEmptyValue, isEmptyObject, asyncMap, complementError, deepMerge */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warning", function() { return warning; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "format", function() { return format; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmptyValue", function() { return isEmptyValue; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmptyObject", function() { return isEmptyObject; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asyncMap", function() { return asyncMap; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "complementError", function() { return complementError; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepMerge", function() { return deepMerge; }); -/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "../../node_modules/babel-runtime/helpers/extends.js"); -/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "../../node_modules/babel-runtime/helpers/typeof.js"); -/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__); - - -var formatRegExp = /%[sdj%]/g; - -var warning = function warning() {}; - -// don't print warning message when in production env or node runtime -if ( true && typeof window !== 'undefined' && typeof document !== 'undefined') { - warning = function warning(type, errors) { - if (typeof console !== 'undefined' && console.warn) { - if (errors.every(function (e) { - return typeof e === 'string'; - })) { - console.warn(type, errors); - } - } - }; -} - -function format() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - var i = 1; - var f = args[0]; - var len = args.length; - if (typeof f === 'function') { - return f.apply(null, args.slice(1)); - } - if (typeof f === 'string') { - var str = String(f).replace(formatRegExp, function (x) { - if (x === '%%') { - return '%'; - } - if (i >= len) { - return x; - } - switch (x) { - case '%s': - return String(args[i++]); - case '%d': - return Number(args[i++]); - case '%j': - try { - return JSON.stringify(args[i++]); - } catch (_) { - return '[Circular]'; - } - break; - default: - return x; - } - }); - for (var arg = args[i]; i < len; arg = args[++i]) { - str += ' ' + arg; - } - return str; - } - return f; -} - -function isNativeStringType(type) { - return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern'; -} - -function isEmptyValue(value, type) { - if (value === undefined || value === null) { - return true; - } - if (type === 'array' && Array.isArray(value) && !value.length) { - return true; - } - if (isNativeStringType(type) && typeof value === 'string' && !value) { - return true; - } - return false; -} - -function isEmptyObject(obj) { - return Object.keys(obj).length === 0; -} - -function asyncParallelArray(arr, func, callback) { - var results = []; - var total = 0; - var arrLength = arr.length; - - function count(errors) { - results.push.apply(results, errors); - total++; - if (total === arrLength) { - callback(results); - } - } - - arr.forEach(function (a) { - func(a, count); - }); -} - -function asyncSerialArray(arr, func, callback) { - var index = 0; - var arrLength = arr.length; - - function next(errors) { - if (errors && errors.length) { - callback(errors); - return; - } - var original = index; - index = index + 1; - if (original < arrLength) { - func(arr[original], next); - } else { - callback([]); - } - } - - next([]); -} - -function flattenObjArr(objArr) { - var ret = []; - Object.keys(objArr).forEach(function (k) { - ret.push.apply(ret, objArr[k]); - }); - return ret; -} - -function asyncMap(objArr, option, func, callback) { - if (option.first) { - var flattenArr = flattenObjArr(objArr); - return asyncSerialArray(flattenArr, func, callback); - } - var firstFields = option.firstFields || []; - if (firstFields === true) { - firstFields = Object.keys(objArr); - } - var objArrKeys = Object.keys(objArr); - var objArrLength = objArrKeys.length; - var total = 0; - var results = []; - var next = function next(errors) { - results.push.apply(results, errors); - total++; - if (total === objArrLength) { - callback(results); - } - }; - objArrKeys.forEach(function (key) { - var arr = objArr[key]; - if (firstFields.indexOf(key) !== -1) { - asyncSerialArray(arr, func, next); - } else { - asyncParallelArray(arr, func, next); - } - }); -} - -function complementError(rule) { - return function (oe) { - if (oe && oe.message) { - oe.field = oe.field || rule.fullField; - return oe; - } - return { - message: oe, - field: oe.field || rule.fullField - }; - }; -} - -function deepMerge(target, source) { - if (source) { - for (var s in source) { - if (source.hasOwnProperty(s)) { - var value = source[s]; - if ((typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(value)) === 'object' && babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(target[s]) === 'object') { - target[s] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, target[s], value); - } else { - target[s] = value; - } - } - } - } - return target; -} - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/array.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/array.js ***! - \*************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - -/** - * Validates an array. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function array(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'array') && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options, 'array'); - if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'array')) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options); - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (array); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/boolean.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/boolean.js ***! - \***************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); - - - -/** - * Validates a boolean. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function boolean(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_0__["isEmptyValue"])(value) && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_1__["default"].required(rule, value, source, errors, options); - if (value !== undefined) { - _rule___WEBPACK_IMPORTED_MODULE_1__["default"].type(rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (boolean); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/date.js": -/*!************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/date.js ***! - \************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - - -function date(rule, value, callback, source, options) { - // console.log('integer rule called %j', rule); - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - // console.log('validate on %s value', value); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options); - if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value)) { - var dateObject = void 0; - - if (typeof value === 'number') { - dateObject = new Date(value); - } else { - dateObject = value; - } - - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, dateObject, source, errors, options); - if (dateObject) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, dateObject.getTime(), source, errors, options); - } - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (date); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/enum.js": -/*!************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/enum.js ***! - \************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - -var ENUM = 'enum'; - -/** - * Validates an enumerable list. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function enumerable(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options); - if (value) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"][ENUM](rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (enumerable); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/float.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/float.js ***! - \*************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - - -/** - * Validates a number is a floating point number. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function floatFn(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options); - if (value !== undefined) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options); - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (floatFn); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/index.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/index.js ***! - \*************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./string */ "../../node_modules/async-validator/es/validator/string.js"); -/* harmony import */ var _method__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./method */ "../../node_modules/async-validator/es/validator/method.js"); -/* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number */ "../../node_modules/async-validator/es/validator/number.js"); -/* harmony import */ var _boolean__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./boolean */ "../../node_modules/async-validator/es/validator/boolean.js"); -/* harmony import */ var _regexp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./regexp */ "../../node_modules/async-validator/es/validator/regexp.js"); -/* harmony import */ var _integer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./integer */ "../../node_modules/async-validator/es/validator/integer.js"); -/* harmony import */ var _float__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./float */ "../../node_modules/async-validator/es/validator/float.js"); -/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./array */ "../../node_modules/async-validator/es/validator/array.js"); -/* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./object */ "../../node_modules/async-validator/es/validator/object.js"); -/* harmony import */ var _enum__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./enum */ "../../node_modules/async-validator/es/validator/enum.js"); -/* harmony import */ var _pattern__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./pattern */ "../../node_modules/async-validator/es/validator/pattern.js"); -/* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./date */ "../../node_modules/async-validator/es/validator/date.js"); -/* harmony import */ var _required__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./required */ "../../node_modules/async-validator/es/validator/required.js"); -/* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./type */ "../../node_modules/async-validator/es/validator/type.js"); - - - - - - - - - - - - - - - -/* harmony default export */ __webpack_exports__["default"] = ({ - string: _string__WEBPACK_IMPORTED_MODULE_0__["default"], - method: _method__WEBPACK_IMPORTED_MODULE_1__["default"], - number: _number__WEBPACK_IMPORTED_MODULE_2__["default"], - boolean: _boolean__WEBPACK_IMPORTED_MODULE_3__["default"], - regexp: _regexp__WEBPACK_IMPORTED_MODULE_4__["default"], - integer: _integer__WEBPACK_IMPORTED_MODULE_5__["default"], - float: _float__WEBPACK_IMPORTED_MODULE_6__["default"], - array: _array__WEBPACK_IMPORTED_MODULE_7__["default"], - object: _object__WEBPACK_IMPORTED_MODULE_8__["default"], - 'enum': _enum__WEBPACK_IMPORTED_MODULE_9__["default"], - pattern: _pattern__WEBPACK_IMPORTED_MODULE_10__["default"], - date: _date__WEBPACK_IMPORTED_MODULE_11__["default"], - url: _type__WEBPACK_IMPORTED_MODULE_13__["default"], - hex: _type__WEBPACK_IMPORTED_MODULE_13__["default"], - email: _type__WEBPACK_IMPORTED_MODULE_13__["default"], - required: _required__WEBPACK_IMPORTED_MODULE_12__["default"] -}); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/integer.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/integer.js ***! - \***************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - - -/** - * Validates a number is an integer. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function integer(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options); - if (value !== undefined) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options); - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (integer); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/method.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/method.js ***! - \**************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - - -/** - * Validates a function. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function method(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options); - if (value !== undefined) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (method); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/number.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/number.js ***! - \**************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - - -/** - * Validates a number. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function number(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options); - if (value !== undefined) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options); - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (number); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/object.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/object.js ***! - \**************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - - -/** - * Validates an object. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function object(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options); - if (value !== undefined) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (object); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/pattern.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/pattern.js ***! - \***************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - - -/** - * Validates a regular expression pattern. - * - * Performs validation when a rule only contains - * a pattern property but is not declared as a string type. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function pattern(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'string') && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options); - if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'string')) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].pattern(rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (pattern); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/regexp.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/regexp.js ***! - \**************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - - -/** - * Validates the regular expression type. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function regexp(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value) && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options); - if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value)) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (regexp); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/required.js": -/*!****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/required.js ***! - \****************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "../../node_modules/babel-runtime/helpers/typeof.js"); -/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); - - - -function required(rule, value, callback, source, options) { - var errors = []; - var type = Array.isArray(value) ? 'array' : typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value); - _rule___WEBPACK_IMPORTED_MODULE_1__["default"].required(rule, value, source, errors, options, type); - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (required); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/string.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/string.js ***! - \**************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - - -/** - * Performs validation for string types. - * - * @param rule The validation rule. - * @param value The value of the field on the source object. - * @param callback The callback function. - * @param source The source object being validated. - * @param options The validation options. - * @param options.messages The validation messages. - */ -function string(rule, value, callback, source, options) { - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'string') && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options, 'string'); - if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, 'string')) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options); - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].range(rule, value, source, errors, options); - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].pattern(rule, value, source, errors, options); - if (rule.whitespace === true) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].whitespace(rule, value, source, errors, options); - } - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (string); - -/***/ }), - -/***/ "../../node_modules/async-validator/es/validator/type.js": -/*!************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/async-validator/es/validator/type.js ***! - \************************************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _rule___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rule/ */ "../../node_modules/async-validator/es/rule/index.js"); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "../../node_modules/async-validator/es/util.js"); - - - -function type(rule, value, callback, source, options) { - var ruleType = rule.type; - var errors = []; - var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); - if (validate) { - if (Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, ruleType) && !rule.required) { - return callback(); - } - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].required(rule, value, source, errors, options, ruleType); - if (!Object(_util__WEBPACK_IMPORTED_MODULE_1__["isEmptyValue"])(value, ruleType)) { - _rule___WEBPACK_IMPORTED_MODULE_0__["default"].type(rule, value, source, errors, options); - } - } - callback(errors); -} - -/* harmony default export */ __webpack_exports__["default"] = (type); - -/***/ }), - -/***/ "../../node_modules/axios/index.js": -/*!**************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/index.js ***! - \**************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(/*! ./lib/axios */ "../../node_modules/axios/lib/axios.js"); - -/***/ }), - -/***/ "../../node_modules/axios/lib/adapters/xhr.js": -/*!*************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/adapters/xhr.js ***! - \*************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, 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 buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "../../node_modules/axios/lib/helpers/buildURL.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 createError = __webpack_require__(/*! ../core/createError */ "../../node_modules/axios/lib/core/createError.js"); - -module.exports = function xhrAdapter(config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - var requestData = config.data; - var requestHeaders = config.headers; - - if (utils.isFormData(requestData)) { - 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 || ''; - requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); - } - - request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true); - - // Set the request timeout in MS - request.timeout = config.timeout; - - // Listen for ready state - 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; - } - - // Prepare the response - var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; - var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; - var response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config: config, - request: request - }; - - settle(resolve, reject, response); - - // 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(createError('Network Error', config, null, request)); - - // Clean up request - request = null; - }; - - // Handle timeout - request.ontimeout = function handleTimeout() { - reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', - 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()) { - var cookies = __webpack_require__(/*! ./../helpers/cookies */ "../../node_modules/axios/lib/helpers/cookies.js"); - - // Add xsrf header - var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && 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 (config.withCredentials) { - request.withCredentials = true; - } - - // Add responseType to request if needed - if (config.responseType) { - try { - request.responseType = config.responseType; - } catch (e) { - // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. - // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. - if (config.responseType !== 'json') { - throw e; - } - } - } - - // 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) { - // Handle cancellation - config.cancelToken.promise.then(function onCanceled(cancel) { - if (!request) { - return; - } - - request.abort(); - reject(cancel); - // Clean up request - request = null; - }); - } - - if (requestData === undefined) { - requestData = null; - } - - // Send the request - request.send(requestData); - }); -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/axios.js": -/*!******************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/axios.js ***! - \******************************************************************************/ -/*! no static exports found */ -/***/ (function(module, 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 defaults = __webpack_require__(/*! ./defaults */ "../../node_modules/axios/lib/defaults.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); - - return instance; -} - -// Create the default instance to be exported -var axios = createInstance(defaults); - -// Expose Axios class to allow class inheritance -axios.Axios = Axios; - -// Factory for creating new instances -axios.create = function create(instanceConfig) { - return createInstance(utils.merge(defaults, instanceConfig)); -}; - -// Expose Cancel & CancelToken -axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "../../node_modules/axios/lib/cancel/Cancel.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"); - -// 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"); - -module.exports = axios; - -// Allow use of default import syntax in TypeScript -module.exports.default = axios; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/cancel/Cancel.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/cancel/Cancel.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * A `Cancel` is an object that is thrown when an operation is canceled. - * - * @class - * @param {string=} message The message. - */ -function Cancel(message) { - this.message = message; -} - -Cancel.prototype.toString = function toString() { - return 'Cancel' + (this.message ? ': ' + this.message : ''); -}; - -Cancel.prototype.__CANCEL__ = true; - -module.exports = Cancel; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/cancel/CancelToken.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/cancel/CancelToken.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var Cancel = __webpack_require__(/*! ./Cancel */ "../../node_modules/axios/lib/cancel/Cancel.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; - executor(function cancel(message) { - if (token.reason) { - // Cancellation has already been requested - return; - } - - token.reason = new Cancel(message); - resolvePromise(token.reason); - }); -} - -/** - * Throws a `Cancel` if cancellation has been requested. - */ -CancelToken.prototype.throwIfRequested = function throwIfRequested() { - if (this.reason) { - throw this.reason; - } -}; - -/** - * 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/isCancel.js": -/*!****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/cancel/isCancel.js ***! - \****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = function isCancel(value) { - return !!(value && value.__CANCEL__); -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/core/Axios.js": -/*!***********************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/core/Axios.js ***! - \***********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var defaults = __webpack_require__(/*! ./../defaults */ "../../node_modules/axios/lib/defaults.js"); -var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.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"); - -/** - * 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(config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof config === 'string') { - config = utils.merge({ - url: arguments[0] - }, arguments[1]); - } - - config = utils.merge(defaults, {method: 'get'}, this.defaults, config); - config.method = config.method.toLowerCase(); - - // Hook up interceptors middleware - var chain = [dispatchRequest, undefined]; - var promise = Promise.resolve(config); - - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - chain.unshift(interceptor.fulfilled, interceptor.rejected); - }); - - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - chain.push(interceptor.fulfilled, interceptor.rejected); - }); - - while (chain.length) { - promise = promise.then(chain.shift(), chain.shift()); - } - - return promise; -}; - -// 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(utils.merge(config || {}, { - method: method, - url: url - })); - }; -}); - -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, data, config) { - return this.request(utils.merge(config || {}, { - method: method, - url: url, - data: data - })); - }; -}); - -module.exports = Axios; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/core/InterceptorManager.js": -/*!************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/core/InterceptorManager.js ***! - \************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, 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) { - this.handlers.push({ - fulfilled: fulfilled, - rejected: rejected - }); - 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/createError.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/core/createError.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var enhanceError = __webpack_require__(/*! ./enhanceError */ "../../node_modules/axios/lib/core/enhanceError.js"); - -/** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {Object} config The config. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The created error. - */ -module.exports = function createError(message, config, code, request, response) { - var error = new Error(message); - return enhanceError(error, config, code, request, response); -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/core/dispatchRequest.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/core/dispatchRequest.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -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.js"); -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"); - -/** - * Throws a `Cancel` if cancellation has been requested. - */ -function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } -} - -/** - * 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); - - // Support baseURL config - if (config.baseURL && !isAbsoluteURL(config.url)) { - config.url = combineURLs(config.baseURL, config.url); - } - - // Ensure headers exist - config.headers = config.headers || {}; - - // Transform request data - config.data = transformData( - 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]; - } - ); - - var adapter = config.adapter || defaults.adapter; - - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); - - // Transform response data - response.data = transformData( - 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( - reason.response.data, - reason.response.headers, - config.transformResponse - ); - } - } - - return Promise.reject(reason); - }); -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/core/enhanceError.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/core/enhanceError.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * Update an Error with the specified config, error code, and response. - * - * @param {Error} error The error to update. - * @param {Object} config The config. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The error. - */ -module.exports = function enhanceError(error, config, code, request, response) { - error.config = config; - if (code) { - error.code = code; - } - error.request = request; - error.response = response; - return error; -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/core/settle.js": -/*!************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/core/settle.js ***! - \************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var createError = __webpack_require__(/*! ./createError */ "../../node_modules/axios/lib/core/createError.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; - // Note: status is not exposed by XDomainRequest - if (!response.status || !validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(createError( - 'Request failed with status code ' + response.status, - response.config, - null, - response.request, - response - )); - } -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/core/transformData.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/core/transformData.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.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) { - /*eslint no-param-reassign:0*/ - utils.forEach(fns, function transform(fn) { - data = fn(data, headers); - }); - - return data; -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/defaults.js": -/*!*********************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/defaults.js ***! - \*********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { - -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 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') { - // For node use HTTP adapter - adapter = __webpack_require__(/*! ./adapters/http */ "../../node_modules/axios/lib/adapters/xhr.js"); - } - return adapter; -} - -var defaults = { - adapter: getDefaultAdapter(), - - transformRequest: [function transformRequest(data, headers) { - 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(); - } - if (utils.isObject(data)) { - setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); - return JSON.stringify(data); - } - return data; - }], - - transformResponse: [function transformResponse(data) { - /*eslint no-param-reassign:0*/ - if (typeof data === 'string') { - try { - data = JSON.parse(data); - } catch (e) { /* Ignore */ } - } - 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, - - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - } -}; - -defaults.headers = { - common: { - 'Accept': 'application/json, text/plain, */*' - } -}; - -utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { - defaults.headers[method] = {}; -}); - -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); -}); - -module.exports = defaults; - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../modules/OfflinePayments/node_modules/process/browser.js */ "./node_modules/process/browser.js"))) - -/***/ }), - -/***/ "../../node_modules/axios/lib/helpers/bind.js": -/*!*************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/helpers/bind.js ***! - \*************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = function bind(fn, thisArg) { - return function wrap() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i]; - } - return fn.apply(thisArg, args); - }; -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/helpers/buildURL.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/helpers/buildURL.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); - -function encode(val) { - return encodeURIComponent(val). - replace(/%40/gi, '@'). - replace(/%3A/gi, ':'). - replace(/%24/g, '$'). - replace(/%2C/gi, ','). - replace(/%20/g, '+'). - replace(/%5B/gi, '['). - replace(/%5D/gi, ']'); -} - -/** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @returns {string} The formatted url - */ -module.exports = function buildURL(url, params, paramsSerializer) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } - - var serializedParams; - if (paramsSerializer) { - serializedParams = paramsSerializer(params); - } else if (utils.isURLSearchParams(params)) { - serializedParams = params.toString(); - } else { - var parts = []; - - utils.forEach(params, function serialize(val, key) { - if (val === null || typeof val === 'undefined') { - return; - } - - if (utils.isArray(val)) { - key = key + '[]'; - } else { - val = [val]; - } - - utils.forEach(val, function parseValue(v) { - if (utils.isDate(v)) { - v = v.toISOString(); - } else if (utils.isObject(v)) { - v = JSON.stringify(v); - } - parts.push(encode(key) + '=' + encode(v)); - }); - }); - - serializedParams = parts.join('&'); - } - - if (serializedParams) { - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } - - return url; -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/helpers/combineURLs.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/helpers/combineURLs.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * @returns {string} The combined URL - */ -module.exports = function combineURLs(baseURL, relativeURL) { - return relativeURL - ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') - : baseURL; -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/helpers/cookies.js": -/*!****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/helpers/cookies.js ***! - \****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); - -module.exports = ( - utils.isStandardBrowserEnv() ? - - // Standard browser envs support document.cookie - (function standardBrowserEnv() { - return { - write: function write(name, value, expires, path, domain, secure) { - var cookie = []; - cookie.push(name + '=' + encodeURIComponent(value)); - - if (utils.isNumber(expires)) { - cookie.push('expires=' + new Date(expires).toGMTString()); - } - - if (utils.isString(path)) { - cookie.push('path=' + path); - } - - if (utils.isString(domain)) { - cookie.push('domain=' + domain); - } - - if (secure === true) { - cookie.push('secure'); - } - - document.cookie = cookie.join('; '); - }, - - read: function read(name) { - var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return (match ? decodeURIComponent(match[3]) : null); - }, - - remove: function remove(name) { - this.write(name, '', Date.now() - 86400000); - } - }; - })() : - - // Non standard browser env (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return { - write: function write() {}, - read: function read() { return null; }, - remove: function remove() {} - }; - })() -); - - -/***/ }), - -/***/ "../../node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ -module.exports = function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); - -module.exports = ( - utils.isStandardBrowserEnv() ? - - // Standard browser envs have full support of the APIs needed to test - // whether the request URL is of the same origin as current location. - (function standardBrowserEnv() { - var msie = /(msie|trident)/i.test(navigator.userAgent); - var urlParsingNode = document.createElement('a'); - var originURL; - - /** - * Parse a URL to discover it's components - * - * @param {String} url The URL to be parsed - * @returns {Object} - */ - function resolveURL(url) { - var href = url; - - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; - } - - urlParsingNode.setAttribute('href', href); - - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: (urlParsingNode.pathname.charAt(0) === '/') ? - urlParsingNode.pathname : - '/' + urlParsingNode.pathname - }; - } - - originURL = resolveURL(window.location.href); - - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false - */ - return function isURLSameOrigin(requestURL) { - var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; - return (parsed.protocol === originURL.protocol && - parsed.host === originURL.host); - }; - })() : - - // Non standard browser envs (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - })() -); - - -/***/ }), - -/***/ "../../node_modules/axios/lib/helpers/normalizeHeaderName.js": -/*!****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/helpers/normalizeHeaderName.js ***! - \****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ../utils */ "../../node_modules/axios/lib/utils.js"); - -module.exports = function normalizeHeaderName(headers, normalizedName) { - utils.forEach(headers, function processHeader(value, name) { - if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { - headers[normalizedName] = value; - delete headers[name]; - } - }); -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/helpers/parseHeaders.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/helpers/parseHeaders.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); - -// Headers whose duplicates are ignored by node -// c.f. https://nodejs.org/api/http.html#http_message_headers -var ignoreDuplicateOf = [ - 'age', 'authorization', 'content-length', 'content-type', 'etag', - 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', - 'last-modified', 'location', 'max-forwards', 'proxy-authorization', - 'referer', 'retry-after', 'user-agent' -]; - -/** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} headers Headers needing to be parsed - * @returns {Object} Headers parsed into an object - */ -module.exports = function parseHeaders(headers) { - var parsed = {}; - var key; - var val; - var i; - - if (!headers) { return parsed; } - - utils.forEach(headers.split('\n'), function parser(line) { - i = line.indexOf(':'); - key = utils.trim(line.substr(0, i)).toLowerCase(); - val = utils.trim(line.substr(i + 1)); - - if (key) { - if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { - return; - } - if (key === 'set-cookie') { - parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - } - }); - - return parsed; -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/helpers/spread.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/helpers/spread.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * @returns {Function} - */ -module.exports = function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; -}; - - -/***/ }), - -/***/ "../../node_modules/axios/lib/utils.js": -/*!******************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/lib/utils.js ***! - \******************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(/*! ./helpers/bind */ "../../node_modules/axios/lib/helpers/bind.js"); -var isBuffer = __webpack_require__(/*! is-buffer */ "../../node_modules/axios/node_modules/is-buffer/index.js"); - -/*global toString:true*/ - -// utils is a library of generic helper functions non-specific to axios - -var toString = Object.prototype.toString; - -/** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Array, otherwise false - */ -function isArray(val) { - return toString.call(val) === '[object Array]'; -} - -/** - * Determine if a value is an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ -function isArrayBuffer(val) { - return toString.call(val) === '[object ArrayBuffer]'; -} - -/** - * Determine if a value is a FormData - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an FormData, otherwise false - */ -function isFormData(val) { - return (typeof FormData !== 'undefined') && (val instanceof FormData); -} - -/** - * Determine if a value is a view on an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ -function isArrayBufferView(val) { - var result; - if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { - result = ArrayBuffer.isView(val); - } else { - result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); - } - return result; -} - -/** - * Determine if a value is a String - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a String, otherwise false - */ -function isString(val) { - return typeof val === 'string'; -} - -/** - * Determine if a value is a Number - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Number, otherwise false - */ -function isNumber(val) { - return typeof val === 'number'; -} - -/** - * Determine if a value is undefined - * - * @param {Object} val The value to test - * @returns {boolean} True if the value is undefined, otherwise false - */ -function isUndefined(val) { - return typeof val === 'undefined'; -} - -/** - * Determine if a value is an Object - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Object, otherwise false - */ -function isObject(val) { - return val !== null && typeof val === 'object'; -} - -/** - * Determine if a value is a Date - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Date, otherwise false - */ -function isDate(val) { - return toString.call(val) === '[object Date]'; -} - -/** - * Determine if a value is a File - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a File, otherwise false - */ -function isFile(val) { - return toString.call(val) === '[object File]'; -} - -/** - * Determine if a value is a Blob - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Blob, otherwise false - */ -function isBlob(val) { - return toString.call(val) === '[object Blob]'; -} - -/** - * Determine if a value is a Function - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Function, otherwise false - */ -function isFunction(val) { - return toString.call(val) === '[object Function]'; -} - -/** - * Determine if a value is a Stream - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Stream, otherwise false - */ -function isStream(val) { - return isObject(val) && isFunction(val.pipe); -} - -/** - * Determine if a value is a URLSearchParams object - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a URLSearchParams object, otherwise false - */ -function isURLSearchParams(val) { - return typeof URLSearchParams !== 'undefined' && val instanceof 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 - */ -function trim(str) { - return str.replace(/^\s*/, '').replace(/\s*$/, ''); -} - -/** - * Determine if we're running in a standard browser environment - * - * This allows axios to run in a web worker, and react-native. - * Both environments support XMLHttpRequest, but not fully standard globals. - * - * web workers: - * typeof window -> undefined - * typeof document -> undefined - * - * react-native: - * navigator.product -> 'ReactNative' - */ -function isStandardBrowserEnv() { - if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { - return false; - } - return ( - typeof window !== 'undefined' && - typeof document !== 'undefined' - ); -} - -/** - * 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 - */ -function forEach(obj, fn) { - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { - return; - } - - // 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 (var i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); - } - } else { - // Iterate over object keys - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - fn.call(null, obj[key], key, obj); - } - } - } -} - -/** - * 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, ... */) { - var result = {}; - function assignValue(val, key) { - if (typeof result[key] === 'object' && typeof val === 'object') { - result[key] = merge(result[key], val); - } else { - result[key] = val; - } - } - - for (var i = 0, l = arguments.length; i < l; 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 - * @return {Object} The resulting value of object a - */ -function extend(a, b, thisArg) { - forEach(b, function assignValue(val, key) { - if (thisArg && typeof val === 'function') { - a[key] = bind(val, thisArg); - } else { - a[key] = val; - } - }); - return a; -} - -module.exports = { - isArray: isArray, - isArrayBuffer: isArrayBuffer, - isBuffer: isBuffer, - isFormData: isFormData, - isArrayBufferView: isArrayBufferView, - isString: isString, - isNumber: isNumber, - isObject: isObject, - isUndefined: isUndefined, - isDate: isDate, - isFile: isFile, - isBlob: isBlob, - isFunction: isFunction, - isStream: isStream, - isURLSearchParams: isURLSearchParams, - isStandardBrowserEnv: isStandardBrowserEnv, - forEach: forEach, - merge: merge, - extend: extend, - trim: trim -}; - - -/***/ }), - -/***/ "../../node_modules/axios/node_modules/is-buffer/index.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/axios/node_modules/is-buffer/index.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh - * @license MIT - */ - -module.exports = function isBuffer (obj) { - return obj != null && obj.constructor != null && - typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) -} - - -/***/ }), - -/***/ "../../node_modules/babel-helper-vue-jsx-merge-props/index.js": -/*!*****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/babel-helper-vue-jsx-merge-props/index.js ***! - \*****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/ - -module.exports = function mergeJSXProps (objs) { - return objs.reduce(function (a, b) { - var aa, bb, key, nestedKey, temp - for (key in b) { - aa = a[key] - bb = b[key] - if (aa && nestRE.test(key)) { - // normalize class - if (key === 'class') { - if (typeof aa === 'string') { - temp = aa - a[key] = aa = {} - aa[temp] = true - } - if (typeof bb === 'string') { - temp = bb - b[key] = bb = {} - bb[temp] = true - } - } - if (key === 'on' || key === 'nativeOn' || key === 'hook') { - // merge functions - for (nestedKey in bb) { - aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey]) - } - } else if (Array.isArray(aa)) { - a[key] = aa.concat(bb) - } else if (Array.isArray(bb)) { - a[key] = [aa].concat(bb) - } else { - for (nestedKey in bb) { - aa[nestedKey] = bb[nestedKey] - } - } - } else { - a[key] = b[key] - } - } - return a - }, {}) -} - -function mergeFn (a, b) { - return function () { - a && a.apply(this, arguments) - b && b.apply(this, arguments) - } -} - - -/***/ }), - -/***/ "../../node_modules/babel-runtime/core-js/object/assign.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/babel-runtime/core-js/object/assign.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/assign */ "../../node_modules/core-js/library/fn/object/assign.js"), __esModule: true }; - -/***/ }), - -/***/ "../../node_modules/babel-runtime/core-js/symbol.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/babel-runtime/core-js/symbol.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol */ "../../node_modules/core-js/library/fn/symbol/index.js"), __esModule: true }; - -/***/ }), - -/***/ "../../node_modules/babel-runtime/core-js/symbol/iterator.js": -/*!****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/babel-runtime/core-js/symbol/iterator.js ***! - \****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol/iterator */ "../../node_modules/core-js/library/fn/symbol/iterator.js"), __esModule: true }; - -/***/ }), - -/***/ "../../node_modules/babel-runtime/helpers/extends.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/babel-runtime/helpers/extends.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _assign = __webpack_require__(/*! ../core-js/object/assign */ "../../node_modules/babel-runtime/core-js/object/assign.js"); - -var _assign2 = _interopRequireDefault(_assign); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _assign2.default || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; -}; - -/***/ }), - -/***/ "../../node_modules/babel-runtime/helpers/typeof.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/babel-runtime/helpers/typeof.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _iterator = __webpack_require__(/*! ../core-js/symbol/iterator */ "../../node_modules/babel-runtime/core-js/symbol/iterator.js"); - -var _iterator2 = _interopRequireDefault(_iterator); - -var _symbol = __webpack_require__(/*! ../core-js/symbol */ "../../node_modules/babel-runtime/core-js/symbol.js"); - -var _symbol2 = _interopRequireDefault(_symbol); - -var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { - return typeof obj === "undefined" ? "undefined" : _typeof(obj); -} : function (obj) { - return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); -}; - -/***/ }), - -/***/ "../../node_modules/core-js/library/fn/object/assign.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/fn/object/assign.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(/*! ../../modules/es6.object.assign */ "../../node_modules/core-js/library/modules/es6.object.assign.js"); -module.exports = __webpack_require__(/*! ../../modules/_core */ "../../node_modules/core-js/library/modules/_core.js").Object.assign; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/fn/symbol/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/fn/symbol/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(/*! ../../modules/es6.symbol */ "../../node_modules/core-js/library/modules/es6.symbol.js"); -__webpack_require__(/*! ../../modules/es6.object.to-string */ "../../node_modules/core-js/library/modules/es6.object.to-string.js"); -__webpack_require__(/*! ../../modules/es7.symbol.async-iterator */ "../../node_modules/core-js/library/modules/es7.symbol.async-iterator.js"); -__webpack_require__(/*! ../../modules/es7.symbol.observable */ "../../node_modules/core-js/library/modules/es7.symbol.observable.js"); -module.exports = __webpack_require__(/*! ../../modules/_core */ "../../node_modules/core-js/library/modules/_core.js").Symbol; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/fn/symbol/iterator.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/fn/symbol/iterator.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(/*! ../../modules/es6.string.iterator */ "../../node_modules/core-js/library/modules/es6.string.iterator.js"); -__webpack_require__(/*! ../../modules/web.dom.iterable */ "../../node_modules/core-js/library/modules/web.dom.iterable.js"); -module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "../../node_modules/core-js/library/modules/_wks-ext.js").f('iterator'); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_a-function.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_a-function.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = function (it) { - if (typeof it != 'function') throw TypeError(it + ' is not a function!'); - return it; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_add-to-unscopables.js": -/*!**********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_add-to-unscopables.js ***! - \**********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = function () { /* empty */ }; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_an-object.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_an-object.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__(/*! ./_is-object */ "../../node_modules/core-js/library/modules/_is-object.js"); -module.exports = function (it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_array-includes.js": -/*!******************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_array-includes.js ***! - \******************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// false -> Array#indexOf -// true -> Array#includes -var toIObject = __webpack_require__(/*! ./_to-iobject */ "../../node_modules/core-js/library/modules/_to-iobject.js"); -var toLength = __webpack_require__(/*! ./_to-length */ "../../node_modules/core-js/library/modules/_to-length.js"); -var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "../../node_modules/core-js/library/modules/_to-absolute-index.js"); -module.exports = function (IS_INCLUDES) { - return function ($this, el, fromIndex) { - var O = toIObject($this); - var length = toLength(O.length); - var index = toAbsoluteIndex(fromIndex, length); - var value; - // Array#includes uses SameValueZero equality algorithm - // eslint-disable-next-line no-self-compare - if (IS_INCLUDES && el != el) while (length > index) { - value = O[index++]; - // eslint-disable-next-line no-self-compare - if (value != value) return true; - // Array#indexOf ignores holes, Array#includes - not - } else for (;length > index; index++) if (IS_INCLUDES || index in O) { - if (O[index] === el) return IS_INCLUDES || index || 0; - } return !IS_INCLUDES && -1; - }; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_cof.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_cof.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -var toString = {}.toString; - -module.exports = function (it) { - return toString.call(it).slice(8, -1); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_core.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_core.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -var core = module.exports = { version: '2.6.10' }; -if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_ctx.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_ctx.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// optional / simple context binding -var aFunction = __webpack_require__(/*! ./_a-function */ "../../node_modules/core-js/library/modules/_a-function.js"); -module.exports = function (fn, that, length) { - aFunction(fn); - if (that === undefined) return fn; - switch (length) { - case 1: return function (a) { - return fn.call(that, a); - }; - case 2: return function (a, b) { - return fn.call(that, a, b); - }; - case 3: return function (a, b, c) { - return fn.call(that, a, b, c); - }; - } - return function (/* ...args */) { - return fn.apply(that, arguments); - }; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_defined.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_defined.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -// 7.2.1 RequireObjectCoercible(argument) -module.exports = function (it) { - if (it == undefined) throw TypeError("Can't call method on " + it); - return it; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_descriptors.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_descriptors.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// Thank's IE8 for his funny defineProperty -module.exports = !__webpack_require__(/*! ./_fails */ "../../node_modules/core-js/library/modules/_fails.js")(function () { - return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; -}); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_dom-create.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_dom-create.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__(/*! ./_is-object */ "../../node_modules/core-js/library/modules/_is-object.js"); -var document = __webpack_require__(/*! ./_global */ "../../node_modules/core-js/library/modules/_global.js").document; -// typeof document.createElement is 'object' in old IE -var is = isObject(document) && isObject(document.createElement); -module.exports = function (it) { - return is ? document.createElement(it) : {}; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_enum-bug-keys.js": -/*!*****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_enum-bug-keys.js ***! - \*****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -// IE 8- don't enum bug keys -module.exports = ( - 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' -).split(','); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_enum-keys.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_enum-keys.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// all enumerable object keys, includes symbols -var getKeys = __webpack_require__(/*! ./_object-keys */ "../../node_modules/core-js/library/modules/_object-keys.js"); -var gOPS = __webpack_require__(/*! ./_object-gops */ "../../node_modules/core-js/library/modules/_object-gops.js"); -var pIE = __webpack_require__(/*! ./_object-pie */ "../../node_modules/core-js/library/modules/_object-pie.js"); -module.exports = function (it) { - var result = getKeys(it); - var getSymbols = gOPS.f; - if (getSymbols) { - var symbols = getSymbols(it); - var isEnum = pIE.f; - var i = 0; - var key; - while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); - } return result; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_export.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_export.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__(/*! ./_global */ "../../node_modules/core-js/library/modules/_global.js"); -var core = __webpack_require__(/*! ./_core */ "../../node_modules/core-js/library/modules/_core.js"); -var ctx = __webpack_require__(/*! ./_ctx */ "../../node_modules/core-js/library/modules/_ctx.js"); -var hide = __webpack_require__(/*! ./_hide */ "../../node_modules/core-js/library/modules/_hide.js"); -var has = __webpack_require__(/*! ./_has */ "../../node_modules/core-js/library/modules/_has.js"); -var PROTOTYPE = 'prototype'; - -var $export = function (type, name, source) { - var IS_FORCED = type & $export.F; - var IS_GLOBAL = type & $export.G; - var IS_STATIC = type & $export.S; - var IS_PROTO = type & $export.P; - var IS_BIND = type & $export.B; - var IS_WRAP = type & $export.W; - var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); - var expProto = exports[PROTOTYPE]; - var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; - var key, own, out; - if (IS_GLOBAL) source = name; - for (key in source) { - // contains in native - own = !IS_FORCED && target && target[key] !== undefined; - if (own && has(exports, key)) continue; - // export native or passed - out = own ? target[key] : source[key]; - // prevent global pollution for namespaces - exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] - // bind timers to global for call from export context - : IS_BIND && own ? ctx(out, global) - // wrap global constructors for prevent change them in library - : IS_WRAP && target[key] == out ? (function (C) { - var F = function (a, b, c) { - if (this instanceof C) { - switch (arguments.length) { - case 0: return new C(); - case 1: return new C(a); - case 2: return new C(a, b); - } return new C(a, b, c); - } return C.apply(this, arguments); - }; - F[PROTOTYPE] = C[PROTOTYPE]; - return F; - // make static versions for prototype methods - })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; - // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% - if (IS_PROTO) { - (exports.virtual || (exports.virtual = {}))[key] = out; - // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% - if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); - } - } -}; -// type bitmap -$export.F = 1; // forced -$export.G = 2; // global -$export.S = 4; // static -$export.P = 8; // proto -$export.B = 16; // bind -$export.W = 32; // wrap -$export.U = 64; // safe -$export.R = 128; // real proto method for `library` -module.exports = $export; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_fails.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_fails.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = function (exec) { - try { - return !!exec(); - } catch (e) { - return true; - } -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_global.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_global.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global = module.exports = typeof window != 'undefined' && window.Math == Math - ? window : typeof self != 'undefined' && self.Math == Math ? self - // eslint-disable-next-line no-new-func - : Function('return this')(); -if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_has.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_has.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -var hasOwnProperty = {}.hasOwnProperty; -module.exports = function (it, key) { - return hasOwnProperty.call(it, key); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_hide.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_hide.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var dP = __webpack_require__(/*! ./_object-dp */ "../../node_modules/core-js/library/modules/_object-dp.js"); -var createDesc = __webpack_require__(/*! ./_property-desc */ "../../node_modules/core-js/library/modules/_property-desc.js"); -module.exports = __webpack_require__(/*! ./_descriptors */ "../../node_modules/core-js/library/modules/_descriptors.js") ? function (object, key, value) { - return dP.f(object, key, createDesc(1, value)); -} : function (object, key, value) { - object[key] = value; - return object; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_html.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_html.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var document = __webpack_require__(/*! ./_global */ "../../node_modules/core-js/library/modules/_global.js").document; -module.exports = document && document.documentElement; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_ie8-dom-define.js": -/*!******************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_ie8-dom-define.js ***! - \******************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = !__webpack_require__(/*! ./_descriptors */ "../../node_modules/core-js/library/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "../../node_modules/core-js/library/modules/_fails.js")(function () { - return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "../../node_modules/core-js/library/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7; -}); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_iobject.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_iobject.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// fallback for non-array-like ES3 and non-enumerable old V8 strings -var cof = __webpack_require__(/*! ./_cof */ "../../node_modules/core-js/library/modules/_cof.js"); -// eslint-disable-next-line no-prototype-builtins -module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { - return cof(it) == 'String' ? it.split('') : Object(it); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_is-array.js": -/*!************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_is-array.js ***! - \************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.2.2 IsArray(argument) -var cof = __webpack_require__(/*! ./_cof */ "../../node_modules/core-js/library/modules/_cof.js"); -module.exports = Array.isArray || function isArray(arg) { - return cof(arg) == 'Array'; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_is-object.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_is-object.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = function (it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_iter-create.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_iter-create.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var create = __webpack_require__(/*! ./_object-create */ "../../node_modules/core-js/library/modules/_object-create.js"); -var descriptor = __webpack_require__(/*! ./_property-desc */ "../../node_modules/core-js/library/modules/_property-desc.js"); -var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "../../node_modules/core-js/library/modules/_set-to-string-tag.js"); -var IteratorPrototype = {}; - -// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -__webpack_require__(/*! ./_hide */ "../../node_modules/core-js/library/modules/_hide.js")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "../../node_modules/core-js/library/modules/_wks.js")('iterator'), function () { return this; }); - -module.exports = function (Constructor, NAME, next) { - Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); - setToStringTag(Constructor, NAME + ' Iterator'); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_iter-define.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_iter-define.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var LIBRARY = __webpack_require__(/*! ./_library */ "../../node_modules/core-js/library/modules/_library.js"); -var $export = __webpack_require__(/*! ./_export */ "../../node_modules/core-js/library/modules/_export.js"); -var redefine = __webpack_require__(/*! ./_redefine */ "../../node_modules/core-js/library/modules/_redefine.js"); -var hide = __webpack_require__(/*! ./_hide */ "../../node_modules/core-js/library/modules/_hide.js"); -var Iterators = __webpack_require__(/*! ./_iterators */ "../../node_modules/core-js/library/modules/_iterators.js"); -var $iterCreate = __webpack_require__(/*! ./_iter-create */ "../../node_modules/core-js/library/modules/_iter-create.js"); -var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "../../node_modules/core-js/library/modules/_set-to-string-tag.js"); -var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "../../node_modules/core-js/library/modules/_object-gpo.js"); -var ITERATOR = __webpack_require__(/*! ./_wks */ "../../node_modules/core-js/library/modules/_wks.js")('iterator'); -var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` -var FF_ITERATOR = '@@iterator'; -var KEYS = 'keys'; -var VALUES = 'values'; - -var returnThis = function () { return this; }; - -module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME, next); - var getMethod = function (kind) { - if (!BUGGY && kind in proto) return proto[kind]; - switch (kind) { - case KEYS: return function keys() { return new Constructor(this, kind); }; - case VALUES: return function values() { return new Constructor(this, kind); }; - } return function entries() { return new Constructor(this, kind); }; - }; - var TAG = NAME + ' Iterator'; - var DEF_VALUES = DEFAULT == VALUES; - var VALUES_BUG = false; - var proto = Base.prototype; - var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; - var $default = $native || getMethod(DEFAULT); - var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; - var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; - var methods, key, IteratorPrototype; - // Fix native - if ($anyNative) { - IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); - if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { - // Set @@toStringTag to native iterators - setToStringTag(IteratorPrototype, TAG, true); - // fix for some old engines - if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); - } - } - // fix Array#{values, @@iterator}.name in V8 / FF - if (DEF_VALUES && $native && $native.name !== VALUES) { - VALUES_BUG = true; - $default = function values() { return $native.call(this); }; - } - // Define iterator - if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { - hide(proto, ITERATOR, $default); - } - // Plug for library - Iterators[NAME] = $default; - Iterators[TAG] = returnThis; - if (DEFAULT) { - methods = { - values: DEF_VALUES ? $default : getMethod(VALUES), - keys: IS_SET ? $default : getMethod(KEYS), - entries: $entries - }; - if (FORCED) for (key in methods) { - if (!(key in proto)) redefine(proto, key, methods[key]); - } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); - } - return methods; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_iter-step.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_iter-step.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = function (done, value) { - return { value: value, done: !!done }; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_iterators.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_iterators.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = {}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_library.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_library.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = true; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_meta.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_meta.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var META = __webpack_require__(/*! ./_uid */ "../../node_modules/core-js/library/modules/_uid.js")('meta'); -var isObject = __webpack_require__(/*! ./_is-object */ "../../node_modules/core-js/library/modules/_is-object.js"); -var has = __webpack_require__(/*! ./_has */ "../../node_modules/core-js/library/modules/_has.js"); -var setDesc = __webpack_require__(/*! ./_object-dp */ "../../node_modules/core-js/library/modules/_object-dp.js").f; -var id = 0; -var isExtensible = Object.isExtensible || function () { - return true; -}; -var FREEZE = !__webpack_require__(/*! ./_fails */ "../../node_modules/core-js/library/modules/_fails.js")(function () { - return isExtensible(Object.preventExtensions({})); -}); -var setMeta = function (it) { - setDesc(it, META, { value: { - i: 'O' + ++id, // object ID - w: {} // weak collections IDs - } }); -}; -var fastKey = function (it, create) { - // return primitive with prefix - if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; - if (!has(it, META)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return 'F'; - // not necessary to add metadata - if (!create) return 'E'; - // add missing metadata - setMeta(it); - // return object ID - } return it[META].i; -}; -var getWeak = function (it, create) { - if (!has(it, META)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return true; - // not necessary to add metadata - if (!create) return false; - // add missing metadata - setMeta(it); - // return hash weak collections IDs - } return it[META].w; -}; -// add metadata on freeze-family methods calling -var onFreeze = function (it) { - if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); - return it; -}; -var meta = module.exports = { - KEY: META, - NEED: false, - fastKey: fastKey, - getWeak: getWeak, - onFreeze: onFreeze -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-assign.js": -/*!*****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-assign.js ***! - \*****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// 19.1.2.1 Object.assign(target, source, ...) -var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "../../node_modules/core-js/library/modules/_descriptors.js"); -var getKeys = __webpack_require__(/*! ./_object-keys */ "../../node_modules/core-js/library/modules/_object-keys.js"); -var gOPS = __webpack_require__(/*! ./_object-gops */ "../../node_modules/core-js/library/modules/_object-gops.js"); -var pIE = __webpack_require__(/*! ./_object-pie */ "../../node_modules/core-js/library/modules/_object-pie.js"); -var toObject = __webpack_require__(/*! ./_to-object */ "../../node_modules/core-js/library/modules/_to-object.js"); -var IObject = __webpack_require__(/*! ./_iobject */ "../../node_modules/core-js/library/modules/_iobject.js"); -var $assign = Object.assign; - -// should work with symbols and should have deterministic property order (V8 bug) -module.exports = !$assign || __webpack_require__(/*! ./_fails */ "../../node_modules/core-js/library/modules/_fails.js")(function () { - var A = {}; - var B = {}; - // eslint-disable-next-line no-undef - var S = Symbol(); - var K = 'abcdefghijklmnopqrst'; - A[S] = 7; - K.split('').forEach(function (k) { B[k] = k; }); - return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; -}) ? function assign(target, source) { // eslint-disable-line no-unused-vars - var T = toObject(target); - var aLen = arguments.length; - var index = 1; - var getSymbols = gOPS.f; - var isEnum = pIE.f; - while (aLen > index) { - var S = IObject(arguments[index++]); - var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); - var length = keys.length; - var j = 0; - var key; - while (length > j) { - key = keys[j++]; - if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key]; - } - } return T; -} : $assign; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-create.js": -/*!*****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-create.js ***! - \*****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -var anObject = __webpack_require__(/*! ./_an-object */ "../../node_modules/core-js/library/modules/_an-object.js"); -var dPs = __webpack_require__(/*! ./_object-dps */ "../../node_modules/core-js/library/modules/_object-dps.js"); -var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "../../node_modules/core-js/library/modules/_enum-bug-keys.js"); -var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "../../node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO'); -var Empty = function () { /* empty */ }; -var PROTOTYPE = 'prototype'; - -// Create object with fake `null` prototype: use iframe Object with cleared prototype -var createDict = function () { - // Thrash, waste and sodomy: IE GC bug - var iframe = __webpack_require__(/*! ./_dom-create */ "../../node_modules/core-js/library/modules/_dom-create.js")('iframe'); - var i = enumBugKeys.length; - var lt = '<'; - var gt = '>'; - var iframeDocument; - iframe.style.display = 'none'; - __webpack_require__(/*! ./_html */ "../../node_modules/core-js/library/modules/_html.js").appendChild(iframe); - iframe.src = 'javascript:'; // eslint-disable-line no-script-url - // createDict = iframe.contentWindow.Object; - // html.removeChild(iframe); - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); - iframeDocument.close(); - createDict = iframeDocument.F; - while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; - return createDict(); -}; - -module.exports = Object.create || function create(O, Properties) { - var result; - if (O !== null) { - Empty[PROTOTYPE] = anObject(O); - result = new Empty(); - Empty[PROTOTYPE] = null; - // add "__proto__" for Object.getPrototypeOf polyfill - result[IE_PROTO] = O; - } else result = createDict(); - return Properties === undefined ? result : dPs(result, Properties); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-dp.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-dp.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__(/*! ./_an-object */ "../../node_modules/core-js/library/modules/_an-object.js"); -var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "../../node_modules/core-js/library/modules/_ie8-dom-define.js"); -var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "../../node_modules/core-js/library/modules/_to-primitive.js"); -var dP = Object.defineProperty; - -exports.f = __webpack_require__(/*! ./_descriptors */ "../../node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); - anObject(Attributes); - if (IE8_DOM_DEFINE) try { - return dP(O, P, Attributes); - } catch (e) { /* empty */ } - if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); - if ('value' in Attributes) O[P] = Attributes.value; - return O; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-dps.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-dps.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var dP = __webpack_require__(/*! ./_object-dp */ "../../node_modules/core-js/library/modules/_object-dp.js"); -var anObject = __webpack_require__(/*! ./_an-object */ "../../node_modules/core-js/library/modules/_an-object.js"); -var getKeys = __webpack_require__(/*! ./_object-keys */ "../../node_modules/core-js/library/modules/_object-keys.js"); - -module.exports = __webpack_require__(/*! ./_descriptors */ "../../node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperties : function defineProperties(O, Properties) { - anObject(O); - var keys = getKeys(Properties); - var length = keys.length; - var i = 0; - var P; - while (length > i) dP.f(O, P = keys[i++], Properties[P]); - return O; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-gopd.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-gopd.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var pIE = __webpack_require__(/*! ./_object-pie */ "../../node_modules/core-js/library/modules/_object-pie.js"); -var createDesc = __webpack_require__(/*! ./_property-desc */ "../../node_modules/core-js/library/modules/_property-desc.js"); -var toIObject = __webpack_require__(/*! ./_to-iobject */ "../../node_modules/core-js/library/modules/_to-iobject.js"); -var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "../../node_modules/core-js/library/modules/_to-primitive.js"); -var has = __webpack_require__(/*! ./_has */ "../../node_modules/core-js/library/modules/_has.js"); -var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "../../node_modules/core-js/library/modules/_ie8-dom-define.js"); -var gOPD = Object.getOwnPropertyDescriptor; - -exports.f = __webpack_require__(/*! ./_descriptors */ "../../node_modules/core-js/library/modules/_descriptors.js") ? gOPD : function getOwnPropertyDescriptor(O, P) { - O = toIObject(O); - P = toPrimitive(P, true); - if (IE8_DOM_DEFINE) try { - return gOPD(O, P); - } catch (e) { /* empty */ } - if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-gopn-ext.js": -/*!*******************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-gopn-ext.js ***! - \*******************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window -var toIObject = __webpack_require__(/*! ./_to-iobject */ "../../node_modules/core-js/library/modules/_to-iobject.js"); -var gOPN = __webpack_require__(/*! ./_object-gopn */ "../../node_modules/core-js/library/modules/_object-gopn.js").f; -var toString = {}.toString; - -var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) : []; - -var getWindowNames = function (it) { - try { - return gOPN(it); - } catch (e) { - return windowNames.slice(); - } -}; - -module.exports.f = function getOwnPropertyNames(it) { - return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-gopn.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-gopn.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) -var $keys = __webpack_require__(/*! ./_object-keys-internal */ "../../node_modules/core-js/library/modules/_object-keys-internal.js"); -var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "../../node_modules/core-js/library/modules/_enum-bug-keys.js").concat('length', 'prototype'); - -exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return $keys(O, hiddenKeys); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-gops.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-gops.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -exports.f = Object.getOwnPropertySymbols; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-gpo.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-gpo.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) -var has = __webpack_require__(/*! ./_has */ "../../node_modules/core-js/library/modules/_has.js"); -var toObject = __webpack_require__(/*! ./_to-object */ "../../node_modules/core-js/library/modules/_to-object.js"); -var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "../../node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO'); -var ObjectProto = Object.prototype; - -module.exports = Object.getPrototypeOf || function (O) { - O = toObject(O); - if (has(O, IE_PROTO)) return O[IE_PROTO]; - if (typeof O.constructor == 'function' && O instanceof O.constructor) { - return O.constructor.prototype; - } return O instanceof Object ? ObjectProto : null; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-keys-internal.js": -/*!************************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-keys-internal.js ***! - \************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var has = __webpack_require__(/*! ./_has */ "../../node_modules/core-js/library/modules/_has.js"); -var toIObject = __webpack_require__(/*! ./_to-iobject */ "../../node_modules/core-js/library/modules/_to-iobject.js"); -var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "../../node_modules/core-js/library/modules/_array-includes.js")(false); -var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "../../node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO'); - -module.exports = function (object, names) { - var O = toIObject(object); - var i = 0; - var result = []; - var key; - for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); - // Don't enum bug & hidden keys - while (names.length > i) if (has(O, key = names[i++])) { - ~arrayIndexOf(result, key) || result.push(key); - } - return result; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-keys.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-keys.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = __webpack_require__(/*! ./_object-keys-internal */ "../../node_modules/core-js/library/modules/_object-keys-internal.js"); -var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "../../node_modules/core-js/library/modules/_enum-bug-keys.js"); - -module.exports = Object.keys || function keys(O) { - return $keys(O, enumBugKeys); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_object-pie.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_object-pie.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -exports.f = {}.propertyIsEnumerable; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_property-desc.js": -/*!*****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_property-desc.js ***! - \*****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = function (bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value: value - }; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_redefine.js": -/*!************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_redefine.js ***! - \************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(/*! ./_hide */ "../../node_modules/core-js/library/modules/_hide.js"); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_set-to-string-tag.js": -/*!*********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_set-to-string-tag.js ***! - \*********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var def = __webpack_require__(/*! ./_object-dp */ "../../node_modules/core-js/library/modules/_object-dp.js").f; -var has = __webpack_require__(/*! ./_has */ "../../node_modules/core-js/library/modules/_has.js"); -var TAG = __webpack_require__(/*! ./_wks */ "../../node_modules/core-js/library/modules/_wks.js")('toStringTag'); - -module.exports = function (it, tag, stat) { - if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_shared-key.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_shared-key.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var shared = __webpack_require__(/*! ./_shared */ "../../node_modules/core-js/library/modules/_shared.js")('keys'); -var uid = __webpack_require__(/*! ./_uid */ "../../node_modules/core-js/library/modules/_uid.js"); -module.exports = function (key) { - return shared[key] || (shared[key] = uid(key)); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_shared.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_shared.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var core = __webpack_require__(/*! ./_core */ "../../node_modules/core-js/library/modules/_core.js"); -var global = __webpack_require__(/*! ./_global */ "../../node_modules/core-js/library/modules/_global.js"); -var SHARED = '__core-js_shared__'; -var store = global[SHARED] || (global[SHARED] = {}); - -(module.exports = function (key, value) { - return store[key] || (store[key] = value !== undefined ? value : {}); -})('versions', []).push({ - version: core.version, - mode: __webpack_require__(/*! ./_library */ "../../node_modules/core-js/library/modules/_library.js") ? 'pure' : 'global', - copyright: '© 2019 Denis Pushkarev (zloirock.ru)' -}); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_string-at.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_string-at.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var toInteger = __webpack_require__(/*! ./_to-integer */ "../../node_modules/core-js/library/modules/_to-integer.js"); -var defined = __webpack_require__(/*! ./_defined */ "../../node_modules/core-js/library/modules/_defined.js"); -// true -> String#at -// false -> String#codePointAt -module.exports = function (TO_STRING) { - return function (that, pos) { - var s = String(defined(that)); - var i = toInteger(pos); - var l = s.length; - var a, b; - if (i < 0 || i >= l) return TO_STRING ? '' : undefined; - a = s.charCodeAt(i); - return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff - ? TO_STRING ? s.charAt(i) : a - : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; - }; -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_to-absolute-index.js": -/*!*********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_to-absolute-index.js ***! - \*********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var toInteger = __webpack_require__(/*! ./_to-integer */ "../../node_modules/core-js/library/modules/_to-integer.js"); -var max = Math.max; -var min = Math.min; -module.exports = function (index, length) { - index = toInteger(index); - return index < 0 ? max(index + length, 0) : min(index, length); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_to-integer.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_to-integer.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -// 7.1.4 ToInteger -var ceil = Math.ceil; -var floor = Math.floor; -module.exports = function (it) { - return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_to-iobject.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_to-iobject.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(/*! ./_iobject */ "../../node_modules/core-js/library/modules/_iobject.js"); -var defined = __webpack_require__(/*! ./_defined */ "../../node_modules/core-js/library/modules/_defined.js"); -module.exports = function (it) { - return IObject(defined(it)); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_to-length.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_to-length.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.1.15 ToLength -var toInteger = __webpack_require__(/*! ./_to-integer */ "../../node_modules/core-js/library/modules/_to-integer.js"); -var min = Math.min; -module.exports = function (it) { - return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_to-object.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_to-object.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.1.13 ToObject(argument) -var defined = __webpack_require__(/*! ./_defined */ "../../node_modules/core-js/library/modules/_defined.js"); -module.exports = function (it) { - return Object(defined(it)); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_to-primitive.js": -/*!****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_to-primitive.js ***! - \****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.1.1 ToPrimitive(input [, PreferredType]) -var isObject = __webpack_require__(/*! ./_is-object */ "../../node_modules/core-js/library/modules/_is-object.js"); -// instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string -module.exports = function (it, S) { - if (!isObject(it)) return it; - var fn, val; - if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; - if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; - if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; - throw TypeError("Can't convert object to primitive value"); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_uid.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_uid.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -var id = 0; -var px = Math.random(); -module.exports = function (key) { - return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_wks-define.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_wks-define.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__(/*! ./_global */ "../../node_modules/core-js/library/modules/_global.js"); -var core = __webpack_require__(/*! ./_core */ "../../node_modules/core-js/library/modules/_core.js"); -var LIBRARY = __webpack_require__(/*! ./_library */ "../../node_modules/core-js/library/modules/_library.js"); -var wksExt = __webpack_require__(/*! ./_wks-ext */ "../../node_modules/core-js/library/modules/_wks-ext.js"); -var defineProperty = __webpack_require__(/*! ./_object-dp */ "../../node_modules/core-js/library/modules/_object-dp.js").f; -module.exports = function (name) { - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); -}; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_wks-ext.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_wks-ext.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -exports.f = __webpack_require__(/*! ./_wks */ "../../node_modules/core-js/library/modules/_wks.js"); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/_wks.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/_wks.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var store = __webpack_require__(/*! ./_shared */ "../../node_modules/core-js/library/modules/_shared.js")('wks'); -var uid = __webpack_require__(/*! ./_uid */ "../../node_modules/core-js/library/modules/_uid.js"); -var Symbol = __webpack_require__(/*! ./_global */ "../../node_modules/core-js/library/modules/_global.js").Symbol; -var USE_SYMBOL = typeof Symbol == 'function'; - -var $exports = module.exports = function (name) { - return store[name] || (store[name] = - USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); -}; - -$exports.store = store; - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/es6.array.iterator.js": -/*!*********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/es6.array.iterator.js ***! - \*********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var addToUnscopables = __webpack_require__(/*! ./_add-to-unscopables */ "../../node_modules/core-js/library/modules/_add-to-unscopables.js"); -var step = __webpack_require__(/*! ./_iter-step */ "../../node_modules/core-js/library/modules/_iter-step.js"); -var Iterators = __webpack_require__(/*! ./_iterators */ "../../node_modules/core-js/library/modules/_iterators.js"); -var toIObject = __webpack_require__(/*! ./_to-iobject */ "../../node_modules/core-js/library/modules/_to-iobject.js"); - -// 22.1.3.4 Array.prototype.entries() -// 22.1.3.13 Array.prototype.keys() -// 22.1.3.29 Array.prototype.values() -// 22.1.3.30 Array.prototype[@@iterator]() -module.exports = __webpack_require__(/*! ./_iter-define */ "../../node_modules/core-js/library/modules/_iter-define.js")(Array, 'Array', function (iterated, kind) { - this._t = toIObject(iterated); // target - this._i = 0; // next index - this._k = kind; // kind -// 22.1.5.2.1 %ArrayIteratorPrototype%.next() -}, function () { - var O = this._t; - var kind = this._k; - var index = this._i++; - if (!O || index >= O.length) { - this._t = undefined; - return step(1); - } - if (kind == 'keys') return step(0, index); - if (kind == 'values') return step(0, O[index]); - return step(0, [index, O[index]]); -}, 'values'); - -// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) -Iterators.Arguments = Iterators.Array; - -addToUnscopables('keys'); -addToUnscopables('values'); -addToUnscopables('entries'); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/es6.object.assign.js": -/*!********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/es6.object.assign.js ***! - \********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.3.1 Object.assign(target, source) -var $export = __webpack_require__(/*! ./_export */ "../../node_modules/core-js/library/modules/_export.js"); - -$export($export.S + $export.F, 'Object', { assign: __webpack_require__(/*! ./_object-assign */ "../../node_modules/core-js/library/modules/_object-assign.js") }); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/es6.object.to-string.js": -/*!***********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/es6.object.to-string.js ***! - \***********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/es6.string.iterator.js": -/*!**********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/es6.string.iterator.js ***! - \**********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $at = __webpack_require__(/*! ./_string-at */ "../../node_modules/core-js/library/modules/_string-at.js")(true); - -// 21.1.3.27 String.prototype[@@iterator]() -__webpack_require__(/*! ./_iter-define */ "../../node_modules/core-js/library/modules/_iter-define.js")(String, 'String', function (iterated) { - this._t = String(iterated); // target - this._i = 0; // next index -// 21.1.5.2.1 %StringIteratorPrototype%.next() -}, function () { - var O = this._t; - var index = this._i; - var point; - if (index >= O.length) return { value: undefined, done: true }; - point = $at(O, index); - this._i += point.length; - return { value: point, done: false }; -}); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/es6.symbol.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/es6.symbol.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// ECMAScript 6 symbols shim -var global = __webpack_require__(/*! ./_global */ "../../node_modules/core-js/library/modules/_global.js"); -var has = __webpack_require__(/*! ./_has */ "../../node_modules/core-js/library/modules/_has.js"); -var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "../../node_modules/core-js/library/modules/_descriptors.js"); -var $export = __webpack_require__(/*! ./_export */ "../../node_modules/core-js/library/modules/_export.js"); -var redefine = __webpack_require__(/*! ./_redefine */ "../../node_modules/core-js/library/modules/_redefine.js"); -var META = __webpack_require__(/*! ./_meta */ "../../node_modules/core-js/library/modules/_meta.js").KEY; -var $fails = __webpack_require__(/*! ./_fails */ "../../node_modules/core-js/library/modules/_fails.js"); -var shared = __webpack_require__(/*! ./_shared */ "../../node_modules/core-js/library/modules/_shared.js"); -var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "../../node_modules/core-js/library/modules/_set-to-string-tag.js"); -var uid = __webpack_require__(/*! ./_uid */ "../../node_modules/core-js/library/modules/_uid.js"); -var wks = __webpack_require__(/*! ./_wks */ "../../node_modules/core-js/library/modules/_wks.js"); -var wksExt = __webpack_require__(/*! ./_wks-ext */ "../../node_modules/core-js/library/modules/_wks-ext.js"); -var wksDefine = __webpack_require__(/*! ./_wks-define */ "../../node_modules/core-js/library/modules/_wks-define.js"); -var enumKeys = __webpack_require__(/*! ./_enum-keys */ "../../node_modules/core-js/library/modules/_enum-keys.js"); -var isArray = __webpack_require__(/*! ./_is-array */ "../../node_modules/core-js/library/modules/_is-array.js"); -var anObject = __webpack_require__(/*! ./_an-object */ "../../node_modules/core-js/library/modules/_an-object.js"); -var isObject = __webpack_require__(/*! ./_is-object */ "../../node_modules/core-js/library/modules/_is-object.js"); -var toObject = __webpack_require__(/*! ./_to-object */ "../../node_modules/core-js/library/modules/_to-object.js"); -var toIObject = __webpack_require__(/*! ./_to-iobject */ "../../node_modules/core-js/library/modules/_to-iobject.js"); -var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "../../node_modules/core-js/library/modules/_to-primitive.js"); -var createDesc = __webpack_require__(/*! ./_property-desc */ "../../node_modules/core-js/library/modules/_property-desc.js"); -var _create = __webpack_require__(/*! ./_object-create */ "../../node_modules/core-js/library/modules/_object-create.js"); -var gOPNExt = __webpack_require__(/*! ./_object-gopn-ext */ "../../node_modules/core-js/library/modules/_object-gopn-ext.js"); -var $GOPD = __webpack_require__(/*! ./_object-gopd */ "../../node_modules/core-js/library/modules/_object-gopd.js"); -var $GOPS = __webpack_require__(/*! ./_object-gops */ "../../node_modules/core-js/library/modules/_object-gops.js"); -var $DP = __webpack_require__(/*! ./_object-dp */ "../../node_modules/core-js/library/modules/_object-dp.js"); -var $keys = __webpack_require__(/*! ./_object-keys */ "../../node_modules/core-js/library/modules/_object-keys.js"); -var gOPD = $GOPD.f; -var dP = $DP.f; -var gOPN = gOPNExt.f; -var $Symbol = global.Symbol; -var $JSON = global.JSON; -var _stringify = $JSON && $JSON.stringify; -var PROTOTYPE = 'prototype'; -var HIDDEN = wks('_hidden'); -var TO_PRIMITIVE = wks('toPrimitive'); -var isEnum = {}.propertyIsEnumerable; -var SymbolRegistry = shared('symbol-registry'); -var AllSymbols = shared('symbols'); -var OPSymbols = shared('op-symbols'); -var ObjectProto = Object[PROTOTYPE]; -var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; -var QObject = global.QObject; -// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 -var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; - -// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 -var setSymbolDesc = DESCRIPTORS && $fails(function () { - return _create(dP({}, 'a', { - get: function () { return dP(this, 'a', { value: 7 }).a; } - })).a != 7; -}) ? function (it, key, D) { - var protoDesc = gOPD(ObjectProto, key); - if (protoDesc) delete ObjectProto[key]; - dP(it, key, D); - if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); -} : dP; - -var wrap = function (tag) { - var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); - sym._k = tag; - return sym; -}; - -var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { - return typeof it == 'symbol'; -} : function (it) { - return it instanceof $Symbol; -}; - -var $defineProperty = function defineProperty(it, key, D) { - if (it === ObjectProto) $defineProperty(OPSymbols, key, D); - anObject(it); - key = toPrimitive(key, true); - anObject(D); - if (has(AllSymbols, key)) { - if (!D.enumerable) { - if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); - it[HIDDEN][key] = true; - } else { - if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; - D = _create(D, { enumerable: createDesc(0, false) }); - } return setSymbolDesc(it, key, D); - } return dP(it, key, D); -}; -var $defineProperties = function defineProperties(it, P) { - anObject(it); - var keys = enumKeys(P = toIObject(P)); - var i = 0; - var l = keys.length; - var key; - while (l > i) $defineProperty(it, key = keys[i++], P[key]); - return it; -}; -var $create = function create(it, P) { - return P === undefined ? _create(it) : $defineProperties(_create(it), P); -}; -var $propertyIsEnumerable = function propertyIsEnumerable(key) { - var E = isEnum.call(this, key = toPrimitive(key, true)); - if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; - return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; -}; -var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { - it = toIObject(it); - key = toPrimitive(key, true); - if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; - var D = gOPD(it, key); - if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; - return D; -}; -var $getOwnPropertyNames = function getOwnPropertyNames(it) { - var names = gOPN(toIObject(it)); - var result = []; - var i = 0; - var key; - while (names.length > i) { - if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); - } return result; -}; -var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { - var IS_OP = it === ObjectProto; - var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); - var result = []; - var i = 0; - var key; - while (names.length > i) { - if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); - } return result; -}; - -// 19.4.1.1 Symbol([description]) -if (!USE_NATIVE) { - $Symbol = function Symbol() { - if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); - var tag = uid(arguments.length > 0 ? arguments[0] : undefined); - var $set = function (value) { - if (this === ObjectProto) $set.call(OPSymbols, value); - if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; - setSymbolDesc(this, tag, createDesc(1, value)); - }; - if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); - return wrap(tag); - }; - redefine($Symbol[PROTOTYPE], 'toString', function toString() { - return this._k; - }); - - $GOPD.f = $getOwnPropertyDescriptor; - $DP.f = $defineProperty; - __webpack_require__(/*! ./_object-gopn */ "../../node_modules/core-js/library/modules/_object-gopn.js").f = gOPNExt.f = $getOwnPropertyNames; - __webpack_require__(/*! ./_object-pie */ "../../node_modules/core-js/library/modules/_object-pie.js").f = $propertyIsEnumerable; - $GOPS.f = $getOwnPropertySymbols; - - if (DESCRIPTORS && !__webpack_require__(/*! ./_library */ "../../node_modules/core-js/library/modules/_library.js")) { - redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); - } - - wksExt.f = function (name) { - return wrap(wks(name)); - }; -} - -$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); - -for (var es6Symbols = ( - // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 - 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' -).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); - -for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); - -$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { - // 19.4.2.1 Symbol.for(key) - 'for': function (key) { - return has(SymbolRegistry, key += '') - ? SymbolRegistry[key] - : SymbolRegistry[key] = $Symbol(key); - }, - // 19.4.2.5 Symbol.keyFor(sym) - keyFor: function keyFor(sym) { - if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); - for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; - }, - useSetter: function () { setter = true; }, - useSimple: function () { setter = false; } -}); - -$export($export.S + $export.F * !USE_NATIVE, 'Object', { - // 19.1.2.2 Object.create(O [, Properties]) - create: $create, - // 19.1.2.4 Object.defineProperty(O, P, Attributes) - defineProperty: $defineProperty, - // 19.1.2.3 Object.defineProperties(O, Properties) - defineProperties: $defineProperties, - // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) - getOwnPropertyDescriptor: $getOwnPropertyDescriptor, - // 19.1.2.7 Object.getOwnPropertyNames(O) - getOwnPropertyNames: $getOwnPropertyNames, - // 19.1.2.8 Object.getOwnPropertySymbols(O) - getOwnPropertySymbols: $getOwnPropertySymbols -}); - -// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives -// https://bugs.chromium.org/p/v8/issues/detail?id=3443 -var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); }); - -$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { - getOwnPropertySymbols: function getOwnPropertySymbols(it) { - return $GOPS.f(toObject(it)); - } -}); - -// 24.3.2 JSON.stringify(value [, replacer [, space]]) -$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { - var S = $Symbol(); - // MS Edge converts symbol values to JSON as {} - // WebKit converts symbol values to JSON as null - // V8 throws on boxed symbols - return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; -})), 'JSON', { - stringify: function stringify(it) { - var args = [it]; - var i = 1; - var replacer, $replacer; - while (arguments.length > i) args.push(arguments[i++]); - $replacer = replacer = args[1]; - if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined - if (!isArray(replacer)) replacer = function (key, value) { - if (typeof $replacer == 'function') value = $replacer.call(this, key, value); - if (!isSymbol(value)) return value; - }; - args[1] = replacer; - return _stringify.apply($JSON, args); - } -}); - -// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) -$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(/*! ./_hide */ "../../node_modules/core-js/library/modules/_hide.js")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); -// 19.4.3.5 Symbol.prototype[@@toStringTag] -setToStringTag($Symbol, 'Symbol'); -// 20.2.1.9 Math[@@toStringTag] -setToStringTag(Math, 'Math', true); -// 24.3.3 JSON[@@toStringTag] -setToStringTag(global.JSON, 'JSON', true); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/es7.symbol.async-iterator.js": -/*!****************************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/es7.symbol.async-iterator.js ***! - \****************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(/*! ./_wks-define */ "../../node_modules/core-js/library/modules/_wks-define.js")('asyncIterator'); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/es7.symbol.observable.js": -/*!************************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/es7.symbol.observable.js ***! - \************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(/*! ./_wks-define */ "../../node_modules/core-js/library/modules/_wks-define.js")('observable'); - - -/***/ }), - -/***/ "../../node_modules/core-js/library/modules/web.dom.iterable.js": -/*!*******************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/core-js/library/modules/web.dom.iterable.js ***! - \*******************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(/*! ./es6.array.iterator */ "../../node_modules/core-js/library/modules/es6.array.iterator.js"); -var global = __webpack_require__(/*! ./_global */ "../../node_modules/core-js/library/modules/_global.js"); -var hide = __webpack_require__(/*! ./_hide */ "../../node_modules/core-js/library/modules/_hide.js"); -var Iterators = __webpack_require__(/*! ./_iterators */ "../../node_modules/core-js/library/modules/_iterators.js"); -var TO_STRING_TAG = __webpack_require__(/*! ./_wks */ "../../node_modules/core-js/library/modules/_wks.js")('toStringTag'); - -var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + - 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + - 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + - 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + - 'TextTrackList,TouchList').split(','); - -for (var i = 0; i < DOMIterables.length; i++) { - var NAME = DOMIterables[i]; - var Collection = global[NAME]; - var proto = Collection && Collection.prototype; - if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); - Iterators[NAME] = Iterators.Array; -} - - -/***/ }), - -/***/ "../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js": -/*!******************************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js ***! - \******************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -var MILLISECONDS_IN_MINUTE = 60000 - -/** - * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. - * They usually appear for dates that denote time before the timezones were introduced - * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 - * and GMT+01:00:00 after that date) - * - * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, - * which would lead to incorrect calculations. - * - * This function returns the timezone offset in milliseconds that takes seconds in account. - */ -module.exports = function getTimezoneOffsetInMilliseconds (dirtyDate) { - var date = new Date(dirtyDate.getTime()) - var baseTimezoneOffset = date.getTimezoneOffset() - date.setSeconds(0, 0) - var millisecondsPartOfTimezoneOffset = date.getTime() % MILLISECONDS_IN_MINUTE - - return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset -} - - -/***/ }), - -/***/ "../../node_modules/date-fns/add_days/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/add_days/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Day Helpers - * @summary Add the specified number of days to the given date. - * - * @description - * Add the specified number of days to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of days to be added - * @returns {Date} the new date with the days added - * - * @example - * // Add 10 days to 1 September 2014: - * var result = addDays(new Date(2014, 8, 1), 10) - * //=> Thu Sep 11 2014 00:00:00 - */ -function addDays (dirtyDate, dirtyAmount) { - var date = parse(dirtyDate) - var amount = Number(dirtyAmount) - date.setDate(date.getDate() + amount) - return date -} - -module.exports = addDays - - -/***/ }), - -/***/ "../../node_modules/date-fns/add_hours/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/add_hours/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addMilliseconds = __webpack_require__(/*! ../add_milliseconds/index.js */ "../../node_modules/date-fns/add_milliseconds/index.js") - -var MILLISECONDS_IN_HOUR = 3600000 - -/** - * @category Hour Helpers - * @summary Add the specified number of hours to the given date. - * - * @description - * Add the specified number of hours to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of hours to be added - * @returns {Date} the new date with the hours added - * - * @example - * // Add 2 hours to 10 July 2014 23:00:00: - * var result = addHours(new Date(2014, 6, 10, 23, 0), 2) - * //=> Fri Jul 11 2014 01:00:00 - */ -function addHours (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addMilliseconds(dirtyDate, amount * MILLISECONDS_IN_HOUR) -} - -module.exports = addHours - - -/***/ }), - -/***/ "../../node_modules/date-fns/add_iso_years/index.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/add_iso_years/index.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var getISOYear = __webpack_require__(/*! ../get_iso_year/index.js */ "../../node_modules/date-fns/get_iso_year/index.js") -var setISOYear = __webpack_require__(/*! ../set_iso_year/index.js */ "../../node_modules/date-fns/set_iso_year/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Add the specified number of ISO week-numbering years to the given date. - * - * @description - * Add the specified number of ISO week-numbering years to the given date. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of ISO week-numbering years to be added - * @returns {Date} the new date with the ISO week-numbering years added - * - * @example - * // Add 5 ISO week-numbering years to 2 July 2010: - * var result = addISOYears(new Date(2010, 6, 2), 5) - * //=> Fri Jun 26 2015 00:00:00 - */ -function addISOYears (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return setISOYear(dirtyDate, getISOYear(dirtyDate) + amount) -} - -module.exports = addISOYears - - -/***/ }), - -/***/ "../../node_modules/date-fns/add_milliseconds/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/add_milliseconds/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Millisecond Helpers - * @summary Add the specified number of milliseconds to the given date. - * - * @description - * Add the specified number of milliseconds to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of milliseconds to be added - * @returns {Date} the new date with the milliseconds added - * - * @example - * // Add 750 milliseconds to 10 July 2014 12:45:30.000: - * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) - * //=> Thu Jul 10 2014 12:45:30.750 - */ -function addMilliseconds (dirtyDate, dirtyAmount) { - var timestamp = parse(dirtyDate).getTime() - var amount = Number(dirtyAmount) - return new Date(timestamp + amount) -} - -module.exports = addMilliseconds - - -/***/ }), - -/***/ "../../node_modules/date-fns/add_minutes/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/add_minutes/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addMilliseconds = __webpack_require__(/*! ../add_milliseconds/index.js */ "../../node_modules/date-fns/add_milliseconds/index.js") - -var MILLISECONDS_IN_MINUTE = 60000 - -/** - * @category Minute Helpers - * @summary Add the specified number of minutes to the given date. - * - * @description - * Add the specified number of minutes to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of minutes to be added - * @returns {Date} the new date with the minutes added - * - * @example - * // Add 30 minutes to 10 July 2014 12:00:00: - * var result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) - * //=> Thu Jul 10 2014 12:30:00 - */ -function addMinutes (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addMilliseconds(dirtyDate, amount * MILLISECONDS_IN_MINUTE) -} - -module.exports = addMinutes - - -/***/ }), - -/***/ "../../node_modules/date-fns/add_months/index.js": -/*!****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/add_months/index.js ***! - \****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var getDaysInMonth = __webpack_require__(/*! ../get_days_in_month/index.js */ "../../node_modules/date-fns/get_days_in_month/index.js") - -/** - * @category Month Helpers - * @summary Add the specified number of months to the given date. - * - * @description - * Add the specified number of months to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of months to be added - * @returns {Date} the new date with the months added - * - * @example - * // Add 5 months to 1 September 2014: - * var result = addMonths(new Date(2014, 8, 1), 5) - * //=> Sun Feb 01 2015 00:00:00 - */ -function addMonths (dirtyDate, dirtyAmount) { - var date = parse(dirtyDate) - var amount = Number(dirtyAmount) - var desiredMonth = date.getMonth() + amount - var dateWithDesiredMonth = new Date(0) - dateWithDesiredMonth.setFullYear(date.getFullYear(), desiredMonth, 1) - dateWithDesiredMonth.setHours(0, 0, 0, 0) - var daysInMonth = getDaysInMonth(dateWithDesiredMonth) - // Set the last day of the new month - // if the original date was the last day of the longer month - date.setMonth(desiredMonth, Math.min(daysInMonth, date.getDate())) - return date -} - -module.exports = addMonths - - -/***/ }), - -/***/ "../../node_modules/date-fns/add_quarters/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/add_quarters/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addMonths = __webpack_require__(/*! ../add_months/index.js */ "../../node_modules/date-fns/add_months/index.js") - -/** - * @category Quarter Helpers - * @summary Add the specified number of year quarters to the given date. - * - * @description - * Add the specified number of year quarters to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of quarters to be added - * @returns {Date} the new date with the quarters added - * - * @example - * // Add 1 quarter to 1 September 2014: - * var result = addQuarters(new Date(2014, 8, 1), 1) - * //=> Mon Dec 01 2014 00:00:00 - */ -function addQuarters (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - var months = amount * 3 - return addMonths(dirtyDate, months) -} - -module.exports = addQuarters - - -/***/ }), - -/***/ "../../node_modules/date-fns/add_seconds/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/add_seconds/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addMilliseconds = __webpack_require__(/*! ../add_milliseconds/index.js */ "../../node_modules/date-fns/add_milliseconds/index.js") - -/** - * @category Second Helpers - * @summary Add the specified number of seconds to the given date. - * - * @description - * Add the specified number of seconds to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of seconds to be added - * @returns {Date} the new date with the seconds added - * - * @example - * // Add 30 seconds to 10 July 2014 12:45:00: - * var result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) - * //=> Thu Jul 10 2014 12:45:30 - */ -function addSeconds (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addMilliseconds(dirtyDate, amount * 1000) -} - -module.exports = addSeconds - - -/***/ }), - -/***/ "../../node_modules/date-fns/add_weeks/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/add_weeks/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addDays = __webpack_require__(/*! ../add_days/index.js */ "../../node_modules/date-fns/add_days/index.js") - -/** - * @category Week Helpers - * @summary Add the specified number of weeks to the given date. - * - * @description - * Add the specified number of week to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of weeks to be added - * @returns {Date} the new date with the weeks added - * - * @example - * // Add 4 weeks to 1 September 2014: - * var result = addWeeks(new Date(2014, 8, 1), 4) - * //=> Mon Sep 29 2014 00:00:00 - */ -function addWeeks (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - var days = amount * 7 - return addDays(dirtyDate, days) -} - -module.exports = addWeeks - - -/***/ }), - -/***/ "../../node_modules/date-fns/add_years/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/add_years/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addMonths = __webpack_require__(/*! ../add_months/index.js */ "../../node_modules/date-fns/add_months/index.js") - -/** - * @category Year Helpers - * @summary Add the specified number of years to the given date. - * - * @description - * Add the specified number of years to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of years to be added - * @returns {Date} the new date with the years added - * - * @example - * // Add 5 years to 1 September 2014: - * var result = addYears(new Date(2014, 8, 1), 5) - * //=> Sun Sep 01 2019 00:00:00 - */ -function addYears (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addMonths(dirtyDate, amount * 12) -} - -module.exports = addYears - - -/***/ }), - -/***/ "../../node_modules/date-fns/are_ranges_overlapping/index.js": -/*!****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/are_ranges_overlapping/index.js ***! - \****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Range Helpers - * @summary Is the given date range overlapping with another date range? - * - * @description - * Is the given date range overlapping with another date range? - * - * @param {Date|String|Number} initialRangeStartDate - the start of the initial range - * @param {Date|String|Number} initialRangeEndDate - the end of the initial range - * @param {Date|String|Number} comparedRangeStartDate - the start of the range to compare it with - * @param {Date|String|Number} comparedRangeEndDate - the end of the range to compare it with - * @returns {Boolean} whether the date ranges are overlapping - * @throws {Error} startDate of a date range cannot be after its endDate - * - * @example - * // For overlapping date ranges: - * areRangesOverlapping( - * new Date(2014, 0, 10), new Date(2014, 0, 20), new Date(2014, 0, 17), new Date(2014, 0, 21) - * ) - * //=> true - * - * @example - * // For non-overlapping date ranges: - * areRangesOverlapping( - * new Date(2014, 0, 10), new Date(2014, 0, 20), new Date(2014, 0, 21), new Date(2014, 0, 22) - * ) - * //=> false - */ -function areRangesOverlapping (dirtyInitialRangeStartDate, dirtyInitialRangeEndDate, dirtyComparedRangeStartDate, dirtyComparedRangeEndDate) { - var initialStartTime = parse(dirtyInitialRangeStartDate).getTime() - var initialEndTime = parse(dirtyInitialRangeEndDate).getTime() - var comparedStartTime = parse(dirtyComparedRangeStartDate).getTime() - var comparedEndTime = parse(dirtyComparedRangeEndDate).getTime() - - if (initialStartTime > initialEndTime || comparedStartTime > comparedEndTime) { - throw new Error('The start of the range cannot be after the end of the range') - } - - return initialStartTime < comparedEndTime && comparedStartTime < initialEndTime -} - -module.exports = areRangesOverlapping - - -/***/ }), - -/***/ "../../node_modules/date-fns/closest_index_to/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/closest_index_to/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Return an index of the closest date from the array comparing to the given date. - * - * @description - * Return an index of the closest date from the array comparing to the given date. - * - * @param {Date|String|Number} dateToCompare - the date to compare with - * @param {Date[]|String[]|Number[]} datesArray - the array to search - * @returns {Number} an index of the date closest to the given date - * @throws {TypeError} the second argument must be an instance of Array - * - * @example - * // Which date is closer to 6 September 2015? - * var dateToCompare = new Date(2015, 8, 6) - * var datesArray = [ - * new Date(2015, 0, 1), - * new Date(2016, 0, 1), - * new Date(2017, 0, 1) - * ] - * var result = closestIndexTo(dateToCompare, datesArray) - * //=> 1 - */ -function closestIndexTo (dirtyDateToCompare, dirtyDatesArray) { - if (!(dirtyDatesArray instanceof Array)) { - throw new TypeError(toString.call(dirtyDatesArray) + ' is not an instance of Array') - } - - var dateToCompare = parse(dirtyDateToCompare) - var timeToCompare = dateToCompare.getTime() - - var result - var minDistance - - dirtyDatesArray.forEach(function (dirtyDate, index) { - var currentDate = parse(dirtyDate) - var distance = Math.abs(timeToCompare - currentDate.getTime()) - if (result === undefined || distance < minDistance) { - result = index - minDistance = distance - } - }) - - return result -} - -module.exports = closestIndexTo - - -/***/ }), - -/***/ "../../node_modules/date-fns/closest_to/index.js": -/*!****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/closest_to/index.js ***! - \****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Return a date from the array closest to the given date. - * - * @description - * Return a date from the array closest to the given date. - * - * @param {Date|String|Number} dateToCompare - the date to compare with - * @param {Date[]|String[]|Number[]} datesArray - the array to search - * @returns {Date} the date from the array closest to the given date - * @throws {TypeError} the second argument must be an instance of Array - * - * @example - * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? - * var dateToCompare = new Date(2015, 8, 6) - * var result = closestTo(dateToCompare, [ - * new Date(2000, 0, 1), - * new Date(2030, 0, 1) - * ]) - * //=> Tue Jan 01 2030 00:00:00 - */ -function closestTo (dirtyDateToCompare, dirtyDatesArray) { - if (!(dirtyDatesArray instanceof Array)) { - throw new TypeError(toString.call(dirtyDatesArray) + ' is not an instance of Array') - } - - var dateToCompare = parse(dirtyDateToCompare) - var timeToCompare = dateToCompare.getTime() - - var result - var minDistance - - dirtyDatesArray.forEach(function (dirtyDate) { - var currentDate = parse(dirtyDate) - var distance = Math.abs(timeToCompare - currentDate.getTime()) - if (result === undefined || distance < minDistance) { - result = currentDate - minDistance = distance - } - }) - - return result -} - -module.exports = closestTo - - -/***/ }), - -/***/ "../../node_modules/date-fns/compare_asc/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/compare_asc/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Compare the two dates and return -1, 0 or 1. - * - * @description - * Compare the two dates and return 1 if the first date is after the second, - * -1 if the first date is before the second or 0 if dates are equal. - * - * @param {Date|String|Number} dateLeft - the first date to compare - * @param {Date|String|Number} dateRight - the second date to compare - * @returns {Number} the result of the comparison - * - * @example - * // Compare 11 February 1987 and 10 July 1989: - * var result = compareAsc( - * new Date(1987, 1, 11), - * new Date(1989, 6, 10) - * ) - * //=> -1 - * - * @example - * // Sort the array of dates: - * var result = [ - * new Date(1995, 6, 2), - * new Date(1987, 1, 11), - * new Date(1989, 6, 10) - * ].sort(compareAsc) - * //=> [ - * // Wed Feb 11 1987 00:00:00, - * // Mon Jul 10 1989 00:00:00, - * // Sun Jul 02 1995 00:00:00 - * // ] - */ -function compareAsc (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var timeLeft = dateLeft.getTime() - var dateRight = parse(dirtyDateRight) - var timeRight = dateRight.getTime() - - if (timeLeft < timeRight) { - return -1 - } else if (timeLeft > timeRight) { - return 1 - } else { - return 0 - } -} - -module.exports = compareAsc - - -/***/ }), - -/***/ "../../node_modules/date-fns/compare_desc/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/compare_desc/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Compare the two dates reverse chronologically and return -1, 0 or 1. - * - * @description - * Compare the two dates and return -1 if the first date is after the second, - * 1 if the first date is before the second or 0 if dates are equal. - * - * @param {Date|String|Number} dateLeft - the first date to compare - * @param {Date|String|Number} dateRight - the second date to compare - * @returns {Number} the result of the comparison - * - * @example - * // Compare 11 February 1987 and 10 July 1989 reverse chronologically: - * var result = compareDesc( - * new Date(1987, 1, 11), - * new Date(1989, 6, 10) - * ) - * //=> 1 - * - * @example - * // Sort the array of dates in reverse chronological order: - * var result = [ - * new Date(1995, 6, 2), - * new Date(1987, 1, 11), - * new Date(1989, 6, 10) - * ].sort(compareDesc) - * //=> [ - * // Sun Jul 02 1995 00:00:00, - * // Mon Jul 10 1989 00:00:00, - * // Wed Feb 11 1987 00:00:00 - * // ] - */ -function compareDesc (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var timeLeft = dateLeft.getTime() - var dateRight = parse(dirtyDateRight) - var timeRight = dateRight.getTime() - - if (timeLeft > timeRight) { - return -1 - } else if (timeLeft < timeRight) { - return 1 - } else { - return 0 - } -} - -module.exports = compareDesc - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_calendar_days/index.js": -/*!*********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_calendar_days/index.js ***! - \*********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfDay = __webpack_require__(/*! ../start_of_day/index.js */ "../../node_modules/date-fns/start_of_day/index.js") - -var MILLISECONDS_IN_MINUTE = 60000 -var MILLISECONDS_IN_DAY = 86400000 - -/** - * @category Day Helpers - * @summary Get the number of calendar days between the given dates. - * - * @description - * Get the number of calendar days between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of calendar days - * - * @example - * // How many calendar days are between - * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? - * var result = differenceInCalendarDays( - * new Date(2012, 6, 2, 0, 0), - * new Date(2011, 6, 2, 23, 0) - * ) - * //=> 366 - */ -function differenceInCalendarDays (dirtyDateLeft, dirtyDateRight) { - var startOfDayLeft = startOfDay(dirtyDateLeft) - var startOfDayRight = startOfDay(dirtyDateRight) - - var timestampLeft = startOfDayLeft.getTime() - - startOfDayLeft.getTimezoneOffset() * MILLISECONDS_IN_MINUTE - var timestampRight = startOfDayRight.getTime() - - startOfDayRight.getTimezoneOffset() * MILLISECONDS_IN_MINUTE - - // Round the number of days to the nearest integer - // because the number of milliseconds in a day is not constant - // (e.g. it's different in the day of the daylight saving time clock shift) - return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY) -} - -module.exports = differenceInCalendarDays - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_calendar_iso_weeks/index.js": -/*!**************************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_calendar_iso_weeks/index.js ***! - \**************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfISOWeek = __webpack_require__(/*! ../start_of_iso_week/index.js */ "../../node_modules/date-fns/start_of_iso_week/index.js") - -var MILLISECONDS_IN_MINUTE = 60000 -var MILLISECONDS_IN_WEEK = 604800000 - -/** - * @category ISO Week Helpers - * @summary Get the number of calendar ISO weeks between the given dates. - * - * @description - * Get the number of calendar ISO weeks between the given dates. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of calendar ISO weeks - * - * @example - * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? - * var result = differenceInCalendarISOWeeks( - * new Date(2014, 6, 21), - * new Date(2014, 6, 6) - * ) - * //=> 3 - */ -function differenceInCalendarISOWeeks (dirtyDateLeft, dirtyDateRight) { - var startOfISOWeekLeft = startOfISOWeek(dirtyDateLeft) - var startOfISOWeekRight = startOfISOWeek(dirtyDateRight) - - var timestampLeft = startOfISOWeekLeft.getTime() - - startOfISOWeekLeft.getTimezoneOffset() * MILLISECONDS_IN_MINUTE - var timestampRight = startOfISOWeekRight.getTime() - - startOfISOWeekRight.getTimezoneOffset() * MILLISECONDS_IN_MINUTE - - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) - return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK) -} - -module.exports = differenceInCalendarISOWeeks - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_calendar_iso_years/index.js": -/*!**************************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_calendar_iso_years/index.js ***! - \**************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var getISOYear = __webpack_require__(/*! ../get_iso_year/index.js */ "../../node_modules/date-fns/get_iso_year/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Get the number of calendar ISO week-numbering years between the given dates. - * - * @description - * Get the number of calendar ISO week-numbering years between the given dates. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of calendar ISO week-numbering years - * - * @example - * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? - * var result = differenceInCalendarISOYears( - * new Date(2012, 0, 1), - * new Date(2010, 0, 1) - * ) - * //=> 2 - */ -function differenceInCalendarISOYears (dirtyDateLeft, dirtyDateRight) { - return getISOYear(dirtyDateLeft) - getISOYear(dirtyDateRight) -} - -module.exports = differenceInCalendarISOYears - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_calendar_months/index.js": -/*!***********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_calendar_months/index.js ***! - \***********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Month Helpers - * @summary Get the number of calendar months between the given dates. - * - * @description - * Get the number of calendar months between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of calendar months - * - * @example - * // How many calendar months are between 31 January 2014 and 1 September 2014? - * var result = differenceInCalendarMonths( - * new Date(2014, 8, 1), - * new Date(2014, 0, 31) - * ) - * //=> 8 - */ -function differenceInCalendarMonths (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var dateRight = parse(dirtyDateRight) - - var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear() - var monthDiff = dateLeft.getMonth() - dateRight.getMonth() - - return yearDiff * 12 + monthDiff -} - -module.exports = differenceInCalendarMonths - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_calendar_quarters/index.js": -/*!*************************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_calendar_quarters/index.js ***! - \*************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var getQuarter = __webpack_require__(/*! ../get_quarter/index.js */ "../../node_modules/date-fns/get_quarter/index.js") -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Quarter Helpers - * @summary Get the number of calendar quarters between the given dates. - * - * @description - * Get the number of calendar quarters between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of calendar quarters - * - * @example - * // How many calendar quarters are between 31 December 2013 and 2 July 2014? - * var result = differenceInCalendarQuarters( - * new Date(2014, 6, 2), - * new Date(2013, 11, 31) - * ) - * //=> 3 - */ -function differenceInCalendarQuarters (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var dateRight = parse(dirtyDateRight) - - var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear() - var quarterDiff = getQuarter(dateLeft) - getQuarter(dateRight) - - return yearDiff * 4 + quarterDiff -} - -module.exports = differenceInCalendarQuarters - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_calendar_weeks/index.js": -/*!**********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_calendar_weeks/index.js ***! - \**********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfWeek = __webpack_require__(/*! ../start_of_week/index.js */ "../../node_modules/date-fns/start_of_week/index.js") - -var MILLISECONDS_IN_MINUTE = 60000 -var MILLISECONDS_IN_WEEK = 604800000 - -/** - * @category Week Helpers - * @summary Get the number of calendar weeks between the given dates. - * - * @description - * Get the number of calendar weeks between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @param {Object} [options] - the object with options - * @param {Number} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @returns {Number} the number of calendar weeks - * - * @example - * // How many calendar weeks are between 5 July 2014 and 20 July 2014? - * var result = differenceInCalendarWeeks( - * new Date(2014, 6, 20), - * new Date(2014, 6, 5) - * ) - * //=> 3 - * - * @example - * // If the week starts on Monday, - * // how many calendar weeks are between 5 July 2014 and 20 July 2014? - * var result = differenceInCalendarWeeks( - * new Date(2014, 6, 20), - * new Date(2014, 6, 5), - * {weekStartsOn: 1} - * ) - * //=> 2 - */ -function differenceInCalendarWeeks (dirtyDateLeft, dirtyDateRight, dirtyOptions) { - var startOfWeekLeft = startOfWeek(dirtyDateLeft, dirtyOptions) - var startOfWeekRight = startOfWeek(dirtyDateRight, dirtyOptions) - - var timestampLeft = startOfWeekLeft.getTime() - - startOfWeekLeft.getTimezoneOffset() * MILLISECONDS_IN_MINUTE - var timestampRight = startOfWeekRight.getTime() - - startOfWeekRight.getTimezoneOffset() * MILLISECONDS_IN_MINUTE - - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) - return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK) -} - -module.exports = differenceInCalendarWeeks - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_calendar_years/index.js": -/*!**********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_calendar_years/index.js ***! - \**********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Year Helpers - * @summary Get the number of calendar years between the given dates. - * - * @description - * Get the number of calendar years between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of calendar years - * - * @example - * // How many calendar years are between 31 December 2013 and 11 February 2015? - * var result = differenceInCalendarYears( - * new Date(2015, 1, 11), - * new Date(2013, 11, 31) - * ) - * //=> 2 - */ -function differenceInCalendarYears (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var dateRight = parse(dirtyDateRight) - - return dateLeft.getFullYear() - dateRight.getFullYear() -} - -module.exports = differenceInCalendarYears - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_days/index.js": -/*!************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_days/index.js ***! - \************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var differenceInCalendarDays = __webpack_require__(/*! ../difference_in_calendar_days/index.js */ "../../node_modules/date-fns/difference_in_calendar_days/index.js") -var compareAsc = __webpack_require__(/*! ../compare_asc/index.js */ "../../node_modules/date-fns/compare_asc/index.js") - -/** - * @category Day Helpers - * @summary Get the number of full days between the given dates. - * - * @description - * Get the number of full days between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of full days - * - * @example - * // How many full days are between - * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? - * var result = differenceInDays( - * new Date(2012, 6, 2, 0, 0), - * new Date(2011, 6, 2, 23, 0) - * ) - * //=> 365 - */ -function differenceInDays (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var dateRight = parse(dirtyDateRight) - - var sign = compareAsc(dateLeft, dateRight) - var difference = Math.abs(differenceInCalendarDays(dateLeft, dateRight)) - dateLeft.setDate(dateLeft.getDate() - sign * difference) - - // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full - // If so, result must be decreased by 1 in absolute value - var isLastDayNotFull = compareAsc(dateLeft, dateRight) === -sign - return sign * (difference - isLastDayNotFull) -} - -module.exports = differenceInDays - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_hours/index.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_hours/index.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var differenceInMilliseconds = __webpack_require__(/*! ../difference_in_milliseconds/index.js */ "../../node_modules/date-fns/difference_in_milliseconds/index.js") - -var MILLISECONDS_IN_HOUR = 3600000 - -/** - * @category Hour Helpers - * @summary Get the number of hours between the given dates. - * - * @description - * Get the number of hours between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of hours - * - * @example - * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? - * var result = differenceInHours( - * new Date(2014, 6, 2, 19, 0), - * new Date(2014, 6, 2, 6, 50) - * ) - * //=> 12 - */ -function differenceInHours (dirtyDateLeft, dirtyDateRight) { - var diff = differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) / MILLISECONDS_IN_HOUR - return diff > 0 ? Math.floor(diff) : Math.ceil(diff) -} - -module.exports = differenceInHours - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_iso_years/index.js": -/*!*****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_iso_years/index.js ***! - \*****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var differenceInCalendarISOYears = __webpack_require__(/*! ../difference_in_calendar_iso_years/index.js */ "../../node_modules/date-fns/difference_in_calendar_iso_years/index.js") -var compareAsc = __webpack_require__(/*! ../compare_asc/index.js */ "../../node_modules/date-fns/compare_asc/index.js") -var subISOYears = __webpack_require__(/*! ../sub_iso_years/index.js */ "../../node_modules/date-fns/sub_iso_years/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Get the number of full ISO week-numbering years between the given dates. - * - * @description - * Get the number of full ISO week-numbering years between the given dates. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of full ISO week-numbering years - * - * @example - * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? - * var result = differenceInISOYears( - * new Date(2012, 0, 1), - * new Date(2010, 0, 1) - * ) - * //=> 1 - */ -function differenceInISOYears (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var dateRight = parse(dirtyDateRight) - - var sign = compareAsc(dateLeft, dateRight) - var difference = Math.abs(differenceInCalendarISOYears(dateLeft, dateRight)) - dateLeft = subISOYears(dateLeft, sign * difference) - - // Math.abs(diff in full ISO years - diff in calendar ISO years) === 1 - // if last calendar ISO year is not full - // If so, result must be decreased by 1 in absolute value - var isLastISOYearNotFull = compareAsc(dateLeft, dateRight) === -sign - return sign * (difference - isLastISOYearNotFull) -} - -module.exports = differenceInISOYears - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_milliseconds/index.js": -/*!********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_milliseconds/index.js ***! - \********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Millisecond Helpers - * @summary Get the number of milliseconds between the given dates. - * - * @description - * Get the number of milliseconds between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of milliseconds - * - * @example - * // How many milliseconds are between - * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? - * var result = differenceInMilliseconds( - * new Date(2014, 6, 2, 12, 30, 21, 700), - * new Date(2014, 6, 2, 12, 30, 20, 600) - * ) - * //=> 1100 - */ -function differenceInMilliseconds (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var dateRight = parse(dirtyDateRight) - return dateLeft.getTime() - dateRight.getTime() -} - -module.exports = differenceInMilliseconds - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_minutes/index.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_minutes/index.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var differenceInMilliseconds = __webpack_require__(/*! ../difference_in_milliseconds/index.js */ "../../node_modules/date-fns/difference_in_milliseconds/index.js") - -var MILLISECONDS_IN_MINUTE = 60000 - -/** - * @category Minute Helpers - * @summary Get the number of minutes between the given dates. - * - * @description - * Get the number of minutes between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of minutes - * - * @example - * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? - * var result = differenceInMinutes( - * new Date(2014, 6, 2, 12, 20, 0), - * new Date(2014, 6, 2, 12, 7, 59) - * ) - * //=> 12 - */ -function differenceInMinutes (dirtyDateLeft, dirtyDateRight) { - var diff = differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) / MILLISECONDS_IN_MINUTE - return diff > 0 ? Math.floor(diff) : Math.ceil(diff) -} - -module.exports = differenceInMinutes - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_months/index.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_months/index.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var differenceInCalendarMonths = __webpack_require__(/*! ../difference_in_calendar_months/index.js */ "../../node_modules/date-fns/difference_in_calendar_months/index.js") -var compareAsc = __webpack_require__(/*! ../compare_asc/index.js */ "../../node_modules/date-fns/compare_asc/index.js") - -/** - * @category Month Helpers - * @summary Get the number of full months between the given dates. - * - * @description - * Get the number of full months between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of full months - * - * @example - * // How many full months are between 31 January 2014 and 1 September 2014? - * var result = differenceInMonths( - * new Date(2014, 8, 1), - * new Date(2014, 0, 31) - * ) - * //=> 7 - */ -function differenceInMonths (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var dateRight = parse(dirtyDateRight) - - var sign = compareAsc(dateLeft, dateRight) - var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight)) - dateLeft.setMonth(dateLeft.getMonth() - sign * difference) - - // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full - // If so, result must be decreased by 1 in absolute value - var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign - return sign * (difference - isLastMonthNotFull) -} - -module.exports = differenceInMonths - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_quarters/index.js": -/*!****************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_quarters/index.js ***! - \****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var differenceInMonths = __webpack_require__(/*! ../difference_in_months/index.js */ "../../node_modules/date-fns/difference_in_months/index.js") - -/** - * @category Quarter Helpers - * @summary Get the number of full quarters between the given dates. - * - * @description - * Get the number of full quarters between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of full quarters - * - * @example - * // How many full quarters are between 31 December 2013 and 2 July 2014? - * var result = differenceInQuarters( - * new Date(2014, 6, 2), - * new Date(2013, 11, 31) - * ) - * //=> 2 - */ -function differenceInQuarters (dirtyDateLeft, dirtyDateRight) { - var diff = differenceInMonths(dirtyDateLeft, dirtyDateRight) / 3 - return diff > 0 ? Math.floor(diff) : Math.ceil(diff) -} - -module.exports = differenceInQuarters - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_seconds/index.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_seconds/index.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var differenceInMilliseconds = __webpack_require__(/*! ../difference_in_milliseconds/index.js */ "../../node_modules/date-fns/difference_in_milliseconds/index.js") - -/** - * @category Second Helpers - * @summary Get the number of seconds between the given dates. - * - * @description - * Get the number of seconds between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of seconds - * - * @example - * // How many seconds are between - * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? - * var result = differenceInSeconds( - * new Date(2014, 6, 2, 12, 30, 20, 0), - * new Date(2014, 6, 2, 12, 30, 7, 999) - * ) - * //=> 12 - */ -function differenceInSeconds (dirtyDateLeft, dirtyDateRight) { - var diff = differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) / 1000 - return diff > 0 ? Math.floor(diff) : Math.ceil(diff) -} - -module.exports = differenceInSeconds - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_weeks/index.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_weeks/index.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var differenceInDays = __webpack_require__(/*! ../difference_in_days/index.js */ "../../node_modules/date-fns/difference_in_days/index.js") - -/** - * @category Week Helpers - * @summary Get the number of full weeks between the given dates. - * - * @description - * Get the number of full weeks between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of full weeks - * - * @example - * // How many full weeks are between 5 July 2014 and 20 July 2014? - * var result = differenceInWeeks( - * new Date(2014, 6, 20), - * new Date(2014, 6, 5) - * ) - * //=> 2 - */ -function differenceInWeeks (dirtyDateLeft, dirtyDateRight) { - var diff = differenceInDays(dirtyDateLeft, dirtyDateRight) / 7 - return diff > 0 ? Math.floor(diff) : Math.ceil(diff) -} - -module.exports = differenceInWeeks - - -/***/ }), - -/***/ "../../node_modules/date-fns/difference_in_years/index.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/difference_in_years/index.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var differenceInCalendarYears = __webpack_require__(/*! ../difference_in_calendar_years/index.js */ "../../node_modules/date-fns/difference_in_calendar_years/index.js") -var compareAsc = __webpack_require__(/*! ../compare_asc/index.js */ "../../node_modules/date-fns/compare_asc/index.js") - -/** - * @category Year Helpers - * @summary Get the number of full years between the given dates. - * - * @description - * Get the number of full years between the given dates. - * - * @param {Date|String|Number} dateLeft - the later date - * @param {Date|String|Number} dateRight - the earlier date - * @returns {Number} the number of full years - * - * @example - * // How many full years are between 31 December 2013 and 11 February 2015? - * var result = differenceInYears( - * new Date(2015, 1, 11), - * new Date(2013, 11, 31) - * ) - * //=> 1 - */ -function differenceInYears (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var dateRight = parse(dirtyDateRight) - - var sign = compareAsc(dateLeft, dateRight) - var difference = Math.abs(differenceInCalendarYears(dateLeft, dateRight)) - dateLeft.setFullYear(dateLeft.getFullYear() - sign * difference) - - // Math.abs(diff in full years - diff in calendar years) === 1 if last calendar year is not full - // If so, result must be decreased by 1 in absolute value - var isLastYearNotFull = compareAsc(dateLeft, dateRight) === -sign - return sign * (difference - isLastYearNotFull) -} - -module.exports = differenceInYears - - -/***/ }), - -/***/ "../../node_modules/date-fns/distance_in_words/index.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/distance_in_words/index.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var compareDesc = __webpack_require__(/*! ../compare_desc/index.js */ "../../node_modules/date-fns/compare_desc/index.js") -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var differenceInSeconds = __webpack_require__(/*! ../difference_in_seconds/index.js */ "../../node_modules/date-fns/difference_in_seconds/index.js") -var differenceInMonths = __webpack_require__(/*! ../difference_in_months/index.js */ "../../node_modules/date-fns/difference_in_months/index.js") -var enLocale = __webpack_require__(/*! ../locale/en/index.js */ "../../node_modules/date-fns/locale/en/index.js") - -var MINUTES_IN_DAY = 1440 -var MINUTES_IN_ALMOST_TWO_DAYS = 2520 -var MINUTES_IN_MONTH = 43200 -var MINUTES_IN_TWO_MONTHS = 86400 - -/** - * @category Common Helpers - * @summary Return the distance between the given dates in words. - * - * @description - * Return the distance between the given dates in words. - * - * | Distance between dates | Result | - * |-------------------------------------------------------------------|---------------------| - * | 0 ... 30 secs | less than a minute | - * | 30 secs ... 1 min 30 secs | 1 minute | - * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | - * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | - * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | - * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | - * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | - * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | - * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | - * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | - * | 1 yr ... 1 yr 3 months | about 1 year | - * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | - * | 1 yr 9 months ... 2 yrs | almost 2 years | - * | N yrs ... N yrs 3 months | about N years | - * | N yrs 3 months ... N yrs 9 months | over N years | - * | N yrs 9 months ... N+1 yrs | almost N+1 years | - * - * With `options.includeSeconds == true`: - * | Distance between dates | Result | - * |------------------------|----------------------| - * | 0 secs ... 5 secs | less than 5 seconds | - * | 5 secs ... 10 secs | less than 10 seconds | - * | 10 secs ... 20 secs | less than 20 seconds | - * | 20 secs ... 40 secs | half a minute | - * | 40 secs ... 60 secs | less than a minute | - * | 60 secs ... 90 secs | 1 minute | - * - * @param {Date|String|Number} dateToCompare - the date to compare with - * @param {Date|String|Number} date - the other date - * @param {Object} [options] - the object with options - * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed - * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first - * @param {Object} [options.locale=enLocale] - the locale object - * @returns {String} the distance in words - * - * @example - * // What is the distance between 2 July 2014 and 1 January 2015? - * var result = distanceInWords( - * new Date(2014, 6, 2), - * new Date(2015, 0, 1) - * ) - * //=> '6 months' - * - * @example - * // What is the distance between 1 January 2015 00:00:15 - * // and 1 January 2015 00:00:00, including seconds? - * var result = distanceInWords( - * new Date(2015, 0, 1, 0, 0, 15), - * new Date(2015, 0, 1, 0, 0, 0), - * {includeSeconds: true} - * ) - * //=> 'less than 20 seconds' - * - * @example - * // What is the distance from 1 January 2016 - * // to 1 January 2015, with a suffix? - * var result = distanceInWords( - * new Date(2016, 0, 1), - * new Date(2015, 0, 1), - * {addSuffix: true} - * ) - * //=> 'about 1 year ago' - * - * @example - * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? - * var eoLocale = require('date-fns/locale/eo') - * var result = distanceInWords( - * new Date(2016, 7, 1), - * new Date(2015, 0, 1), - * {locale: eoLocale} - * ) - * //=> 'pli ol 1 jaro' - */ -function distanceInWords (dirtyDateToCompare, dirtyDate, dirtyOptions) { - var options = dirtyOptions || {} - - var comparison = compareDesc(dirtyDateToCompare, dirtyDate) - - var locale = options.locale - var localize = enLocale.distanceInWords.localize - if (locale && locale.distanceInWords && locale.distanceInWords.localize) { - localize = locale.distanceInWords.localize - } - - var localizeOptions = { - addSuffix: Boolean(options.addSuffix), - comparison: comparison - } - - var dateLeft, dateRight - if (comparison > 0) { - dateLeft = parse(dirtyDateToCompare) - dateRight = parse(dirtyDate) - } else { - dateLeft = parse(dirtyDate) - dateRight = parse(dirtyDateToCompare) - } - - var seconds = differenceInSeconds(dateRight, dateLeft) - var offset = dateRight.getTimezoneOffset() - dateLeft.getTimezoneOffset() - var minutes = Math.round(seconds / 60) - offset - var months - - // 0 up to 2 mins - if (minutes < 2) { - if (options.includeSeconds) { - if (seconds < 5) { - return localize('lessThanXSeconds', 5, localizeOptions) - } else if (seconds < 10) { - return localize('lessThanXSeconds', 10, localizeOptions) - } else if (seconds < 20) { - return localize('lessThanXSeconds', 20, localizeOptions) - } else if (seconds < 40) { - return localize('halfAMinute', null, localizeOptions) - } else if (seconds < 60) { - return localize('lessThanXMinutes', 1, localizeOptions) - } else { - return localize('xMinutes', 1, localizeOptions) - } - } else { - if (minutes === 0) { - return localize('lessThanXMinutes', 1, localizeOptions) - } else { - return localize('xMinutes', minutes, localizeOptions) - } - } - - // 2 mins up to 0.75 hrs - } else if (minutes < 45) { - return localize('xMinutes', minutes, localizeOptions) - - // 0.75 hrs up to 1.5 hrs - } else if (minutes < 90) { - return localize('aboutXHours', 1, localizeOptions) - - // 1.5 hrs up to 24 hrs - } else if (minutes < MINUTES_IN_DAY) { - var hours = Math.round(minutes / 60) - return localize('aboutXHours', hours, localizeOptions) - - // 1 day up to 1.75 days - } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) { - return localize('xDays', 1, localizeOptions) - - // 1.75 days up to 30 days - } else if (minutes < MINUTES_IN_MONTH) { - var days = Math.round(minutes / MINUTES_IN_DAY) - return localize('xDays', days, localizeOptions) - - // 1 month up to 2 months - } else if (minutes < MINUTES_IN_TWO_MONTHS) { - months = Math.round(minutes / MINUTES_IN_MONTH) - return localize('aboutXMonths', months, localizeOptions) - } - - months = differenceInMonths(dateRight, dateLeft) - - // 2 months up to 12 months - if (months < 12) { - var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH) - return localize('xMonths', nearestMonth, localizeOptions) - - // 1 year up to max Date - } else { - var monthsSinceStartOfYear = months % 12 - var years = Math.floor(months / 12) - - // N years up to 1 years 3 months - if (monthsSinceStartOfYear < 3) { - return localize('aboutXYears', years, localizeOptions) - - // N years 3 months up to N years 9 months - } else if (monthsSinceStartOfYear < 9) { - return localize('overXYears', years, localizeOptions) - - // N years 9 months up to N year 12 months - } else { - return localize('almostXYears', years + 1, localizeOptions) - } - } -} - -module.exports = distanceInWords - - -/***/ }), - -/***/ "../../node_modules/date-fns/distance_in_words_strict/index.js": -/*!******************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/distance_in_words_strict/index.js ***! - \******************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var compareDesc = __webpack_require__(/*! ../compare_desc/index.js */ "../../node_modules/date-fns/compare_desc/index.js") -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var differenceInSeconds = __webpack_require__(/*! ../difference_in_seconds/index.js */ "../../node_modules/date-fns/difference_in_seconds/index.js") -var enLocale = __webpack_require__(/*! ../locale/en/index.js */ "../../node_modules/date-fns/locale/en/index.js") - -var MINUTES_IN_DAY = 1440 -var MINUTES_IN_MONTH = 43200 -var MINUTES_IN_YEAR = 525600 - -/** - * @category Common Helpers - * @summary Return the distance between the given dates in words. - * - * @description - * Return the distance between the given dates in words, using strict units. - * This is like `distanceInWords`, but does not use helpers like 'almost', 'over', - * 'less than' and the like. - * - * | Distance between dates | Result | - * |------------------------|---------------------| - * | 0 ... 59 secs | [0..59] seconds | - * | 1 ... 59 mins | [1..59] minutes | - * | 1 ... 23 hrs | [1..23] hours | - * | 1 ... 29 days | [1..29] days | - * | 1 ... 11 months | [1..11] months | - * | 1 ... N years | [1..N] years | - * - * @param {Date|String|Number} dateToCompare - the date to compare with - * @param {Date|String|Number} date - the other date - * @param {Object} [options] - the object with options - * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first - * @param {'s'|'m'|'h'|'d'|'M'|'Y'} [options.unit] - if specified, will force a unit - * @param {'floor'|'ceil'|'round'} [options.partialMethod='floor'] - which way to round partial units - * @param {Object} [options.locale=enLocale] - the locale object - * @returns {String} the distance in words - * - * @example - * // What is the distance between 2 July 2014 and 1 January 2015? - * var result = distanceInWordsStrict( - * new Date(2014, 6, 2), - * new Date(2015, 0, 2) - * ) - * //=> '6 months' - * - * @example - * // What is the distance between 1 January 2015 00:00:15 - * // and 1 January 2015 00:00:00? - * var result = distanceInWordsStrict( - * new Date(2015, 0, 1, 0, 0, 15), - * new Date(2015, 0, 1, 0, 0, 0), - * ) - * //=> '15 seconds' - * - * @example - * // What is the distance from 1 January 2016 - * // to 1 January 2015, with a suffix? - * var result = distanceInWordsStrict( - * new Date(2016, 0, 1), - * new Date(2015, 0, 1), - * {addSuffix: true} - * ) - * //=> '1 year ago' - * - * @example - * // What is the distance from 1 January 2016 - * // to 1 January 2015, in minutes? - * var result = distanceInWordsStrict( - * new Date(2016, 0, 1), - * new Date(2015, 0, 1), - * {unit: 'm'} - * ) - * //=> '525600 minutes' - * - * @example - * // What is the distance from 1 January 2016 - * // to 28 January 2015, in months, rounded up? - * var result = distanceInWordsStrict( - * new Date(2015, 0, 28), - * new Date(2015, 0, 1), - * {unit: 'M', partialMethod: 'ceil'} - * ) - * //=> '1 month' - * - * @example - * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? - * var eoLocale = require('date-fns/locale/eo') - * var result = distanceInWordsStrict( - * new Date(2016, 7, 1), - * new Date(2015, 0, 1), - * {locale: eoLocale} - * ) - * //=> '1 jaro' - */ -function distanceInWordsStrict (dirtyDateToCompare, dirtyDate, dirtyOptions) { - var options = dirtyOptions || {} - - var comparison = compareDesc(dirtyDateToCompare, dirtyDate) - - var locale = options.locale - var localize = enLocale.distanceInWords.localize - if (locale && locale.distanceInWords && locale.distanceInWords.localize) { - localize = locale.distanceInWords.localize - } - - var localizeOptions = { - addSuffix: Boolean(options.addSuffix), - comparison: comparison - } - - var dateLeft, dateRight - if (comparison > 0) { - dateLeft = parse(dirtyDateToCompare) - dateRight = parse(dirtyDate) - } else { - dateLeft = parse(dirtyDate) - dateRight = parse(dirtyDateToCompare) - } - - var unit - var mathPartial = Math[options.partialMethod ? String(options.partialMethod) : 'floor'] - var seconds = differenceInSeconds(dateRight, dateLeft) - var offset = dateRight.getTimezoneOffset() - dateLeft.getTimezoneOffset() - var minutes = mathPartial(seconds / 60) - offset - var hours, days, months, years - - if (options.unit) { - unit = String(options.unit) - } else { - if (minutes < 1) { - unit = 's' - } else if (minutes < 60) { - unit = 'm' - } else if (minutes < MINUTES_IN_DAY) { - unit = 'h' - } else if (minutes < MINUTES_IN_MONTH) { - unit = 'd' - } else if (minutes < MINUTES_IN_YEAR) { - unit = 'M' - } else { - unit = 'Y' - } - } - - // 0 up to 60 seconds - if (unit === 's') { - return localize('xSeconds', seconds, localizeOptions) - - // 1 up to 60 mins - } else if (unit === 'm') { - return localize('xMinutes', minutes, localizeOptions) - - // 1 up to 24 hours - } else if (unit === 'h') { - hours = mathPartial(minutes / 60) - return localize('xHours', hours, localizeOptions) - - // 1 up to 30 days - } else if (unit === 'd') { - days = mathPartial(minutes / MINUTES_IN_DAY) - return localize('xDays', days, localizeOptions) - - // 1 up to 12 months - } else if (unit === 'M') { - months = mathPartial(minutes / MINUTES_IN_MONTH) - return localize('xMonths', months, localizeOptions) - - // 1 year up to max Date - } else if (unit === 'Y') { - years = mathPartial(minutes / MINUTES_IN_YEAR) - return localize('xYears', years, localizeOptions) - } - - throw new Error('Unknown unit: ' + unit) -} - -module.exports = distanceInWordsStrict - - -/***/ }), - -/***/ "../../node_modules/date-fns/distance_in_words_to_now/index.js": -/*!******************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/distance_in_words_to_now/index.js ***! - \******************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var distanceInWords = __webpack_require__(/*! ../distance_in_words/index.js */ "../../node_modules/date-fns/distance_in_words/index.js") - -/** - * @category Common Helpers - * @summary Return the distance between the given date and now in words. - * - * @description - * Return the distance between the given date and now in words. - * - * | Distance to now | Result | - * |-------------------------------------------------------------------|---------------------| - * | 0 ... 30 secs | less than a minute | - * | 30 secs ... 1 min 30 secs | 1 minute | - * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | - * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | - * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | - * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | - * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | - * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | - * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | - * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | - * | 1 yr ... 1 yr 3 months | about 1 year | - * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | - * | 1 yr 9 months ... 2 yrs | almost 2 years | - * | N yrs ... N yrs 3 months | about N years | - * | N yrs 3 months ... N yrs 9 months | over N years | - * | N yrs 9 months ... N+1 yrs | almost N+1 years | - * - * With `options.includeSeconds == true`: - * | Distance to now | Result | - * |---------------------|----------------------| - * | 0 secs ... 5 secs | less than 5 seconds | - * | 5 secs ... 10 secs | less than 10 seconds | - * | 10 secs ... 20 secs | less than 20 seconds | - * | 20 secs ... 40 secs | half a minute | - * | 40 secs ... 60 secs | less than a minute | - * | 60 secs ... 90 secs | 1 minute | - * - * @param {Date|String|Number} date - the given date - * @param {Object} [options] - the object with options - * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed - * @param {Boolean} [options.addSuffix=false] - result specifies if the second date is earlier or later than the first - * @param {Object} [options.locale=enLocale] - the locale object - * @returns {String} the distance in words - * - * @example - * // If today is 1 January 2015, what is the distance to 2 July 2014? - * var result = distanceInWordsToNow( - * new Date(2014, 6, 2) - * ) - * //=> '6 months' - * - * @example - * // If now is 1 January 2015 00:00:00, - * // what is the distance to 1 January 2015 00:00:15, including seconds? - * var result = distanceInWordsToNow( - * new Date(2015, 0, 1, 0, 0, 15), - * {includeSeconds: true} - * ) - * //=> 'less than 20 seconds' - * - * @example - * // If today is 1 January 2015, - * // what is the distance to 1 January 2016, with a suffix? - * var result = distanceInWordsToNow( - * new Date(2016, 0, 1), - * {addSuffix: true} - * ) - * //=> 'in about 1 year' - * - * @example - * // If today is 1 January 2015, - * // what is the distance to 1 August 2016 in Esperanto? - * var eoLocale = require('date-fns/locale/eo') - * var result = distanceInWordsToNow( - * new Date(2016, 7, 1), - * {locale: eoLocale} - * ) - * //=> 'pli ol 1 jaro' - */ -function distanceInWordsToNow (dirtyDate, dirtyOptions) { - return distanceInWords(Date.now(), dirtyDate, dirtyOptions) -} - -module.exports = distanceInWordsToNow - - -/***/ }), - -/***/ "../../node_modules/date-fns/each_day/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/each_day/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Day Helpers - * @summary Return the array of dates within the specified range. - * - * @description - * Return the array of dates within the specified range. - * - * @param {Date|String|Number} startDate - the first date - * @param {Date|String|Number} endDate - the last date - * @param {Number} [step=1] - the step between each day - * @returns {Date[]} the array with starts of days from the day of startDate to the day of endDate - * @throws {Error} startDate cannot be after endDate - * - * @example - * // Each day between 6 October 2014 and 10 October 2014: - * var result = eachDay( - * new Date(2014, 9, 6), - * new Date(2014, 9, 10) - * ) - * //=> [ - * // Mon Oct 06 2014 00:00:00, - * // Tue Oct 07 2014 00:00:00, - * // Wed Oct 08 2014 00:00:00, - * // Thu Oct 09 2014 00:00:00, - * // Fri Oct 10 2014 00:00:00 - * // ] - */ -function eachDay (dirtyStartDate, dirtyEndDate, dirtyStep) { - var startDate = parse(dirtyStartDate) - var endDate = parse(dirtyEndDate) - var step = dirtyStep !== undefined ? dirtyStep : 1 - - var endTime = endDate.getTime() - - if (startDate.getTime() > endTime) { - throw new Error('The first date cannot be after the second date') - } - - var dates = [] - - var currentDate = startDate - currentDate.setHours(0, 0, 0, 0) - - while (currentDate.getTime() <= endTime) { - dates.push(parse(currentDate)) - currentDate.setDate(currentDate.getDate() + step) - } - - return dates -} - -module.exports = eachDay - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_day/index.js": -/*!****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_day/index.js ***! - \****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Day Helpers - * @summary Return the end of a day for the given date. - * - * @description - * Return the end of a day for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the end of a day - * - * @example - * // The end of a day for 2 September 2014 11:55:00: - * var result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Tue Sep 02 2014 23:59:59.999 - */ -function endOfDay (dirtyDate) { - var date = parse(dirtyDate) - date.setHours(23, 59, 59, 999) - return date -} - -module.exports = endOfDay - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_hour/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_hour/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Hour Helpers - * @summary Return the end of an hour for the given date. - * - * @description - * Return the end of an hour for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the end of an hour - * - * @example - * // The end of an hour for 2 September 2014 11:55:00: - * var result = endOfHour(new Date(2014, 8, 2, 11, 55)) - * //=> Tue Sep 02 2014 11:59:59.999 - */ -function endOfHour (dirtyDate) { - var date = parse(dirtyDate) - date.setMinutes(59, 59, 999) - return date -} - -module.exports = endOfHour - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_iso_week/index.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_iso_week/index.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var endOfWeek = __webpack_require__(/*! ../end_of_week/index.js */ "../../node_modules/date-fns/end_of_week/index.js") - -/** - * @category ISO Week Helpers - * @summary Return the end of an ISO week for the given date. - * - * @description - * Return the end of an ISO week for the given date. - * The result will be in the local timezone. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the end of an ISO week - * - * @example - * // The end of an ISO week for 2 September 2014 11:55:00: - * var result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Sun Sep 07 2014 23:59:59.999 - */ -function endOfISOWeek (dirtyDate) { - return endOfWeek(dirtyDate, {weekStartsOn: 1}) -} - -module.exports = endOfISOWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_iso_year/index.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_iso_year/index.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var getISOYear = __webpack_require__(/*! ../get_iso_year/index.js */ "../../node_modules/date-fns/get_iso_year/index.js") -var startOfISOWeek = __webpack_require__(/*! ../start_of_iso_week/index.js */ "../../node_modules/date-fns/start_of_iso_week/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Return the end of an ISO week-numbering year for the given date. - * - * @description - * Return the end of an ISO week-numbering year, - * which always starts 3 days before the year's first Thursday. - * The result will be in the local timezone. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the end of an ISO week-numbering year - * - * @example - * // The end of an ISO week-numbering year for 2 July 2005: - * var result = endOfISOYear(new Date(2005, 6, 2)) - * //=> Sun Jan 01 2006 23:59:59.999 - */ -function endOfISOYear (dirtyDate) { - var year = getISOYear(dirtyDate) - var fourthOfJanuaryOfNextYear = new Date(0) - fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4) - fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0) - var date = startOfISOWeek(fourthOfJanuaryOfNextYear) - date.setMilliseconds(date.getMilliseconds() - 1) - return date -} - -module.exports = endOfISOYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_minute/index.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_minute/index.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Minute Helpers - * @summary Return the end of a minute for the given date. - * - * @description - * Return the end of a minute for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the end of a minute - * - * @example - * // The end of a minute for 1 December 2014 22:15:45.400: - * var result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) - * //=> Mon Dec 01 2014 22:15:59.999 - */ -function endOfMinute (dirtyDate) { - var date = parse(dirtyDate) - date.setSeconds(59, 999) - return date -} - -module.exports = endOfMinute - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_month/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_month/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Month Helpers - * @summary Return the end of a month for the given date. - * - * @description - * Return the end of a month for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the end of a month - * - * @example - * // The end of a month for 2 September 2014 11:55:00: - * var result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Tue Sep 30 2014 23:59:59.999 - */ -function endOfMonth (dirtyDate) { - var date = parse(dirtyDate) - var month = date.getMonth() - date.setFullYear(date.getFullYear(), month + 1, 0) - date.setHours(23, 59, 59, 999) - return date -} - -module.exports = endOfMonth - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_quarter/index.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_quarter/index.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Quarter Helpers - * @summary Return the end of a year quarter for the given date. - * - * @description - * Return the end of a year quarter for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the end of a quarter - * - * @example - * // The end of a quarter for 2 September 2014 11:55:00: - * var result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Tue Sep 30 2014 23:59:59.999 - */ -function endOfQuarter (dirtyDate) { - var date = parse(dirtyDate) - var currentMonth = date.getMonth() - var month = currentMonth - currentMonth % 3 + 3 - date.setMonth(month, 0) - date.setHours(23, 59, 59, 999) - return date -} - -module.exports = endOfQuarter - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_second/index.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_second/index.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Second Helpers - * @summary Return the end of a second for the given date. - * - * @description - * Return the end of a second for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the end of a second - * - * @example - * // The end of a second for 1 December 2014 22:15:45.400: - * var result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) - * //=> Mon Dec 01 2014 22:15:45.999 - */ -function endOfSecond (dirtyDate) { - var date = parse(dirtyDate) - date.setMilliseconds(999) - return date -} - -module.exports = endOfSecond - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_today/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_today/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var endOfDay = __webpack_require__(/*! ../end_of_day/index.js */ "../../node_modules/date-fns/end_of_day/index.js") - -/** - * @category Day Helpers - * @summary Return the end of today. - * - * @description - * Return the end of today. - * - * @returns {Date} the end of today - * - * @example - * // If today is 6 October 2014: - * var result = endOfToday() - * //=> Mon Oct 6 2014 23:59:59.999 - */ -function endOfToday () { - return endOfDay(new Date()) -} - -module.exports = endOfToday - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_tomorrow/index.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_tomorrow/index.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/** - * @category Day Helpers - * @summary Return the end of tomorrow. - * - * @description - * Return the end of tomorrow. - * - * @returns {Date} the end of tomorrow - * - * @example - * // If today is 6 October 2014: - * var result = endOfTomorrow() - * //=> Tue Oct 7 2014 23:59:59.999 - */ -function endOfTomorrow () { - var now = new Date() - var year = now.getFullYear() - var month = now.getMonth() - var day = now.getDate() - - var date = new Date(0) - date.setFullYear(year, month, day + 1) - date.setHours(23, 59, 59, 999) - return date -} - -module.exports = endOfTomorrow - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_week/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_week/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Week Helpers - * @summary Return the end of a week for the given date. - * - * @description - * Return the end of a week for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @param {Object} [options] - the object with options - * @param {Number} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @returns {Date} the end of a week - * - * @example - * // The end of a week for 2 September 2014 11:55:00: - * var result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Sat Sep 06 2014 23:59:59.999 - * - * @example - * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: - * var result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), {weekStartsOn: 1}) - * //=> Sun Sep 07 2014 23:59:59.999 - */ -function endOfWeek (dirtyDate, dirtyOptions) { - var weekStartsOn = dirtyOptions ? (Number(dirtyOptions.weekStartsOn) || 0) : 0 - - var date = parse(dirtyDate) - var day = date.getDay() - var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn) - - date.setDate(date.getDate() + diff) - date.setHours(23, 59, 59, 999) - return date -} - -module.exports = endOfWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_year/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_year/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Year Helpers - * @summary Return the end of a year for the given date. - * - * @description - * Return the end of a year for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the end of a year - * - * @example - * // The end of a year for 2 September 2014 11:55:00: - * var result = endOfYear(new Date(2014, 8, 2, 11, 55, 00)) - * //=> Wed Dec 31 2014 23:59:59.999 - */ -function endOfYear (dirtyDate) { - var date = parse(dirtyDate) - var year = date.getFullYear() - date.setFullYear(year + 1, 0, 0) - date.setHours(23, 59, 59, 999) - return date -} - -module.exports = endOfYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/end_of_yesterday/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/end_of_yesterday/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/** - * @category Day Helpers - * @summary Return the end of yesterday. - * - * @description - * Return the end of yesterday. - * - * @returns {Date} the end of yesterday - * - * @example - * // If today is 6 October 2014: - * var result = endOfYesterday() - * //=> Sun Oct 5 2014 23:59:59.999 - */ -function endOfYesterday () { - var now = new Date() - var year = now.getFullYear() - var month = now.getMonth() - var day = now.getDate() - - var date = new Date(0) - date.setFullYear(year, month, day - 1) - date.setHours(23, 59, 59, 999) - return date -} - -module.exports = endOfYesterday - - -/***/ }), - -/***/ "../../node_modules/date-fns/format/index.js": -/*!************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/format/index.js ***! - \************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var getDayOfYear = __webpack_require__(/*! ../get_day_of_year/index.js */ "../../node_modules/date-fns/get_day_of_year/index.js") -var getISOWeek = __webpack_require__(/*! ../get_iso_week/index.js */ "../../node_modules/date-fns/get_iso_week/index.js") -var getISOYear = __webpack_require__(/*! ../get_iso_year/index.js */ "../../node_modules/date-fns/get_iso_year/index.js") -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var isValid = __webpack_require__(/*! ../is_valid/index.js */ "../../node_modules/date-fns/is_valid/index.js") -var enLocale = __webpack_require__(/*! ../locale/en/index.js */ "../../node_modules/date-fns/locale/en/index.js") - -/** - * @category Common Helpers - * @summary Format the date. - * - * @description - * Return the formatted date string in the given format. - * - * Accepted tokens: - * | Unit | Token | Result examples | - * |-------------------------|-------|----------------------------------| - * | Month | M | 1, 2, ..., 12 | - * | | Mo | 1st, 2nd, ..., 12th | - * | | MM | 01, 02, ..., 12 | - * | | MMM | Jan, Feb, ..., Dec | - * | | MMMM | January, February, ..., December | - * | Quarter | Q | 1, 2, 3, 4 | - * | | Qo | 1st, 2nd, 3rd, 4th | - * | Day of month | D | 1, 2, ..., 31 | - * | | Do | 1st, 2nd, ..., 31st | - * | | DD | 01, 02, ..., 31 | - * | Day of year | DDD | 1, 2, ..., 366 | - * | | DDDo | 1st, 2nd, ..., 366th | - * | | DDDD | 001, 002, ..., 366 | - * | Day of week | d | 0, 1, ..., 6 | - * | | do | 0th, 1st, ..., 6th | - * | | dd | Su, Mo, ..., Sa | - * | | ddd | Sun, Mon, ..., Sat | - * | | dddd | Sunday, Monday, ..., Saturday | - * | Day of ISO week | E | 1, 2, ..., 7 | - * | ISO week | W | 1, 2, ..., 53 | - * | | Wo | 1st, 2nd, ..., 53rd | - * | | WW | 01, 02, ..., 53 | - * | Year | YY | 00, 01, ..., 99 | - * | | YYYY | 1900, 1901, ..., 2099 | - * | ISO week-numbering year | GG | 00, 01, ..., 99 | - * | | GGGG | 1900, 1901, ..., 2099 | - * | AM/PM | A | AM, PM | - * | | a | am, pm | - * | | aa | a.m., p.m. | - * | Hour | H | 0, 1, ... 23 | - * | | HH | 00, 01, ... 23 | - * | | h | 1, 2, ..., 12 | - * | | hh | 01, 02, ..., 12 | - * | Minute | m | 0, 1, ..., 59 | - * | | mm | 00, 01, ..., 59 | - * | Second | s | 0, 1, ..., 59 | - * | | ss | 00, 01, ..., 59 | - * | 1/10 of second | S | 0, 1, ..., 9 | - * | 1/100 of second | SS | 00, 01, ..., 99 | - * | Millisecond | SSS | 000, 001, ..., 999 | - * | Timezone | Z | -01:00, +00:00, ... +12:00 | - * | | ZZ | -0100, +0000, ..., +1200 | - * | Seconds timestamp | X | 512969520 | - * | Milliseconds timestamp | x | 512969520900 | - * - * The characters wrapped in square brackets are escaped. - * - * The result may vary by locale. - * - * @param {Date|String|Number} date - the original date - * @param {String} [format='YYYY-MM-DDTHH:mm:ss.SSSZ'] - the string of tokens - * @param {Object} [options] - the object with options - * @param {Object} [options.locale=enLocale] - the locale object - * @returns {String} the formatted date string - * - * @example - * // Represent 11 February 2014 in middle-endian format: - * var result = format( - * new Date(2014, 1, 11), - * 'MM/DD/YYYY' - * ) - * //=> '02/11/2014' - * - * @example - * // Represent 2 July 2014 in Esperanto: - * var eoLocale = require('date-fns/locale/eo') - * var result = format( - * new Date(2014, 6, 2), - * 'Do [de] MMMM YYYY', - * {locale: eoLocale} - * ) - * //=> '2-a de julio 2014' - */ -function format (dirtyDate, dirtyFormatStr, dirtyOptions) { - var formatStr = dirtyFormatStr ? String(dirtyFormatStr) : 'YYYY-MM-DDTHH:mm:ss.SSSZ' - var options = dirtyOptions || {} - - var locale = options.locale - var localeFormatters = enLocale.format.formatters - var formattingTokensRegExp = enLocale.format.formattingTokensRegExp - if (locale && locale.format && locale.format.formatters) { - localeFormatters = locale.format.formatters - - if (locale.format.formattingTokensRegExp) { - formattingTokensRegExp = locale.format.formattingTokensRegExp - } - } - - var date = parse(dirtyDate) - - if (!isValid(date)) { - return 'Invalid Date' - } - - var formatFn = buildFormatFn(formatStr, localeFormatters, formattingTokensRegExp) - - return formatFn(date) -} - -var formatters = { - // Month: 1, 2, ..., 12 - 'M': function (date) { - return date.getMonth() + 1 - }, - - // Month: 01, 02, ..., 12 - 'MM': function (date) { - return addLeadingZeros(date.getMonth() + 1, 2) - }, - - // Quarter: 1, 2, 3, 4 - 'Q': function (date) { - return Math.ceil((date.getMonth() + 1) / 3) - }, - - // Day of month: 1, 2, ..., 31 - 'D': function (date) { - return date.getDate() - }, - - // Day of month: 01, 02, ..., 31 - 'DD': function (date) { - return addLeadingZeros(date.getDate(), 2) - }, - - // Day of year: 1, 2, ..., 366 - 'DDD': function (date) { - return getDayOfYear(date) - }, - - // Day of year: 001, 002, ..., 366 - 'DDDD': function (date) { - return addLeadingZeros(getDayOfYear(date), 3) - }, - - // Day of week: 0, 1, ..., 6 - 'd': function (date) { - return date.getDay() - }, - - // Day of ISO week: 1, 2, ..., 7 - 'E': function (date) { - return date.getDay() || 7 - }, - - // ISO week: 1, 2, ..., 53 - 'W': function (date) { - return getISOWeek(date) - }, - - // ISO week: 01, 02, ..., 53 - 'WW': function (date) { - return addLeadingZeros(getISOWeek(date), 2) - }, - - // Year: 00, 01, ..., 99 - 'YY': function (date) { - return addLeadingZeros(date.getFullYear(), 4).substr(2) - }, - - // Year: 1900, 1901, ..., 2099 - 'YYYY': function (date) { - return addLeadingZeros(date.getFullYear(), 4) - }, - - // ISO week-numbering year: 00, 01, ..., 99 - 'GG': function (date) { - return String(getISOYear(date)).substr(2) - }, - - // ISO week-numbering year: 1900, 1901, ..., 2099 - 'GGGG': function (date) { - return getISOYear(date) - }, - - // Hour: 0, 1, ... 23 - 'H': function (date) { - return date.getHours() - }, - - // Hour: 00, 01, ..., 23 - 'HH': function (date) { - return addLeadingZeros(date.getHours(), 2) - }, - - // Hour: 1, 2, ..., 12 - 'h': function (date) { - var hours = date.getHours() - if (hours === 0) { - return 12 - } else if (hours > 12) { - return hours % 12 - } else { - return hours - } - }, - - // Hour: 01, 02, ..., 12 - 'hh': function (date) { - return addLeadingZeros(formatters['h'](date), 2) - }, - - // Minute: 0, 1, ..., 59 - 'm': function (date) { - return date.getMinutes() - }, - - // Minute: 00, 01, ..., 59 - 'mm': function (date) { - return addLeadingZeros(date.getMinutes(), 2) - }, - - // Second: 0, 1, ..., 59 - 's': function (date) { - return date.getSeconds() - }, - - // Second: 00, 01, ..., 59 - 'ss': function (date) { - return addLeadingZeros(date.getSeconds(), 2) - }, - - // 1/10 of second: 0, 1, ..., 9 - 'S': function (date) { - return Math.floor(date.getMilliseconds() / 100) - }, - - // 1/100 of second: 00, 01, ..., 99 - 'SS': function (date) { - return addLeadingZeros(Math.floor(date.getMilliseconds() / 10), 2) - }, - - // Millisecond: 000, 001, ..., 999 - 'SSS': function (date) { - return addLeadingZeros(date.getMilliseconds(), 3) - }, - - // Timezone: -01:00, +00:00, ... +12:00 - 'Z': function (date) { - return formatTimezone(date.getTimezoneOffset(), ':') - }, - - // Timezone: -0100, +0000, ... +1200 - 'ZZ': function (date) { - return formatTimezone(date.getTimezoneOffset()) - }, - - // Seconds timestamp: 512969520 - 'X': function (date) { - return Math.floor(date.getTime() / 1000) - }, - - // Milliseconds timestamp: 512969520900 - 'x': function (date) { - return date.getTime() - } -} - -function buildFormatFn (formatStr, localeFormatters, formattingTokensRegExp) { - var array = formatStr.match(formattingTokensRegExp) - var length = array.length - - var i - var formatter - for (i = 0; i < length; i++) { - formatter = localeFormatters[array[i]] || formatters[array[i]] - if (formatter) { - array[i] = formatter - } else { - array[i] = removeFormattingTokens(array[i]) - } - } - - return function (date) { - var output = '' - for (var i = 0; i < length; i++) { - if (array[i] instanceof Function) { - output += array[i](date, formatters) - } else { - output += array[i] - } - } - return output - } -} - -function removeFormattingTokens (input) { - if (input.match(/\[[\s\S]/)) { - return input.replace(/^\[|]$/g, '') - } - return input.replace(/\\/g, '') -} - -function formatTimezone (offset, delimeter) { - delimeter = delimeter || '' - var sign = offset > 0 ? '-' : '+' - var absOffset = Math.abs(offset) - var hours = Math.floor(absOffset / 60) - var minutes = absOffset % 60 - return sign + addLeadingZeros(hours, 2) + delimeter + addLeadingZeros(minutes, 2) -} - -function addLeadingZeros (number, targetLength) { - var output = Math.abs(number).toString() - while (output.length < targetLength) { - output = '0' + output - } - return output -} - -module.exports = format - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_date/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_date/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Day Helpers - * @summary Get the day of the month of the given date. - * - * @description - * Get the day of the month of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the day of month - * - * @example - * // Which day of the month is 29 February 2012? - * var result = getDate(new Date(2012, 1, 29)) - * //=> 29 - */ -function getDate (dirtyDate) { - var date = parse(dirtyDate) - var dayOfMonth = date.getDate() - return dayOfMonth -} - -module.exports = getDate - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_day/index.js": -/*!*************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_day/index.js ***! - \*************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Weekday Helpers - * @summary Get the day of the week of the given date. - * - * @description - * Get the day of the week of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the day of week - * - * @example - * // Which day of the week is 29 February 2012? - * var result = getDay(new Date(2012, 1, 29)) - * //=> 3 - */ -function getDay (dirtyDate) { - var date = parse(dirtyDate) - var day = date.getDay() - return day -} - -module.exports = getDay - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_day_of_year/index.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_day_of_year/index.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var startOfYear = __webpack_require__(/*! ../start_of_year/index.js */ "../../node_modules/date-fns/start_of_year/index.js") -var differenceInCalendarDays = __webpack_require__(/*! ../difference_in_calendar_days/index.js */ "../../node_modules/date-fns/difference_in_calendar_days/index.js") - -/** - * @category Day Helpers - * @summary Get the day of the year of the given date. - * - * @description - * Get the day of the year of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the day of year - * - * @example - * // Which day of the year is 2 July 2014? - * var result = getDayOfYear(new Date(2014, 6, 2)) - * //=> 183 - */ -function getDayOfYear (dirtyDate) { - var date = parse(dirtyDate) - var diff = differenceInCalendarDays(date, startOfYear(date)) - var dayOfYear = diff + 1 - return dayOfYear -} - -module.exports = getDayOfYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_days_in_month/index.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_days_in_month/index.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Month Helpers - * @summary Get the number of days in a month of the given date. - * - * @description - * Get the number of days in a month of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the number of days in a month - * - * @example - * // How many days are in February 2000? - * var result = getDaysInMonth(new Date(2000, 1)) - * //=> 29 - */ -function getDaysInMonth (dirtyDate) { - var date = parse(dirtyDate) - var year = date.getFullYear() - var monthIndex = date.getMonth() - var lastDayOfMonth = new Date(0) - lastDayOfMonth.setFullYear(year, monthIndex + 1, 0) - lastDayOfMonth.setHours(0, 0, 0, 0) - return lastDayOfMonth.getDate() -} - -module.exports = getDaysInMonth - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_days_in_year/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_days_in_year/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isLeapYear = __webpack_require__(/*! ../is_leap_year/index.js */ "../../node_modules/date-fns/is_leap_year/index.js") - -/** - * @category Year Helpers - * @summary Get the number of days in a year of the given date. - * - * @description - * Get the number of days in a year of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the number of days in a year - * - * @example - * // How many days are in 2012? - * var result = getDaysInYear(new Date(2012, 0, 1)) - * //=> 366 - */ -function getDaysInYear (dirtyDate) { - return isLeapYear(dirtyDate) ? 366 : 365 -} - -module.exports = getDaysInYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_hours/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_hours/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Hour Helpers - * @summary Get the hours of the given date. - * - * @description - * Get the hours of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the hours - * - * @example - * // Get the hours of 29 February 2012 11:45:00: - * var result = getHours(new Date(2012, 1, 29, 11, 45)) - * //=> 11 - */ -function getHours (dirtyDate) { - var date = parse(dirtyDate) - var hours = date.getHours() - return hours -} - -module.exports = getHours - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_iso_day/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_iso_day/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Weekday Helpers - * @summary Get the day of the ISO week of the given date. - * - * @description - * Get the day of the ISO week of the given date, - * which is 7 for Sunday, 1 for Monday etc. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the day of ISO week - * - * @example - * // Which day of the ISO week is 26 February 2012? - * var result = getISODay(new Date(2012, 1, 26)) - * //=> 7 - */ -function getISODay (dirtyDate) { - var date = parse(dirtyDate) - var day = date.getDay() - - if (day === 0) { - day = 7 - } - - return day -} - -module.exports = getISODay - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_iso_week/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_iso_week/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var startOfISOWeek = __webpack_require__(/*! ../start_of_iso_week/index.js */ "../../node_modules/date-fns/start_of_iso_week/index.js") -var startOfISOYear = __webpack_require__(/*! ../start_of_iso_year/index.js */ "../../node_modules/date-fns/start_of_iso_year/index.js") - -var MILLISECONDS_IN_WEEK = 604800000 - -/** - * @category ISO Week Helpers - * @summary Get the ISO week of the given date. - * - * @description - * Get the ISO week of the given date. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the ISO week - * - * @example - * // Which week of the ISO-week numbering year is 2 January 2005? - * var result = getISOWeek(new Date(2005, 0, 2)) - * //=> 53 - */ -function getISOWeek (dirtyDate) { - var date = parse(dirtyDate) - var diff = startOfISOWeek(date).getTime() - startOfISOYear(date).getTime() - - // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) - return Math.round(diff / MILLISECONDS_IN_WEEK) + 1 -} - -module.exports = getISOWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_iso_weeks_in_year/index.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_iso_weeks_in_year/index.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfISOYear = __webpack_require__(/*! ../start_of_iso_year/index.js */ "../../node_modules/date-fns/start_of_iso_year/index.js") -var addWeeks = __webpack_require__(/*! ../add_weeks/index.js */ "../../node_modules/date-fns/add_weeks/index.js") - -var MILLISECONDS_IN_WEEK = 604800000 - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Get the number of weeks in an ISO week-numbering year of the given date. - * - * @description - * Get the number of weeks in an ISO week-numbering year of the given date. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the number of ISO weeks in a year - * - * @example - * // How many weeks are in ISO week-numbering year 2015? - * var result = getISOWeeksInYear(new Date(2015, 1, 11)) - * //=> 53 - */ -function getISOWeeksInYear (dirtyDate) { - var thisYear = startOfISOYear(dirtyDate) - var nextYear = startOfISOYear(addWeeks(thisYear, 60)) - var diff = nextYear.valueOf() - thisYear.valueOf() - // Round the number of weeks to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) - return Math.round(diff / MILLISECONDS_IN_WEEK) -} - -module.exports = getISOWeeksInYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_iso_year/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_iso_year/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var startOfISOWeek = __webpack_require__(/*! ../start_of_iso_week/index.js */ "../../node_modules/date-fns/start_of_iso_week/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Get the ISO week-numbering year of the given date. - * - * @description - * Get the ISO week-numbering year of the given date, - * which always starts 3 days before the year's first Thursday. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the ISO week-numbering year - * - * @example - * // Which ISO-week numbering year is 2 January 2005? - * var result = getISOYear(new Date(2005, 0, 2)) - * //=> 2004 - */ -function getISOYear (dirtyDate) { - var date = parse(dirtyDate) - var year = date.getFullYear() - - var fourthOfJanuaryOfNextYear = new Date(0) - fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4) - fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0) - var startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear) - - var fourthOfJanuaryOfThisYear = new Date(0) - fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4) - fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0) - var startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear) - - if (date.getTime() >= startOfNextYear.getTime()) { - return year + 1 - } else if (date.getTime() >= startOfThisYear.getTime()) { - return year - } else { - return year - 1 - } -} - -module.exports = getISOYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_milliseconds/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_milliseconds/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Millisecond Helpers - * @summary Get the milliseconds of the given date. - * - * @description - * Get the milliseconds of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the milliseconds - * - * @example - * // Get the milliseconds of 29 February 2012 11:45:05.123: - * var result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) - * //=> 123 - */ -function getMilliseconds (dirtyDate) { - var date = parse(dirtyDate) - var milliseconds = date.getMilliseconds() - return milliseconds -} - -module.exports = getMilliseconds - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_minutes/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_minutes/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Minute Helpers - * @summary Get the minutes of the given date. - * - * @description - * Get the minutes of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the minutes - * - * @example - * // Get the minutes of 29 February 2012 11:45:05: - * var result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) - * //=> 45 - */ -function getMinutes (dirtyDate) { - var date = parse(dirtyDate) - var minutes = date.getMinutes() - return minutes -} - -module.exports = getMinutes - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_month/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_month/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Month Helpers - * @summary Get the month of the given date. - * - * @description - * Get the month of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the month - * - * @example - * // Which month is 29 February 2012? - * var result = getMonth(new Date(2012, 1, 29)) - * //=> 1 - */ -function getMonth (dirtyDate) { - var date = parse(dirtyDate) - var month = date.getMonth() - return month -} - -module.exports = getMonth - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_overlapping_days_in_ranges/index.js": -/*!************************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_overlapping_days_in_ranges/index.js ***! - \************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -var MILLISECONDS_IN_DAY = 24 * 60 * 60 * 1000 - -/** - * @category Range Helpers - * @summary Get the number of days that overlap in two date ranges - * - * @description - * Get the number of days that overlap in two date ranges - * - * @param {Date|String|Number} initialRangeStartDate - the start of the initial range - * @param {Date|String|Number} initialRangeEndDate - the end of the initial range - * @param {Date|String|Number} comparedRangeStartDate - the start of the range to compare it with - * @param {Date|String|Number} comparedRangeEndDate - the end of the range to compare it with - * @returns {Number} the number of days that overlap in two date ranges - * @throws {Error} startDate of a date range cannot be after its endDate - * - * @example - * // For overlapping date ranges adds 1 for each started overlapping day: - * getOverlappingDaysInRanges( - * new Date(2014, 0, 10), new Date(2014, 0, 20), new Date(2014, 0, 17), new Date(2014, 0, 21) - * ) - * //=> 3 - * - * @example - * // For non-overlapping date ranges returns 0: - * getOverlappingDaysInRanges( - * new Date(2014, 0, 10), new Date(2014, 0, 20), new Date(2014, 0, 21), new Date(2014, 0, 22) - * ) - * //=> 0 - */ -function getOverlappingDaysInRanges (dirtyInitialRangeStartDate, dirtyInitialRangeEndDate, dirtyComparedRangeStartDate, dirtyComparedRangeEndDate) { - var initialStartTime = parse(dirtyInitialRangeStartDate).getTime() - var initialEndTime = parse(dirtyInitialRangeEndDate).getTime() - var comparedStartTime = parse(dirtyComparedRangeStartDate).getTime() - var comparedEndTime = parse(dirtyComparedRangeEndDate).getTime() - - if (initialStartTime > initialEndTime || comparedStartTime > comparedEndTime) { - throw new Error('The start of the range cannot be after the end of the range') - } - - var isOverlapping = initialStartTime < comparedEndTime && comparedStartTime < initialEndTime - - if (!isOverlapping) { - return 0 - } - - var overlapStartDate = comparedStartTime < initialStartTime - ? initialStartTime - : comparedStartTime - - var overlapEndDate = comparedEndTime > initialEndTime - ? initialEndTime - : comparedEndTime - - var differenceInMs = overlapEndDate - overlapStartDate - - return Math.ceil(differenceInMs / MILLISECONDS_IN_DAY) -} - -module.exports = getOverlappingDaysInRanges - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_quarter/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_quarter/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Quarter Helpers - * @summary Get the year quarter of the given date. - * - * @description - * Get the year quarter of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the quarter - * - * @example - * // Which quarter is 2 July 2014? - * var result = getQuarter(new Date(2014, 6, 2)) - * //=> 3 - */ -function getQuarter (dirtyDate) { - var date = parse(dirtyDate) - var quarter = Math.floor(date.getMonth() / 3) + 1 - return quarter -} - -module.exports = getQuarter - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_seconds/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_seconds/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Second Helpers - * @summary Get the seconds of the given date. - * - * @description - * Get the seconds of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the seconds - * - * @example - * // Get the seconds of 29 February 2012 11:45:05.123: - * var result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) - * //=> 5 - */ -function getSeconds (dirtyDate) { - var date = parse(dirtyDate) - var seconds = date.getSeconds() - return seconds -} - -module.exports = getSeconds - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_time/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_time/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Timestamp Helpers - * @summary Get the milliseconds timestamp of the given date. - * - * @description - * Get the milliseconds timestamp of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the timestamp - * - * @example - * // Get the timestamp of 29 February 2012 11:45:05.123: - * var result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) - * //=> 1330515905123 - */ -function getTime (dirtyDate) { - var date = parse(dirtyDate) - var timestamp = date.getTime() - return timestamp -} - -module.exports = getTime - - -/***/ }), - -/***/ "../../node_modules/date-fns/get_year/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/get_year/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Year Helpers - * @summary Get the year of the given date. - * - * @description - * Get the year of the given date. - * - * @param {Date|String|Number} date - the given date - * @returns {Number} the year - * - * @example - * // Which year is 2 July 2014? - * var result = getYear(new Date(2014, 6, 2)) - * //=> 2014 - */ -function getYear (dirtyDate) { - var date = parse(dirtyDate) - var year = date.getFullYear() - return year -} - -module.exports = getYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/index.js": -/*!*****************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/index.js ***! - \*****************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { - addDays: __webpack_require__(/*! ./add_days/index.js */ "../../node_modules/date-fns/add_days/index.js"), - addHours: __webpack_require__(/*! ./add_hours/index.js */ "../../node_modules/date-fns/add_hours/index.js"), - addISOYears: __webpack_require__(/*! ./add_iso_years/index.js */ "../../node_modules/date-fns/add_iso_years/index.js"), - addMilliseconds: __webpack_require__(/*! ./add_milliseconds/index.js */ "../../node_modules/date-fns/add_milliseconds/index.js"), - addMinutes: __webpack_require__(/*! ./add_minutes/index.js */ "../../node_modules/date-fns/add_minutes/index.js"), - addMonths: __webpack_require__(/*! ./add_months/index.js */ "../../node_modules/date-fns/add_months/index.js"), - addQuarters: __webpack_require__(/*! ./add_quarters/index.js */ "../../node_modules/date-fns/add_quarters/index.js"), - addSeconds: __webpack_require__(/*! ./add_seconds/index.js */ "../../node_modules/date-fns/add_seconds/index.js"), - addWeeks: __webpack_require__(/*! ./add_weeks/index.js */ "../../node_modules/date-fns/add_weeks/index.js"), - addYears: __webpack_require__(/*! ./add_years/index.js */ "../../node_modules/date-fns/add_years/index.js"), - areRangesOverlapping: __webpack_require__(/*! ./are_ranges_overlapping/index.js */ "../../node_modules/date-fns/are_ranges_overlapping/index.js"), - closestIndexTo: __webpack_require__(/*! ./closest_index_to/index.js */ "../../node_modules/date-fns/closest_index_to/index.js"), - closestTo: __webpack_require__(/*! ./closest_to/index.js */ "../../node_modules/date-fns/closest_to/index.js"), - compareAsc: __webpack_require__(/*! ./compare_asc/index.js */ "../../node_modules/date-fns/compare_asc/index.js"), - compareDesc: __webpack_require__(/*! ./compare_desc/index.js */ "../../node_modules/date-fns/compare_desc/index.js"), - differenceInCalendarDays: __webpack_require__(/*! ./difference_in_calendar_days/index.js */ "../../node_modules/date-fns/difference_in_calendar_days/index.js"), - differenceInCalendarISOWeeks: __webpack_require__(/*! ./difference_in_calendar_iso_weeks/index.js */ "../../node_modules/date-fns/difference_in_calendar_iso_weeks/index.js"), - differenceInCalendarISOYears: __webpack_require__(/*! ./difference_in_calendar_iso_years/index.js */ "../../node_modules/date-fns/difference_in_calendar_iso_years/index.js"), - differenceInCalendarMonths: __webpack_require__(/*! ./difference_in_calendar_months/index.js */ "../../node_modules/date-fns/difference_in_calendar_months/index.js"), - differenceInCalendarQuarters: __webpack_require__(/*! ./difference_in_calendar_quarters/index.js */ "../../node_modules/date-fns/difference_in_calendar_quarters/index.js"), - differenceInCalendarWeeks: __webpack_require__(/*! ./difference_in_calendar_weeks/index.js */ "../../node_modules/date-fns/difference_in_calendar_weeks/index.js"), - differenceInCalendarYears: __webpack_require__(/*! ./difference_in_calendar_years/index.js */ "../../node_modules/date-fns/difference_in_calendar_years/index.js"), - differenceInDays: __webpack_require__(/*! ./difference_in_days/index.js */ "../../node_modules/date-fns/difference_in_days/index.js"), - differenceInHours: __webpack_require__(/*! ./difference_in_hours/index.js */ "../../node_modules/date-fns/difference_in_hours/index.js"), - differenceInISOYears: __webpack_require__(/*! ./difference_in_iso_years/index.js */ "../../node_modules/date-fns/difference_in_iso_years/index.js"), - differenceInMilliseconds: __webpack_require__(/*! ./difference_in_milliseconds/index.js */ "../../node_modules/date-fns/difference_in_milliseconds/index.js"), - differenceInMinutes: __webpack_require__(/*! ./difference_in_minutes/index.js */ "../../node_modules/date-fns/difference_in_minutes/index.js"), - differenceInMonths: __webpack_require__(/*! ./difference_in_months/index.js */ "../../node_modules/date-fns/difference_in_months/index.js"), - differenceInQuarters: __webpack_require__(/*! ./difference_in_quarters/index.js */ "../../node_modules/date-fns/difference_in_quarters/index.js"), - differenceInSeconds: __webpack_require__(/*! ./difference_in_seconds/index.js */ "../../node_modules/date-fns/difference_in_seconds/index.js"), - differenceInWeeks: __webpack_require__(/*! ./difference_in_weeks/index.js */ "../../node_modules/date-fns/difference_in_weeks/index.js"), - differenceInYears: __webpack_require__(/*! ./difference_in_years/index.js */ "../../node_modules/date-fns/difference_in_years/index.js"), - distanceInWords: __webpack_require__(/*! ./distance_in_words/index.js */ "../../node_modules/date-fns/distance_in_words/index.js"), - distanceInWordsStrict: __webpack_require__(/*! ./distance_in_words_strict/index.js */ "../../node_modules/date-fns/distance_in_words_strict/index.js"), - distanceInWordsToNow: __webpack_require__(/*! ./distance_in_words_to_now/index.js */ "../../node_modules/date-fns/distance_in_words_to_now/index.js"), - eachDay: __webpack_require__(/*! ./each_day/index.js */ "../../node_modules/date-fns/each_day/index.js"), - endOfDay: __webpack_require__(/*! ./end_of_day/index.js */ "../../node_modules/date-fns/end_of_day/index.js"), - endOfHour: __webpack_require__(/*! ./end_of_hour/index.js */ "../../node_modules/date-fns/end_of_hour/index.js"), - endOfISOWeek: __webpack_require__(/*! ./end_of_iso_week/index.js */ "../../node_modules/date-fns/end_of_iso_week/index.js"), - endOfISOYear: __webpack_require__(/*! ./end_of_iso_year/index.js */ "../../node_modules/date-fns/end_of_iso_year/index.js"), - endOfMinute: __webpack_require__(/*! ./end_of_minute/index.js */ "../../node_modules/date-fns/end_of_minute/index.js"), - endOfMonth: __webpack_require__(/*! ./end_of_month/index.js */ "../../node_modules/date-fns/end_of_month/index.js"), - endOfQuarter: __webpack_require__(/*! ./end_of_quarter/index.js */ "../../node_modules/date-fns/end_of_quarter/index.js"), - endOfSecond: __webpack_require__(/*! ./end_of_second/index.js */ "../../node_modules/date-fns/end_of_second/index.js"), - endOfToday: __webpack_require__(/*! ./end_of_today/index.js */ "../../node_modules/date-fns/end_of_today/index.js"), - endOfTomorrow: __webpack_require__(/*! ./end_of_tomorrow/index.js */ "../../node_modules/date-fns/end_of_tomorrow/index.js"), - endOfWeek: __webpack_require__(/*! ./end_of_week/index.js */ "../../node_modules/date-fns/end_of_week/index.js"), - endOfYear: __webpack_require__(/*! ./end_of_year/index.js */ "../../node_modules/date-fns/end_of_year/index.js"), - endOfYesterday: __webpack_require__(/*! ./end_of_yesterday/index.js */ "../../node_modules/date-fns/end_of_yesterday/index.js"), - format: __webpack_require__(/*! ./format/index.js */ "../../node_modules/date-fns/format/index.js"), - getDate: __webpack_require__(/*! ./get_date/index.js */ "../../node_modules/date-fns/get_date/index.js"), - getDay: __webpack_require__(/*! ./get_day/index.js */ "../../node_modules/date-fns/get_day/index.js"), - getDayOfYear: __webpack_require__(/*! ./get_day_of_year/index.js */ "../../node_modules/date-fns/get_day_of_year/index.js"), - getDaysInMonth: __webpack_require__(/*! ./get_days_in_month/index.js */ "../../node_modules/date-fns/get_days_in_month/index.js"), - getDaysInYear: __webpack_require__(/*! ./get_days_in_year/index.js */ "../../node_modules/date-fns/get_days_in_year/index.js"), - getHours: __webpack_require__(/*! ./get_hours/index.js */ "../../node_modules/date-fns/get_hours/index.js"), - getISODay: __webpack_require__(/*! ./get_iso_day/index.js */ "../../node_modules/date-fns/get_iso_day/index.js"), - getISOWeek: __webpack_require__(/*! ./get_iso_week/index.js */ "../../node_modules/date-fns/get_iso_week/index.js"), - getISOWeeksInYear: __webpack_require__(/*! ./get_iso_weeks_in_year/index.js */ "../../node_modules/date-fns/get_iso_weeks_in_year/index.js"), - getISOYear: __webpack_require__(/*! ./get_iso_year/index.js */ "../../node_modules/date-fns/get_iso_year/index.js"), - getMilliseconds: __webpack_require__(/*! ./get_milliseconds/index.js */ "../../node_modules/date-fns/get_milliseconds/index.js"), - getMinutes: __webpack_require__(/*! ./get_minutes/index.js */ "../../node_modules/date-fns/get_minutes/index.js"), - getMonth: __webpack_require__(/*! ./get_month/index.js */ "../../node_modules/date-fns/get_month/index.js"), - getOverlappingDaysInRanges: __webpack_require__(/*! ./get_overlapping_days_in_ranges/index.js */ "../../node_modules/date-fns/get_overlapping_days_in_ranges/index.js"), - getQuarter: __webpack_require__(/*! ./get_quarter/index.js */ "../../node_modules/date-fns/get_quarter/index.js"), - getSeconds: __webpack_require__(/*! ./get_seconds/index.js */ "../../node_modules/date-fns/get_seconds/index.js"), - getTime: __webpack_require__(/*! ./get_time/index.js */ "../../node_modules/date-fns/get_time/index.js"), - getYear: __webpack_require__(/*! ./get_year/index.js */ "../../node_modules/date-fns/get_year/index.js"), - isAfter: __webpack_require__(/*! ./is_after/index.js */ "../../node_modules/date-fns/is_after/index.js"), - isBefore: __webpack_require__(/*! ./is_before/index.js */ "../../node_modules/date-fns/is_before/index.js"), - isDate: __webpack_require__(/*! ./is_date/index.js */ "../../node_modules/date-fns/is_date/index.js"), - isEqual: __webpack_require__(/*! ./is_equal/index.js */ "../../node_modules/date-fns/is_equal/index.js"), - isFirstDayOfMonth: __webpack_require__(/*! ./is_first_day_of_month/index.js */ "../../node_modules/date-fns/is_first_day_of_month/index.js"), - isFriday: __webpack_require__(/*! ./is_friday/index.js */ "../../node_modules/date-fns/is_friday/index.js"), - isFuture: __webpack_require__(/*! ./is_future/index.js */ "../../node_modules/date-fns/is_future/index.js"), - isLastDayOfMonth: __webpack_require__(/*! ./is_last_day_of_month/index.js */ "../../node_modules/date-fns/is_last_day_of_month/index.js"), - isLeapYear: __webpack_require__(/*! ./is_leap_year/index.js */ "../../node_modules/date-fns/is_leap_year/index.js"), - isMonday: __webpack_require__(/*! ./is_monday/index.js */ "../../node_modules/date-fns/is_monday/index.js"), - isPast: __webpack_require__(/*! ./is_past/index.js */ "../../node_modules/date-fns/is_past/index.js"), - isSameDay: __webpack_require__(/*! ./is_same_day/index.js */ "../../node_modules/date-fns/is_same_day/index.js"), - isSameHour: __webpack_require__(/*! ./is_same_hour/index.js */ "../../node_modules/date-fns/is_same_hour/index.js"), - isSameISOWeek: __webpack_require__(/*! ./is_same_iso_week/index.js */ "../../node_modules/date-fns/is_same_iso_week/index.js"), - isSameISOYear: __webpack_require__(/*! ./is_same_iso_year/index.js */ "../../node_modules/date-fns/is_same_iso_year/index.js"), - isSameMinute: __webpack_require__(/*! ./is_same_minute/index.js */ "../../node_modules/date-fns/is_same_minute/index.js"), - isSameMonth: __webpack_require__(/*! ./is_same_month/index.js */ "../../node_modules/date-fns/is_same_month/index.js"), - isSameQuarter: __webpack_require__(/*! ./is_same_quarter/index.js */ "../../node_modules/date-fns/is_same_quarter/index.js"), - isSameSecond: __webpack_require__(/*! ./is_same_second/index.js */ "../../node_modules/date-fns/is_same_second/index.js"), - isSameWeek: __webpack_require__(/*! ./is_same_week/index.js */ "../../node_modules/date-fns/is_same_week/index.js"), - isSameYear: __webpack_require__(/*! ./is_same_year/index.js */ "../../node_modules/date-fns/is_same_year/index.js"), - isSaturday: __webpack_require__(/*! ./is_saturday/index.js */ "../../node_modules/date-fns/is_saturday/index.js"), - isSunday: __webpack_require__(/*! ./is_sunday/index.js */ "../../node_modules/date-fns/is_sunday/index.js"), - isThisHour: __webpack_require__(/*! ./is_this_hour/index.js */ "../../node_modules/date-fns/is_this_hour/index.js"), - isThisISOWeek: __webpack_require__(/*! ./is_this_iso_week/index.js */ "../../node_modules/date-fns/is_this_iso_week/index.js"), - isThisISOYear: __webpack_require__(/*! ./is_this_iso_year/index.js */ "../../node_modules/date-fns/is_this_iso_year/index.js"), - isThisMinute: __webpack_require__(/*! ./is_this_minute/index.js */ "../../node_modules/date-fns/is_this_minute/index.js"), - isThisMonth: __webpack_require__(/*! ./is_this_month/index.js */ "../../node_modules/date-fns/is_this_month/index.js"), - isThisQuarter: __webpack_require__(/*! ./is_this_quarter/index.js */ "../../node_modules/date-fns/is_this_quarter/index.js"), - isThisSecond: __webpack_require__(/*! ./is_this_second/index.js */ "../../node_modules/date-fns/is_this_second/index.js"), - isThisWeek: __webpack_require__(/*! ./is_this_week/index.js */ "../../node_modules/date-fns/is_this_week/index.js"), - isThisYear: __webpack_require__(/*! ./is_this_year/index.js */ "../../node_modules/date-fns/is_this_year/index.js"), - isThursday: __webpack_require__(/*! ./is_thursday/index.js */ "../../node_modules/date-fns/is_thursday/index.js"), - isToday: __webpack_require__(/*! ./is_today/index.js */ "../../node_modules/date-fns/is_today/index.js"), - isTomorrow: __webpack_require__(/*! ./is_tomorrow/index.js */ "../../node_modules/date-fns/is_tomorrow/index.js"), - isTuesday: __webpack_require__(/*! ./is_tuesday/index.js */ "../../node_modules/date-fns/is_tuesday/index.js"), - isValid: __webpack_require__(/*! ./is_valid/index.js */ "../../node_modules/date-fns/is_valid/index.js"), - isWednesday: __webpack_require__(/*! ./is_wednesday/index.js */ "../../node_modules/date-fns/is_wednesday/index.js"), - isWeekend: __webpack_require__(/*! ./is_weekend/index.js */ "../../node_modules/date-fns/is_weekend/index.js"), - isWithinRange: __webpack_require__(/*! ./is_within_range/index.js */ "../../node_modules/date-fns/is_within_range/index.js"), - isYesterday: __webpack_require__(/*! ./is_yesterday/index.js */ "../../node_modules/date-fns/is_yesterday/index.js"), - lastDayOfISOWeek: __webpack_require__(/*! ./last_day_of_iso_week/index.js */ "../../node_modules/date-fns/last_day_of_iso_week/index.js"), - lastDayOfISOYear: __webpack_require__(/*! ./last_day_of_iso_year/index.js */ "../../node_modules/date-fns/last_day_of_iso_year/index.js"), - lastDayOfMonth: __webpack_require__(/*! ./last_day_of_month/index.js */ "../../node_modules/date-fns/last_day_of_month/index.js"), - lastDayOfQuarter: __webpack_require__(/*! ./last_day_of_quarter/index.js */ "../../node_modules/date-fns/last_day_of_quarter/index.js"), - lastDayOfWeek: __webpack_require__(/*! ./last_day_of_week/index.js */ "../../node_modules/date-fns/last_day_of_week/index.js"), - lastDayOfYear: __webpack_require__(/*! ./last_day_of_year/index.js */ "../../node_modules/date-fns/last_day_of_year/index.js"), - max: __webpack_require__(/*! ./max/index.js */ "../../node_modules/date-fns/max/index.js"), - min: __webpack_require__(/*! ./min/index.js */ "../../node_modules/date-fns/min/index.js"), - parse: __webpack_require__(/*! ./parse/index.js */ "../../node_modules/date-fns/parse/index.js"), - setDate: __webpack_require__(/*! ./set_date/index.js */ "../../node_modules/date-fns/set_date/index.js"), - setDay: __webpack_require__(/*! ./set_day/index.js */ "../../node_modules/date-fns/set_day/index.js"), - setDayOfYear: __webpack_require__(/*! ./set_day_of_year/index.js */ "../../node_modules/date-fns/set_day_of_year/index.js"), - setHours: __webpack_require__(/*! ./set_hours/index.js */ "../../node_modules/date-fns/set_hours/index.js"), - setISODay: __webpack_require__(/*! ./set_iso_day/index.js */ "../../node_modules/date-fns/set_iso_day/index.js"), - setISOWeek: __webpack_require__(/*! ./set_iso_week/index.js */ "../../node_modules/date-fns/set_iso_week/index.js"), - setISOYear: __webpack_require__(/*! ./set_iso_year/index.js */ "../../node_modules/date-fns/set_iso_year/index.js"), - setMilliseconds: __webpack_require__(/*! ./set_milliseconds/index.js */ "../../node_modules/date-fns/set_milliseconds/index.js"), - setMinutes: __webpack_require__(/*! ./set_minutes/index.js */ "../../node_modules/date-fns/set_minutes/index.js"), - setMonth: __webpack_require__(/*! ./set_month/index.js */ "../../node_modules/date-fns/set_month/index.js"), - setQuarter: __webpack_require__(/*! ./set_quarter/index.js */ "../../node_modules/date-fns/set_quarter/index.js"), - setSeconds: __webpack_require__(/*! ./set_seconds/index.js */ "../../node_modules/date-fns/set_seconds/index.js"), - setYear: __webpack_require__(/*! ./set_year/index.js */ "../../node_modules/date-fns/set_year/index.js"), - startOfDay: __webpack_require__(/*! ./start_of_day/index.js */ "../../node_modules/date-fns/start_of_day/index.js"), - startOfHour: __webpack_require__(/*! ./start_of_hour/index.js */ "../../node_modules/date-fns/start_of_hour/index.js"), - startOfISOWeek: __webpack_require__(/*! ./start_of_iso_week/index.js */ "../../node_modules/date-fns/start_of_iso_week/index.js"), - startOfISOYear: __webpack_require__(/*! ./start_of_iso_year/index.js */ "../../node_modules/date-fns/start_of_iso_year/index.js"), - startOfMinute: __webpack_require__(/*! ./start_of_minute/index.js */ "../../node_modules/date-fns/start_of_minute/index.js"), - startOfMonth: __webpack_require__(/*! ./start_of_month/index.js */ "../../node_modules/date-fns/start_of_month/index.js"), - startOfQuarter: __webpack_require__(/*! ./start_of_quarter/index.js */ "../../node_modules/date-fns/start_of_quarter/index.js"), - startOfSecond: __webpack_require__(/*! ./start_of_second/index.js */ "../../node_modules/date-fns/start_of_second/index.js"), - startOfToday: __webpack_require__(/*! ./start_of_today/index.js */ "../../node_modules/date-fns/start_of_today/index.js"), - startOfTomorrow: __webpack_require__(/*! ./start_of_tomorrow/index.js */ "../../node_modules/date-fns/start_of_tomorrow/index.js"), - startOfWeek: __webpack_require__(/*! ./start_of_week/index.js */ "../../node_modules/date-fns/start_of_week/index.js"), - startOfYear: __webpack_require__(/*! ./start_of_year/index.js */ "../../node_modules/date-fns/start_of_year/index.js"), - startOfYesterday: __webpack_require__(/*! ./start_of_yesterday/index.js */ "../../node_modules/date-fns/start_of_yesterday/index.js"), - subDays: __webpack_require__(/*! ./sub_days/index.js */ "../../node_modules/date-fns/sub_days/index.js"), - subHours: __webpack_require__(/*! ./sub_hours/index.js */ "../../node_modules/date-fns/sub_hours/index.js"), - subISOYears: __webpack_require__(/*! ./sub_iso_years/index.js */ "../../node_modules/date-fns/sub_iso_years/index.js"), - subMilliseconds: __webpack_require__(/*! ./sub_milliseconds/index.js */ "../../node_modules/date-fns/sub_milliseconds/index.js"), - subMinutes: __webpack_require__(/*! ./sub_minutes/index.js */ "../../node_modules/date-fns/sub_minutes/index.js"), - subMonths: __webpack_require__(/*! ./sub_months/index.js */ "../../node_modules/date-fns/sub_months/index.js"), - subQuarters: __webpack_require__(/*! ./sub_quarters/index.js */ "../../node_modules/date-fns/sub_quarters/index.js"), - subSeconds: __webpack_require__(/*! ./sub_seconds/index.js */ "../../node_modules/date-fns/sub_seconds/index.js"), - subWeeks: __webpack_require__(/*! ./sub_weeks/index.js */ "../../node_modules/date-fns/sub_weeks/index.js"), - subYears: __webpack_require__(/*! ./sub_years/index.js */ "../../node_modules/date-fns/sub_years/index.js") -} - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_after/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_after/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Is the first date after the second one? - * - * @description - * Is the first date after the second one? - * - * @param {Date|String|Number} date - the date that should be after the other one to return true - * @param {Date|String|Number} dateToCompare - the date to compare with - * @returns {Boolean} the first date is after the second date - * - * @example - * // Is 10 July 1989 after 11 February 1987? - * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) - * //=> true - */ -function isAfter (dirtyDate, dirtyDateToCompare) { - var date = parse(dirtyDate) - var dateToCompare = parse(dirtyDateToCompare) - return date.getTime() > dateToCompare.getTime() -} - -module.exports = isAfter - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_before/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_before/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Is the first date before the second one? - * - * @description - * Is the first date before the second one? - * - * @param {Date|String|Number} date - the date that should be before the other one to return true - * @param {Date|String|Number} dateToCompare - the date to compare with - * @returns {Boolean} the first date is before the second date - * - * @example - * // Is 10 July 1989 before 11 February 1987? - * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) - * //=> false - */ -function isBefore (dirtyDate, dirtyDateToCompare) { - var date = parse(dirtyDate) - var dateToCompare = parse(dirtyDateToCompare) - return date.getTime() < dateToCompare.getTime() -} - -module.exports = isBefore - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_date/index.js": -/*!*************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_date/index.js ***! - \*************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/** - * @category Common Helpers - * @summary Is the given argument an instance of Date? - * - * @description - * Is the given argument an instance of Date? - * - * @param {*} argument - the argument to check - * @returns {Boolean} the given argument is an instance of Date - * - * @example - * // Is 'mayonnaise' a Date? - * var result = isDate('mayonnaise') - * //=> false - */ -function isDate (argument) { - return argument instanceof Date -} - -module.exports = isDate - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_equal/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_equal/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Are the given dates equal? - * - * @description - * Are the given dates equal? - * - * @param {Date|String|Number} dateLeft - the first date to compare - * @param {Date|String|Number} dateRight - the second date to compare - * @returns {Boolean} the dates are equal - * - * @example - * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? - * var result = isEqual( - * new Date(2014, 6, 2, 6, 30, 45, 0) - * new Date(2014, 6, 2, 6, 30, 45, 500) - * ) - * //=> false - */ -function isEqual (dirtyLeftDate, dirtyRightDate) { - var dateLeft = parse(dirtyLeftDate) - var dateRight = parse(dirtyRightDate) - return dateLeft.getTime() === dateRight.getTime() -} - -module.exports = isEqual - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_first_day_of_month/index.js": -/*!***************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_first_day_of_month/index.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Month Helpers - * @summary Is the given date the first day of a month? - * - * @description - * Is the given date the first day of a month? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is the first day of a month - * - * @example - * // Is 1 September 2014 the first day of a month? - * var result = isFirstDayOfMonth(new Date(2014, 8, 1)) - * //=> true - */ -function isFirstDayOfMonth (dirtyDate) { - return parse(dirtyDate).getDate() === 1 -} - -module.exports = isFirstDayOfMonth - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_friday/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_friday/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Weekday Helpers - * @summary Is the given date Friday? - * - * @description - * Is the given date Friday? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is Friday - * - * @example - * // Is 26 September 2014 Friday? - * var result = isFriday(new Date(2014, 8, 26)) - * //=> true - */ -function isFriday (dirtyDate) { - return parse(dirtyDate).getDay() === 5 -} - -module.exports = isFriday - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_future/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_future/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Is the given date in the future? - * - * @description - * Is the given date in the future? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in the future - * - * @example - * // If today is 6 October 2014, is 31 December 2014 in the future? - * var result = isFuture(new Date(2014, 11, 31)) - * //=> true - */ -function isFuture (dirtyDate) { - return parse(dirtyDate).getTime() > new Date().getTime() -} - -module.exports = isFuture - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_last_day_of_month/index.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_last_day_of_month/index.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var endOfDay = __webpack_require__(/*! ../end_of_day/index.js */ "../../node_modules/date-fns/end_of_day/index.js") -var endOfMonth = __webpack_require__(/*! ../end_of_month/index.js */ "../../node_modules/date-fns/end_of_month/index.js") - -/** - * @category Month Helpers - * @summary Is the given date the last day of a month? - * - * @description - * Is the given date the last day of a month? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is the last day of a month - * - * @example - * // Is 28 February 2014 the last day of a month? - * var result = isLastDayOfMonth(new Date(2014, 1, 28)) - * //=> true - */ -function isLastDayOfMonth (dirtyDate) { - var date = parse(dirtyDate) - return endOfDay(date).getTime() === endOfMonth(date).getTime() -} - -module.exports = isLastDayOfMonth - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_leap_year/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_leap_year/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Year Helpers - * @summary Is the given date in the leap year? - * - * @description - * Is the given date in the leap year? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in the leap year - * - * @example - * // Is 1 September 2012 in the leap year? - * var result = isLeapYear(new Date(2012, 8, 1)) - * //=> true - */ -function isLeapYear (dirtyDate) { - var date = parse(dirtyDate) - var year = date.getFullYear() - return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0 -} - -module.exports = isLeapYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_monday/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_monday/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Weekday Helpers - * @summary Is the given date Monday? - * - * @description - * Is the given date Monday? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is Monday - * - * @example - * // Is 22 September 2014 Monday? - * var result = isMonday(new Date(2014, 8, 22)) - * //=> true - */ -function isMonday (dirtyDate) { - return parse(dirtyDate).getDay() === 1 -} - -module.exports = isMonday - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_past/index.js": -/*!*************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_past/index.js ***! - \*************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Is the given date in the past? - * - * @description - * Is the given date in the past? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in the past - * - * @example - * // If today is 6 October 2014, is 2 July 2014 in the past? - * var result = isPast(new Date(2014, 6, 2)) - * //=> true - */ -function isPast (dirtyDate) { - return parse(dirtyDate).getTime() < new Date().getTime() -} - -module.exports = isPast - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_same_day/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_same_day/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfDay = __webpack_require__(/*! ../start_of_day/index.js */ "../../node_modules/date-fns/start_of_day/index.js") - -/** - * @category Day Helpers - * @summary Are the given dates in the same day? - * - * @description - * Are the given dates in the same day? - * - * @param {Date|String|Number} dateLeft - the first date to check - * @param {Date|String|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same day - * - * @example - * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? - * var result = isSameDay( - * new Date(2014, 8, 4, 6, 0), - * new Date(2014, 8, 4, 18, 0) - * ) - * //=> true - */ -function isSameDay (dirtyDateLeft, dirtyDateRight) { - var dateLeftStartOfDay = startOfDay(dirtyDateLeft) - var dateRightStartOfDay = startOfDay(dirtyDateRight) - - return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime() -} - -module.exports = isSameDay - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_same_hour/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_same_hour/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfHour = __webpack_require__(/*! ../start_of_hour/index.js */ "../../node_modules/date-fns/start_of_hour/index.js") - -/** - * @category Hour Helpers - * @summary Are the given dates in the same hour? - * - * @description - * Are the given dates in the same hour? - * - * @param {Date|String|Number} dateLeft - the first date to check - * @param {Date|String|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same hour - * - * @example - * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? - * var result = isSameHour( - * new Date(2014, 8, 4, 6, 0), - * new Date(2014, 8, 4, 6, 30) - * ) - * //=> true - */ -function isSameHour (dirtyDateLeft, dirtyDateRight) { - var dateLeftStartOfHour = startOfHour(dirtyDateLeft) - var dateRightStartOfHour = startOfHour(dirtyDateRight) - - return dateLeftStartOfHour.getTime() === dateRightStartOfHour.getTime() -} - -module.exports = isSameHour - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_same_iso_week/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_same_iso_week/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isSameWeek = __webpack_require__(/*! ../is_same_week/index.js */ "../../node_modules/date-fns/is_same_week/index.js") - -/** - * @category ISO Week Helpers - * @summary Are the given dates in the same ISO week? - * - * @description - * Are the given dates in the same ISO week? - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} dateLeft - the first date to check - * @param {Date|String|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same ISO week - * - * @example - * // Are 1 September 2014 and 7 September 2014 in the same ISO week? - * var result = isSameISOWeek( - * new Date(2014, 8, 1), - * new Date(2014, 8, 7) - * ) - * //=> true - */ -function isSameISOWeek (dirtyDateLeft, dirtyDateRight) { - return isSameWeek(dirtyDateLeft, dirtyDateRight, {weekStartsOn: 1}) -} - -module.exports = isSameISOWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_same_iso_year/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_same_iso_year/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfISOYear = __webpack_require__(/*! ../start_of_iso_year/index.js */ "../../node_modules/date-fns/start_of_iso_year/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Are the given dates in the same ISO week-numbering year? - * - * @description - * Are the given dates in the same ISO week-numbering year? - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} dateLeft - the first date to check - * @param {Date|String|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same ISO week-numbering year - * - * @example - * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? - * var result = isSameISOYear( - * new Date(2003, 11, 29), - * new Date(2005, 0, 2) - * ) - * //=> true - */ -function isSameISOYear (dirtyDateLeft, dirtyDateRight) { - var dateLeftStartOfYear = startOfISOYear(dirtyDateLeft) - var dateRightStartOfYear = startOfISOYear(dirtyDateRight) - - return dateLeftStartOfYear.getTime() === dateRightStartOfYear.getTime() -} - -module.exports = isSameISOYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_same_minute/index.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_same_minute/index.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfMinute = __webpack_require__(/*! ../start_of_minute/index.js */ "../../node_modules/date-fns/start_of_minute/index.js") - -/** - * @category Minute Helpers - * @summary Are the given dates in the same minute? - * - * @description - * Are the given dates in the same minute? - * - * @param {Date|String|Number} dateLeft - the first date to check - * @param {Date|String|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same minute - * - * @example - * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 - * // in the same minute? - * var result = isSameMinute( - * new Date(2014, 8, 4, 6, 30), - * new Date(2014, 8, 4, 6, 30, 15) - * ) - * //=> true - */ -function isSameMinute (dirtyDateLeft, dirtyDateRight) { - var dateLeftStartOfMinute = startOfMinute(dirtyDateLeft) - var dateRightStartOfMinute = startOfMinute(dirtyDateRight) - - return dateLeftStartOfMinute.getTime() === dateRightStartOfMinute.getTime() -} - -module.exports = isSameMinute - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_same_month/index.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_same_month/index.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Month Helpers - * @summary Are the given dates in the same month? - * - * @description - * Are the given dates in the same month? - * - * @param {Date|String|Number} dateLeft - the first date to check - * @param {Date|String|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same month - * - * @example - * // Are 2 September 2014 and 25 September 2014 in the same month? - * var result = isSameMonth( - * new Date(2014, 8, 2), - * new Date(2014, 8, 25) - * ) - * //=> true - */ -function isSameMonth (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var dateRight = parse(dirtyDateRight) - return dateLeft.getFullYear() === dateRight.getFullYear() && - dateLeft.getMonth() === dateRight.getMonth() -} - -module.exports = isSameMonth - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_same_quarter/index.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_same_quarter/index.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfQuarter = __webpack_require__(/*! ../start_of_quarter/index.js */ "../../node_modules/date-fns/start_of_quarter/index.js") - -/** - * @category Quarter Helpers - * @summary Are the given dates in the same year quarter? - * - * @description - * Are the given dates in the same year quarter? - * - * @param {Date|String|Number} dateLeft - the first date to check - * @param {Date|String|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same quarter - * - * @example - * // Are 1 January 2014 and 8 March 2014 in the same quarter? - * var result = isSameQuarter( - * new Date(2014, 0, 1), - * new Date(2014, 2, 8) - * ) - * //=> true - */ -function isSameQuarter (dirtyDateLeft, dirtyDateRight) { - var dateLeftStartOfQuarter = startOfQuarter(dirtyDateLeft) - var dateRightStartOfQuarter = startOfQuarter(dirtyDateRight) - - return dateLeftStartOfQuarter.getTime() === dateRightStartOfQuarter.getTime() -} - -module.exports = isSameQuarter - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_same_second/index.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_same_second/index.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfSecond = __webpack_require__(/*! ../start_of_second/index.js */ "../../node_modules/date-fns/start_of_second/index.js") - -/** - * @category Second Helpers - * @summary Are the given dates in the same second? - * - * @description - * Are the given dates in the same second? - * - * @param {Date|String|Number} dateLeft - the first date to check - * @param {Date|String|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same second - * - * @example - * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 - * // in the same second? - * var result = isSameSecond( - * new Date(2014, 8, 4, 6, 30, 15), - * new Date(2014, 8, 4, 6, 30, 15, 500) - * ) - * //=> true - */ -function isSameSecond (dirtyDateLeft, dirtyDateRight) { - var dateLeftStartOfSecond = startOfSecond(dirtyDateLeft) - var dateRightStartOfSecond = startOfSecond(dirtyDateRight) - - return dateLeftStartOfSecond.getTime() === dateRightStartOfSecond.getTime() -} - -module.exports = isSameSecond - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_same_week/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_same_week/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfWeek = __webpack_require__(/*! ../start_of_week/index.js */ "../../node_modules/date-fns/start_of_week/index.js") - -/** - * @category Week Helpers - * @summary Are the given dates in the same week? - * - * @description - * Are the given dates in the same week? - * - * @param {Date|String|Number} dateLeft - the first date to check - * @param {Date|String|Number} dateRight - the second date to check - * @param {Object} [options] - the object with options - * @param {Number} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @returns {Boolean} the dates are in the same week - * - * @example - * // Are 31 August 2014 and 4 September 2014 in the same week? - * var result = isSameWeek( - * new Date(2014, 7, 31), - * new Date(2014, 8, 4) - * ) - * //=> true - * - * @example - * // If week starts with Monday, - * // are 31 August 2014 and 4 September 2014 in the same week? - * var result = isSameWeek( - * new Date(2014, 7, 31), - * new Date(2014, 8, 4), - * {weekStartsOn: 1} - * ) - * //=> false - */ -function isSameWeek (dirtyDateLeft, dirtyDateRight, dirtyOptions) { - var dateLeftStartOfWeek = startOfWeek(dirtyDateLeft, dirtyOptions) - var dateRightStartOfWeek = startOfWeek(dirtyDateRight, dirtyOptions) - - return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime() -} - -module.exports = isSameWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_same_year/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_same_year/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Year Helpers - * @summary Are the given dates in the same year? - * - * @description - * Are the given dates in the same year? - * - * @param {Date|String|Number} dateLeft - the first date to check - * @param {Date|String|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same year - * - * @example - * // Are 2 September 2014 and 25 September 2014 in the same year? - * var result = isSameYear( - * new Date(2014, 8, 2), - * new Date(2014, 8, 25) - * ) - * //=> true - */ -function isSameYear (dirtyDateLeft, dirtyDateRight) { - var dateLeft = parse(dirtyDateLeft) - var dateRight = parse(dirtyDateRight) - return dateLeft.getFullYear() === dateRight.getFullYear() -} - -module.exports = isSameYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_saturday/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_saturday/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Weekday Helpers - * @summary Is the given date Saturday? - * - * @description - * Is the given date Saturday? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is Saturday - * - * @example - * // Is 27 September 2014 Saturday? - * var result = isSaturday(new Date(2014, 8, 27)) - * //=> true - */ -function isSaturday (dirtyDate) { - return parse(dirtyDate).getDay() === 6 -} - -module.exports = isSaturday - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_sunday/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_sunday/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Weekday Helpers - * @summary Is the given date Sunday? - * - * @description - * Is the given date Sunday? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is Sunday - * - * @example - * // Is 21 September 2014 Sunday? - * var result = isSunday(new Date(2014, 8, 21)) - * //=> true - */ -function isSunday (dirtyDate) { - return parse(dirtyDate).getDay() === 0 -} - -module.exports = isSunday - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_this_hour/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_this_hour/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isSameHour = __webpack_require__(/*! ../is_same_hour/index.js */ "../../node_modules/date-fns/is_same_hour/index.js") - -/** - * @category Hour Helpers - * @summary Is the given date in the same hour as the current date? - * - * @description - * Is the given date in the same hour as the current date? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in this hour - * - * @example - * // If now is 25 September 2014 18:30:15.500, - * // is 25 September 2014 18:00:00 in this hour? - * var result = isThisHour(new Date(2014, 8, 25, 18)) - * //=> true - */ -function isThisHour (dirtyDate) { - return isSameHour(new Date(), dirtyDate) -} - -module.exports = isThisHour - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_this_iso_week/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_this_iso_week/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isSameISOWeek = __webpack_require__(/*! ../is_same_iso_week/index.js */ "../../node_modules/date-fns/is_same_iso_week/index.js") - -/** - * @category ISO Week Helpers - * @summary Is the given date in the same ISO week as the current date? - * - * @description - * Is the given date in the same ISO week as the current date? - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in this ISO week - * - * @example - * // If today is 25 September 2014, is 22 September 2014 in this ISO week? - * var result = isThisISOWeek(new Date(2014, 8, 22)) - * //=> true - */ -function isThisISOWeek (dirtyDate) { - return isSameISOWeek(new Date(), dirtyDate) -} - -module.exports = isThisISOWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_this_iso_year/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_this_iso_year/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isSameISOYear = __webpack_require__(/*! ../is_same_iso_year/index.js */ "../../node_modules/date-fns/is_same_iso_year/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Is the given date in the same ISO week-numbering year as the current date? - * - * @description - * Is the given date in the same ISO week-numbering year as the current date? - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in this ISO week-numbering year - * - * @example - * // If today is 25 September 2014, - * // is 30 December 2013 in this ISO week-numbering year? - * var result = isThisISOYear(new Date(2013, 11, 30)) - * //=> true - */ -function isThisISOYear (dirtyDate) { - return isSameISOYear(new Date(), dirtyDate) -} - -module.exports = isThisISOYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_this_minute/index.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_this_minute/index.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isSameMinute = __webpack_require__(/*! ../is_same_minute/index.js */ "../../node_modules/date-fns/is_same_minute/index.js") - -/** - * @category Minute Helpers - * @summary Is the given date in the same minute as the current date? - * - * @description - * Is the given date in the same minute as the current date? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in this minute - * - * @example - * // If now is 25 September 2014 18:30:15.500, - * // is 25 September 2014 18:30:00 in this minute? - * var result = isThisMinute(new Date(2014, 8, 25, 18, 30)) - * //=> true - */ -function isThisMinute (dirtyDate) { - return isSameMinute(new Date(), dirtyDate) -} - -module.exports = isThisMinute - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_this_month/index.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_this_month/index.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isSameMonth = __webpack_require__(/*! ../is_same_month/index.js */ "../../node_modules/date-fns/is_same_month/index.js") - -/** - * @category Month Helpers - * @summary Is the given date in the same month as the current date? - * - * @description - * Is the given date in the same month as the current date? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in this month - * - * @example - * // If today is 25 September 2014, is 15 September 2014 in this month? - * var result = isThisMonth(new Date(2014, 8, 15)) - * //=> true - */ -function isThisMonth (dirtyDate) { - return isSameMonth(new Date(), dirtyDate) -} - -module.exports = isThisMonth - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_this_quarter/index.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_this_quarter/index.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isSameQuarter = __webpack_require__(/*! ../is_same_quarter/index.js */ "../../node_modules/date-fns/is_same_quarter/index.js") - -/** - * @category Quarter Helpers - * @summary Is the given date in the same quarter as the current date? - * - * @description - * Is the given date in the same quarter as the current date? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in this quarter - * - * @example - * // If today is 25 September 2014, is 2 July 2014 in this quarter? - * var result = isThisQuarter(new Date(2014, 6, 2)) - * //=> true - */ -function isThisQuarter (dirtyDate) { - return isSameQuarter(new Date(), dirtyDate) -} - -module.exports = isThisQuarter - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_this_second/index.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_this_second/index.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isSameSecond = __webpack_require__(/*! ../is_same_second/index.js */ "../../node_modules/date-fns/is_same_second/index.js") - -/** - * @category Second Helpers - * @summary Is the given date in the same second as the current date? - * - * @description - * Is the given date in the same second as the current date? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in this second - * - * @example - * // If now is 25 September 2014 18:30:15.500, - * // is 25 September 2014 18:30:15.000 in this second? - * var result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15)) - * //=> true - */ -function isThisSecond (dirtyDate) { - return isSameSecond(new Date(), dirtyDate) -} - -module.exports = isThisSecond - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_this_week/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_this_week/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isSameWeek = __webpack_require__(/*! ../is_same_week/index.js */ "../../node_modules/date-fns/is_same_week/index.js") - -/** - * @category Week Helpers - * @summary Is the given date in the same week as the current date? - * - * @description - * Is the given date in the same week as the current date? - * - * @param {Date|String|Number} date - the date to check - * @param {Object} [options] - the object with options - * @param {Number} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @returns {Boolean} the date is in this week - * - * @example - * // If today is 25 September 2014, is 21 September 2014 in this week? - * var result = isThisWeek(new Date(2014, 8, 21)) - * //=> true - * - * @example - * // If today is 25 September 2014 and week starts with Monday - * // is 21 September 2014 in this week? - * var result = isThisWeek(new Date(2014, 8, 21), {weekStartsOn: 1}) - * //=> false - */ -function isThisWeek (dirtyDate, dirtyOptions) { - return isSameWeek(new Date(), dirtyDate, dirtyOptions) -} - -module.exports = isThisWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_this_year/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_this_year/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isSameYear = __webpack_require__(/*! ../is_same_year/index.js */ "../../node_modules/date-fns/is_same_year/index.js") - -/** - * @category Year Helpers - * @summary Is the given date in the same year as the current date? - * - * @description - * Is the given date in the same year as the current date? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is in this year - * - * @example - * // If today is 25 September 2014, is 2 July 2014 in this year? - * var result = isThisYear(new Date(2014, 6, 2)) - * //=> true - */ -function isThisYear (dirtyDate) { - return isSameYear(new Date(), dirtyDate) -} - -module.exports = isThisYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_thursday/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_thursday/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Weekday Helpers - * @summary Is the given date Thursday? - * - * @description - * Is the given date Thursday? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is Thursday - * - * @example - * // Is 25 September 2014 Thursday? - * var result = isThursday(new Date(2014, 8, 25)) - * //=> true - */ -function isThursday (dirtyDate) { - return parse(dirtyDate).getDay() === 4 -} - -module.exports = isThursday - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_today/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_today/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfDay = __webpack_require__(/*! ../start_of_day/index.js */ "../../node_modules/date-fns/start_of_day/index.js") - -/** - * @category Day Helpers - * @summary Is the given date today? - * - * @description - * Is the given date today? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is today - * - * @example - * // If today is 6 October 2014, is 6 October 14:00:00 today? - * var result = isToday(new Date(2014, 9, 6, 14, 0)) - * //=> true - */ -function isToday (dirtyDate) { - return startOfDay(dirtyDate).getTime() === startOfDay(new Date()).getTime() -} - -module.exports = isToday - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_tomorrow/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_tomorrow/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfDay = __webpack_require__(/*! ../start_of_day/index.js */ "../../node_modules/date-fns/start_of_day/index.js") - -/** - * @category Day Helpers - * @summary Is the given date tomorrow? - * - * @description - * Is the given date tomorrow? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is tomorrow - * - * @example - * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow? - * var result = isTomorrow(new Date(2014, 9, 7, 14, 0)) - * //=> true - */ -function isTomorrow (dirtyDate) { - var tomorrow = new Date() - tomorrow.setDate(tomorrow.getDate() + 1) - return startOfDay(dirtyDate).getTime() === startOfDay(tomorrow).getTime() -} - -module.exports = isTomorrow - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_tuesday/index.js": -/*!****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_tuesday/index.js ***! - \****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Weekday Helpers - * @summary Is the given date Tuesday? - * - * @description - * Is the given date Tuesday? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is Tuesday - * - * @example - * // Is 23 September 2014 Tuesday? - * var result = isTuesday(new Date(2014, 8, 23)) - * //=> true - */ -function isTuesday (dirtyDate) { - return parse(dirtyDate).getDay() === 2 -} - -module.exports = isTuesday - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_valid/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_valid/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var isDate = __webpack_require__(/*! ../is_date/index.js */ "../../node_modules/date-fns/is_date/index.js") - -/** - * @category Common Helpers - * @summary Is the given date valid? - * - * @description - * Returns false if argument is Invalid Date and true otherwise. - * Invalid Date is a Date, whose time value is NaN. - * - * Time value of Date: http://es5.github.io/#x15.9.1.1 - * - * @param {Date} date - the date to check - * @returns {Boolean} the date is valid - * @throws {TypeError} argument must be an instance of Date - * - * @example - * // For the valid date: - * var result = isValid(new Date(2014, 1, 31)) - * //=> true - * - * @example - * // For the invalid date: - * var result = isValid(new Date('')) - * //=> false - */ -function isValid (dirtyDate) { - if (isDate(dirtyDate)) { - return !isNaN(dirtyDate) - } else { - throw new TypeError(toString.call(dirtyDate) + ' is not an instance of Date') - } -} - -module.exports = isValid - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_wednesday/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_wednesday/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Weekday Helpers - * @summary Is the given date Wednesday? - * - * @description - * Is the given date Wednesday? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is Wednesday - * - * @example - * // Is 24 September 2014 Wednesday? - * var result = isWednesday(new Date(2014, 8, 24)) - * //=> true - */ -function isWednesday (dirtyDate) { - return parse(dirtyDate).getDay() === 3 -} - -module.exports = isWednesday - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_weekend/index.js": -/*!****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_weekend/index.js ***! - \****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Weekday Helpers - * @summary Does the given date fall on a weekend? - * - * @description - * Does the given date fall on a weekend? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date falls on a weekend - * - * @example - * // Does 5 October 2014 fall on a weekend? - * var result = isWeekend(new Date(2014, 9, 5)) - * //=> true - */ -function isWeekend (dirtyDate) { - var date = parse(dirtyDate) - var day = date.getDay() - return day === 0 || day === 6 -} - -module.exports = isWeekend - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_within_range/index.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_within_range/index.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Range Helpers - * @summary Is the given date within the range? - * - * @description - * Is the given date within the range? - * - * @param {Date|String|Number} date - the date to check - * @param {Date|String|Number} startDate - the start of range - * @param {Date|String|Number} endDate - the end of range - * @returns {Boolean} the date is within the range - * @throws {Error} startDate cannot be after endDate - * - * @example - * // For the date within the range: - * isWithinRange( - * new Date(2014, 0, 3), new Date(2014, 0, 1), new Date(2014, 0, 7) - * ) - * //=> true - * - * @example - * // For the date outside of the range: - * isWithinRange( - * new Date(2014, 0, 10), new Date(2014, 0, 1), new Date(2014, 0, 7) - * ) - * //=> false - */ -function isWithinRange (dirtyDate, dirtyStartDate, dirtyEndDate) { - var time = parse(dirtyDate).getTime() - var startTime = parse(dirtyStartDate).getTime() - var endTime = parse(dirtyEndDate).getTime() - - if (startTime > endTime) { - throw new Error('The start of the range cannot be after the end of the range') - } - - return time >= startTime && time <= endTime -} - -module.exports = isWithinRange - - -/***/ }), - -/***/ "../../node_modules/date-fns/is_yesterday/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/is_yesterday/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfDay = __webpack_require__(/*! ../start_of_day/index.js */ "../../node_modules/date-fns/start_of_day/index.js") - -/** - * @category Day Helpers - * @summary Is the given date yesterday? - * - * @description - * Is the given date yesterday? - * - * @param {Date|String|Number} date - the date to check - * @returns {Boolean} the date is yesterday - * - * @example - * // If today is 6 October 2014, is 5 October 14:00:00 yesterday? - * var result = isYesterday(new Date(2014, 9, 5, 14, 0)) - * //=> true - */ -function isYesterday (dirtyDate) { - var yesterday = new Date() - yesterday.setDate(yesterday.getDate() - 1) - return startOfDay(dirtyDate).getTime() === startOfDay(yesterday).getTime() -} - -module.exports = isYesterday - - -/***/ }), - -/***/ "../../node_modules/date-fns/last_day_of_iso_week/index.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/last_day_of_iso_week/index.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var lastDayOfWeek = __webpack_require__(/*! ../last_day_of_week/index.js */ "../../node_modules/date-fns/last_day_of_week/index.js") - -/** - * @category ISO Week Helpers - * @summary Return the last day of an ISO week for the given date. - * - * @description - * Return the last day of an ISO week for the given date. - * The result will be in the local timezone. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the last day of an ISO week - * - * @example - * // The last day of an ISO week for 2 September 2014 11:55:00: - * var result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Sun Sep 07 2014 00:00:00 - */ -function lastDayOfISOWeek (dirtyDate) { - return lastDayOfWeek(dirtyDate, {weekStartsOn: 1}) -} - -module.exports = lastDayOfISOWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/last_day_of_iso_year/index.js": -/*!**************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/last_day_of_iso_year/index.js ***! - \**************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var getISOYear = __webpack_require__(/*! ../get_iso_year/index.js */ "../../node_modules/date-fns/get_iso_year/index.js") -var startOfISOWeek = __webpack_require__(/*! ../start_of_iso_week/index.js */ "../../node_modules/date-fns/start_of_iso_week/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Return the last day of an ISO week-numbering year for the given date. - * - * @description - * Return the last day of an ISO week-numbering year, - * which always starts 3 days before the year's first Thursday. - * The result will be in the local timezone. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the end of an ISO week-numbering year - * - * @example - * // The last day of an ISO week-numbering year for 2 July 2005: - * var result = lastDayOfISOYear(new Date(2005, 6, 2)) - * //=> Sun Jan 01 2006 00:00:00 - */ -function lastDayOfISOYear (dirtyDate) { - var year = getISOYear(dirtyDate) - var fourthOfJanuary = new Date(0) - fourthOfJanuary.setFullYear(year + 1, 0, 4) - fourthOfJanuary.setHours(0, 0, 0, 0) - var date = startOfISOWeek(fourthOfJanuary) - date.setDate(date.getDate() - 1) - return date -} - -module.exports = lastDayOfISOYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/last_day_of_month/index.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/last_day_of_month/index.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Month Helpers - * @summary Return the last day of a month for the given date. - * - * @description - * Return the last day of a month for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the last day of a month - * - * @example - * // The last day of a month for 2 September 2014 11:55:00: - * var result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Tue Sep 30 2014 00:00:00 - */ -function lastDayOfMonth (dirtyDate) { - var date = parse(dirtyDate) - var month = date.getMonth() - date.setFullYear(date.getFullYear(), month + 1, 0) - date.setHours(0, 0, 0, 0) - return date -} - -module.exports = lastDayOfMonth - - -/***/ }), - -/***/ "../../node_modules/date-fns/last_day_of_quarter/index.js": -/*!*************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/last_day_of_quarter/index.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Quarter Helpers - * @summary Return the last day of a year quarter for the given date. - * - * @description - * Return the last day of a year quarter for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the last day of a quarter - * - * @example - * // The last day of a quarter for 2 September 2014 11:55:00: - * var result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Tue Sep 30 2014 00:00:00 - */ -function lastDayOfQuarter (dirtyDate) { - var date = parse(dirtyDate) - var currentMonth = date.getMonth() - var month = currentMonth - currentMonth % 3 + 3 - date.setMonth(month, 0) - date.setHours(0, 0, 0, 0) - return date -} - -module.exports = lastDayOfQuarter - - -/***/ }), - -/***/ "../../node_modules/date-fns/last_day_of_week/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/last_day_of_week/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Week Helpers - * @summary Return the last day of a week for the given date. - * - * @description - * Return the last day of a week for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @param {Object} [options] - the object with options - * @param {Number} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @returns {Date} the last day of a week - * - * @example - * // The last day of a week for 2 September 2014 11:55:00: - * var result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Sat Sep 06 2014 00:00:00 - * - * @example - * // If the week starts on Monday, the last day of the week for 2 September 2014 11:55:00: - * var result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0), {weekStartsOn: 1}) - * //=> Sun Sep 07 2014 00:00:00 - */ -function lastDayOfWeek (dirtyDate, dirtyOptions) { - var weekStartsOn = dirtyOptions ? (Number(dirtyOptions.weekStartsOn) || 0) : 0 - - var date = parse(dirtyDate) - var day = date.getDay() - var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn) - - date.setHours(0, 0, 0, 0) - date.setDate(date.getDate() + diff) - return date -} - -module.exports = lastDayOfWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/last_day_of_year/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/last_day_of_year/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Year Helpers - * @summary Return the last day of a year for the given date. - * - * @description - * Return the last day of a year for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the last day of a year - * - * @example - * // The last day of a year for 2 September 2014 11:55:00: - * var result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) - * //=> Wed Dec 31 2014 00:00:00 - */ -function lastDayOfYear (dirtyDate) { - var date = parse(dirtyDate) - var year = date.getFullYear() - date.setFullYear(year + 1, 0, 0) - date.setHours(0, 0, 0, 0) - return date -} - -module.exports = lastDayOfYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js": -/*!*************************************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js ***! - \*************************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -var commonFormatterKeys = [ - 'M', 'MM', 'Q', 'D', 'DD', 'DDD', 'DDDD', 'd', - 'E', 'W', 'WW', 'YY', 'YYYY', 'GG', 'GGGG', - 'H', 'HH', 'h', 'hh', 'm', 'mm', - 's', 'ss', 'S', 'SS', 'SSS', - 'Z', 'ZZ', 'X', 'x' -] - -function buildFormattingTokensRegExp (formatters) { - var formatterKeys = [] - for (var key in formatters) { - if (formatters.hasOwnProperty(key)) { - formatterKeys.push(key) - } - } - - var formattingTokens = commonFormatterKeys - .concat(formatterKeys) - .sort() - .reverse() - var formattingTokensRegExp = new RegExp( - '(\\[[^\\[]*\\])|(\\\\)?' + '(' + formattingTokens.join('|') + '|.)', 'g' - ) - - return formattingTokensRegExp -} - -module.exports = buildFormattingTokensRegExp - - -/***/ }), - -/***/ "../../node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js": -/*!**********************************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js ***! - \**********************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -function buildDistanceInWordsLocale () { - var distanceInWordsLocale = { - lessThanXSeconds: { - one: 'less than a second', - other: 'less than {{count}} seconds' - }, - - xSeconds: { - one: '1 second', - other: '{{count}} seconds' - }, - - halfAMinute: 'half a minute', - - lessThanXMinutes: { - one: 'less than a minute', - other: 'less than {{count}} minutes' - }, - - xMinutes: { - one: '1 minute', - other: '{{count}} minutes' - }, - - aboutXHours: { - one: 'about 1 hour', - other: 'about {{count}} hours' - }, - - xHours: { - one: '1 hour', - other: '{{count}} hours' - }, - - xDays: { - one: '1 day', - other: '{{count}} days' - }, - - aboutXMonths: { - one: 'about 1 month', - other: 'about {{count}} months' - }, - - xMonths: { - one: '1 month', - other: '{{count}} months' - }, - - aboutXYears: { - one: 'about 1 year', - other: 'about {{count}} years' - }, - - xYears: { - one: '1 year', - other: '{{count}} years' - }, - - overXYears: { - one: 'over 1 year', - other: 'over {{count}} years' - }, - - almostXYears: { - one: 'almost 1 year', - other: 'almost {{count}} years' - } - } - - function localize (token, count, options) { - options = options || {} - - var result - if (typeof distanceInWordsLocale[token] === 'string') { - result = distanceInWordsLocale[token] - } else if (count === 1) { - result = distanceInWordsLocale[token].one - } else { - result = distanceInWordsLocale[token].other.replace('{{count}}', count) - } - - if (options.addSuffix) { - if (options.comparison > 0) { - return 'in ' + result - } else { - return result + ' ago' - } - } - - return result - } - - return { - localize: localize - } -} - -module.exports = buildDistanceInWordsLocale - - -/***/ }), - -/***/ "../../node_modules/date-fns/locale/en/build_format_locale/index.js": -/*!***********************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/locale/en/build_format_locale/index.js ***! - \***********************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var buildFormattingTokensRegExp = __webpack_require__(/*! ../../_lib/build_formatting_tokens_reg_exp/index.js */ "../../node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js") - -function buildFormatLocale () { - // Note: in English, the names of days of the week and months are capitalized. - // If you are making a new locale based on this one, check if the same is true for the language you're working on. - // Generally, formatted dates should look like they are in the middle of a sentence, - // e.g. in Spanish language the weekdays and months should be in the lowercase. - var months3char = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] - var monthsFull = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] - var weekdays2char = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'] - var weekdays3char = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] - var weekdaysFull = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] - var meridiemUppercase = ['AM', 'PM'] - var meridiemLowercase = ['am', 'pm'] - var meridiemFull = ['a.m.', 'p.m.'] - - var formatters = { - // Month: Jan, Feb, ..., Dec - 'MMM': function (date) { - return months3char[date.getMonth()] - }, - - // Month: January, February, ..., December - 'MMMM': function (date) { - return monthsFull[date.getMonth()] - }, - - // Day of week: Su, Mo, ..., Sa - 'dd': function (date) { - return weekdays2char[date.getDay()] - }, - - // Day of week: Sun, Mon, ..., Sat - 'ddd': function (date) { - return weekdays3char[date.getDay()] - }, - - // Day of week: Sunday, Monday, ..., Saturday - 'dddd': function (date) { - return weekdaysFull[date.getDay()] - }, - - // AM, PM - 'A': function (date) { - return (date.getHours() / 12) >= 1 ? meridiemUppercase[1] : meridiemUppercase[0] - }, - - // am, pm - 'a': function (date) { - return (date.getHours() / 12) >= 1 ? meridiemLowercase[1] : meridiemLowercase[0] - }, - - // a.m., p.m. - 'aa': function (date) { - return (date.getHours() / 12) >= 1 ? meridiemFull[1] : meridiemFull[0] - } - } - - // Generate ordinal version of formatters: M -> Mo, D -> Do, etc. - var ordinalFormatters = ['M', 'D', 'DDD', 'd', 'Q', 'W'] - ordinalFormatters.forEach(function (formatterToken) { - formatters[formatterToken + 'o'] = function (date, formatters) { - return ordinal(formatters[formatterToken](date)) - } - }) - - return { - formatters: formatters, - formattingTokensRegExp: buildFormattingTokensRegExp(formatters) - } -} - -function ordinal (number) { - var rem100 = number % 100 - if (rem100 > 20 || rem100 < 10) { - switch (rem100 % 10) { - case 1: - return number + 'st' - case 2: - return number + 'nd' - case 3: - return number + 'rd' - } - } - return number + 'th' -} - -module.exports = buildFormatLocale - - -/***/ }), - -/***/ "../../node_modules/date-fns/locale/en/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/locale/en/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var buildDistanceInWordsLocale = __webpack_require__(/*! ./build_distance_in_words_locale/index.js */ "../../node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js") -var buildFormatLocale = __webpack_require__(/*! ./build_format_locale/index.js */ "../../node_modules/date-fns/locale/en/build_format_locale/index.js") - -/** - * @category Locales - * @summary English locale. - */ -module.exports = { - distanceInWords: buildDistanceInWordsLocale(), - format: buildFormatLocale() -} - - -/***/ }), - -/***/ "../../node_modules/date-fns/max/index.js": -/*!*********************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/max/index.js ***! - \*********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Return the latest of the given dates. - * - * @description - * Return the latest of the given dates. - * - * @param {...(Date|String|Number)} dates - the dates to compare - * @returns {Date} the latest of the dates - * - * @example - * // Which of these dates is the latest? - * var result = max( - * new Date(1989, 6, 10), - * new Date(1987, 1, 11), - * new Date(1995, 6, 2), - * new Date(1990, 0, 1) - * ) - * //=> Sun Jul 02 1995 00:00:00 - */ -function max () { - var dirtyDates = Array.prototype.slice.call(arguments) - var dates = dirtyDates.map(function (dirtyDate) { - return parse(dirtyDate) - }) - var latestTimestamp = Math.max.apply(null, dates) - return new Date(latestTimestamp) -} - -module.exports = max - - -/***/ }), - -/***/ "../../node_modules/date-fns/min/index.js": -/*!*********************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/min/index.js ***! - \*********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Common Helpers - * @summary Return the earliest of the given dates. - * - * @description - * Return the earliest of the given dates. - * - * @param {...(Date|String|Number)} dates - the dates to compare - * @returns {Date} the earliest of the dates - * - * @example - * // Which of these dates is the earliest? - * var result = min( - * new Date(1989, 6, 10), - * new Date(1987, 1, 11), - * new Date(1995, 6, 2), - * new Date(1990, 0, 1) - * ) - * //=> Wed Feb 11 1987 00:00:00 - */ -function min () { - var dirtyDates = Array.prototype.slice.call(arguments) - var dates = dirtyDates.map(function (dirtyDate) { - return parse(dirtyDate) - }) - var earliestTimestamp = Math.min.apply(null, dates) - return new Date(earliestTimestamp) -} - -module.exports = min - - -/***/ }), - -/***/ "../../node_modules/date-fns/parse/index.js": -/*!***********************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/parse/index.js ***! - \***********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var getTimezoneOffsetInMilliseconds = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js") -var isDate = __webpack_require__(/*! ../is_date/index.js */ "../../node_modules/date-fns/is_date/index.js") - -var MILLISECONDS_IN_HOUR = 3600000 -var MILLISECONDS_IN_MINUTE = 60000 -var DEFAULT_ADDITIONAL_DIGITS = 2 - -var parseTokenDateTimeDelimeter = /[T ]/ -var parseTokenPlainTime = /:/ - -// year tokens -var parseTokenYY = /^(\d{2})$/ -var parseTokensYYY = [ - /^([+-]\d{2})$/, // 0 additional digits - /^([+-]\d{3})$/, // 1 additional digit - /^([+-]\d{4})$/ // 2 additional digits -] - -var parseTokenYYYY = /^(\d{4})/ -var parseTokensYYYYY = [ - /^([+-]\d{4})/, // 0 additional digits - /^([+-]\d{5})/, // 1 additional digit - /^([+-]\d{6})/ // 2 additional digits -] - -// date tokens -var parseTokenMM = /^-(\d{2})$/ -var parseTokenDDD = /^-?(\d{3})$/ -var parseTokenMMDD = /^-?(\d{2})-?(\d{2})$/ -var parseTokenWww = /^-?W(\d{2})$/ -var parseTokenWwwD = /^-?W(\d{2})-?(\d{1})$/ - -// time tokens -var parseTokenHH = /^(\d{2}([.,]\d*)?)$/ -var parseTokenHHMM = /^(\d{2}):?(\d{2}([.,]\d*)?)$/ -var parseTokenHHMMSS = /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/ - -// timezone tokens -var parseTokenTimezone = /([Z+-].*)$/ -var parseTokenTimezoneZ = /^(Z)$/ -var parseTokenTimezoneHH = /^([+-])(\d{2})$/ -var parseTokenTimezoneHHMM = /^([+-])(\d{2}):?(\d{2})$/ - -/** - * @category Common Helpers - * @summary Convert the given argument to an instance of Date. - * - * @description - * Convert the given argument to an instance of Date. - * - * If the argument is an instance of Date, the function returns its clone. - * - * If the argument is a number, it is treated as a timestamp. - * - * If an argument is a string, the function tries to parse it. - * Function accepts complete ISO 8601 formats as well as partial implementations. - * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601 - * - * If all above fails, the function passes the given argument to Date constructor. - * - * @param {Date|String|Number} argument - the value to convert - * @param {Object} [options] - the object with options - * @param {0 | 1 | 2} [options.additionalDigits=2] - the additional number of digits in the extended year format - * @returns {Date} the parsed date in the local time zone - * - * @example - * // Convert string '2014-02-11T11:30:30' to date: - * var result = parse('2014-02-11T11:30:30') - * //=> Tue Feb 11 2014 11:30:30 - * - * @example - * // Parse string '+02014101', - * // if the additional number of digits in the extended year format is 1: - * var result = parse('+02014101', {additionalDigits: 1}) - * //=> Fri Apr 11 2014 00:00:00 - */ -function parse (argument, dirtyOptions) { - if (isDate(argument)) { - // Prevent the date to lose the milliseconds when passed to new Date() in IE10 - return new Date(argument.getTime()) - } else if (typeof argument !== 'string') { - return new Date(argument) - } - - var options = dirtyOptions || {} - var additionalDigits = options.additionalDigits - if (additionalDigits == null) { - additionalDigits = DEFAULT_ADDITIONAL_DIGITS - } else { - additionalDigits = Number(additionalDigits) - } - - var dateStrings = splitDateString(argument) - - var parseYearResult = parseYear(dateStrings.date, additionalDigits) - var year = parseYearResult.year - var restDateString = parseYearResult.restDateString - - var date = parseDate(restDateString, year) - - if (date) { - var timestamp = date.getTime() - var time = 0 - var offset - - if (dateStrings.time) { - time = parseTime(dateStrings.time) - } - - if (dateStrings.timezone) { - offset = parseTimezone(dateStrings.timezone) * MILLISECONDS_IN_MINUTE - } else { - var fullTime = timestamp + time - var fullTimeDate = new Date(fullTime) - - offset = getTimezoneOffsetInMilliseconds(fullTimeDate) - - // Adjust time when it's coming from DST - var fullTimeDateNextDay = new Date(fullTime) - fullTimeDateNextDay.setDate(fullTimeDate.getDate() + 1) - var offsetDiff = - getTimezoneOffsetInMilliseconds(fullTimeDateNextDay) - - getTimezoneOffsetInMilliseconds(fullTimeDate) - if (offsetDiff > 0) { - offset += offsetDiff - } - } - - return new Date(timestamp + time + offset) - } else { - return new Date(argument) - } -} - -function splitDateString (dateString) { - var dateStrings = {} - var array = dateString.split(parseTokenDateTimeDelimeter) - var timeString - - if (parseTokenPlainTime.test(array[0])) { - dateStrings.date = null - timeString = array[0] - } else { - dateStrings.date = array[0] - timeString = array[1] - } - - if (timeString) { - var token = parseTokenTimezone.exec(timeString) - if (token) { - dateStrings.time = timeString.replace(token[1], '') - dateStrings.timezone = token[1] - } else { - dateStrings.time = timeString - } - } - - return dateStrings -} - -function parseYear (dateString, additionalDigits) { - var parseTokenYYY = parseTokensYYY[additionalDigits] - var parseTokenYYYYY = parseTokensYYYYY[additionalDigits] - - var token - - // YYYY or ±YYYYY - token = parseTokenYYYY.exec(dateString) || parseTokenYYYYY.exec(dateString) - if (token) { - var yearString = token[1] - return { - year: parseInt(yearString, 10), - restDateString: dateString.slice(yearString.length) - } - } - - // YY or ±YYY - token = parseTokenYY.exec(dateString) || parseTokenYYY.exec(dateString) - if (token) { - var centuryString = token[1] - return { - year: parseInt(centuryString, 10) * 100, - restDateString: dateString.slice(centuryString.length) - } - } - - // Invalid ISO-formatted year - return { - year: null - } -} - -function parseDate (dateString, year) { - // Invalid ISO-formatted year - if (year === null) { - return null - } - - var token - var date - var month - var week - - // YYYY - if (dateString.length === 0) { - date = new Date(0) - date.setUTCFullYear(year) - return date - } - - // YYYY-MM - token = parseTokenMM.exec(dateString) - if (token) { - date = new Date(0) - month = parseInt(token[1], 10) - 1 - date.setUTCFullYear(year, month) - return date - } - - // YYYY-DDD or YYYYDDD - token = parseTokenDDD.exec(dateString) - if (token) { - date = new Date(0) - var dayOfYear = parseInt(token[1], 10) - date.setUTCFullYear(year, 0, dayOfYear) - return date - } - - // YYYY-MM-DD or YYYYMMDD - token = parseTokenMMDD.exec(dateString) - if (token) { - date = new Date(0) - month = parseInt(token[1], 10) - 1 - var day = parseInt(token[2], 10) - date.setUTCFullYear(year, month, day) - return date - } - - // YYYY-Www or YYYYWww - token = parseTokenWww.exec(dateString) - if (token) { - week = parseInt(token[1], 10) - 1 - return dayOfISOYear(year, week) - } - - // YYYY-Www-D or YYYYWwwD - token = parseTokenWwwD.exec(dateString) - if (token) { - week = parseInt(token[1], 10) - 1 - var dayOfWeek = parseInt(token[2], 10) - 1 - return dayOfISOYear(year, week, dayOfWeek) - } - - // Invalid ISO-formatted date - return null -} - -function parseTime (timeString) { - var token - var hours - var minutes - - // hh - token = parseTokenHH.exec(timeString) - if (token) { - hours = parseFloat(token[1].replace(',', '.')) - return (hours % 24) * MILLISECONDS_IN_HOUR - } - - // hh:mm or hhmm - token = parseTokenHHMM.exec(timeString) - if (token) { - hours = parseInt(token[1], 10) - minutes = parseFloat(token[2].replace(',', '.')) - return (hours % 24) * MILLISECONDS_IN_HOUR + - minutes * MILLISECONDS_IN_MINUTE - } - - // hh:mm:ss or hhmmss - token = parseTokenHHMMSS.exec(timeString) - if (token) { - hours = parseInt(token[1], 10) - minutes = parseInt(token[2], 10) - var seconds = parseFloat(token[3].replace(',', '.')) - return (hours % 24) * MILLISECONDS_IN_HOUR + - minutes * MILLISECONDS_IN_MINUTE + - seconds * 1000 - } - - // Invalid ISO-formatted time - return null -} - -function parseTimezone (timezoneString) { - var token - var absoluteOffset - - // Z - token = parseTokenTimezoneZ.exec(timezoneString) - if (token) { - return 0 - } - - // ±hh - token = parseTokenTimezoneHH.exec(timezoneString) - if (token) { - absoluteOffset = parseInt(token[2], 10) * 60 - return (token[1] === '+') ? -absoluteOffset : absoluteOffset - } - - // ±hh:mm or ±hhmm - token = parseTokenTimezoneHHMM.exec(timezoneString) - if (token) { - absoluteOffset = parseInt(token[2], 10) * 60 + parseInt(token[3], 10) - return (token[1] === '+') ? -absoluteOffset : absoluteOffset - } - - return 0 -} - -function dayOfISOYear (isoYear, week, day) { - week = week || 0 - day = day || 0 - var date = new Date(0) - date.setUTCFullYear(isoYear, 0, 4) - var fourthOfJanuaryDay = date.getUTCDay() || 7 - var diff = week * 7 + day + 1 - fourthOfJanuaryDay - date.setUTCDate(date.getUTCDate() + diff) - return date -} - -module.exports = parse - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_date/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_date/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Day Helpers - * @summary Set the day of the month to the given date. - * - * @description - * Set the day of the month to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} dayOfMonth - the day of the month of the new date - * @returns {Date} the new date with the day of the month setted - * - * @example - * // Set the 30th day of the month to 1 September 2014: - * var result = setDate(new Date(2014, 8, 1), 30) - * //=> Tue Sep 30 2014 00:00:00 - */ -function setDate (dirtyDate, dirtyDayOfMonth) { - var date = parse(dirtyDate) - var dayOfMonth = Number(dirtyDayOfMonth) - date.setDate(dayOfMonth) - return date -} - -module.exports = setDate - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_day/index.js": -/*!*************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_day/index.js ***! - \*************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var addDays = __webpack_require__(/*! ../add_days/index.js */ "../../node_modules/date-fns/add_days/index.js") - -/** - * @category Weekday Helpers - * @summary Set the day of the week to the given date. - * - * @description - * Set the day of the week to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} day - the day of the week of the new date - * @param {Object} [options] - the object with options - * @param {Number} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @returns {Date} the new date with the day of the week setted - * - * @example - * // Set Sunday to 1 September 2014: - * var result = setDay(new Date(2014, 8, 1), 0) - * //=> Sun Aug 31 2014 00:00:00 - * - * @example - * // If week starts with Monday, set Sunday to 1 September 2014: - * var result = setDay(new Date(2014, 8, 1), 0, {weekStartsOn: 1}) - * //=> Sun Sep 07 2014 00:00:00 - */ -function setDay (dirtyDate, dirtyDay, dirtyOptions) { - var weekStartsOn = dirtyOptions ? (Number(dirtyOptions.weekStartsOn) || 0) : 0 - var date = parse(dirtyDate) - var day = Number(dirtyDay) - var currentDay = date.getDay() - - var remainder = day % 7 - var dayIndex = (remainder + 7) % 7 - - var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay - return addDays(date, diff) -} - -module.exports = setDay - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_day_of_year/index.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_day_of_year/index.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Day Helpers - * @summary Set the day of the year to the given date. - * - * @description - * Set the day of the year to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} dayOfYear - the day of the year of the new date - * @returns {Date} the new date with the day of the year setted - * - * @example - * // Set the 2nd day of the year to 2 July 2014: - * var result = setDayOfYear(new Date(2014, 6, 2), 2) - * //=> Thu Jan 02 2014 00:00:00 - */ -function setDayOfYear (dirtyDate, dirtyDayOfYear) { - var date = parse(dirtyDate) - var dayOfYear = Number(dirtyDayOfYear) - date.setMonth(0) - date.setDate(dayOfYear) - return date -} - -module.exports = setDayOfYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_hours/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_hours/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Hour Helpers - * @summary Set the hours to the given date. - * - * @description - * Set the hours to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} hours - the hours of the new date - * @returns {Date} the new date with the hours setted - * - * @example - * // Set 4 hours to 1 September 2014 11:30:00: - * var result = setHours(new Date(2014, 8, 1, 11, 30), 4) - * //=> Mon Sep 01 2014 04:30:00 - */ -function setHours (dirtyDate, dirtyHours) { - var date = parse(dirtyDate) - var hours = Number(dirtyHours) - date.setHours(hours) - return date -} - -module.exports = setHours - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_iso_day/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_iso_day/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var addDays = __webpack_require__(/*! ../add_days/index.js */ "../../node_modules/date-fns/add_days/index.js") -var getISODay = __webpack_require__(/*! ../get_iso_day/index.js */ "../../node_modules/date-fns/get_iso_day/index.js") - -/** - * @category Weekday Helpers - * @summary Set the day of the ISO week to the given date. - * - * @description - * Set the day of the ISO week to the given date. - * ISO week starts with Monday. - * 7 is the index of Sunday, 1 is the index of Monday etc. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} day - the day of the ISO week of the new date - * @returns {Date} the new date with the day of the ISO week setted - * - * @example - * // Set Sunday to 1 September 2014: - * var result = setISODay(new Date(2014, 8, 1), 7) - * //=> Sun Sep 07 2014 00:00:00 - */ -function setISODay (dirtyDate, dirtyDay) { - var date = parse(dirtyDate) - var day = Number(dirtyDay) - var currentDay = getISODay(date) - var diff = day - currentDay - return addDays(date, diff) -} - -module.exports = setISODay - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_iso_week/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_iso_week/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var getISOWeek = __webpack_require__(/*! ../get_iso_week/index.js */ "../../node_modules/date-fns/get_iso_week/index.js") - -/** - * @category ISO Week Helpers - * @summary Set the ISO week to the given date. - * - * @description - * Set the ISO week to the given date, saving the weekday number. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} isoWeek - the ISO week of the new date - * @returns {Date} the new date with the ISO week setted - * - * @example - * // Set the 53rd ISO week to 7 August 2004: - * var result = setISOWeek(new Date(2004, 7, 7), 53) - * //=> Sat Jan 01 2005 00:00:00 - */ -function setISOWeek (dirtyDate, dirtyISOWeek) { - var date = parse(dirtyDate) - var isoWeek = Number(dirtyISOWeek) - var diff = getISOWeek(date) - isoWeek - date.setDate(date.getDate() - diff * 7) - return date -} - -module.exports = setISOWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_iso_year/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_iso_year/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var startOfISOYear = __webpack_require__(/*! ../start_of_iso_year/index.js */ "../../node_modules/date-fns/start_of_iso_year/index.js") -var differenceInCalendarDays = __webpack_require__(/*! ../difference_in_calendar_days/index.js */ "../../node_modules/date-fns/difference_in_calendar_days/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Set the ISO week-numbering year to the given date. - * - * @description - * Set the ISO week-numbering year to the given date, - * saving the week number and the weekday number. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} isoYear - the ISO week-numbering year of the new date - * @returns {Date} the new date with the ISO week-numbering year setted - * - * @example - * // Set ISO week-numbering year 2007 to 29 December 2008: - * var result = setISOYear(new Date(2008, 11, 29), 2007) - * //=> Mon Jan 01 2007 00:00:00 - */ -function setISOYear (dirtyDate, dirtyISOYear) { - var date = parse(dirtyDate) - var isoYear = Number(dirtyISOYear) - var diff = differenceInCalendarDays(date, startOfISOYear(date)) - var fourthOfJanuary = new Date(0) - fourthOfJanuary.setFullYear(isoYear, 0, 4) - fourthOfJanuary.setHours(0, 0, 0, 0) - date = startOfISOYear(fourthOfJanuary) - date.setDate(date.getDate() + diff) - return date -} - -module.exports = setISOYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_milliseconds/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_milliseconds/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Millisecond Helpers - * @summary Set the milliseconds to the given date. - * - * @description - * Set the milliseconds to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} milliseconds - the milliseconds of the new date - * @returns {Date} the new date with the milliseconds setted - * - * @example - * // Set 300 milliseconds to 1 September 2014 11:30:40.500: - * var result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300) - * //=> Mon Sep 01 2014 11:30:40.300 - */ -function setMilliseconds (dirtyDate, dirtyMilliseconds) { - var date = parse(dirtyDate) - var milliseconds = Number(dirtyMilliseconds) - date.setMilliseconds(milliseconds) - return date -} - -module.exports = setMilliseconds - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_minutes/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_minutes/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Minute Helpers - * @summary Set the minutes to the given date. - * - * @description - * Set the minutes to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} minutes - the minutes of the new date - * @returns {Date} the new date with the minutes setted - * - * @example - * // Set 45 minutes to 1 September 2014 11:30:40: - * var result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45) - * //=> Mon Sep 01 2014 11:45:40 - */ -function setMinutes (dirtyDate, dirtyMinutes) { - var date = parse(dirtyDate) - var minutes = Number(dirtyMinutes) - date.setMinutes(minutes) - return date -} - -module.exports = setMinutes - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_month/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_month/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var getDaysInMonth = __webpack_require__(/*! ../get_days_in_month/index.js */ "../../node_modules/date-fns/get_days_in_month/index.js") - -/** - * @category Month Helpers - * @summary Set the month to the given date. - * - * @description - * Set the month to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} month - the month of the new date - * @returns {Date} the new date with the month setted - * - * @example - * // Set February to 1 September 2014: - * var result = setMonth(new Date(2014, 8, 1), 1) - * //=> Sat Feb 01 2014 00:00:00 - */ -function setMonth (dirtyDate, dirtyMonth) { - var date = parse(dirtyDate) - var month = Number(dirtyMonth) - var year = date.getFullYear() - var day = date.getDate() - - var dateWithDesiredMonth = new Date(0) - dateWithDesiredMonth.setFullYear(year, month, 15) - dateWithDesiredMonth.setHours(0, 0, 0, 0) - var daysInMonth = getDaysInMonth(dateWithDesiredMonth) - // Set the last day of the new month - // if the original date was the last day of the longer month - date.setMonth(month, Math.min(day, daysInMonth)) - return date -} - -module.exports = setMonth - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_quarter/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_quarter/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") -var setMonth = __webpack_require__(/*! ../set_month/index.js */ "../../node_modules/date-fns/set_month/index.js") - -/** - * @category Quarter Helpers - * @summary Set the year quarter to the given date. - * - * @description - * Set the year quarter to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} quarter - the quarter of the new date - * @returns {Date} the new date with the quarter setted - * - * @example - * // Set the 2nd quarter to 2 July 2014: - * var result = setQuarter(new Date(2014, 6, 2), 2) - * //=> Wed Apr 02 2014 00:00:00 - */ -function setQuarter (dirtyDate, dirtyQuarter) { - var date = parse(dirtyDate) - var quarter = Number(dirtyQuarter) - var oldQuarter = Math.floor(date.getMonth() / 3) + 1 - var diff = quarter - oldQuarter - return setMonth(date, date.getMonth() + diff * 3) -} - -module.exports = setQuarter - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_seconds/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_seconds/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Second Helpers - * @summary Set the seconds to the given date. - * - * @description - * Set the seconds to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} seconds - the seconds of the new date - * @returns {Date} the new date with the seconds setted - * - * @example - * // Set 45 seconds to 1 September 2014 11:30:40: - * var result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45) - * //=> Mon Sep 01 2014 11:30:45 - */ -function setSeconds (dirtyDate, dirtySeconds) { - var date = parse(dirtyDate) - var seconds = Number(dirtySeconds) - date.setSeconds(seconds) - return date -} - -module.exports = setSeconds - - -/***/ }), - -/***/ "../../node_modules/date-fns/set_year/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/set_year/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Year Helpers - * @summary Set the year to the given date. - * - * @description - * Set the year to the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} year - the year of the new date - * @returns {Date} the new date with the year setted - * - * @example - * // Set year 2013 to 1 September 2014: - * var result = setYear(new Date(2014, 8, 1), 2013) - * //=> Sun Sep 01 2013 00:00:00 - */ -function setYear (dirtyDate, dirtyYear) { - var date = parse(dirtyDate) - var year = Number(dirtyYear) - date.setFullYear(year) - return date -} - -module.exports = setYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_day/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_day/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Day Helpers - * @summary Return the start of a day for the given date. - * - * @description - * Return the start of a day for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the start of a day - * - * @example - * // The start of a day for 2 September 2014 11:55:00: - * var result = startOfDay(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Tue Sep 02 2014 00:00:00 - */ -function startOfDay (dirtyDate) { - var date = parse(dirtyDate) - date.setHours(0, 0, 0, 0) - return date -} - -module.exports = startOfDay - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_hour/index.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_hour/index.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Hour Helpers - * @summary Return the start of an hour for the given date. - * - * @description - * Return the start of an hour for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the start of an hour - * - * @example - * // The start of an hour for 2 September 2014 11:55:00: - * var result = startOfHour(new Date(2014, 8, 2, 11, 55)) - * //=> Tue Sep 02 2014 11:00:00 - */ -function startOfHour (dirtyDate) { - var date = parse(dirtyDate) - date.setMinutes(0, 0, 0) - return date -} - -module.exports = startOfHour - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_iso_week/index.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_iso_week/index.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfWeek = __webpack_require__(/*! ../start_of_week/index.js */ "../../node_modules/date-fns/start_of_week/index.js") - -/** - * @category ISO Week Helpers - * @summary Return the start of an ISO week for the given date. - * - * @description - * Return the start of an ISO week for the given date. - * The result will be in the local timezone. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the start of an ISO week - * - * @example - * // The start of an ISO week for 2 September 2014 11:55:00: - * var result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Mon Sep 01 2014 00:00:00 - */ -function startOfISOWeek (dirtyDate) { - return startOfWeek(dirtyDate, {weekStartsOn: 1}) -} - -module.exports = startOfISOWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_iso_year/index.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_iso_year/index.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var getISOYear = __webpack_require__(/*! ../get_iso_year/index.js */ "../../node_modules/date-fns/get_iso_year/index.js") -var startOfISOWeek = __webpack_require__(/*! ../start_of_iso_week/index.js */ "../../node_modules/date-fns/start_of_iso_week/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Return the start of an ISO week-numbering year for the given date. - * - * @description - * Return the start of an ISO week-numbering year, - * which always starts 3 days before the year's first Thursday. - * The result will be in the local timezone. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the start of an ISO year - * - * @example - * // The start of an ISO week-numbering year for 2 July 2005: - * var result = startOfISOYear(new Date(2005, 6, 2)) - * //=> Mon Jan 03 2005 00:00:00 - */ -function startOfISOYear (dirtyDate) { - var year = getISOYear(dirtyDate) - var fourthOfJanuary = new Date(0) - fourthOfJanuary.setFullYear(year, 0, 4) - fourthOfJanuary.setHours(0, 0, 0, 0) - var date = startOfISOWeek(fourthOfJanuary) - return date -} - -module.exports = startOfISOYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_minute/index.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_minute/index.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Minute Helpers - * @summary Return the start of a minute for the given date. - * - * @description - * Return the start of a minute for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the start of a minute - * - * @example - * // The start of a minute for 1 December 2014 22:15:45.400: - * var result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) - * //=> Mon Dec 01 2014 22:15:00 - */ -function startOfMinute (dirtyDate) { - var date = parse(dirtyDate) - date.setSeconds(0, 0) - return date -} - -module.exports = startOfMinute - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_month/index.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_month/index.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Month Helpers - * @summary Return the start of a month for the given date. - * - * @description - * Return the start of a month for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the start of a month - * - * @example - * // The start of a month for 2 September 2014 11:55:00: - * var result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Mon Sep 01 2014 00:00:00 - */ -function startOfMonth (dirtyDate) { - var date = parse(dirtyDate) - date.setDate(1) - date.setHours(0, 0, 0, 0) - return date -} - -module.exports = startOfMonth - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_quarter/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_quarter/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Quarter Helpers - * @summary Return the start of a year quarter for the given date. - * - * @description - * Return the start of a year quarter for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the start of a quarter - * - * @example - * // The start of a quarter for 2 September 2014 11:55:00: - * var result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Tue Jul 01 2014 00:00:00 - */ -function startOfQuarter (dirtyDate) { - var date = parse(dirtyDate) - var currentMonth = date.getMonth() - var month = currentMonth - currentMonth % 3 - date.setMonth(month, 1) - date.setHours(0, 0, 0, 0) - return date -} - -module.exports = startOfQuarter - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_second/index.js": -/*!*********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_second/index.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Second Helpers - * @summary Return the start of a second for the given date. - * - * @description - * Return the start of a second for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the start of a second - * - * @example - * // The start of a second for 1 December 2014 22:15:45.400: - * var result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) - * //=> Mon Dec 01 2014 22:15:45.000 - */ -function startOfSecond (dirtyDate) { - var date = parse(dirtyDate) - date.setMilliseconds(0) - return date -} - -module.exports = startOfSecond - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_today/index.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_today/index.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var startOfDay = __webpack_require__(/*! ../start_of_day/index.js */ "../../node_modules/date-fns/start_of_day/index.js") - -/** - * @category Day Helpers - * @summary Return the start of today. - * - * @description - * Return the start of today. - * - * @returns {Date} the start of today - * - * @example - * // If today is 6 October 2014: - * var result = startOfToday() - * //=> Mon Oct 6 2014 00:00:00 - */ -function startOfToday () { - return startOfDay(new Date()) -} - -module.exports = startOfToday - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_tomorrow/index.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_tomorrow/index.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/** - * @category Day Helpers - * @summary Return the start of tomorrow. - * - * @description - * Return the start of tomorrow. - * - * @returns {Date} the start of tomorrow - * - * @example - * // If today is 6 October 2014: - * var result = startOfTomorrow() - * //=> Tue Oct 7 2014 00:00:00 - */ -function startOfTomorrow () { - var now = new Date() - var year = now.getFullYear() - var month = now.getMonth() - var day = now.getDate() - - var date = new Date(0) - date.setFullYear(year, month, day + 1) - date.setHours(0, 0, 0, 0) - return date -} - -module.exports = startOfTomorrow - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_week/index.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_week/index.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Week Helpers - * @summary Return the start of a week for the given date. - * - * @description - * Return the start of a week for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @param {Object} [options] - the object with options - * @param {Number} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @returns {Date} the start of a week - * - * @example - * // The start of a week for 2 September 2014 11:55:00: - * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Sun Aug 31 2014 00:00:00 - * - * @example - * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: - * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), {weekStartsOn: 1}) - * //=> Mon Sep 01 2014 00:00:00 - */ -function startOfWeek (dirtyDate, dirtyOptions) { - var weekStartsOn = dirtyOptions ? (Number(dirtyOptions.weekStartsOn) || 0) : 0 - - var date = parse(dirtyDate) - var day = date.getDay() - var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn - - date.setDate(date.getDate() - diff) - date.setHours(0, 0, 0, 0) - return date -} - -module.exports = startOfWeek - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_year/index.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_year/index.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var parse = __webpack_require__(/*! ../parse/index.js */ "../../node_modules/date-fns/parse/index.js") - -/** - * @category Year Helpers - * @summary Return the start of a year for the given date. - * - * @description - * Return the start of a year for the given date. - * The result will be in the local timezone. - * - * @param {Date|String|Number} date - the original date - * @returns {Date} the start of a year - * - * @example - * // The start of a year for 2 September 2014 11:55:00: - * var result = startOfYear(new Date(2014, 8, 2, 11, 55, 00)) - * //=> Wed Jan 01 2014 00:00:00 - */ -function startOfYear (dirtyDate) { - var cleanDate = parse(dirtyDate) - var date = new Date(0) - date.setFullYear(cleanDate.getFullYear(), 0, 1) - date.setHours(0, 0, 0, 0) - return date -} - -module.exports = startOfYear - - -/***/ }), - -/***/ "../../node_modules/date-fns/start_of_yesterday/index.js": -/*!************************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/start_of_yesterday/index.js ***! - \************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/** - * @category Day Helpers - * @summary Return the start of yesterday. - * - * @description - * Return the start of yesterday. - * - * @returns {Date} the start of yesterday - * - * @example - * // If today is 6 October 2014: - * var result = startOfYesterday() - * //=> Sun Oct 5 2014 00:00:00 - */ -function startOfYesterday () { - var now = new Date() - var year = now.getFullYear() - var month = now.getMonth() - var day = now.getDate() - - var date = new Date(0) - date.setFullYear(year, month, day - 1) - date.setHours(0, 0, 0, 0) - return date -} - -module.exports = startOfYesterday - - -/***/ }), - -/***/ "../../node_modules/date-fns/sub_days/index.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/sub_days/index.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addDays = __webpack_require__(/*! ../add_days/index.js */ "../../node_modules/date-fns/add_days/index.js") - -/** - * @category Day Helpers - * @summary Subtract the specified number of days from the given date. - * - * @description - * Subtract the specified number of days from the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of days to be subtracted - * @returns {Date} the new date with the days subtracted - * - * @example - * // Subtract 10 days from 1 September 2014: - * var result = subDays(new Date(2014, 8, 1), 10) - * //=> Fri Aug 22 2014 00:00:00 - */ -function subDays (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addDays(dirtyDate, -amount) -} - -module.exports = subDays - - -/***/ }), - -/***/ "../../node_modules/date-fns/sub_hours/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/sub_hours/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addHours = __webpack_require__(/*! ../add_hours/index.js */ "../../node_modules/date-fns/add_hours/index.js") - -/** - * @category Hour Helpers - * @summary Subtract the specified number of hours from the given date. - * - * @description - * Subtract the specified number of hours from the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of hours to be subtracted - * @returns {Date} the new date with the hours subtracted - * - * @example - * // Subtract 2 hours from 11 July 2014 01:00:00: - * var result = subHours(new Date(2014, 6, 11, 1, 0), 2) - * //=> Thu Jul 10 2014 23:00:00 - */ -function subHours (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addHours(dirtyDate, -amount) -} - -module.exports = subHours - - -/***/ }), - -/***/ "../../node_modules/date-fns/sub_iso_years/index.js": -/*!*******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/sub_iso_years/index.js ***! - \*******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addISOYears = __webpack_require__(/*! ../add_iso_years/index.js */ "../../node_modules/date-fns/add_iso_years/index.js") - -/** - * @category ISO Week-Numbering Year Helpers - * @summary Subtract the specified number of ISO week-numbering years from the given date. - * - * @description - * Subtract the specified number of ISO week-numbering years from the given date. - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of ISO week-numbering years to be subtracted - * @returns {Date} the new date with the ISO week-numbering years subtracted - * - * @example - * // Subtract 5 ISO week-numbering years from 1 September 2014: - * var result = subISOYears(new Date(2014, 8, 1), 5) - * //=> Mon Aug 31 2009 00:00:00 - */ -function subISOYears (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addISOYears(dirtyDate, -amount) -} - -module.exports = subISOYears - - -/***/ }), - -/***/ "../../node_modules/date-fns/sub_milliseconds/index.js": -/*!**********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/sub_milliseconds/index.js ***! - \**********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addMilliseconds = __webpack_require__(/*! ../add_milliseconds/index.js */ "../../node_modules/date-fns/add_milliseconds/index.js") - -/** - * @category Millisecond Helpers - * @summary Subtract the specified number of milliseconds from the given date. - * - * @description - * Subtract the specified number of milliseconds from the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of milliseconds to be subtracted - * @returns {Date} the new date with the milliseconds subtracted - * - * @example - * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000: - * var result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) - * //=> Thu Jul 10 2014 12:45:29.250 - */ -function subMilliseconds (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addMilliseconds(dirtyDate, -amount) -} - -module.exports = subMilliseconds - - -/***/ }), - -/***/ "../../node_modules/date-fns/sub_minutes/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/sub_minutes/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addMinutes = __webpack_require__(/*! ../add_minutes/index.js */ "../../node_modules/date-fns/add_minutes/index.js") - -/** - * @category Minute Helpers - * @summary Subtract the specified number of minutes from the given date. - * - * @description - * Subtract the specified number of minutes from the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of minutes to be subtracted - * @returns {Date} the new date with the mintues subtracted - * - * @example - * // Subtract 30 minutes from 10 July 2014 12:00:00: - * var result = subMinutes(new Date(2014, 6, 10, 12, 0), 30) - * //=> Thu Jul 10 2014 11:30:00 - */ -function subMinutes (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addMinutes(dirtyDate, -amount) -} - -module.exports = subMinutes - - -/***/ }), - -/***/ "../../node_modules/date-fns/sub_months/index.js": -/*!****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/sub_months/index.js ***! - \****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addMonths = __webpack_require__(/*! ../add_months/index.js */ "../../node_modules/date-fns/add_months/index.js") - -/** - * @category Month Helpers - * @summary Subtract the specified number of months from the given date. - * - * @description - * Subtract the specified number of months from the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of months to be subtracted - * @returns {Date} the new date with the months subtracted - * - * @example - * // Subtract 5 months from 1 February 2015: - * var result = subMonths(new Date(2015, 1, 1), 5) - * //=> Mon Sep 01 2014 00:00:00 - */ -function subMonths (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addMonths(dirtyDate, -amount) -} - -module.exports = subMonths - - -/***/ }), - -/***/ "../../node_modules/date-fns/sub_quarters/index.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/sub_quarters/index.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addQuarters = __webpack_require__(/*! ../add_quarters/index.js */ "../../node_modules/date-fns/add_quarters/index.js") - -/** - * @category Quarter Helpers - * @summary Subtract the specified number of year quarters from the given date. - * - * @description - * Subtract the specified number of year quarters from the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of quarters to be subtracted - * @returns {Date} the new date with the quarters subtracted - * - * @example - * // Subtract 3 quarters from 1 September 2014: - * var result = subQuarters(new Date(2014, 8, 1), 3) - * //=> Sun Dec 01 2013 00:00:00 - */ -function subQuarters (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addQuarters(dirtyDate, -amount) -} - -module.exports = subQuarters - - -/***/ }), - -/***/ "../../node_modules/date-fns/sub_seconds/index.js": -/*!*****************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/sub_seconds/index.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addSeconds = __webpack_require__(/*! ../add_seconds/index.js */ "../../node_modules/date-fns/add_seconds/index.js") - -/** - * @category Second Helpers - * @summary Subtract the specified number of seconds from the given date. - * - * @description - * Subtract the specified number of seconds from the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of seconds to be subtracted - * @returns {Date} the new date with the seconds subtracted - * - * @example - * // Subtract 30 seconds from 10 July 2014 12:45:00: - * var result = subSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) - * //=> Thu Jul 10 2014 12:44:30 - */ -function subSeconds (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addSeconds(dirtyDate, -amount) -} - -module.exports = subSeconds - - -/***/ }), - -/***/ "../../node_modules/date-fns/sub_weeks/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/sub_weeks/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addWeeks = __webpack_require__(/*! ../add_weeks/index.js */ "../../node_modules/date-fns/add_weeks/index.js") - -/** - * @category Week Helpers - * @summary Subtract the specified number of weeks from the given date. - * - * @description - * Subtract the specified number of weeks from the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of weeks to be subtracted - * @returns {Date} the new date with the weeks subtracted - * - * @example - * // Subtract 4 weeks from 1 September 2014: - * var result = subWeeks(new Date(2014, 8, 1), 4) - * //=> Mon Aug 04 2014 00:00:00 - */ -function subWeeks (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addWeeks(dirtyDate, -amount) -} - -module.exports = subWeeks - - -/***/ }), - -/***/ "../../node_modules/date-fns/sub_years/index.js": -/*!***************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/date-fns/sub_years/index.js ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var addYears = __webpack_require__(/*! ../add_years/index.js */ "../../node_modules/date-fns/add_years/index.js") - -/** - * @category Year Helpers - * @summary Subtract the specified number of years from the given date. - * - * @description - * Subtract the specified number of years from the given date. - * - * @param {Date|String|Number} date - the date to be changed - * @param {Number} amount - the amount of years to be subtracted - * @returns {Date} the new date with the years subtracted - * - * @example - * // Subtract 5 years from 1 September 2014: - * var result = subYears(new Date(2014, 8, 1), 5) - * //=> Tue Sep 01 2009 00:00:00 - */ -function subYears (dirtyDate, dirtyAmount) { - var amount = Number(dirtyAmount) - return addYears(dirtyDate, -amount) -} - -module.exports = subYears - - -/***/ }), - -/***/ "../../node_modules/deepmerge/dist/cjs.js": -/*!*********************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/deepmerge/dist/cjs.js ***! - \*********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var isMergeableObject = function isMergeableObject(value) { - return isNonNullObject(value) - && !isSpecial(value) -}; - -function isNonNullObject(value) { - return !!value && typeof value === 'object' -} - -function isSpecial(value) { - var stringValue = Object.prototype.toString.call(value); - - return stringValue === '[object RegExp]' - || stringValue === '[object Date]' - || isReactElement(value) -} - -// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 -var canUseSymbol = typeof Symbol === 'function' && Symbol.for; -var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; - -function isReactElement(value) { - return value.$$typeof === REACT_ELEMENT_TYPE -} - -function emptyTarget(val) { - return Array.isArray(val) ? [] : {} -} - -function cloneIfNecessary(value, optionsArgument) { - var clone = optionsArgument && optionsArgument.clone === true; - return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value -} - -function defaultArrayMerge(target, source, optionsArgument) { - var destination = target.slice(); - source.forEach(function(e, i) { - if (typeof destination[i] === 'undefined') { - destination[i] = cloneIfNecessary(e, optionsArgument); - } else if (isMergeableObject(e)) { - destination[i] = deepmerge(target[i], e, optionsArgument); - } else if (target.indexOf(e) === -1) { - destination.push(cloneIfNecessary(e, optionsArgument)); - } - }); - return destination -} - -function mergeObject(target, source, optionsArgument) { - var destination = {}; - if (isMergeableObject(target)) { - Object.keys(target).forEach(function(key) { - destination[key] = cloneIfNecessary(target[key], optionsArgument); - }); - } - Object.keys(source).forEach(function(key) { - if (!isMergeableObject(source[key]) || !target[key]) { - destination[key] = cloneIfNecessary(source[key], optionsArgument); - } else { - destination[key] = deepmerge(target[key], source[key], optionsArgument); - } - }); - return destination -} - -function deepmerge(target, source, optionsArgument) { - var sourceIsArray = Array.isArray(source); - var targetIsArray = Array.isArray(target); - var options = optionsArgument || { arrayMerge: defaultArrayMerge }; - var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; - - if (!sourceAndTargetTypesMatch) { - return cloneIfNecessary(source, optionsArgument) - } else if (sourceIsArray) { - var arrayMerge = options.arrayMerge || defaultArrayMerge; - return arrayMerge(target, source, optionsArgument) - } else { - return mergeObject(target, source, optionsArgument) - } -} - -deepmerge.all = function deepmergeAll(array, optionsArgument) { - if (!Array.isArray(array) || array.length < 2) { - throw new Error('first argument should be an array with at least two elements') - } - - // we are sure there are at least 2 values, so it is safe to have no initial value - return array.reduce(function(prev, next) { - return deepmerge(prev, next, optionsArgument) - }) -}; - -var deepmerge_1 = deepmerge; - -module.exports = deepmerge_1; - - -/***/ }), - -/***/ "../../node_modules/element-ui/lib/button-group.js": -/*!******************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/element-ui/lib/button-group.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = -/******/ (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 = "/dist/"; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 117); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); -/* globals __VUE_SSR_CONTEXT__ */ - -// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). -// This module is a runtime utility for cleaner component module output and will -// be included in the final webpack user bundle. - -function normalizeComponent ( - scriptExports, - render, - staticRenderFns, - functionalTemplate, - injectStyles, - scopeId, - moduleIdentifier, /* server only */ - shadowMode /* vue-cli only */ -) { - // Vue.extend constructor export interop - var options = typeof scriptExports === 'function' - ? scriptExports.options - : scriptExports - - // render functions - if (render) { - options.render = render - options.staticRenderFns = staticRenderFns - options._compiled = true - } - - // functional template - if (functionalTemplate) { - options.functional = true - } - - // scopedId - if (scopeId) { - options._scopeId = 'data-v-' + scopeId - } - - var hook - if (moduleIdentifier) { // server build - hook = function (context) { - // 2.3 injection - context = - context || // cached call - (this.$vnode && this.$vnode.ssrContext) || // stateful - (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional - // 2.2 with runInNewContext: true - if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { - context = __VUE_SSR_CONTEXT__ - } - // inject component styles - if (injectStyles) { - injectStyles.call(this, context) - } - // register component module identifier for async chunk inferrence - if (context && context._registeredComponents) { - context._registeredComponents.add(moduleIdentifier) - } - } - // used by ssr in case component is cached and beforeCreate - // never gets called - options._ssrRegister = hook - } else if (injectStyles) { - hook = shadowMode - ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } - : injectStyles - } - - if (hook) { - if (options.functional) { - // for template-only hot-reload because in that case the render fn doesn't - // go through the normalizer - options._injectStyles = hook - // register for functioal component in vue file - var originalRender = options.render - options.render = function renderWithStyleInjection (h, context) { - hook.call(context) - return originalRender(h, context) - } - } else { - // inject component registration as beforeCreate hook - var existing = options.beforeCreate - options.beforeCreate = existing - ? [].concat(existing, hook) - : [hook] - } - } - - return { - exports: scriptExports, - options: options - } -} - - -/***/ }), - -/***/ 117: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=template&id=3d8661d0& -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c("div", { staticClass: "el-button-group" }, [_vm._t("default")], 2) -} -var staticRenderFns = [] -render._withStripped = true - - -// CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=template&id=3d8661d0& - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=script&lang=js& -// -// -// -// -// - -/* harmony default export */ var button_groupvue_type_script_lang_js_ = ({ - name: 'ElButtonGroup' -}); -// CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=script&lang=js& - /* harmony default export */ var src_button_groupvue_type_script_lang_js_ = (button_groupvue_type_script_lang_js_); -// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./packages/button/src/button-group.vue - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - src_button_groupvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "packages/button/src/button-group.vue" -/* harmony default export */ var button_group = (component.exports); -// CONCATENATED MODULE: ./packages/button-group/index.js - - -/* istanbul ignore next */ -button_group.install = function (Vue) { - Vue.component(button_group.name, button_group); -}; - -/* harmony default export */ var packages_button_group = __webpack_exports__["default"] = (button_group); - -/***/ }) - -/******/ }); - -/***/ }), - -/***/ "../../node_modules/element-ui/lib/button.js": -/*!************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/element-ui/lib/button.js ***! - \************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = -/******/ (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 = "/dist/"; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 118); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); -/* globals __VUE_SSR_CONTEXT__ */ - -// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). -// This module is a runtime utility for cleaner component module output and will -// be included in the final webpack user bundle. - -function normalizeComponent ( - scriptExports, - render, - staticRenderFns, - functionalTemplate, - injectStyles, - scopeId, - moduleIdentifier, /* server only */ - shadowMode /* vue-cli only */ -) { - // Vue.extend constructor export interop - var options = typeof scriptExports === 'function' - ? scriptExports.options - : scriptExports - - // render functions - if (render) { - options.render = render - options.staticRenderFns = staticRenderFns - options._compiled = true - } - - // functional template - if (functionalTemplate) { - options.functional = true - } - - // scopedId - if (scopeId) { - options._scopeId = 'data-v-' + scopeId - } - - var hook - if (moduleIdentifier) { // server build - hook = function (context) { - // 2.3 injection - context = - context || // cached call - (this.$vnode && this.$vnode.ssrContext) || // stateful - (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional - // 2.2 with runInNewContext: true - if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { - context = __VUE_SSR_CONTEXT__ - } - // inject component styles - if (injectStyles) { - injectStyles.call(this, context) - } - // register component module identifier for async chunk inferrence - if (context && context._registeredComponents) { - context._registeredComponents.add(moduleIdentifier) - } - } - // used by ssr in case component is cached and beforeCreate - // never gets called - options._ssrRegister = hook - } else if (injectStyles) { - hook = shadowMode - ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } - : injectStyles - } - - if (hook) { - if (options.functional) { - // for template-only hot-reload because in that case the render fn doesn't - // go through the normalizer - options._injectStyles = hook - // register for functioal component in vue file - var originalRender = options.render - options.render = function renderWithStyleInjection (h, context) { - hook.call(context) - return originalRender(h, context) - } - } else { - // inject component registration as beforeCreate hook - var existing = options.beforeCreate - options.beforeCreate = existing - ? [].concat(existing, hook) - : [hook] - } - } - - return { - exports: scriptExports, - options: options - } -} - - -/***/ }), - -/***/ 118: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=ca859fb4& -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "button", - { - staticClass: "el-button", - class: [ - _vm.type ? "el-button--" + _vm.type : "", - _vm.buttonSize ? "el-button--" + _vm.buttonSize : "", - { - "is-disabled": _vm.buttonDisabled, - "is-loading": _vm.loading, - "is-plain": _vm.plain, - "is-round": _vm.round, - "is-circle": _vm.circle - } - ], - attrs: { - disabled: _vm.buttonDisabled || _vm.loading, - autofocus: _vm.autofocus, - type: _vm.nativeType - }, - on: { click: _vm.handleClick } - }, - [ - _vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(), - _vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(), - _vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e() - ] - ) -} -var staticRenderFns = [] -render._withStripped = true - - -// CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=ca859fb4& - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var buttonvue_type_script_lang_js_ = ({ - name: 'ElButton', - - inject: { - elForm: { - default: '' - }, - elFormItem: { - default: '' - } - }, - - props: { - type: { - type: String, - default: 'default' - }, - size: String, - icon: { - type: String, - default: '' - }, - nativeType: { - type: String, - default: 'button' - }, - loading: Boolean, - disabled: Boolean, - plain: Boolean, - autofocus: Boolean, - round: Boolean, - circle: Boolean - }, - - computed: { - _elFormItemSize: function _elFormItemSize() { - return (this.elFormItem || {}).elFormItemSize; - }, - buttonSize: function buttonSize() { - return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size; - }, - buttonDisabled: function buttonDisabled() { - return this.disabled || (this.elForm || {}).disabled; - } - }, - - methods: { - handleClick: function handleClick(evt) { - this.$emit('click', evt); - } - } -}); -// CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js& - /* harmony default export */ var src_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_); -// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./packages/button/src/button.vue - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - src_buttonvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "packages/button/src/button.vue" -/* harmony default export */ var src_button = (component.exports); -// CONCATENATED MODULE: ./packages/button/index.js - - -/* istanbul ignore next */ -src_button.install = function (Vue) { - Vue.component(src_button.name, src_button); -}; - -/* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button); - -/***/ }) - -/******/ }); - -/***/ }), - -/***/ "../../node_modules/element-ui/lib/cascader-panel.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/element-ui/lib/cascader-panel.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = -/******/ (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 = "/dist/"; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 58); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); -/* globals __VUE_SSR_CONTEXT__ */ - -// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). -// This module is a runtime utility for cleaner component module output and will -// be included in the final webpack user bundle. - -function normalizeComponent ( - scriptExports, - render, - staticRenderFns, - functionalTemplate, - injectStyles, - scopeId, - moduleIdentifier, /* server only */ - shadowMode /* vue-cli only */ -) { - // Vue.extend constructor export interop - var options = typeof scriptExports === 'function' - ? scriptExports.options - : scriptExports - - // render functions - if (render) { - options.render = render - options.staticRenderFns = staticRenderFns - options._compiled = true - } - - // functional template - if (functionalTemplate) { - options.functional = true - } - - // scopedId - if (scopeId) { - options._scopeId = 'data-v-' + scopeId - } - - var hook - if (moduleIdentifier) { // server build - hook = function (context) { - // 2.3 injection - context = - context || // cached call - (this.$vnode && this.$vnode.ssrContext) || // stateful - (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional - // 2.2 with runInNewContext: true - if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { - context = __VUE_SSR_CONTEXT__ - } - // inject component styles - if (injectStyles) { - injectStyles.call(this, context) - } - // register component module identifier for async chunk inferrence - if (context && context._registeredComponents) { - context._registeredComponents.add(moduleIdentifier) - } - } - // used by ssr in case component is cached and beforeCreate - // never gets called - options._ssrRegister = hook - } else if (injectStyles) { - hook = shadowMode - ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } - : injectStyles - } - - if (hook) { - if (options.functional) { - // for template-only hot-reload because in that case the render fn doesn't - // go through the normalizer - options._injectStyles = hook - // register for functioal component in vue file - var originalRender = options.render - options.render = function renderWithStyleInjection (h, context) { - hook.call(context) - return originalRender(h, context) - } - } else { - // inject component registration as beforeCreate hook - var existing = options.beforeCreate - options.beforeCreate = existing - ? [].concat(existing, hook) - : [hook] - } - } - - return { - exports: scriptExports, - options: options - } -} - - -/***/ }), - -/***/ 13: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/scrollbar */ "../../node_modules/element-ui/lib/scrollbar.js"); - -/***/ }), - -/***/ 17: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/checkbox */ "../../node_modules/element-ui/lib/checkbox.js"); - -/***/ }), - -/***/ 21: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/shared */ "../../node_modules/element-ui/lib/utils/shared.js"); - -/***/ }), - -/***/ 26: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "../../node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -/***/ }), - -/***/ 3: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/util */ "../../node_modules/element-ui/lib/utils/util.js"); - -/***/ }), - -/***/ 31: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/scroll-into-view */ "../../node_modules/element-ui/lib/utils/scroll-into-view.js"); - -/***/ }), - -/***/ 39: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/aria-utils */ "../../node_modules/element-ui/lib/utils/aria-utils.js"); - -/***/ }), - -/***/ 51: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/radio */ "../../node_modules/element-ui/lib/radio.js"); - -/***/ }), - -/***/ 58: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=34932346& -var cascader_panelvue_type_template_id_34932346_render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "div", - { - class: ["el-cascader-panel", _vm.border && "is-bordered"], - on: { keydown: _vm.handleKeyDown } - }, - _vm._l(_vm.menus, function(menu, index) { - return _c("cascader-menu", { - key: index, - ref: "menu", - refInFor: true, - attrs: { index: index, nodes: menu } - }) - }), - 1 - ) -} -var staticRenderFns = [] -cascader_panelvue_type_template_id_34932346_render._withStripped = true - - -// CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=34932346& - -// EXTERNAL MODULE: external "babel-helper-vue-jsx-merge-props" -var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(26); -var external_babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(external_babel_helper_vue_jsx_merge_props_); - -// EXTERNAL MODULE: external "element-ui/lib/scrollbar" -var scrollbar_ = __webpack_require__(13); -var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_); - -// EXTERNAL MODULE: external "element-ui/lib/checkbox" -var checkbox_ = __webpack_require__(17); -var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_); - -// EXTERNAL MODULE: external "element-ui/lib/radio" -var radio_ = __webpack_require__(51); -var radio_default = /*#__PURE__*/__webpack_require__.n(radio_); - -// EXTERNAL MODULE: external "element-ui/lib/utils/util" -var util_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js& - - - - - - -var stopPropagation = function stopPropagation(e) { - return e.stopPropagation(); -}; - -/* harmony default export */ var cascader_nodevue_type_script_lang_js_ = ({ - inject: ['panel'], - - components: { - ElCheckbox: checkbox_default.a, - ElRadio: radio_default.a - }, - - props: { - node: { - required: true - }, - nodeId: String - }, - - computed: { - config: function config() { - return this.panel.config; - }, - isLeaf: function isLeaf() { - return this.node.isLeaf; - }, - isDisabled: function isDisabled() { - return this.node.isDisabled; - }, - checkedValue: function checkedValue() { - return this.panel.checkedValue; - }, - isChecked: function isChecked() { - return this.node.isSameNode(this.checkedValue); - }, - inActivePath: function inActivePath() { - return this.isInPath(this.panel.activePath); - }, - inCheckedPath: function inCheckedPath() { - var _this = this; - - if (!this.config.checkStrictly) return false; - - return this.panel.checkedNodePaths.some(function (checkedPath) { - return _this.isInPath(checkedPath); - }); - }, - value: function value() { - return this.node.getValueByOption(); - } - }, - - methods: { - handleExpand: function handleExpand() { - var _this2 = this; - - var panel = this.panel, - node = this.node, - isDisabled = this.isDisabled, - config = this.config; - var multiple = config.multiple, - checkStrictly = config.checkStrictly; - - - if (!checkStrictly && isDisabled || node.loading) return; - - if (config.lazy && !node.loaded) { - panel.lazyLoad(node, function () { - // do not use cached leaf value here, invoke this.isLeaf to get new value. - var isLeaf = _this2.isLeaf; - - - if (!isLeaf) _this2.handleExpand(); - if (multiple) { - // if leaf sync checked state, else clear checked state - var checked = isLeaf ? node.checked : false; - _this2.handleMultiCheckChange(checked); - } - }); - } else { - panel.handleExpand(node); - } - }, - handleCheckChange: function handleCheckChange() { - var panel = this.panel, - value = this.value, - node = this.node; - - panel.handleCheckChange(value); - panel.handleExpand(node); - }, - handleMultiCheckChange: function handleMultiCheckChange(checked) { - this.node.doCheck(checked); - this.panel.calculateMultiCheckedValue(); - }, - isInPath: function isInPath(pathNodes) { - var node = this.node; - - var selectedPathNode = pathNodes[node.level - 1] || {}; - return selectedPathNode.uid === node.uid; - }, - renderPrefix: function renderPrefix(h) { - var isLeaf = this.isLeaf, - isChecked = this.isChecked, - config = this.config; - var checkStrictly = config.checkStrictly, - multiple = config.multiple; - - - if (multiple) { - return this.renderCheckbox(h); - } else if (checkStrictly) { - return this.renderRadio(h); - } else if (isLeaf && isChecked) { - return this.renderCheckIcon(h); - } - - return null; - }, - renderPostfix: function renderPostfix(h) { - var node = this.node, - isLeaf = this.isLeaf; - - - if (node.loading) { - return this.renderLoadingIcon(h); - } else if (!isLeaf) { - return this.renderExpandIcon(h); - } - - return null; - }, - renderCheckbox: function renderCheckbox(h) { - var node = this.node, - config = this.config, - isDisabled = this.isDisabled; - - var events = { - on: { change: this.handleMultiCheckChange }, - nativeOn: {} - }; - - if (config.checkStrictly) { - // when every node is selectable, click event should not trigger expand event. - events.nativeOn.click = stopPropagation; - } - - return h('el-checkbox', external_babel_helper_vue_jsx_merge_props_default()([{ - attrs: { - value: node.checked, - indeterminate: node.indeterminate, - disabled: isDisabled - } - }, events])); - }, - renderRadio: function renderRadio(h) { - var checkedValue = this.checkedValue, - value = this.value, - isDisabled = this.isDisabled; - - // to keep same reference if value cause radio's checked state is calculated by reference comparision; - - if (Object(util_["isEqual"])(value, checkedValue)) { - value = checkedValue; - } - - return h( - 'el-radio', - { - attrs: { - value: checkedValue, - label: value, - disabled: isDisabled - }, - on: { - 'change': this.handleCheckChange - }, - nativeOn: { - 'click': stopPropagation - } - }, - [h('span')] - ); - }, - renderCheckIcon: function renderCheckIcon(h) { - return h('i', { 'class': 'el-icon-check el-cascader-node__prefix' }); - }, - renderLoadingIcon: function renderLoadingIcon(h) { - return h('i', { 'class': 'el-icon-loading el-cascader-node__postfix' }); - }, - renderExpandIcon: function renderExpandIcon(h) { - return h('i', { 'class': 'el-icon-arrow-right el-cascader-node__postfix' }); - }, - renderContent: function renderContent(h) { - var panel = this.panel, - node = this.node; - - var render = panel.renderLabelFn; - var vnode = render ? render({ node: node, data: node.data }) : null; - - return h( - 'span', - { 'class': 'el-cascader-node__label' }, - [vnode || node.label] - ); - } - }, - - render: function render(h) { - var _this3 = this; - - var inActivePath = this.inActivePath, - inCheckedPath = this.inCheckedPath, - isChecked = this.isChecked, - isLeaf = this.isLeaf, - isDisabled = this.isDisabled, - config = this.config, - nodeId = this.nodeId; - var expandTrigger = config.expandTrigger, - checkStrictly = config.checkStrictly, - multiple = config.multiple; - - var disabled = !checkStrictly && isDisabled; - var events = { on: {} }; - - if (expandTrigger === 'click') { - events.on.click = this.handleExpand; - } else { - events.on.mouseenter = function (e) { - _this3.handleExpand(); - _this3.$emit('expand', e); - }; - events.on.focus = function (e) { - _this3.handleExpand(); - _this3.$emit('expand', e); - }; - } - if (isLeaf && !isDisabled && !checkStrictly && !multiple) { - events.on.click = this.handleCheckChange; - } - - return h( - 'li', - external_babel_helper_vue_jsx_merge_props_default()([{ - attrs: { - role: 'menuitem', - id: nodeId, - 'aria-expanded': inActivePath, - tabindex: disabled ? null : -1 - }, - 'class': { - 'el-cascader-node': true, - 'is-selectable': checkStrictly, - 'in-active-path': inActivePath, - 'in-checked-path': inCheckedPath, - 'is-active': isChecked, - 'is-disabled': disabled - } - }, events]), - [this.renderPrefix(h), this.renderContent(h), this.renderPostfix(h)] - ); - } -}); -// CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js& - /* harmony default export */ var src_cascader_nodevue_type_script_lang_js_ = (cascader_nodevue_type_script_lang_js_); -// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-node.vue -var cascader_node_render, cascader_node_staticRenderFns - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - src_cascader_nodevue_type_script_lang_js_, - cascader_node_render, - cascader_node_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "packages/cascader-panel/src/cascader-node.vue" -/* harmony default export */ var cascader_node = (component.exports); -// EXTERNAL MODULE: external "element-ui/lib/mixins/locale" -var locale_ = __webpack_require__(6); -var locale_default = /*#__PURE__*/__webpack_require__.n(locale_); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-menu.vue?vue&type=script&lang=js& - - - - - - - -/* harmony default export */ var cascader_menuvue_type_script_lang_js_ = ({ - name: 'ElCascaderMenu', - - mixins: [locale_default.a], - - inject: ['panel'], - - components: { - ElScrollbar: scrollbar_default.a, - CascaderNode: cascader_node - }, - - props: { - nodes: { - type: Array, - required: true - }, - index: Number - }, - - data: function data() { - return { - activeNode: null, - hoverTimer: null, - id: Object(util_["generateId"])() - }; - }, - - - computed: { - isEmpty: function isEmpty() { - return !this.nodes.length; - }, - menuId: function menuId() { - return 'cascader-menu-' + this.id + '-' + this.index; - } - }, - - methods: { - handleExpand: function handleExpand(e) { - this.activeNode = e.target; - }, - handleMouseMove: function handleMouseMove(e) { - var activeNode = this.activeNode, - hoverTimer = this.hoverTimer; - var hoverZone = this.$refs.hoverZone; - - - if (!activeNode || !hoverZone) return; - - if (activeNode.contains(e.target)) { - clearTimeout(hoverTimer); - - var _$el$getBoundingClien = this.$el.getBoundingClientRect(), - left = _$el$getBoundingClien.left; - - var startX = e.clientX - left; - var _$el = this.$el, - offsetWidth = _$el.offsetWidth, - offsetHeight = _$el.offsetHeight; - - var top = activeNode.offsetTop; - var bottom = top + activeNode.offsetHeight; - - hoverZone.innerHTML = '\n \n \n '; - } else if (!hoverTimer) { - this.hoverTimer = setTimeout(this.clearHoverZone, this.panel.config.hoverThreshold); - } - }, - clearHoverZone: function clearHoverZone() { - var hoverZone = this.$refs.hoverZone; - - if (!hoverZone) return; - hoverZone.innerHTML = ''; - }, - renderEmptyText: function renderEmptyText(h) { - return h( - 'div', - { 'class': 'el-cascader-menu__empty-text' }, - [this.t('el.cascader.noData')] - ); - }, - renderNodeList: function renderNodeList(h) { - var menuId = this.menuId; - var isHoverMenu = this.panel.isHoverMenu; - - var events = { on: {} }; - - if (isHoverMenu) { - events.on.expand = this.handleExpand; - } - - var nodes = this.nodes.map(function (node, index) { - var hasChildren = node.hasChildren; - - return h('cascader-node', external_babel_helper_vue_jsx_merge_props_default()([{ - key: node.uid, - attrs: { node: node, - 'node-id': menuId + '-' + index, - 'aria-haspopup': hasChildren, - 'aria-owns': hasChildren ? menuId : null - } - }, events])); - }); - - return [].concat(nodes, [isHoverMenu ? h('svg', { ref: 'hoverZone', 'class': 'el-cascader-menu__hover-zone' }) : null]); - } - }, - - render: function render(h) { - var isEmpty = this.isEmpty, - menuId = this.menuId; - - var events = { nativeOn: {} }; - - // optimize hover to expand experience (#8010) - if (this.panel.isHoverMenu) { - events.nativeOn.mousemove = this.handleMouseMove; - // events.nativeOn.mouseleave = this.clearHoverZone; - } - - return h( - 'el-scrollbar', - external_babel_helper_vue_jsx_merge_props_default()([{ - attrs: { - tag: 'ul', - role: 'menu', - id: menuId, - - 'wrap-class': 'el-cascader-menu__wrap', - 'view-class': { - 'el-cascader-menu__list': true, - 'is-empty': isEmpty - } - }, - 'class': 'el-cascader-menu' }, events]), - [isEmpty ? this.renderEmptyText(h) : this.renderNodeList(h)] - ); - } -}); -// CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-menu.vue?vue&type=script&lang=js& - /* harmony default export */ var src_cascader_menuvue_type_script_lang_js_ = (cascader_menuvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-menu.vue -var cascader_menu_render, cascader_menu_staticRenderFns - - - - -/* normalize component */ - -var cascader_menu_component = Object(componentNormalizer["a" /* default */])( - src_cascader_menuvue_type_script_lang_js_, - cascader_menu_render, - cascader_menu_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var cascader_menu_api; } -cascader_menu_component.options.__file = "packages/cascader-panel/src/cascader-menu.vue" -/* harmony default export */ var cascader_menu = (cascader_menu_component.exports); -// EXTERNAL MODULE: external "element-ui/lib/utils/shared" -var shared_ = __webpack_require__(21); - -// CONCATENATED MODULE: ./packages/cascader-panel/src/node.js -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - - - -var uid = 0; - -var node_Node = function () { - function Node(data, config, parentNode) { - _classCallCheck(this, Node); - - this.data = data; - this.config = config; - this.parent = parentNode || null; - this.level = !this.parent ? 1 : this.parent.level + 1; - this.uid = uid++; - - this.initState(); - this.initChildren(); - } - - Node.prototype.initState = function initState() { - var _config = this.config, - valueKey = _config.value, - labelKey = _config.label; - - - this.value = this.data[valueKey]; - this.label = this.data[labelKey]; - this.pathNodes = this.calculatePathNodes(); - this.path = this.pathNodes.map(function (node) { - return node.value; - }); - this.pathLabels = this.pathNodes.map(function (node) { - return node.label; - }); - - // lazy load - this.loading = false; - this.loaded = false; - }; - - Node.prototype.initChildren = function initChildren() { - var _this = this; - - var config = this.config; - - var childrenKey = config.children; - var childrenData = this.data[childrenKey]; - this.hasChildren = Array.isArray(childrenData); - this.children = (childrenData || []).map(function (child) { - return new Node(child, config, _this); - }); - }; - - Node.prototype.calculatePathNodes = function calculatePathNodes() { - var nodes = [this]; - var parent = this.parent; - - while (parent) { - nodes.unshift(parent); - parent = parent.parent; - } - - return nodes; - }; - - Node.prototype.getPath = function getPath() { - return this.path; - }; - - Node.prototype.getValue = function getValue() { - return this.value; - }; - - Node.prototype.getValueByOption = function getValueByOption() { - return this.config.emitPath ? this.getPath() : this.getValue(); - }; - - Node.prototype.getText = function getText(allLevels, separator) { - return allLevels ? this.pathLabels.join(separator) : this.label; - }; - - Node.prototype.isSameNode = function isSameNode(checkedValue) { - var value = this.getValueByOption(); - return this.config.multiple && Array.isArray(checkedValue) ? checkedValue.some(function (val) { - return Object(util_["isEqual"])(val, value); - }) : Object(util_["isEqual"])(checkedValue, value); - }; - - Node.prototype.broadcast = function broadcast(event) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - var handlerName = 'onParent' + Object(util_["capitalize"])(event); - - this.children.forEach(function (child) { - if (child) { - // bottom up - child.broadcast.apply(child, [event].concat(args)); - child[handlerName] && child[handlerName].apply(child, args); - } - }); - }; - - Node.prototype.emit = function emit(event) { - var parent = this.parent; - - var handlerName = 'onChild' + Object(util_["capitalize"])(event); - if (parent) { - for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - - parent[handlerName] && parent[handlerName].apply(parent, args); - parent.emit.apply(parent, [event].concat(args)); - } - }; - - Node.prototype.onParentCheck = function onParentCheck(checked) { - if (!this.isDisabled) { - this.setCheckState(checked); - } - }; - - Node.prototype.onChildCheck = function onChildCheck() { - var children = this.children; - - var validChildren = children.filter(function (child) { - return !child.isDisabled; - }); - var checked = validChildren.length ? validChildren.every(function (child) { - return child.checked; - }) : false; - - this.setCheckState(checked); - }; - - Node.prototype.setCheckState = function setCheckState(checked) { - var totalNum = this.children.length; - var checkedNum = this.children.reduce(function (c, p) { - var num = p.checked ? 1 : p.indeterminate ? 0.5 : 0; - return c + num; - }, 0); - - this.checked = checked; - this.indeterminate = checkedNum !== totalNum && checkedNum > 0; - }; - - Node.prototype.syncCheckState = function syncCheckState(checkedValue) { - var value = this.getValueByOption(); - var checked = this.isSameNode(checkedValue, value); - - this.doCheck(checked); - }; - - Node.prototype.doCheck = function doCheck(checked) { - if (this.checked !== checked) { - if (this.config.checkStrictly) { - this.checked = checked; - } else { - // bottom up to unify the calculation of the indeterminate state - this.broadcast('check', checked); - this.setCheckState(checked); - this.emit('check'); - } - } - }; - - _createClass(Node, [{ - key: 'isDisabled', - get: function get() { - var data = this.data, - parent = this.parent, - config = this.config; - - var disabledKey = config.disabled; - var checkStrictly = config.checkStrictly; - - return data[disabledKey] || !checkStrictly && parent && parent.isDisabled; - } - }, { - key: 'isLeaf', - get: function get() { - var data = this.data, - loaded = this.loaded, - hasChildren = this.hasChildren, - children = this.children; - var _config2 = this.config, - lazy = _config2.lazy, - leafKey = _config2.leaf; - - if (lazy) { - var isLeaf = Object(shared_["isDef"])(data[leafKey]) ? data[leafKey] : loaded ? !children.length : false; - this.hasChildren = !isLeaf; - return isLeaf; - } - return !hasChildren; - } - }]); - - return Node; -}(); - -/* harmony default export */ var src_node = (node_Node); -// CONCATENATED MODULE: ./packages/cascader-panel/src/store.js -function store_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - - - -var flatNodes = function flatNodes(data, leafOnly) { - return data.reduce(function (res, node) { - if (node.isLeaf) { - res.push(node); - } else { - !leafOnly && res.push(node); - res = res.concat(flatNodes(node.children, leafOnly)); - } - return res; - }, []); -}; - -var store_Store = function () { - function Store(data, config) { - store_classCallCheck(this, Store); - - this.config = config; - this.initNodes(data); - } - - Store.prototype.initNodes = function initNodes(data) { - var _this = this; - - data = Object(util_["coerceTruthyValueToArray"])(data); - this.nodes = data.map(function (nodeData) { - return new src_node(nodeData, _this.config); - }); - this.flattedNodes = this.getFlattedNodes(false, false); - this.leafNodes = this.getFlattedNodes(true, false); - }; - - Store.prototype.appendNode = function appendNode(nodeData, parentNode) { - var node = new src_node(nodeData, this.config, parentNode); - var children = parentNode ? parentNode.children : this.nodes; - - children.push(node); - }; - - Store.prototype.appendNodes = function appendNodes(nodeDataList, parentNode) { - var _this2 = this; - - nodeDataList = Object(util_["coerceTruthyValueToArray"])(nodeDataList); - nodeDataList.forEach(function (nodeData) { - return _this2.appendNode(nodeData, parentNode); - }); - }; - - Store.prototype.getNodes = function getNodes() { - return this.nodes; - }; - - Store.prototype.getFlattedNodes = function getFlattedNodes(leafOnly) { - var cached = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - var cachedNodes = leafOnly ? this.leafNodes : this.flattedNodes; - return cached ? cachedNodes : flatNodes(this.nodes, leafOnly); - }; - - Store.prototype.getNodeByValue = function getNodeByValue(value) { - if (value) { - var nodes = this.getFlattedNodes(false, !this.config.lazy).filter(function (node) { - return Object(util_["valueEquals"])(node.path, value) || node.value === value; - }); - return nodes && nodes.length ? nodes[0] : null; - } - return null; - }; - - return Store; -}(); - -/* harmony default export */ var src_store = (store_Store); -// EXTERNAL MODULE: external "element-ui/lib/utils/merge" -var merge_ = __webpack_require__(9); -var merge_default = /*#__PURE__*/__webpack_require__.n(merge_); - -// EXTERNAL MODULE: external "element-ui/lib/utils/aria-utils" -var aria_utils_ = __webpack_require__(39); -var aria_utils_default = /*#__PURE__*/__webpack_require__.n(aria_utils_); - -// EXTERNAL MODULE: external "element-ui/lib/utils/scroll-into-view" -var scroll_into_view_ = __webpack_require__(31); -var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-panel.vue?vue&type=script&lang=js& -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - - - - - - - -var KeyCode = aria_utils_default.a.keys; - -var DefaultProps = { - expandTrigger: 'click', // or hover - multiple: false, - checkStrictly: false, // whether all nodes can be selected - emitPath: true, // wether to emit an array of all levels value in which node is located - lazy: false, - lazyLoad: util_["noop"], - value: 'value', - label: 'label', - children: 'children', - leaf: 'leaf', - disabled: 'disabled', - hoverThreshold: 500 -}; - -var cascader_panelvue_type_script_lang_js_isLeaf = function isLeaf(el) { - return !el.getAttribute('aria-owns'); -}; - -var getSibling = function getSibling(el, distance) { - var parentNode = el.parentNode; - - if (parentNode) { - var siblings = parentNode.querySelectorAll('.el-cascader-node[tabindex="-1"]'); - var index = Array.prototype.indexOf.call(siblings, el); - return siblings[index + distance] || null; - } - return null; -}; - -var getMenuIndex = function getMenuIndex(el, distance) { - if (!el) return; - var pieces = el.id.split('-'); - return Number(pieces[pieces.length - 2]); -}; - -var focusNode = function focusNode(el) { - if (!el) return; - el.focus(); - !cascader_panelvue_type_script_lang_js_isLeaf(el) && el.click(); -}; - -var checkNode = function checkNode(el) { - if (!el) return; - - var input = el.querySelector('input'); - if (input) { - input.click(); - } else if (cascader_panelvue_type_script_lang_js_isLeaf(el)) { - el.click(); - } -}; - -/* harmony default export */ var cascader_panelvue_type_script_lang_js_ = ({ - name: 'ElCascaderPanel', - - components: { - CascaderMenu: cascader_menu - }, - - props: { - value: {}, - options: Array, - props: Object, - border: { - type: Boolean, - default: true - }, - renderLabel: Function - }, - - provide: function provide() { - return { - panel: this - }; - }, - data: function data() { - return { - checkedValue: null, - checkedNodePaths: [], - store: [], - menus: [], - activePath: [], - loadCount: 0 - }; - }, - - - computed: { - config: function config() { - return merge_default()(_extends({}, DefaultProps), this.props || {}); - }, - multiple: function multiple() { - return this.config.multiple; - }, - checkStrictly: function checkStrictly() { - return this.config.checkStrictly; - }, - leafOnly: function leafOnly() { - return !this.checkStrictly; - }, - isHoverMenu: function isHoverMenu() { - return this.config.expandTrigger === 'hover'; - }, - renderLabelFn: function renderLabelFn() { - return this.renderLabel || this.$scopedSlots.default; - } - }, - - watch: { - options: { - handler: function handler() { - this.initStore(); - }, - immediate: true, - deep: true - }, - value: function value() { - this.syncCheckedValue(); - this.checkStrictly && this.calculateCheckedNodePaths(); - }, - checkedValue: function checkedValue(val) { - if (!Object(util_["isEqual"])(val, this.value)) { - this.checkStrictly && this.calculateCheckedNodePaths(); - this.$emit('input', val); - this.$emit('change', val); - } - } - }, - - mounted: function mounted() { - if (!Object(util_["isEmpty"])(this.value)) { - this.syncCheckedValue(); - } - }, - - - methods: { - initStore: function initStore() { - var config = this.config, - options = this.options; - - if (config.lazy && Object(util_["isEmpty"])(options)) { - this.lazyLoad(); - } else { - this.store = new src_store(options, config); - this.menus = [this.store.getNodes()]; - this.syncMenuState(); - } - }, - syncCheckedValue: function syncCheckedValue() { - var value = this.value, - checkedValue = this.checkedValue; - - if (!Object(util_["isEqual"])(value, checkedValue)) { - this.checkedValue = value; - this.syncMenuState(); - } - }, - syncMenuState: function syncMenuState() { - var multiple = this.multiple, - checkStrictly = this.checkStrictly; - - this.syncActivePath(); - multiple && this.syncMultiCheckState(); - checkStrictly && this.calculateCheckedNodePaths(); - this.$nextTick(this.scrollIntoView); - }, - syncMultiCheckState: function syncMultiCheckState() { - var _this = this; - - var nodes = this.getFlattedNodes(this.leafOnly); - - nodes.forEach(function (node) { - node.syncCheckState(_this.checkedValue); - }); - }, - syncActivePath: function syncActivePath() { - var _this2 = this; - - var store = this.store, - multiple = this.multiple, - activePath = this.activePath, - checkedValue = this.checkedValue; - - - if (!Object(util_["isEmpty"])(activePath)) { - var nodes = activePath.map(function (node) { - return _this2.getNodeByValue(node.getValue()); - }); - this.expandNodes(nodes); - } else if (!Object(util_["isEmpty"])(checkedValue)) { - var value = multiple ? checkedValue[0] : checkedValue; - var checkedNode = this.getNodeByValue(value) || {}; - var _nodes = (checkedNode.pathNodes || []).slice(0, -1); - this.expandNodes(_nodes); - } else { - this.activePath = []; - this.menus = [store.getNodes()]; - } - }, - expandNodes: function expandNodes(nodes) { - var _this3 = this; - - nodes.forEach(function (node) { - return _this3.handleExpand(node, true /* silent */); - }); - }, - calculateCheckedNodePaths: function calculateCheckedNodePaths() { - var _this4 = this; - - var checkedValue = this.checkedValue, - multiple = this.multiple; - - var checkedValues = multiple ? Object(util_["coerceTruthyValueToArray"])(checkedValue) : [checkedValue]; - this.checkedNodePaths = checkedValues.map(function (v) { - var checkedNode = _this4.getNodeByValue(v); - return checkedNode ? checkedNode.pathNodes : []; - }); - }, - handleKeyDown: function handleKeyDown(e) { - var target = e.target, - keyCode = e.keyCode; - - - switch (keyCode) { - case KeyCode.up: - var prev = getSibling(target, -1); - focusNode(prev); - break; - case KeyCode.down: - var next = getSibling(target, 1); - focusNode(next); - break; - case KeyCode.left: - var preMenu = this.$refs.menu[getMenuIndex(target) - 1]; - if (preMenu) { - var expandedNode = preMenu.$el.querySelector('.el-cascader-node[aria-expanded="true"]'); - focusNode(expandedNode); - } - break; - case KeyCode.right: - var nextMenu = this.$refs.menu[getMenuIndex(target) + 1]; - if (nextMenu) { - var firstNode = nextMenu.$el.querySelector('.el-cascader-node[tabindex="-1"]'); - focusNode(firstNode); - } - break; - case KeyCode.enter: - checkNode(target); - break; - case KeyCode.esc: - case KeyCode.tab: - this.$emit('close'); - break; - default: - return; - } - }, - handleExpand: function handleExpand(node, silent) { - var activePath = this.activePath; - var level = node.level; - - var path = activePath.slice(0, level - 1); - var menus = this.menus.slice(0, level); - - if (!node.isLeaf) { - path.push(node); - menus.push(node.children); - } - - this.activePath = path; - this.menus = menus; - - if (!silent) { - var pathValues = path.map(function (node) { - return node.getValue(); - }); - var activePathValues = activePath.map(function (node) { - return node.getValue(); - }); - if (!Object(util_["valueEquals"])(pathValues, activePathValues)) { - this.$emit('active-item-change', pathValues); // Deprecated - this.$emit('expand-change', pathValues); - } - } - }, - handleCheckChange: function handleCheckChange(value) { - this.checkedValue = value; - }, - lazyLoad: function lazyLoad(node, onFullfiled) { - var _this5 = this; - - var config = this.config; - - if (!node) { - node = node || { root: true, level: 0 }; - this.store = new src_store([], config); - this.menus = [this.store.getNodes()]; - } - node.loading = true; - var resolve = function resolve(dataList) { - var parent = node.root ? null : node; - dataList && dataList.length && _this5.store.appendNodes(dataList, parent); - node.loading = false; - node.loaded = true; - - // dispose default value on lazy load mode - if (Array.isArray(_this5.checkedValue)) { - var nodeValue = _this5.checkedValue[_this5.loadCount++]; - var valueKey = _this5.config.value; - var leafKey = _this5.config.leaf; - - if (Array.isArray(dataList) && dataList.filter(function (item) { - return item[valueKey] === nodeValue; - }).length > 0) { - var checkedNode = _this5.store.getNodeByValue(nodeValue); - - if (!checkedNode.data[leafKey]) { - _this5.lazyLoad(checkedNode, function () { - _this5.handleExpand(checkedNode); - }); - } - - if (_this5.loadCount === _this5.checkedValue.length) { - _this5.$parent.computePresentText(); - } - } - } - - onFullfiled && onFullfiled(dataList); - }; - config.lazyLoad(node, resolve); - }, - - - /** - * public methods - */ - calculateMultiCheckedValue: function calculateMultiCheckedValue() { - this.checkedValue = this.getCheckedNodes(this.leafOnly).map(function (node) { - return node.getValueByOption(); - }); - }, - scrollIntoView: function scrollIntoView() { - if (this.$isServer) return; - - var menus = this.$refs.menu || []; - menus.forEach(function (menu) { - var menuElement = menu.$el; - if (menuElement) { - var container = menuElement.querySelector('.el-scrollbar__wrap'); - var activeNode = menuElement.querySelector('.el-cascader-node.is-active') || menuElement.querySelector('.el-cascader-node.in-active-path'); - scroll_into_view_default()(container, activeNode); - } - }); - }, - getNodeByValue: function getNodeByValue(val) { - return this.store.getNodeByValue(val); - }, - getFlattedNodes: function getFlattedNodes(leafOnly) { - var cached = !this.config.lazy; - return this.store.getFlattedNodes(leafOnly, cached); - }, - getCheckedNodes: function getCheckedNodes(leafOnly) { - var checkedValue = this.checkedValue, - multiple = this.multiple; - - if (multiple) { - var nodes = this.getFlattedNodes(leafOnly); - return nodes.filter(function (node) { - return node.checked; - }); - } else { - return Object(util_["isEmpty"])(checkedValue) ? [] : [this.getNodeByValue(checkedValue)]; - } - }, - clearCheckedNodes: function clearCheckedNodes() { - var config = this.config, - leafOnly = this.leafOnly; - var multiple = config.multiple, - emitPath = config.emitPath; - - if (multiple) { - this.getCheckedNodes(leafOnly).filter(function (node) { - return !node.isDisabled; - }).forEach(function (node) { - return node.doCheck(false); - }); - this.calculateMultiCheckedValue(); - } else { - this.checkedValue = emitPath ? [] : null; - } - } - } -}); -// CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=script&lang=js& - /* harmony default export */ var src_cascader_panelvue_type_script_lang_js_ = (cascader_panelvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue - - - - - -/* normalize component */ - -var cascader_panel_component = Object(componentNormalizer["a" /* default */])( - src_cascader_panelvue_type_script_lang_js_, - cascader_panelvue_type_template_id_34932346_render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var cascader_panel_api; } -cascader_panel_component.options.__file = "packages/cascader-panel/src/cascader-panel.vue" -/* harmony default export */ var cascader_panel = (cascader_panel_component.exports); -// CONCATENATED MODULE: ./packages/cascader-panel/index.js - - -/* istanbul ignore next */ -cascader_panel.install = function (Vue) { - Vue.component(cascader_panel.name, cascader_panel); -}; - -/* harmony default export */ var packages_cascader_panel = __webpack_exports__["default"] = (cascader_panel); - -/***/ }), - -/***/ 6: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/mixins/locale */ "../../node_modules/element-ui/lib/mixins/locale.js"); - -/***/ }), - -/***/ 9: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/merge */ "../../node_modules/element-ui/lib/utils/merge.js"); - -/***/ }) - -/******/ }); - -/***/ }), - -/***/ "../../node_modules/element-ui/lib/checkbox-group.js": -/*!********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/element-ui/lib/checkbox-group.js ***! - \********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = -/******/ (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 = "/dist/"; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 108); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); -/* globals __VUE_SSR_CONTEXT__ */ - -// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). -// This module is a runtime utility for cleaner component module output and will -// be included in the final webpack user bundle. - -function normalizeComponent ( - scriptExports, - render, - staticRenderFns, - functionalTemplate, - injectStyles, - scopeId, - moduleIdentifier, /* server only */ - shadowMode /* vue-cli only */ -) { - // Vue.extend constructor export interop - var options = typeof scriptExports === 'function' - ? scriptExports.options - : scriptExports - - // render functions - if (render) { - options.render = render - options.staticRenderFns = staticRenderFns - options._compiled = true - } - - // functional template - if (functionalTemplate) { - options.functional = true - } - - // scopedId - if (scopeId) { - options._scopeId = 'data-v-' + scopeId - } - - var hook - if (moduleIdentifier) { // server build - hook = function (context) { - // 2.3 injection - context = - context || // cached call - (this.$vnode && this.$vnode.ssrContext) || // stateful - (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional - // 2.2 with runInNewContext: true - if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { - context = __VUE_SSR_CONTEXT__ - } - // inject component styles - if (injectStyles) { - injectStyles.call(this, context) - } - // register component module identifier for async chunk inferrence - if (context && context._registeredComponents) { - context._registeredComponents.add(moduleIdentifier) - } - } - // used by ssr in case component is cached and beforeCreate - // never gets called - options._ssrRegister = hook - } else if (injectStyles) { - hook = shadowMode - ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } - : injectStyles - } - - if (hook) { - if (options.functional) { - // for template-only hot-reload because in that case the render fn doesn't - // go through the normalizer - options._injectStyles = hook - // register for functioal component in vue file - var originalRender = options.render - options.render = function renderWithStyleInjection (h, context) { - hook.call(context) - return originalRender(h, context) - } - } else { - // inject component registration as beforeCreate hook - var existing = options.beforeCreate - options.beforeCreate = existing - ? [].concat(existing, hook) - : [hook] - } - } - - return { - exports: scriptExports, - options: options - } -} - - -/***/ }), - -/***/ 108: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=7289a290& -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "div", - { - staticClass: "el-checkbox-group", - attrs: { role: "group", "aria-label": "checkbox-group" } - }, - [_vm._t("default")], - 2 - ) -} -var staticRenderFns = [] -render._withStripped = true - - -// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=7289a290& - -// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter" -var emitter_ = __webpack_require__(4); -var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js& - - - -/* harmony default export */ var checkbox_groupvue_type_script_lang_js_ = ({ - name: 'ElCheckboxGroup', - - componentName: 'ElCheckboxGroup', - - mixins: [emitter_default.a], - - inject: { - elFormItem: { - default: '' - } - }, - - props: { - value: {}, - disabled: Boolean, - min: Number, - max: Number, - size: String, - fill: String, - textColor: String - }, - - computed: { - _elFormItemSize: function _elFormItemSize() { - return (this.elFormItem || {}).elFormItemSize; - }, - checkboxGroupSize: function checkboxGroupSize() { - return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size; - } - }, - - watch: { - value: function value(_value) { - this.dispatch('ElFormItem', 'el.form.change', [_value]); - } - } -}); -// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js& - /* harmony default export */ var src_checkbox_groupvue_type_script_lang_js_ = (checkbox_groupvue_type_script_lang_js_); -// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - src_checkbox_groupvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "packages/checkbox/src/checkbox-group.vue" -/* harmony default export */ var checkbox_group = (component.exports); -// CONCATENATED MODULE: ./packages/checkbox-group/index.js - - -/* istanbul ignore next */ -checkbox_group.install = function (Vue) { - Vue.component(checkbox_group.name, checkbox_group); -}; - -/* harmony default export */ var packages_checkbox_group = __webpack_exports__["default"] = (checkbox_group); - -/***/ }), - -/***/ 4: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/mixins/emitter */ "../../node_modules/element-ui/lib/mixins/emitter.js"); - -/***/ }) - -/******/ }); - -/***/ }), - -/***/ "../../node_modules/element-ui/lib/checkbox.js": -/*!**************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/element-ui/lib/checkbox.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = -/******/ (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 = "/dist/"; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 98); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); -/* globals __VUE_SSR_CONTEXT__ */ - -// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). -// This module is a runtime utility for cleaner component module output and will -// be included in the final webpack user bundle. - -function normalizeComponent ( - scriptExports, - render, - staticRenderFns, - functionalTemplate, - injectStyles, - scopeId, - moduleIdentifier, /* server only */ - shadowMode /* vue-cli only */ -) { - // Vue.extend constructor export interop - var options = typeof scriptExports === 'function' - ? scriptExports.options - : scriptExports - - // render functions - if (render) { - options.render = render - options.staticRenderFns = staticRenderFns - options._compiled = true - } - - // functional template - if (functionalTemplate) { - options.functional = true - } - - // scopedId - if (scopeId) { - options._scopeId = 'data-v-' + scopeId - } - - var hook - if (moduleIdentifier) { // server build - hook = function (context) { - // 2.3 injection - context = - context || // cached call - (this.$vnode && this.$vnode.ssrContext) || // stateful - (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional - // 2.2 with runInNewContext: true - if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { - context = __VUE_SSR_CONTEXT__ - } - // inject component styles - if (injectStyles) { - injectStyles.call(this, context) - } - // register component module identifier for async chunk inferrence - if (context && context._registeredComponents) { - context._registeredComponents.add(moduleIdentifier) - } - } - // used by ssr in case component is cached and beforeCreate - // never gets called - options._ssrRegister = hook - } else if (injectStyles) { - hook = shadowMode - ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } - : injectStyles - } - - if (hook) { - if (options.functional) { - // for template-only hot-reload because in that case the render fn doesn't - // go through the normalizer - options._injectStyles = hook - // register for functioal component in vue file - var originalRender = options.render - options.render = function renderWithStyleInjection (h, context) { - hook.call(context) - return originalRender(h, context) - } - } else { - // inject component registration as beforeCreate hook - var existing = options.beforeCreate - options.beforeCreate = existing - ? [].concat(existing, hook) - : [hook] - } - } - - return { - exports: scriptExports, - options: options - } -} - - -/***/ }), - -/***/ 4: -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/mixins/emitter */ "../../node_modules/element-ui/lib/mixins/emitter.js"); - -/***/ }), - -/***/ 98: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=d0387074& -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "label", - { - staticClass: "el-checkbox", - class: [ - _vm.border && _vm.checkboxSize - ? "el-checkbox--" + _vm.checkboxSize - : "", - { "is-disabled": _vm.isDisabled }, - { "is-bordered": _vm.border }, - { "is-checked": _vm.isChecked } - ], - attrs: { id: _vm.id } - }, - [ - _c( - "span", - { - staticClass: "el-checkbox__input", - class: { - "is-disabled": _vm.isDisabled, - "is-checked": _vm.isChecked, - "is-indeterminate": _vm.indeterminate, - "is-focus": _vm.focus - }, - attrs: { - tabindex: _vm.indeterminate ? 0 : false, - role: _vm.indeterminate ? "checkbox" : false, - "aria-checked": _vm.indeterminate ? "mixed" : false - } - }, - [ - _c("span", { staticClass: "el-checkbox__inner" }), - _vm.trueLabel || _vm.falseLabel - ? _c("input", { - directives: [ - { - name: "model", - rawName: "v-model", - value: _vm.model, - expression: "model" - } - ], - staticClass: "el-checkbox__original", - attrs: { - type: "checkbox", - "aria-hidden": _vm.indeterminate ? "true" : "false", - name: _vm.name, - disabled: _vm.isDisabled, - "true-value": _vm.trueLabel, - "false-value": _vm.falseLabel - }, - domProps: { - checked: Array.isArray(_vm.model) - ? _vm._i(_vm.model, null) > -1 - : _vm._q(_vm.model, _vm.trueLabel) - }, - on: { - change: [ - function($event) { - var $$a = _vm.model, - $$el = $event.target, - $$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel - if (Array.isArray($$a)) { - var $$v = null, - $$i = _vm._i($$a, $$v) - if ($$el.checked) { - $$i < 0 && (_vm.model = $$a.concat([$$v])) - } else { - $$i > -1 && - (_vm.model = $$a - .slice(0, $$i) - .concat($$a.slice($$i + 1))) - } - } else { - _vm.model = $$c - } - }, - _vm.handleChange - ], - focus: function($event) { - _vm.focus = true - }, - blur: function($event) { - _vm.focus = false - } - } - }) - : _c("input", { - directives: [ - { - name: "model", - rawName: "v-model", - value: _vm.model, - expression: "model" - } - ], - staticClass: "el-checkbox__original", - attrs: { - type: "checkbox", - "aria-hidden": _vm.indeterminate ? "true" : "false", - disabled: _vm.isDisabled, - name: _vm.name - }, - domProps: { - value: _vm.label, - checked: Array.isArray(_vm.model) - ? _vm._i(_vm.model, _vm.label) > -1 - : _vm.model - }, - on: { - change: [ - function($event) { - var $$a = _vm.model, - $$el = $event.target, - $$c = $$el.checked ? true : false - if (Array.isArray($$a)) { - var $$v = _vm.label, - $$i = _vm._i($$a, $$v) - if ($$el.checked) { - $$i < 0 && (_vm.model = $$a.concat([$$v])) - } else { - $$i > -1 && - (_vm.model = $$a - .slice(0, $$i) - .concat($$a.slice($$i + 1))) - } - } else { - _vm.model = $$c - } - }, - _vm.handleChange - ], - focus: function($event) { - _vm.focus = true - }, - blur: function($event) { - _vm.focus = false - } - } - }) - ] - ), - _vm.$slots.default || _vm.label - ? _c( - "span", - { staticClass: "el-checkbox__label" }, - [ - _vm._t("default"), - !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e() - ], - 2 - ) - : _vm._e() - ] - ) -} -var staticRenderFns = [] -render._withStripped = true - - -// CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=d0387074& - -// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter" -var emitter_ = __webpack_require__(4); -var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - - -/* harmony default export */ var checkboxvue_type_script_lang_js_ = ({ - name: 'ElCheckbox', - - mixins: [emitter_default.a], - - inject: { - elForm: { - default: '' - }, - elFormItem: { - default: '' - } - }, - - componentName: 'ElCheckbox', - - data: function data() { - return { - selfModel: false, - focus: false, - isLimitExceeded: false - }; - }, - - - computed: { - model: { - get: function get() { - return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel; - }, - set: function set(val) { - if (this.isGroup) { - this.isLimitExceeded = false; - this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true); - - this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true); - - this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]); - } else { - this.$emit('input', val); - this.selfModel = val; - } - } - }, - - isChecked: function isChecked() { - if ({}.toString.call(this.model) === '[object Boolean]') { - return this.model; - } else if (Array.isArray(this.model)) { - return this.model.indexOf(this.label) > -1; - } else if (this.model !== null && this.model !== undefined) { - return this.model === this.trueLabel; - } - }, - isGroup: function isGroup() { - var parent = this.$parent; - while (parent) { - if (parent.$options.componentName !== 'ElCheckboxGroup') { - parent = parent.$parent; - } else { - this._checkboxGroup = parent; - return true; - } - } - return false; - }, - store: function store() { - return this._checkboxGroup ? this._checkboxGroup.value : this.value; - }, - - - /* used to make the isDisabled judgment under max/min props */ - isLimitDisabled: function isLimitDisabled() { - var _checkboxGroup = this._checkboxGroup, - max = _checkboxGroup.max, - min = _checkboxGroup.min; - - return !!(max || min) && this.model.length >= max && !this.isChecked || this.model.length <= min && this.isChecked; - }, - isDisabled: function isDisabled() { - return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled; - }, - _elFormItemSize: function _elFormItemSize() { - return (this.elFormItem || {}).elFormItemSize; - }, - checkboxSize: function checkboxSize() { - var temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size; - return this.isGroup ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize : temCheckboxSize; - } - }, - - props: { - value: {}, - label: {}, - indeterminate: Boolean, - disabled: Boolean, - checked: Boolean, - name: String, - trueLabel: [String, Number], - falseLabel: [String, Number], - id: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/ - controls: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/ - border: Boolean, - size: String - }, - - methods: { - addToStore: function addToStore() { - if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) { - this.model.push(this.label); - } else { - this.model = this.trueLabel || true; - } - }, - handleChange: function handleChange(ev) { - var _this = this; - - if (this.isLimitExceeded) return; - var value = void 0; - if (ev.target.checked) { - value = this.trueLabel === undefined ? true : this.trueLabel; - } else { - value = this.falseLabel === undefined ? false : this.falseLabel; - } - this.$emit('change', value, ev); - this.$nextTick(function () { - if (_this.isGroup) { - _this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]); - } - }); - } - }, - - created: function created() { - this.checked && this.addToStore(); - }, - mounted: function mounted() { - // 为indeterminate元素 添加aria-controls 属性 - if (this.indeterminate) { - this.$el.setAttribute('aria-controls', this.controls); - } - }, - - - watch: { - value: function value(_value) { - this.dispatch('ElFormItem', 'el.form.change', _value); - } - } -}); -// CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js& - /* harmony default export */ var src_checkboxvue_type_script_lang_js_ = (checkboxvue_type_script_lang_js_); -// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - src_checkboxvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "packages/checkbox/src/checkbox.vue" -/* harmony default export */ var src_checkbox = (component.exports); -// CONCATENATED MODULE: ./packages/checkbox/index.js - - -/* istanbul ignore next */ -src_checkbox.install = function (Vue) { - Vue.component(src_checkbox.name, src_checkbox); -}; - -/* harmony default export */ var packages_checkbox = __webpack_exports__["default"] = (src_checkbox); - -/***/ }) - -/******/ }); - -/***/ }), - -/***/ "../../node_modules/element-ui/lib/element-ui.common.js": -/*!***********************************************************************************************!*\ - !*** C:/xampp7.3/htdocs/GitHub/AkauntingGit/node_modules/element-ui/lib/element-ui.common.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = -/******/ (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 = "/dist/"; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 44); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/date-util */ "../../node_modules/element-ui/lib/utils/date-util.js"); - -/***/ }), -/* 1 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/dom */ "../../node_modules/element-ui/lib/utils/dom.js"); - -/***/ }), -/* 2 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/util */ "../../node_modules/element-ui/lib/utils/util.js"); - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/mixins/emitter */ "../../node_modules/element-ui/lib/mixins/emitter.js"); - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/mixins/locale */ "../../node_modules/element-ui/lib/mixins/locale.js"); - -/***/ }), -/* 5 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/vue-popper */ "../../node_modules/element-ui/lib/utils/vue-popper.js"); - -/***/ }), -/* 6 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! vue */ "../../node_modules/vue/dist/vue.common.js"); - -/***/ }), -/* 7 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/merge */ "../../node_modules/element-ui/lib/utils/merge.js"); - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/mixins/migrating */ "../../node_modules/element-ui/lib/mixins/migrating.js"); - -/***/ }), -/* 9 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/input */ "../../node_modules/element-ui/lib/input.js"); - -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/clickoutside */ "../../node_modules/element-ui/lib/utils/clickoutside.js"); - -/***/ }), -/* 11 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/resize-event */ "../../node_modules/element-ui/lib/utils/resize-event.js"); - -/***/ }), -/* 12 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/popup */ "../../node_modules/element-ui/lib/utils/popup/index.js"); - -/***/ }), -/* 13 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! throttle-debounce/debounce */ "../../node_modules/throttle-debounce/debounce.js"); - -/***/ }), -/* 14 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/checkbox */ "../../node_modules/element-ui/lib/checkbox.js"); - -/***/ }), -/* 15 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/locale */ "../../node_modules/element-ui/lib/locale/index.js"); - -/***/ }), -/* 16 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/scrollbar */ "../../node_modules/element-ui/lib/scrollbar.js"); - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/button */ "../../node_modules/element-ui/lib/button.js"); - -/***/ }), -/* 18 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/types */ "../../node_modules/element-ui/lib/utils/types.js"); - -/***/ }), -/* 19 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/shared */ "../../node_modules/element-ui/lib/utils/shared.js"); - -/***/ }), -/* 20 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/date */ "../../node_modules/element-ui/lib/utils/date.js"); - -/***/ }), -/* 21 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/transitions/collapse-transition */ "../../node_modules/element-ui/lib/transitions/collapse-transition.js"); - -/***/ }), -/* 22 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/mixins/focus */ "../../node_modules/element-ui/lib/mixins/focus.js"); - -/***/ }), -/* 23 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/vdom */ "../../node_modules/element-ui/lib/utils/vdom.js"); - -/***/ }), -/* 24 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "../../node_modules/babel-helper-vue-jsx-merge-props/index.js"); - -/***/ }), -/* 25 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! throttle-debounce/throttle */ "../../node_modules/throttle-debounce/throttle.js"); - -/***/ }), -/* 26 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/tooltip */ "../../node_modules/element-ui/lib/tooltip.js"); - -/***/ }), -/* 27 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/scroll-into-view */ "../../node_modules/element-ui/lib/utils/scroll-into-view.js"); - -/***/ }), -/* 28 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/tag */ "../../node_modules/element-ui/lib/tag.js"); - -/***/ }), -/* 29 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/scrollbar-width */ "../../node_modules/element-ui/lib/utils/scrollbar-width.js"); - -/***/ }), -/* 30 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/checkbox-group */ "../../node_modules/element-ui/lib/checkbox-group.js"); - -/***/ }), -/* 31 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/after-leave */ "../../node_modules/element-ui/lib/utils/after-leave.js"); - -/***/ }), -/* 32 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/progress */ "../../node_modules/element-ui/lib/progress.js"); - -/***/ }), -/* 33 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/aria-utils */ "../../node_modules/element-ui/lib/utils/aria-utils.js"); - -/***/ }), -/* 34 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! throttle-debounce */ "../../node_modules/throttle-debounce/index.js"); - -/***/ }), -/* 35 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/select */ "../../node_modules/element-ui/lib/select.js"); - -/***/ }), -/* 36 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/option */ "../../node_modules/element-ui/lib/option.js"); - -/***/ }), -/* 37 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/button-group */ "../../node_modules/element-ui/lib/button-group.js"); - -/***/ }), -/* 38 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! normalize-wheel */ "../../node_modules/normalize-wheel/index.js"); - -/***/ }), -/* 39 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/utils/aria-dialog */ "../../node_modules/element-ui/lib/utils/aria-dialog.js"); - -/***/ }), -/* 40 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! async-validator */ "../../node_modules/async-validator/es/index.js"); - -/***/ }), -/* 41 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/input-number */ "../../node_modules/element-ui/lib/input-number.js"); - -/***/ }), -/* 42 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/cascader-panel */ "../../node_modules/element-ui/lib/cascader-panel.js"); - -/***/ }), -/* 43 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__(/*! element-ui/lib/radio */ "../../node_modules/element-ui/lib/radio.js"); - -/***/ }), -/* 44 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(45); - - -/***/ }), -/* 45 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=template&id=7274f267& -var pagervue_type_template_id_7274f267_render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "ul", - { staticClass: "el-pager", on: { click: _vm.onPagerClick } }, - [ - _vm.pageCount > 0 - ? _c( - "li", - { - staticClass: "number", - class: { active: _vm.currentPage === 1, disabled: _vm.disabled } - }, - [_vm._v("1")] - ) - : _vm._e(), - _vm.showPrevMore - ? _c("li", { - staticClass: "el-icon more btn-quickprev", - class: [_vm.quickprevIconClass, { disabled: _vm.disabled }], - on: { - mouseenter: function($event) { - _vm.onMouseenter("left") - }, - mouseleave: function($event) { - _vm.quickprevIconClass = "el-icon-more" - } - } - }) - : _vm._e(), - _vm._l(_vm.pagers, function(pager) { - return _c( - "li", - { - key: pager, - staticClass: "number", - class: { active: _vm.currentPage === pager, disabled: _vm.disabled } - }, - [_vm._v(_vm._s(pager))] - ) - }), - _vm.showNextMore - ? _c("li", { - staticClass: "el-icon more btn-quicknext", - class: [_vm.quicknextIconClass, { disabled: _vm.disabled }], - on: { - mouseenter: function($event) { - _vm.onMouseenter("right") - }, - mouseleave: function($event) { - _vm.quicknextIconClass = "el-icon-more" - } - } - }) - : _vm._e(), - _vm.pageCount > 1 - ? _c( - "li", - { - staticClass: "number", - class: { - active: _vm.currentPage === _vm.pageCount, - disabled: _vm.disabled - } - }, - [_vm._v(_vm._s(_vm.pageCount))] - ) - : _vm._e() - ], - 2 - ) -} -var staticRenderFns = [] -pagervue_type_template_id_7274f267_render._withStripped = true - - -// CONCATENATED MODULE: ./packages/pagination/src/pager.vue?vue&type=template&id=7274f267& - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var pagervue_type_script_lang_js_ = ({ - name: 'ElPager', - - props: { - currentPage: Number, - - pageCount: Number, - - pagerCount: Number, - - disabled: Boolean - }, - - watch: { - showPrevMore: function showPrevMore(val) { - if (!val) this.quickprevIconClass = 'el-icon-more'; - }, - showNextMore: function showNextMore(val) { - if (!val) this.quicknextIconClass = 'el-icon-more'; - } - }, - - methods: { - onPagerClick: function onPagerClick(event) { - var target = event.target; - if (target.tagName === 'UL' || this.disabled) { - return; - } - - var newPage = Number(event.target.textContent); - var pageCount = this.pageCount; - var currentPage = this.currentPage; - var pagerCountOffset = this.pagerCount - 2; - - if (target.className.indexOf('more') !== -1) { - if (target.className.indexOf('quickprev') !== -1) { - newPage = currentPage - pagerCountOffset; - } else if (target.className.indexOf('quicknext') !== -1) { - newPage = currentPage + pagerCountOffset; - } - } - - /* istanbul ignore if */ - if (!isNaN(newPage)) { - if (newPage < 1) { - newPage = 1; - } - - if (newPage > pageCount) { - newPage = pageCount; - } - } - - if (newPage !== currentPage) { - this.$emit('change', newPage); - } - }, - onMouseenter: function onMouseenter(direction) { - if (this.disabled) return; - if (direction === 'left') { - this.quickprevIconClass = 'el-icon-d-arrow-left'; - } else { - this.quicknextIconClass = 'el-icon-d-arrow-right'; - } - } - }, - - computed: { - pagers: function pagers() { - var pagerCount = this.pagerCount; - var halfPagerCount = (pagerCount - 1) / 2; - - var currentPage = Number(this.currentPage); - var pageCount = Number(this.pageCount); - - var showPrevMore = false; - var showNextMore = false; - - if (pageCount > pagerCount) { - if (currentPage > pagerCount - halfPagerCount) { - showPrevMore = true; - } - - if (currentPage < pageCount - halfPagerCount) { - showNextMore = true; - } - } - - var array = []; - - if (showPrevMore && !showNextMore) { - var startPage = pageCount - (pagerCount - 2); - for (var i = startPage; i < pageCount; i++) { - array.push(i); - } - } else if (!showPrevMore && showNextMore) { - for (var _i = 2; _i < pagerCount; _i++) { - array.push(_i); - } - } else if (showPrevMore && showNextMore) { - var offset = Math.floor(pagerCount / 2) - 1; - for (var _i2 = currentPage - offset; _i2 <= currentPage + offset; _i2++) { - array.push(_i2); - } - } else { - for (var _i3 = 2; _i3 < pageCount; _i3++) { - array.push(_i3); - } - } - - this.showPrevMore = showPrevMore; - this.showNextMore = showNextMore; - - return array; - } - }, - - data: function data() { - return { - current: null, - showPrevMore: false, - showNextMore: false, - quicknextIconClass: 'el-icon-more', - quickprevIconClass: 'el-icon-more' - }; - } -}); -// CONCATENATED MODULE: ./packages/pagination/src/pager.vue?vue&type=script&lang=js& - /* harmony default export */ var src_pagervue_type_script_lang_js_ = (pagervue_type_script_lang_js_); -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -/* globals __VUE_SSR_CONTEXT__ */ - -// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). -// This module is a runtime utility for cleaner component module output and will -// be included in the final webpack user bundle. - -function normalizeComponent ( - scriptExports, - render, - staticRenderFns, - functionalTemplate, - injectStyles, - scopeId, - moduleIdentifier, /* server only */ - shadowMode /* vue-cli only */ -) { - // Vue.extend constructor export interop - var options = typeof scriptExports === 'function' - ? scriptExports.options - : scriptExports - - // render functions - if (render) { - options.render = render - options.staticRenderFns = staticRenderFns - options._compiled = true - } - - // functional template - if (functionalTemplate) { - options.functional = true - } - - // scopedId - if (scopeId) { - options._scopeId = 'data-v-' + scopeId - } - - var hook - if (moduleIdentifier) { // server build - hook = function (context) { - // 2.3 injection - context = - context || // cached call - (this.$vnode && this.$vnode.ssrContext) || // stateful - (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional - // 2.2 with runInNewContext: true - if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { - context = __VUE_SSR_CONTEXT__ - } - // inject component styles - if (injectStyles) { - injectStyles.call(this, context) - } - // register component module identifier for async chunk inferrence - if (context && context._registeredComponents) { - context._registeredComponents.add(moduleIdentifier) - } - } - // used by ssr in case component is cached and beforeCreate - // never gets called - options._ssrRegister = hook - } else if (injectStyles) { - hook = shadowMode - ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } - : injectStyles - } - - if (hook) { - if (options.functional) { - // for template-only hot-reload because in that case the render fn doesn't - // go through the normalizer - options._injectStyles = hook - // register for functioal component in vue file - var originalRender = options.render - options.render = function renderWithStyleInjection (h, context) { - hook.call(context) - return originalRender(h, context) - } - } else { - // inject component registration as beforeCreate hook - var existing = options.beforeCreate - options.beforeCreate = existing - ? [].concat(existing, hook) - : [hook] - } - } - - return { - exports: scriptExports, - options: options - } -} - -// CONCATENATED MODULE: ./packages/pagination/src/pager.vue - - - - - -/* normalize component */ - -var component = normalizeComponent( - src_pagervue_type_script_lang_js_, - pagervue_type_template_id_7274f267_render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "packages/pagination/src/pager.vue" -/* harmony default export */ var pager = (component.exports); -// EXTERNAL MODULE: external "element-ui/lib/select" -var select_ = __webpack_require__(35); -var select_default = /*#__PURE__*/__webpack_require__.n(select_); - -// EXTERNAL MODULE: external "element-ui/lib/option" -var option_ = __webpack_require__(36); -var option_default = /*#__PURE__*/__webpack_require__.n(option_); - -// EXTERNAL MODULE: external "element-ui/lib/input" -var input_ = __webpack_require__(9); -var input_default = /*#__PURE__*/__webpack_require__.n(input_); - -// EXTERNAL MODULE: external "element-ui/lib/mixins/locale" -var locale_ = __webpack_require__(4); -var locale_default = /*#__PURE__*/__webpack_require__.n(locale_); - -// EXTERNAL MODULE: external "element-ui/lib/utils/util" -var util_ = __webpack_require__(2); - -// CONCATENATED MODULE: ./packages/pagination/src/pagination.js - - - - - - - -/* harmony default export */ var pagination = ({ - name: 'ElPagination', - - props: { - pageSize: { - type: Number, - default: 10 - }, - - small: Boolean, - - total: Number, - - pageCount: Number, - - pagerCount: { - type: Number, - validator: function validator(value) { - return (value | 0) === value && value > 4 && value < 22 && value % 2 === 1; - }, - - default: 7 - }, - - currentPage: { - type: Number, - default: 1 - }, - - layout: { - default: 'prev, pager, next, jumper, ->, total' - }, - - pageSizes: { - type: Array, - default: function _default() { - return [10, 20, 30, 40, 50, 100]; - } - }, - - popperClass: String, - - prevText: String, - - nextText: String, - - background: Boolean, - - disabled: Boolean, - - hideOnSinglePage: Boolean - }, - - data: function data() { - return { - internalCurrentPage: 1, - internalPageSize: 0, - lastEmittedPage: -1, - userChangePageSize: false - }; - }, - render: function render(h) { - var layout = this.layout; - if (!layout) return null; - if (this.hideOnSinglePage && (!this.internalPageCount || this.internalPageCount === 1)) return null; - - var template = h('div', { 'class': ['el-pagination', { - 'is-background': this.background, - 'el-pagination--small': this.small - }] }); - var TEMPLATE_MAP = { - prev: h('prev'), - jumper: h('jumper'), - pager: h('pager', { - attrs: { currentPage: this.internalCurrentPage, pageCount: this.internalPageCount, pagerCount: this.pagerCount, disabled: this.disabled }, - on: { - 'change': this.handleCurrentChange - } - }), - next: h('next'), - sizes: h('sizes', { - attrs: { pageSizes: this.pageSizes } - }), - slot: h('slot', [this.$slots.default ? this.$slots.default : '']), - total: h('total') - }; - var components = layout.split(',').map(function (item) { - return item.trim(); - }); - var rightWrapper = h('div', { 'class': 'el-pagination__rightwrapper' }); - var haveRightWrapper = false; - - template.children = template.children || []; - rightWrapper.children = rightWrapper.children || []; - components.forEach(function (compo) { - if (compo === '->') { - haveRightWrapper = true; - return; - } - - if (!haveRightWrapper) { - template.children.push(TEMPLATE_MAP[compo]); - } else { - rightWrapper.children.push(TEMPLATE_MAP[compo]); - } - }); - - if (haveRightWrapper) { - template.children.unshift(rightWrapper); - } - - return template; - }, - - - components: { - Prev: { - render: function render(h) { - return h( - 'button', - { - attrs: { - type: 'button', - - disabled: this.$parent.disabled || this.$parent.internalCurrentPage <= 1 - }, - 'class': 'btn-prev', on: { - 'click': this.$parent.prev - } - }, - [this.$parent.prevText ? h('span', [this.$parent.prevText]) : h('i', { 'class': 'el-icon el-icon-arrow-left' })] - ); - } - }, - - Next: { - render: function render(h) { - return h( - 'button', - { - attrs: { - type: 'button', - - disabled: this.$parent.disabled || this.$parent.internalCurrentPage === this.$parent.internalPageCount || this.$parent.internalPageCount === 0 - }, - 'class': 'btn-next', on: { - 'click': this.$parent.next - } - }, - [this.$parent.nextText ? h('span', [this.$parent.nextText]) : h('i', { 'class': 'el-icon el-icon-arrow-right' })] - ); - } - }, - - Sizes: { - mixins: [locale_default.a], - - props: { - pageSizes: Array - }, - - watch: { - pageSizes: { - immediate: true, - handler: function handler(newVal, oldVal) { - if (Object(util_["valueEquals"])(newVal, oldVal)) return; - if (Array.isArray(newVal)) { - this.$parent.internalPageSize = newVal.indexOf(this.$parent.pageSize) > -1 ? this.$parent.pageSize : this.pageSizes[0]; - } - } - } - }, - - render: function render(h) { - var _this = this; - - return h( - 'span', - { 'class': 'el-pagination__sizes' }, - [h( - 'el-select', - { - attrs: { - value: this.$parent.internalPageSize, - popperClass: this.$parent.popperClass || '', - size: 'mini', - - disabled: this.$parent.disabled }, - on: { - 'input': this.handleChange - } - }, - [this.pageSizes.map(function (item) { - return h('el-option', { - attrs: { - value: item, - label: item + _this.t('el.pagination.pagesize') } - }); - })] - )] - ); - }, - - - components: { - ElSelect: select_default.a, - ElOption: option_default.a - }, - - methods: { - handleChange: function handleChange(val) { - if (val !== this.$parent.internalPageSize) { - this.$parent.internalPageSize = val = parseInt(val, 10); - this.$parent.userChangePageSize = true; - this.$parent.$emit('update:pageSize', val); - this.$parent.$emit('size-change', val); - } - } - } - }, - - Jumper: { - mixins: [locale_default.a], - - components: { ElInput: input_default.a }, - - data: function data() { - return { - userInput: null - }; - }, - - - watch: { - '$parent.internalCurrentPage': function $parentInternalCurrentPage() { - this.userInput = null; - } - }, - - methods: { - handleKeyup: function handleKeyup(_ref) { - var keyCode = _ref.keyCode, - target = _ref.target; - - // Chrome, Safari, Firefox triggers change event on Enter - // Hack for IE: https://github.com/ElemeFE/element/issues/11710 - // Drop this method when we no longer supports IE - if (keyCode === 13) { - this.handleChange(target.value); - } - }, - handleInput: function handleInput(value) { - this.userInput = value; - }, - handleChange: function handleChange(value) { - this.$parent.internalCurrentPage = this.$parent.getValidCurrentPage(value); - this.$parent.emitChange(); - this.userInput = null; - } - }, - - render: function render(h) { - return h( - 'span', - { 'class': 'el-pagination__jump' }, - [this.t('el.pagination.goto'), h('el-input', { - 'class': 'el-pagination__editor is-in-pagination', - attrs: { min: 1, - max: this.$parent.internalPageCount, - value: this.userInput !== null ? this.userInput : this.$parent.internalCurrentPage, - type: 'number', - disabled: this.$parent.disabled - }, - nativeOn: { - 'keyup': this.handleKeyup - }, - on: { - 'input': this.handleInput, - 'change': this.handleChange - } - }), this.t('el.pagination.pageClassifier')] - ); - } - }, - - Total: { - mixins: [locale_default.a], - - render: function render(h) { - return typeof this.$parent.total === 'number' ? h( - 'span', - { 'class': 'el-pagination__total' }, - [this.t('el.pagination.total', { total: this.$parent.total })] - ) : ''; - } - }, - - Pager: pager - }, - - methods: { - handleCurrentChange: function handleCurrentChange(val) { - this.internalCurrentPage = this.getValidCurrentPage(val); - this.userChangePageSize = true; - this.emitChange(); - }, - prev: function prev() { - if (this.disabled) return; - var newVal = this.internalCurrentPage - 1; - this.internalCurrentPage = this.getValidCurrentPage(newVal); - this.$emit('prev-click', this.internalCurrentPage); - this.emitChange(); - }, - next: function next() { - if (this.disabled) return; - var newVal = this.internalCurrentPage + 1; - this.internalCurrentPage = this.getValidCurrentPage(newVal); - this.$emit('next-click', this.internalCurrentPage); - this.emitChange(); - }, - getValidCurrentPage: function getValidCurrentPage(value) { - value = parseInt(value, 10); - - var havePageCount = typeof this.internalPageCount === 'number'; - - var resetValue = void 0; - if (!havePageCount) { - if (isNaN(value) || value < 1) resetValue = 1; - } else { - if (value < 1) { - resetValue = 1; - } else if (value > this.internalPageCount) { - resetValue = this.internalPageCount; - } - } - - if (resetValue === undefined && isNaN(value)) { - resetValue = 1; - } else if (resetValue === 0) { - resetValue = 1; - } - - return resetValue === undefined ? value : resetValue; - }, - emitChange: function emitChange() { - var _this2 = this; - - this.$nextTick(function () { - if (_this2.internalCurrentPage !== _this2.lastEmittedPage || _this2.userChangePageSize) { - _this2.$emit('current-change', _this2.internalCurrentPage); - _this2.lastEmittedPage = _this2.internalCurrentPage; - _this2.userChangePageSize = false; - } - }); - } - }, - - computed: { - internalPageCount: function internalPageCount() { - if (typeof this.total === 'number') { - return Math.max(1, Math.ceil(this.total / this.internalPageSize)); - } else if (typeof this.pageCount === 'number') { - return Math.max(1, this.pageCount); - } - return null; - } - }, - - watch: { - currentPage: { - immediate: true, - handler: function handler(val) { - this.internalCurrentPage = this.getValidCurrentPage(val); - } - }, - - pageSize: { - immediate: true, - handler: function handler(val) { - this.internalPageSize = isNaN(val) ? 10 : val; - } - }, - - internalCurrentPage: { - immediate: true, - handler: function handler(newVal) { - this.$emit('update:currentPage', newVal); - this.lastEmittedPage = -1; - } - }, - - internalPageCount: function internalPageCount(newVal) { - /* istanbul ignore if */ - var oldPage = this.internalCurrentPage; - if (newVal > 0 && oldPage === 0) { - this.internalCurrentPage = 1; - } else if (oldPage > newVal) { - this.internalCurrentPage = newVal === 0 ? 1 : newVal; - this.userChangePageSize && this.emitChange(); - } - this.userChangePageSize = false; - } - } -}); -// CONCATENATED MODULE: ./packages/pagination/index.js - - -/* istanbul ignore next */ -pagination.install = function (Vue) { - Vue.component(pagination.name, pagination); -}; - -/* harmony default export */ var packages_pagination = (pagination); -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/component.vue?vue&type=template&id=60140e62& -var componentvue_type_template_id_60140e62_render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "transition", - { - attrs: { name: "dialog-fade" }, - on: { "after-enter": _vm.afterEnter, "after-leave": _vm.afterLeave } - }, - [ - _c( - "div", - { - directives: [ - { - name: "show", - rawName: "v-show", - value: _vm.visible, - expression: "visible" - } - ], - staticClass: "el-dialog__wrapper", - on: { - click: function($event) { - if ($event.target !== $event.currentTarget) { - return null - } - return _vm.handleWrapperClick($event) - } - } - }, - [ - _c( - "div", - { - key: _vm.key, - ref: "dialog", - class: [ - "el-dialog", - { - "is-fullscreen": _vm.fullscreen, - "el-dialog--center": _vm.center - }, - _vm.customClass - ], - style: _vm.style, - attrs: { - role: "dialog", - "aria-modal": "true", - "aria-label": _vm.title || "dialog" - } - }, - [ - _c( - "div", - { staticClass: "el-dialog__header" }, - [ - _vm._t("title", [ - _c("span", { staticClass: "el-dialog__title" }, [ - _vm._v(_vm._s(_vm.title)) - ]) - ]), - _vm.showClose - ? _c( - "button", - { - staticClass: "el-dialog__headerbtn", - attrs: { type: "button", "aria-label": "Close" }, - on: { click: _vm.handleClose } - }, - [ - _c("i", { - staticClass: - "el-dialog__close el-icon el-icon-close" - }) - ] - ) - : _vm._e() - ], - 2 - ), - _vm.rendered - ? _c( - "div", - { staticClass: "el-dialog__body" }, - [_vm._t("default")], - 2 - ) - : _vm._e(), - _vm.$slots.footer - ? _c( - "div", - { staticClass: "el-dialog__footer" }, - [_vm._t("footer")], - 2 - ) - : _vm._e() - ] - ) - ] - ) - ] - ) -} -var componentvue_type_template_id_60140e62_staticRenderFns = [] -componentvue_type_template_id_60140e62_render._withStripped = true - - -// CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=template&id=60140e62& - -// EXTERNAL MODULE: external "element-ui/lib/utils/popup" -var popup_ = __webpack_require__(12); -var popup_default = /*#__PURE__*/__webpack_require__.n(popup_); - -// EXTERNAL MODULE: external "element-ui/lib/mixins/migrating" -var migrating_ = __webpack_require__(8); -var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_); - -// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter" -var emitter_ = __webpack_require__(3); -var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/component.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - - - - -/* harmony default export */ var componentvue_type_script_lang_js_ = ({ - name: 'ElDialog', - - mixins: [popup_default.a, emitter_default.a, migrating_default.a], - - props: { - title: { - type: String, - default: '' - }, - - modal: { - type: Boolean, - default: true - }, - - modalAppendToBody: { - type: Boolean, - default: true - }, - - appendToBody: { - type: Boolean, - default: false - }, - - lockScroll: { - type: Boolean, - default: true - }, - - closeOnClickModal: { - type: Boolean, - default: true - }, - - closeOnPressEscape: { - type: Boolean, - default: true - }, - - showClose: { - type: Boolean, - default: true - }, - - width: String, - - fullscreen: Boolean, - - customClass: { - type: String, - default: '' - }, - - top: { - type: String, - default: '15vh' - }, - beforeClose: Function, - center: { - type: Boolean, - default: false - }, - - destroyOnClose: Boolean - }, - - data: function data() { - return { - closed: false, - key: 0 - }; - }, - - - watch: { - visible: function visible(val) { - var _this = this; - - if (val) { - this.closed = false; - this.$emit('open'); - this.$el.addEventListener('scroll', this.updatePopper); - this.$nextTick(function () { - _this.$refs.dialog.scrollTop = 0; - }); - if (this.appendToBody) { - document.body.appendChild(this.$el); - } - } else { - this.$el.removeEventListener('scroll', this.updatePopper); - if (!this.closed) this.$emit('close'); - if (this.destroyOnClose) { - this.$nextTick(function () { - _this.key++; - }); - } - } - } - }, - - computed: { - style: function style() { - var style = {}; - if (!this.fullscreen) { - style.marginTop = this.top; - if (this.width) { - style.width = this.width; - } - } - return style; - } - }, - - methods: { - getMigratingConfig: function getMigratingConfig() { - return { - props: { - 'size': 'size is removed.' - } - }; - }, - handleWrapperClick: function handleWrapperClick() { - if (!this.closeOnClickModal) return; - this.handleClose(); - }, - handleClose: function handleClose() { - if (typeof this.beforeClose === 'function') { - this.beforeClose(this.hide); - } else { - this.hide(); - } - }, - hide: function hide(cancel) { - if (cancel !== false) { - this.$emit('update:visible', false); - this.$emit('close'); - this.closed = true; - } - }, - updatePopper: function updatePopper() { - this.broadcast('ElSelectDropdown', 'updatePopper'); - this.broadcast('ElDropdownMenu', 'updatePopper'); - }, - afterEnter: function afterEnter() { - this.$emit('opened'); - }, - afterLeave: function afterLeave() { - this.$emit('closed'); - } - }, - - mounted: function mounted() { - if (this.visible) { - this.rendered = true; - this.open(); - if (this.appendToBody) { - document.body.appendChild(this.$el); - } - } - }, - destroyed: function destroyed() { - // if appendToBody is true, remove DOM node after destroy - if (this.appendToBody && this.$el && this.$el.parentNode) { - this.$el.parentNode.removeChild(this.$el); - } - } -}); -// CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=script&lang=js& - /* harmony default export */ var src_componentvue_type_script_lang_js_ = (componentvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/dialog/src/component.vue - - - - - -/* normalize component */ - -var component_component = normalizeComponent( - src_componentvue_type_script_lang_js_, - componentvue_type_template_id_60140e62_render, - componentvue_type_template_id_60140e62_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var component_api; } -component_component.options.__file = "packages/dialog/src/component.vue" -/* harmony default export */ var src_component = (component_component.exports); -// CONCATENATED MODULE: ./packages/dialog/index.js - - -/* istanbul ignore next */ -src_component.install = function (Vue) { - Vue.component(src_component.name, src_component); -}; - -/* harmony default export */ var dialog = (src_component); -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete.vue?vue&type=template&id=152f2ee6& -var autocompletevue_type_template_id_152f2ee6_render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "div", - { - directives: [ - { - name: "clickoutside", - rawName: "v-clickoutside", - value: _vm.close, - expression: "close" - } - ], - staticClass: "el-autocomplete", - attrs: { - "aria-haspopup": "listbox", - role: "combobox", - "aria-expanded": _vm.suggestionVisible, - "aria-owns": _vm.id - } - }, - [ - _c( - "el-input", - _vm._b( - { - ref: "input", - on: { - input: _vm.handleChange, - focus: _vm.handleFocus, - blur: _vm.handleBlur, - clear: _vm.handleClear - }, - nativeOn: { - keydown: [ - function($event) { - if ( - !("button" in $event) && - _vm._k($event.keyCode, "up", 38, $event.key, [ - "Up", - "ArrowUp" - ]) - ) { - return null - } - $event.preventDefault() - _vm.highlight(_vm.highlightedIndex - 1) - }, - function($event) { - if ( - !("button" in $event) && - _vm._k($event.keyCode, "down", 40, $event.key, [ - "Down", - "ArrowDown" - ]) - ) { - return null - } - $event.preventDefault() - _vm.highlight(_vm.highlightedIndex + 1) - }, - function($event) { - if ( - !("button" in $event) && - _vm._k($event.keyCode, "enter", 13, $event.key, "Enter") - ) { - return null - } - return _vm.handleKeyEnter($event) - }, - function($event) { - if ( - !("button" in $event) && - _vm._k($event.keyCode, "tab", 9, $event.key, "Tab") - ) { - return null - } - return _vm.close($event) - } - ] - } - }, - "el-input", - [_vm.$props, _vm.$attrs], - false - ), - [ - _vm.$slots.prepend - ? _c("template", { slot: "prepend" }, [_vm._t("prepend")], 2) - : _vm._e(), - _vm.$slots.append - ? _c("template", { slot: "append" }, [_vm._t("append")], 2) - : _vm._e(), - _vm.$slots.prefix - ? _c("template", { slot: "prefix" }, [_vm._t("prefix")], 2) - : _vm._e(), - _vm.$slots.suffix - ? _c("template", { slot: "suffix" }, [_vm._t("suffix")], 2) - : _vm._e() - ], - 2 - ), - _c( - "el-autocomplete-suggestions", - { - ref: "suggestions", - class: [_vm.popperClass ? _vm.popperClass : ""], - attrs: { - "visible-arrow": "", - "popper-options": _vm.popperOptions, - "append-to-body": _vm.popperAppendToBody, - placement: _vm.placement, - id: _vm.id - } - }, - _vm._l(_vm.suggestions, function(item, index) { - return _c( - "li", - { - key: index, - class: { highlighted: _vm.highlightedIndex === index }, - attrs: { - id: _vm.id + "-item-" + index, - role: "option", - "aria-selected": _vm.highlightedIndex === index - }, - on: { - click: function($event) { - _vm.select(item) - } - } - }, - [ - _vm._t( - "default", - [ - _vm._v("\n " + _vm._s(item[_vm.valueKey]) + "\n ") - ], - { item: item } - ) - ], - 2 - ) - }), - 0 - ) - ], - 1 - ) -} -var autocompletevue_type_template_id_152f2ee6_staticRenderFns = [] -autocompletevue_type_template_id_152f2ee6_render._withStripped = true - - -// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete.vue?vue&type=template&id=152f2ee6& - -// EXTERNAL MODULE: external "throttle-debounce/debounce" -var debounce_ = __webpack_require__(13); -var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_); - -// EXTERNAL MODULE: external "element-ui/lib/utils/clickoutside" -var clickoutside_ = __webpack_require__(10); -var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_); - -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=template&id=cd10dcf0& -var autocomplete_suggestionsvue_type_template_id_cd10dcf0_render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "transition", - { attrs: { name: "el-zoom-in-top" }, on: { "after-leave": _vm.doDestroy } }, - [ - _c( - "div", - { - directives: [ - { - name: "show", - rawName: "v-show", - value: _vm.showPopper, - expression: "showPopper" - } - ], - staticClass: "el-autocomplete-suggestion el-popper", - class: { - "is-loading": !_vm.parent.hideLoading && _vm.parent.loading - }, - style: { width: _vm.dropdownWidth }, - attrs: { role: "region" } - }, - [ - _c( - "el-scrollbar", - { - attrs: { - tag: "ul", - "wrap-class": "el-autocomplete-suggestion__wrap", - "view-class": "el-autocomplete-suggestion__list" - } - }, - [ - !_vm.parent.hideLoading && _vm.parent.loading - ? _c("li", [_c("i", { staticClass: "el-icon-loading" })]) - : _vm._t("default") - ], - 2 - ) - ], - 1 - ) - ] - ) -} -var autocomplete_suggestionsvue_type_template_id_cd10dcf0_staticRenderFns = [] -autocomplete_suggestionsvue_type_template_id_cd10dcf0_render._withStripped = true - - -// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=template&id=cd10dcf0& - -// EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper" -var vue_popper_ = __webpack_require__(5); -var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_); - -// EXTERNAL MODULE: external "element-ui/lib/scrollbar" -var scrollbar_ = __webpack_require__(16); -var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - - - - -/* harmony default export */ var autocomplete_suggestionsvue_type_script_lang_js_ = ({ - components: { ElScrollbar: scrollbar_default.a }, - mixins: [vue_popper_default.a, emitter_default.a], - - componentName: 'ElAutocompleteSuggestions', - - data: function data() { - return { - parent: this.$parent, - dropdownWidth: '' - }; - }, - - - props: { - options: { - default: function _default() { - return { - gpuAcceleration: false - }; - } - }, - id: String - }, - - methods: { - select: function select(item) { - this.dispatch('ElAutocomplete', 'item-click', item); - } - }, - - updated: function updated() { - var _this = this; - - this.$nextTick(function (_) { - _this.popperJS && _this.updatePopper(); - }); - }, - mounted: function mounted() { - this.$parent.popperElm = this.popperElm = this.$el; - this.referenceElm = this.$parent.$refs.input.$refs.input; - this.referenceList = this.$el.querySelector('.el-autocomplete-suggestion__list'); - this.referenceList.setAttribute('role', 'listbox'); - this.referenceList.setAttribute('id', this.id); - }, - created: function created() { - var _this2 = this; - - this.$on('visible', function (val, inputWidth) { - _this2.dropdownWidth = inputWidth + 'px'; - _this2.showPopper = val; - }); - } -}); -// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=script&lang=js& - /* harmony default export */ var src_autocomplete_suggestionsvue_type_script_lang_js_ = (autocomplete_suggestionsvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue - - - - - -/* normalize component */ - -var autocomplete_suggestions_component = normalizeComponent( - src_autocomplete_suggestionsvue_type_script_lang_js_, - autocomplete_suggestionsvue_type_template_id_cd10dcf0_render, - autocomplete_suggestionsvue_type_template_id_cd10dcf0_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var autocomplete_suggestions_api; } -autocomplete_suggestions_component.options.__file = "packages/autocomplete/src/autocomplete-suggestions.vue" -/* harmony default export */ var autocomplete_suggestions = (autocomplete_suggestions_component.exports); -// EXTERNAL MODULE: external "element-ui/lib/mixins/focus" -var focus_ = __webpack_require__(22); -var focus_default = /*#__PURE__*/__webpack_require__.n(focus_); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - - - - - - - - - -/* harmony default export */ var autocompletevue_type_script_lang_js_ = ({ - name: 'ElAutocomplete', - - mixins: [emitter_default.a, focus_default()('input'), migrating_default.a], - - inheritAttrs: false, - - componentName: 'ElAutocomplete', - - components: { - ElInput: input_default.a, - ElAutocompleteSuggestions: autocomplete_suggestions - }, - - directives: { Clickoutside: clickoutside_default.a }, - - props: { - valueKey: { - type: String, - default: 'value' - }, - popperClass: String, - popperOptions: Object, - placeholder: String, - clearable: { - type: Boolean, - default: false - }, - disabled: Boolean, - name: String, - size: String, - value: String, - maxlength: Number, - minlength: Number, - autofocus: Boolean, - fetchSuggestions: Function, - triggerOnFocus: { - type: Boolean, - default: true - }, - customItem: String, - selectWhenUnmatched: { - type: Boolean, - default: false - }, - prefixIcon: String, - suffixIcon: String, - label: String, - debounce: { - type: Number, - default: 300 - }, - placement: { - type: String, - default: 'bottom-start' - }, - hideLoading: Boolean, - popperAppendToBody: { - type: Boolean, - default: true - }, - highlightFirstItem: { - type: Boolean, - default: false - } - }, - data: function data() { - return { - activated: false, - suggestions: [], - loading: false, - highlightedIndex: -1, - suggestionDisabled: false - }; - }, - - computed: { - suggestionVisible: function suggestionVisible() { - var suggestions = this.suggestions; - var isValidData = Array.isArray(suggestions) && suggestions.length > 0; - return (isValidData || this.loading) && this.activated; - }, - id: function id() { - return 'el-autocomplete-' + Object(util_["generateId"])(); - } - }, - watch: { - suggestionVisible: function suggestionVisible(val) { - var $input = this.getInput(); - if ($input) { - this.broadcast('ElAutocompleteSuggestions', 'visible', [val, $input.offsetWidth]); - } - } - }, - methods: { - getMigratingConfig: function getMigratingConfig() { - return { - props: { - 'custom-item': 'custom-item is removed, use scoped slot instead.', - 'props': 'props is removed, use value-key instead.' - } - }; - }, - getData: function getData(queryString) { - var _this = this; - - if (this.suggestionDisabled) { - return; - } - this.loading = true; - this.fetchSuggestions(queryString, function (suggestions) { - _this.loading = false; - if (_this.suggestionDisabled) { - return; - } - if (Array.isArray(suggestions)) { - _this.suggestions = suggestions; - _this.highlightedIndex = _this.highlightFirstItem ? 0 : -1; - } else { - console.error('[Element Error][Autocomplete]autocomplete suggestions must be an array'); - } - }); - }, - handleChange: function handleChange(value) { - this.$emit('input', value); - this.suggestionDisabled = false; - if (!this.triggerOnFocus && !value) { - this.suggestionDisabled = true; - this.suggestions = []; - return; - } - this.debouncedGetData(value); - }, - handleFocus: function handleFocus(event) { - this.activated = true; - this.$emit('focus', event); - if (this.triggerOnFocus) { - this.debouncedGetData(this.value); - } - }, - handleBlur: function handleBlur(event) { - this.$emit('blur', event); - }, - handleClear: function handleClear() { - this.activated = false; - this.$emit('clear'); - }, - close: function close(e) { - this.activated = false; - }, - handleKeyEnter: function handleKeyEnter(e) { - var _this2 = this; - - if (this.suggestionVisible && this.highlightedIndex >= 0 && this.highlightedIndex < this.suggestions.length) { - e.preventDefault(); - this.select(this.suggestions[this.highlightedIndex]); - } else if (this.selectWhenUnmatched) { - this.$emit('select', { value: this.value }); - this.$nextTick(function (_) { - _this2.suggestions = []; - _this2.highlightedIndex = -1; - }); - } - }, - select: function select(item) { - var _this3 = this; - - this.$emit('input', item[this.valueKey]); - this.$emit('select', item); - this.$nextTick(function (_) { - _this3.suggestions = []; - _this3.highlightedIndex = -1; - }); - }, - highlight: function highlight(index) { - if (!this.suggestionVisible || this.loading) { - return; - } - if (index < 0) { - this.highlightedIndex = -1; - return; - } - if (index >= this.suggestions.length) { - index = this.suggestions.length - 1; - } - var suggestion = this.$refs.suggestions.$el.querySelector('.el-autocomplete-suggestion__wrap'); - var suggestionList = suggestion.querySelectorAll('.el-autocomplete-suggestion__list li'); - - var highlightItem = suggestionList[index]; - var scrollTop = suggestion.scrollTop; - var offsetTop = highlightItem.offsetTop; - - if (offsetTop + highlightItem.scrollHeight > scrollTop + suggestion.clientHeight) { - suggestion.scrollTop += highlightItem.scrollHeight; - } - if (offsetTop < scrollTop) { - suggestion.scrollTop -= highlightItem.scrollHeight; - } - this.highlightedIndex = index; - var $input = this.getInput(); - $input.setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex); - }, - getInput: function getInput() { - return this.$refs.input.getInput(); - } - }, - mounted: function mounted() { - var _this4 = this; - - this.debouncedGetData = debounce_default()(this.debounce, this.getData); - this.$on('item-click', function (item) { - _this4.select(item); - }); - var $input = this.getInput(); - $input.setAttribute('role', 'textbox'); - $input.setAttribute('aria-autocomplete', 'list'); - $input.setAttribute('aria-controls', 'id'); - $input.setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex); - }, - beforeDestroy: function beforeDestroy() { - this.$refs.suggestions.$destroy(); - } -}); -// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete.vue?vue&type=script&lang=js& - /* harmony default export */ var src_autocompletevue_type_script_lang_js_ = (autocompletevue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete.vue - - - - - -/* normalize component */ - -var autocomplete_component = normalizeComponent( - src_autocompletevue_type_script_lang_js_, - autocompletevue_type_template_id_152f2ee6_render, - autocompletevue_type_template_id_152f2ee6_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var autocomplete_api; } -autocomplete_component.options.__file = "packages/autocomplete/src/autocomplete.vue" -/* harmony default export */ var autocomplete = (autocomplete_component.exports); -// CONCATENATED MODULE: ./packages/autocomplete/index.js - - -/* istanbul ignore next */ -autocomplete.install = function (Vue) { - Vue.component(autocomplete.name, autocomplete); -}; - -/* harmony default export */ var packages_autocomplete = (autocomplete); -// EXTERNAL MODULE: external "element-ui/lib/button" -var button_ = __webpack_require__(17); -var button_default = /*#__PURE__*/__webpack_require__.n(button_); - -// EXTERNAL MODULE: external "element-ui/lib/button-group" -var button_group_ = __webpack_require__(37); -var button_group_default = /*#__PURE__*/__webpack_require__.n(button_group_); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown.vue?vue&type=script&lang=js& - - - - - - - - -/* harmony default export */ var dropdownvue_type_script_lang_js_ = ({ - name: 'ElDropdown', - - componentName: 'ElDropdown', - - mixins: [emitter_default.a, migrating_default.a], - - directives: { Clickoutside: clickoutside_default.a }, - - components: { - ElButton: button_default.a, - ElButtonGroup: button_group_default.a - }, - - provide: function provide() { - return { - dropdown: this - }; - }, - - - props: { - trigger: { - type: String, - default: 'hover' - }, - type: String, - size: { - type: String, - default: '' - }, - splitButton: Boolean, - hideOnClick: { - type: Boolean, - default: true - }, - placement: { - type: String, - default: 'bottom-end' - }, - visibleArrow: { - default: true - }, - showTimeout: { - type: Number, - default: 250 - }, - hideTimeout: { - type: Number, - default: 150 - }, - tabindex: { - type: Number, - default: 0 - } - }, - - data: function data() { - return { - timeout: null, - visible: false, - triggerElm: null, - menuItems: null, - menuItemsArray: null, - dropdownElm: null, - focusing: false, - listId: 'dropdown-menu-' + Object(util_["generateId"])() - }; - }, - - - computed: { - dropdownSize: function dropdownSize() { - return this.size || (this.$ELEMENT || {}).size; - } - }, - - mounted: function mounted() { - this.$on('menu-item-click', this.handleMenuItemClick); - }, - - - watch: { - visible: function visible(val) { - this.broadcast('ElDropdownMenu', 'visible', val); - this.$emit('visible-change', val); - }, - focusing: function focusing(val) { - var selfDefine = this.$el.querySelector('.el-dropdown-selfdefine'); - if (selfDefine) { - // 自定义 - if (val) { - selfDefine.className += ' focusing'; - } else { - selfDefine.className = selfDefine.className.replace('focusing', ''); - } - } - } - }, - - methods: { - getMigratingConfig: function getMigratingConfig() { - return { - props: { - 'menu-align': 'menu-align is renamed to placement.' - } - }; - }, - show: function show() { - var _this = this; - - if (this.triggerElm.disabled) return; - clearTimeout(this.timeout); - this.timeout = setTimeout(function () { - _this.visible = true; - }, this.trigger === 'click' ? 0 : this.showTimeout); - }, - hide: function hide() { - var _this2 = this; - - if (this.triggerElm.disabled) return; - this.removeTabindex(); - if (this.tabindex >= 0) { - this.resetTabindex(this.triggerElm); - } - clearTimeout(this.timeout); - this.timeout = setTimeout(function () { - _this2.visible = false; - }, this.trigger === 'click' ? 0 : this.hideTimeout); - }, - handleClick: function handleClick() { - if (this.triggerElm.disabled) return; - if (this.visible) { - this.hide(); - } else { - this.show(); - } - }, - handleTriggerKeyDown: function handleTriggerKeyDown(ev) { - var keyCode = ev.keyCode; - if ([38, 40].indexOf(keyCode) > -1) { - // up/down - this.removeTabindex(); - this.resetTabindex(this.menuItems[0]); - this.menuItems[0].focus(); - ev.preventDefault(); - ev.stopPropagation(); - } else if (keyCode === 13) { - // space enter选中 - this.handleClick(); - } else if ([9, 27].indexOf(keyCode) > -1) { - // tab || esc - this.hide(); - } - }, - handleItemKeyDown: function handleItemKeyDown(ev) { - var keyCode = ev.keyCode; - var target = ev.target; - var currentIndex = this.menuItemsArray.indexOf(target); - var max = this.menuItemsArray.length - 1; - var nextIndex = void 0; - if ([38, 40].indexOf(keyCode) > -1) { - // up/down - if (keyCode === 38) { - // up - nextIndex = currentIndex !== 0 ? currentIndex - 1 : 0; - } else { - // down - nextIndex = currentIndex < max ? currentIndex + 1 : max; - } - this.removeTabindex(); - this.resetTabindex(this.menuItems[nextIndex]); - this.menuItems[nextIndex].focus(); - ev.preventDefault(); - ev.stopPropagation(); - } else if (keyCode === 13) { - // enter选中 - this.triggerElmFocus(); - target.click(); - if (this.hideOnClick) { - // click关闭 - this.visible = false; - } - } else if ([9, 27].indexOf(keyCode) > -1) { - // tab // esc - this.hide(); - this.triggerElmFocus(); - } - }, - resetTabindex: function resetTabindex(ele) { - // 下次tab时组件聚焦元素 - this.removeTabindex(); - ele.setAttribute('tabindex', '0'); // 下次期望的聚焦元素 - }, - removeTabindex: function removeTabindex() { - this.triggerElm.setAttribute('tabindex', '-1'); - this.menuItemsArray.forEach(function (item) { - item.setAttribute('tabindex', '-1'); - }); - }, - initAria: function initAria() { - this.dropdownElm.setAttribute('id', this.listId); - this.triggerElm.setAttribute('aria-haspopup', 'list'); - this.triggerElm.setAttribute('aria-controls', this.listId); - - if (!this.splitButton) { - // 自定义 - this.triggerElm.setAttribute('role', 'button'); - this.triggerElm.setAttribute('tabindex', this.tabindex); - this.triggerElm.setAttribute('class', (this.triggerElm.getAttribute('class') || '') + ' el-dropdown-selfdefine'); // 控制 - } - }, - initEvent: function initEvent() { - var _this3 = this; - - var trigger = this.trigger, - show = this.show, - hide = this.hide, - handleClick = this.handleClick, - splitButton = this.splitButton, - handleTriggerKeyDown = this.handleTriggerKeyDown, - handleItemKeyDown = this.handleItemKeyDown; - - this.triggerElm = splitButton ? this.$refs.trigger.$el : this.$slots.default[0].elm; - - var dropdownElm = this.dropdownElm; - - this.triggerElm.addEventListener('keydown', handleTriggerKeyDown); // triggerElm keydown - dropdownElm.addEventListener('keydown', handleItemKeyDown, true); // item keydown - // 控制自定义元素的样式 - if (!splitButton) { - this.triggerElm.addEventListener('focus', function () { - _this3.focusing = true; - }); - this.triggerElm.addEventListener('blur', function () { - _this3.focusing = false; - }); - this.triggerElm.addEventListener('click', function () { - _this3.focusing = false; - }); - } - if (trigger === 'hover') { - this.triggerElm.addEventListener('mouseenter', show); - this.triggerElm.addEventListener('mouseleave', hide); - dropdownElm.addEventListener('mouseenter', show); - dropdownElm.addEventListener('mouseleave', hide); - } else if (trigger === 'click') { - this.triggerElm.addEventListener('click', handleClick); - } - }, - handleMenuItemClick: function handleMenuItemClick(command, instance) { - if (this.hideOnClick) { - this.visible = false; - } - this.$emit('command', command, instance); - }, - triggerElmFocus: function triggerElmFocus() { - this.triggerElm.focus && this.triggerElm.focus(); - }, - initDomOperation: function initDomOperation() { - this.dropdownElm = this.popperElm; - this.menuItems = this.dropdownElm.querySelectorAll("[tabindex='-1']"); - this.menuItemsArray = [].slice.call(this.menuItems); - - this.initEvent(); - this.initAria(); - } - }, - - render: function render(h) { - var _this4 = this; - - var hide = this.hide, - splitButton = this.splitButton, - type = this.type, - dropdownSize = this.dropdownSize; - - - var handleMainButtonClick = function handleMainButtonClick(event) { - _this4.$emit('click', event); - hide(); - }; - - var triggerElm = !splitButton ? this.$slots.default : h('el-button-group', [h( - 'el-button', - { - attrs: { type: type, size: dropdownSize }, - nativeOn: { - 'click': handleMainButtonClick - } - }, - [this.$slots.default] - ), h( - 'el-button', - { ref: 'trigger', attrs: { type: type, size: dropdownSize }, - 'class': 'el-dropdown__caret-button' }, - [h('i', { 'class': 'el-dropdown__icon el-icon-arrow-down' })] - )]); - - return h( - 'div', - { 'class': 'el-dropdown', directives: [{ - name: 'clickoutside', - value: hide - }] - }, - [triggerElm, this.$slots.dropdown] - ); - } -}); -// CONCATENATED MODULE: ./packages/dropdown/src/dropdown.vue?vue&type=script&lang=js& - /* harmony default export */ var src_dropdownvue_type_script_lang_js_ = (dropdownvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/dropdown/src/dropdown.vue -var dropdown_render, dropdown_staticRenderFns - - - - -/* normalize component */ - -var dropdown_component = normalizeComponent( - src_dropdownvue_type_script_lang_js_, - dropdown_render, - dropdown_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var dropdown_api; } -dropdown_component.options.__file = "packages/dropdown/src/dropdown.vue" -/* harmony default export */ var dropdown = (dropdown_component.exports); -// CONCATENATED MODULE: ./packages/dropdown/index.js - - -/* istanbul ignore next */ -dropdown.install = function (Vue) { - Vue.component(dropdown.name, dropdown); -}; - -/* harmony default export */ var packages_dropdown = (dropdown); -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-menu.vue?vue&type=template&id=0da6b714& -var dropdown_menuvue_type_template_id_0da6b714_render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "transition", - { attrs: { name: "el-zoom-in-top" }, on: { "after-leave": _vm.doDestroy } }, - [ - _c( - "ul", - { - directives: [ - { - name: "show", - rawName: "v-show", - value: _vm.showPopper, - expression: "showPopper" - } - ], - staticClass: "el-dropdown-menu el-popper", - class: [_vm.size && "el-dropdown-menu--" + _vm.size] - }, - [_vm._t("default")], - 2 - ) - ] - ) -} -var dropdown_menuvue_type_template_id_0da6b714_staticRenderFns = [] -dropdown_menuvue_type_template_id_0da6b714_render._withStripped = true - - -// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-menu.vue?vue&type=template&id=0da6b714& - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-menu.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// - - - -/* harmony default export */ var dropdown_menuvue_type_script_lang_js_ = ({ - name: 'ElDropdownMenu', - - componentName: 'ElDropdownMenu', - - mixins: [vue_popper_default.a], - - props: { - visibleArrow: { - type: Boolean, - default: true - }, - arrowOffset: { - type: Number, - default: 0 - } - }, - - data: function data() { - return { - size: this.dropdown.dropdownSize - }; - }, - - - inject: ['dropdown'], - - created: function created() { - var _this = this; - - this.$on('updatePopper', function () { - if (_this.showPopper) _this.updatePopper(); - }); - this.$on('visible', function (val) { - _this.showPopper = val; - }); - }, - mounted: function mounted() { - this.dropdown.popperElm = this.popperElm = this.$el; - this.referenceElm = this.dropdown.$el; - // compatible with 2.6 new v-slot syntax - // issue link https://github.com/ElemeFE/element/issues/14345 - this.dropdown.initDomOperation(); - }, - - - watch: { - 'dropdown.placement': { - immediate: true, - handler: function handler(val) { - this.currentPlacement = val; - } - } - } -}); -// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-menu.vue?vue&type=script&lang=js& - /* harmony default export */ var src_dropdown_menuvue_type_script_lang_js_ = (dropdown_menuvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-menu.vue - - - - - -/* normalize component */ - -var dropdown_menu_component = normalizeComponent( - src_dropdown_menuvue_type_script_lang_js_, - dropdown_menuvue_type_template_id_0da6b714_render, - dropdown_menuvue_type_template_id_0da6b714_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var dropdown_menu_api; } -dropdown_menu_component.options.__file = "packages/dropdown/src/dropdown-menu.vue" -/* harmony default export */ var dropdown_menu = (dropdown_menu_component.exports); -// CONCATENATED MODULE: ./packages/dropdown-menu/index.js - - -/* istanbul ignore next */ -dropdown_menu.install = function (Vue) { - Vue.component(dropdown_menu.name, dropdown_menu); -}; - -/* harmony default export */ var packages_dropdown_menu = (dropdown_menu); -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-item.vue?vue&type=template&id=6359102a& -var dropdown_itemvue_type_template_id_6359102a_render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "li", - { - staticClass: "el-dropdown-menu__item", - class: { - "is-disabled": _vm.disabled, - "el-dropdown-menu__item--divided": _vm.divided - }, - attrs: { - "aria-disabled": _vm.disabled, - tabindex: _vm.disabled ? null : -1 - }, - on: { click: _vm.handleClick } - }, - [_vm.icon ? _c("i", { class: _vm.icon }) : _vm._e(), _vm._t("default")], - 2 - ) -} -var dropdown_itemvue_type_template_id_6359102a_staticRenderFns = [] -dropdown_itemvue_type_template_id_6359102a_render._withStripped = true - - -// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-item.vue?vue&type=template&id=6359102a& - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-item.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - - -/* harmony default export */ var dropdown_itemvue_type_script_lang_js_ = ({ - name: 'ElDropdownItem', - - mixins: [emitter_default.a], - - props: { - command: {}, - disabled: Boolean, - divided: Boolean, - icon: String - }, - - methods: { - handleClick: function handleClick(e) { - this.dispatch('ElDropdown', 'menu-item-click', [this.command, this]); - } - } -}); -// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-item.vue?vue&type=script&lang=js& - /* harmony default export */ var src_dropdown_itemvue_type_script_lang_js_ = (dropdown_itemvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-item.vue - - - - - -/* normalize component */ - -var dropdown_item_component = normalizeComponent( - src_dropdown_itemvue_type_script_lang_js_, - dropdown_itemvue_type_template_id_6359102a_render, - dropdown_itemvue_type_template_id_6359102a_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var dropdown_item_api; } -dropdown_item_component.options.__file = "packages/dropdown/src/dropdown-item.vue" -/* harmony default export */ var dropdown_item = (dropdown_item_component.exports); -// CONCATENATED MODULE: ./packages/dropdown-item/index.js - - -/* istanbul ignore next */ -dropdown_item.install = function (Vue) { - Vue.component(dropdown_item.name, dropdown_item); -}; - -/* harmony default export */ var packages_dropdown_item = (dropdown_item); -// CONCATENATED MODULE: ./src/utils/aria-utils.js -var aria = aria || {}; - -aria.Utils = aria.Utils || {}; - -/** - * @desc Set focus on descendant nodes until the first focusable element is - * found. - * @param element - * DOM node for which to find the first focusable descendant. - * @returns - * true if a focusable element is found and focus is set. - */ -aria.Utils.focusFirstDescendant = function (element) { - for (var i = 0; i < element.childNodes.length; i++) { - var child = element.childNodes[i]; - if (aria.Utils.attemptFocus(child) || aria.Utils.focusFirstDescendant(child)) { - return true; - } - } - return false; -}; - -/** - * @desc Find the last descendant node that is focusable. - * @param element - * DOM node for which to find the last focusable descendant. - * @returns - * true if a focusable element is found and focus is set. - */ - -aria.Utils.focusLastDescendant = function (element) { - for (var i = element.childNodes.length - 1; i >= 0; i--) { - var child = element.childNodes[i]; - if (aria.Utils.attemptFocus(child) || aria.Utils.focusLastDescendant(child)) { - return true; - } - } - return false; -}; - -/** - * @desc Set Attempt to set focus on the current node. - * @param element - * The node to attempt to focus on. - * @returns - * true if element is focused. - */ -aria.Utils.attemptFocus = function (element) { - if (!aria.Utils.isFocusable(element)) { - return false; - } - aria.Utils.IgnoreUtilFocusChanges = true; - try { - element.focus(); - } catch (e) {} - aria.Utils.IgnoreUtilFocusChanges = false; - return document.activeElement === element; -}; - -aria.Utils.isFocusable = function (element) { - if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute('tabIndex') !== null) { - return true; - } - - if (element.disabled) { - return false; - } - - switch (element.nodeName) { - case 'A': - return !!element.href && element.rel !== 'ignore'; - case 'INPUT': - return element.type !== 'hidden' && element.type !== 'file'; - case 'BUTTON': - case 'SELECT': - case 'TEXTAREA': - return true; - default: - return false; - } -}; - -/** - * 触发一个事件 - * mouseenter, mouseleave, mouseover, keyup, change, click 等 - * @param {Element} elm - * @param {String} name - * @param {*} opts - */ -aria.Utils.triggerEvent = function (elm, name) { - var eventName = void 0; - - if (/^mouse|click/.test(name)) { - eventName = 'MouseEvents'; - } else if (/^key/.test(name)) { - eventName = 'KeyboardEvent'; - } else { - eventName = 'HTMLEvents'; - } - var evt = document.createEvent(eventName); - - for (var _len = arguments.length, opts = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - opts[_key - 2] = arguments[_key]; - } - - evt.initEvent.apply(evt, [name].concat(opts)); - elm.dispatchEvent ? elm.dispatchEvent(evt) : elm.fireEvent('on' + name, evt); - - return elm; -}; - -aria.Utils.keys = { - tab: 9, - enter: 13, - space: 32, - left: 37, - up: 38, - right: 39, - down: 40, - esc: 27 -}; - -/* harmony default export */ var aria_utils = (aria.Utils); -// CONCATENATED MODULE: ./src/utils/menu/aria-submenu.js - - -var SubMenu = function SubMenu(parent, domNode) { - this.domNode = domNode; - this.parent = parent; - this.subMenuItems = []; - this.subIndex = 0; - this.init(); -}; - -SubMenu.prototype.init = function () { - this.subMenuItems = this.domNode.querySelectorAll('li'); - this.addListeners(); -}; - -SubMenu.prototype.gotoSubIndex = function (idx) { - if (idx === this.subMenuItems.length) { - idx = 0; - } else if (idx < 0) { - idx = this.subMenuItems.length - 1; - } - this.subMenuItems[idx].focus(); - this.subIndex = idx; -}; - -SubMenu.prototype.addListeners = function () { - var _this = this; - - var keys = aria_utils.keys; - var parentNode = this.parent.domNode; - Array.prototype.forEach.call(this.subMenuItems, function (el) { - el.addEventListener('keydown', function (event) { - var prevDef = false; - switch (event.keyCode) { - case keys.down: - _this.gotoSubIndex(_this.subIndex + 1); - prevDef = true; - break; - case keys.up: - _this.gotoSubIndex(_this.subIndex - 1); - prevDef = true; - break; - case keys.tab: - aria_utils.triggerEvent(parentNode, 'mouseleave'); - break; - case keys.enter: - case keys.space: - prevDef = true; - event.currentTarget.click(); - break; - } - if (prevDef) { - event.preventDefault(); - event.stopPropagation(); - } - return false; - }); - }); -}; - -/* harmony default export */ var aria_submenu = (SubMenu); -// CONCATENATED MODULE: ./src/utils/menu/aria-menuitem.js - - - -var MenuItem = function MenuItem(domNode) { - this.domNode = domNode; - this.submenu = null; - this.init(); -}; - -MenuItem.prototype.init = function () { - this.domNode.setAttribute('tabindex', '0'); - var menuChild = this.domNode.querySelector('.el-menu'); - if (menuChild) { - this.submenu = new aria_submenu(this, menuChild); - } - this.addListeners(); -}; - -MenuItem.prototype.addListeners = function () { - var _this = this; - - var keys = aria_utils.keys; - this.domNode.addEventListener('keydown', function (event) { - var prevDef = false; - switch (event.keyCode) { - case keys.down: - aria_utils.triggerEvent(event.currentTarget, 'mouseenter'); - _this.submenu && _this.submenu.gotoSubIndex(0); - prevDef = true; - break; - case keys.up: - aria_utils.triggerEvent(event.currentTarget, 'mouseenter'); - _this.submenu && _this.submenu.gotoSubIndex(_this.submenu.subMenuItems.length - 1); - prevDef = true; - break; - case keys.tab: - aria_utils.triggerEvent(event.currentTarget, 'mouseleave'); - break; - case keys.enter: - case keys.space: - prevDef = true; - event.currentTarget.click(); - break; - } - if (prevDef) { - event.preventDefault(); - } - }); -}; - -/* harmony default export */ var aria_menuitem = (MenuItem); -// CONCATENATED MODULE: ./src/utils/menu/aria-menubar.js - - -var Menu = function Menu(domNode) { - this.domNode = domNode; - this.init(); -}; - -Menu.prototype.init = function () { - var menuChildren = this.domNode.childNodes; - [].filter.call(menuChildren, function (child) { - return child.nodeType === 1; - }).forEach(function (child) { - new aria_menuitem(child); // eslint-disable-line - }); -}; -/* harmony default export */ var aria_menubar = (Menu); -// EXTERNAL MODULE: external "element-ui/lib/utils/dom" -var dom_ = __webpack_require__(1); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu.vue?vue&type=script&lang=js& - - - - - - -/* harmony default export */ var menuvue_type_script_lang_js_ = ({ - name: 'ElMenu', - - render: function render(h) { - var component = h( - 'ul', - { - attrs: { - role: 'menubar' - }, - key: +this.collapse, - style: { backgroundColor: this.backgroundColor || '' }, - 'class': { - 'el-menu--horizontal': this.mode === 'horizontal', - 'el-menu--collapse': this.collapse, - "el-menu": true - } - }, - [this.$slots.default] - ); - - if (this.collapseTransition) { - return h('el-menu-collapse-transition', [component]); - } else { - return component; - } - }, - - - componentName: 'ElMenu', - - mixins: [emitter_default.a, migrating_default.a], - - provide: function provide() { - return { - rootMenu: this - }; - }, - - - components: { - 'el-menu-collapse-transition': { - functional: true, - render: function render(createElement, context) { - var data = { - props: { - mode: 'out-in' - }, - on: { - beforeEnter: function beforeEnter(el) { - el.style.opacity = 0.2; - }, - enter: function enter(el) { - Object(dom_["addClass"])(el, 'el-opacity-transition'); - el.style.opacity = 1; - }, - afterEnter: function afterEnter(el) { - Object(dom_["removeClass"])(el, 'el-opacity-transition'); - el.style.opacity = ''; - }, - beforeLeave: function beforeLeave(el) { - if (!el.dataset) el.dataset = {}; - - if (Object(dom_["hasClass"])(el, 'el-menu--collapse')) { - Object(dom_["removeClass"])(el, 'el-menu--collapse'); - el.dataset.oldOverflow = el.style.overflow; - el.dataset.scrollWidth = el.clientWidth; - Object(dom_["addClass"])(el, 'el-menu--collapse'); - } else { - Object(dom_["addClass"])(el, 'el-menu--collapse'); - el.dataset.oldOverflow = el.style.overflow; - el.dataset.scrollWidth = el.clientWidth; - Object(dom_["removeClass"])(el, 'el-menu--collapse'); - } - - el.style.width = el.scrollWidth + 'px'; - el.style.overflow = 'hidden'; - }, - leave: function leave(el) { - Object(dom_["addClass"])(el, 'horizontal-collapse-transition'); - el.style.width = el.dataset.scrollWidth + 'px'; - } - } - }; - return createElement('transition', data, context.children); - } - } - }, - - props: { - mode: { - type: String, - default: 'vertical' - }, - defaultActive: { - type: String, - default: '' - }, - defaultOpeneds: Array, - uniqueOpened: Boolean, - router: Boolean, - menuTrigger: { - type: String, - default: 'hover' - }, - collapse: Boolean, - backgroundColor: String, - textColor: String, - activeTextColor: String, - collapseTransition: { - type: Boolean, - default: true - } - }, - data: function data() { - return { - activeIndex: this.defaultActive, - openedMenus: this.defaultOpeneds && !this.collapse ? this.defaultOpeneds.slice(0) : [], - items: {}, - submenus: {} - }; - }, - - computed: { - hoverBackground: function hoverBackground() { - return this.backgroundColor ? this.mixColor(this.backgroundColor, 0.2) : ''; - }, - isMenuPopup: function isMenuPopup() { - return this.mode === 'horizontal' || this.mode === 'vertical' && this.collapse; - } - }, - watch: { - defaultActive: function defaultActive(value) { - if (!this.items[value]) { - this.activeIndex = null; - } - this.updateActiveIndex(value); - }, - defaultOpeneds: function defaultOpeneds(value) { - if (!this.collapse) { - this.openedMenus = value; - } - }, - collapse: function collapse(value) { - if (value) this.openedMenus = []; - this.broadcast('ElSubmenu', 'toggle-collapse', value); - } - }, - methods: { - updateActiveIndex: function updateActiveIndex(val) { - var item = this.items[val] || this.items[this.activeIndex] || this.items[this.defaultActive]; - if (item) { - this.activeIndex = item.index; - this.initOpenedMenu(); - } else { - this.activeIndex = null; - } - }, - getMigratingConfig: function getMigratingConfig() { - return { - props: { - 'theme': 'theme is removed.' - } - }; - }, - getColorChannels: function getColorChannels(color) { - color = color.replace('#', ''); - if (/^[0-9a-fA-F]{3}$/.test(color)) { - color = color.split(''); - for (var i = 2; i >= 0; i--) { - color.splice(i, 0, color[i]); - } - color = color.join(''); - } - if (/^[0-9a-fA-F]{6}$/.test(color)) { - return { - red: parseInt(color.slice(0, 2), 16), - green: parseInt(color.slice(2, 4), 16), - blue: parseInt(color.slice(4, 6), 16) - }; - } else { - return { - red: 255, - green: 255, - blue: 255 - }; - } - }, - mixColor: function mixColor(color, percent) { - var _getColorChannels = this.getColorChannels(color), - red = _getColorChannels.red, - green = _getColorChannels.green, - blue = _getColorChannels.blue; - - if (percent > 0) { - // shade given color - red *= 1 - percent; - green *= 1 - percent; - blue *= 1 - percent; - } else { - // tint given color - red += (255 - red) * percent; - green += (255 - green) * percent; - blue += (255 - blue) * percent; - } - return 'rgb(' + Math.round(red) + ', ' + Math.round(green) + ', ' + Math.round(blue) + ')'; - }, - addItem: function addItem(item) { - this.$set(this.items, item.index, item); - }, - removeItem: function removeItem(item) { - delete this.items[item.index]; - }, - addSubmenu: function addSubmenu(item) { - this.$set(this.submenus, item.index, item); - }, - removeSubmenu: function removeSubmenu(item) { - delete this.submenus[item.index]; - }, - openMenu: function openMenu(index, indexPath) { - var openedMenus = this.openedMenus; - if (openedMenus.indexOf(index) !== -1) return; - // 将不在该菜单路径下的其余菜单收起 - // collapse all menu that are not under current menu item - if (this.uniqueOpened) { - this.openedMenus = openedMenus.filter(function (index) { - return indexPath.indexOf(index) !== -1; - }); - } - this.openedMenus.push(index); - }, - closeMenu: function closeMenu(index) { - var i = this.openedMenus.indexOf(index); - if (i !== -1) { - this.openedMenus.splice(i, 1); - } - }, - handleSubmenuClick: function handleSubmenuClick(submenu) { - var index = submenu.index, - indexPath = submenu.indexPath; - - var isOpened = this.openedMenus.indexOf(index) !== -1; - - if (isOpened) { - this.closeMenu(index); - this.$emit('close', index, indexPath); - } else { - this.openMenu(index, indexPath); - this.$emit('open', index, indexPath); - } - }, - handleItemClick: function handleItemClick(item) { - var _this = this; - - var index = item.index, - indexPath = item.indexPath; - - var oldActiveIndex = this.activeIndex; - var hasIndex = item.index !== null; - - if (hasIndex) { - this.activeIndex = item.index; - } - - this.$emit('select', index, indexPath, item); - - if (this.mode === 'horizontal' || this.collapse) { - this.openedMenus = []; - } - - if (this.router && hasIndex) { - this.routeToItem(item, function (error) { - _this.activeIndex = oldActiveIndex; - if (error) console.error(error); - }); - } - }, - - // 初始化展开菜单 - // initialize opened menu - initOpenedMenu: function initOpenedMenu() { - var _this2 = this; - - var index = this.activeIndex; - var activeItem = this.items[index]; - if (!activeItem || this.mode === 'horizontal' || this.collapse) return; - - var indexPath = activeItem.indexPath; - - // 展开该菜单项的路径上所有子菜单 - // expand all submenus of the menu item - indexPath.forEach(function (index) { - var submenu = _this2.submenus[index]; - submenu && _this2.openMenu(index, submenu.indexPath); - }); - }, - routeToItem: function routeToItem(item, onError) { - var route = item.route || item.index; - try { - this.$router.push(route, function () {}, onError); - } catch (e) { - console.error(e); - } - }, - open: function open(index) { - var _this3 = this; - - var indexPath = this.submenus[index.toString()].indexPath; - - indexPath.forEach(function (i) { - return _this3.openMenu(i, indexPath); - }); - }, - close: function close(index) { - this.closeMenu(index); - } - }, - mounted: function mounted() { - this.initOpenedMenu(); - this.$on('item-click', this.handleItemClick); - this.$on('submenu-click', this.handleSubmenuClick); - if (this.mode === 'horizontal') { - new aria_menubar(this.$el); // eslint-disable-line - } - this.$watch('items', this.updateActiveIndex); - } -}); -// CONCATENATED MODULE: ./packages/menu/src/menu.vue?vue&type=script&lang=js& - /* harmony default export */ var src_menuvue_type_script_lang_js_ = (menuvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/menu/src/menu.vue -var menu_render, menu_staticRenderFns - - - - -/* normalize component */ - -var menu_component = normalizeComponent( - src_menuvue_type_script_lang_js_, - menu_render, - menu_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var menu_api; } -menu_component.options.__file = "packages/menu/src/menu.vue" -/* harmony default export */ var src_menu = (menu_component.exports); -// CONCATENATED MODULE: ./packages/menu/index.js - - -/* istanbul ignore next */ -src_menu.install = function (Vue) { - Vue.component(src_menu.name, src_menu); -}; - -/* harmony default export */ var packages_menu = (src_menu); -// EXTERNAL MODULE: external "element-ui/lib/transitions/collapse-transition" -var collapse_transition_ = __webpack_require__(21); -var collapse_transition_default = /*#__PURE__*/__webpack_require__.n(collapse_transition_); - -// CONCATENATED MODULE: ./packages/menu/src/menu-mixin.js -/* harmony default export */ var menu_mixin = ({ - inject: ['rootMenu'], - computed: { - indexPath: function indexPath() { - var path = [this.index]; - var parent = this.$parent; - while (parent.$options.componentName !== 'ElMenu') { - if (parent.index) { - path.unshift(parent.index); - } - parent = parent.$parent; - } - return path; - }, - parentMenu: function parentMenu() { - var parent = this.$parent; - while (parent && ['ElMenu', 'ElSubmenu'].indexOf(parent.$options.componentName) === -1) { - parent = parent.$parent; - } - return parent; - }, - paddingStyle: function paddingStyle() { - if (this.rootMenu.mode !== 'vertical') return {}; - - var padding = 20; - var parent = this.$parent; - - if (this.rootMenu.collapse) { - padding = 20; - } else { - while (parent && parent.$options.componentName !== 'ElMenu') { - if (parent.$options.componentName === 'ElSubmenu') { - padding += 20; - } - parent = parent.$parent; - } - } - return { paddingLeft: padding + 'px' }; - } - } -}); -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/submenu.vue?vue&type=script&lang=js& - - - - - - -var poperMixins = { - props: { - transformOrigin: { - type: [Boolean, String], - default: false - }, - offset: vue_popper_default.a.props.offset, - boundariesPadding: vue_popper_default.a.props.boundariesPadding, - popperOptions: vue_popper_default.a.props.popperOptions - }, - data: vue_popper_default.a.data, - methods: vue_popper_default.a.methods, - beforeDestroy: vue_popper_default.a.beforeDestroy, - deactivated: vue_popper_default.a.deactivated -}; - -/* harmony default export */ var submenuvue_type_script_lang_js_ = ({ - name: 'ElSubmenu', - - componentName: 'ElSubmenu', - - mixins: [menu_mixin, emitter_default.a, poperMixins], - - components: { ElCollapseTransition: collapse_transition_default.a }, - - props: { - index: { - type: String, - required: true - }, - showTimeout: { - type: Number, - default: 300 - }, - hideTimeout: { - type: Number, - default: 300 - }, - popperClass: String, - disabled: Boolean, - popperAppendToBody: { - type: Boolean, - default: undefined - } - }, - - data: function data() { - return { - popperJS: null, - timeout: null, - items: {}, - submenus: {}, - mouseInChild: false - }; - }, - - watch: { - opened: function opened(val) { - var _this = this; - - if (this.isMenuPopup) { - this.$nextTick(function (_) { - _this.updatePopper(); - }); - } - } - }, - computed: { - // popper option - appendToBody: function appendToBody() { - return this.popperAppendToBody === undefined ? this.isFirstLevel : this.popperAppendToBody; - }, - menuTransitionName: function menuTransitionName() { - return this.rootMenu.collapse ? 'el-zoom-in-left' : 'el-zoom-in-top'; - }, - opened: function opened() { - return this.rootMenu.openedMenus.indexOf(this.index) > -1; - }, - active: function active() { - var isActive = false; - var submenus = this.submenus; - var items = this.items; - - Object.keys(items).forEach(function (index) { - if (items[index].active) { - isActive = true; - } - }); - - Object.keys(submenus).forEach(function (index) { - if (submenus[index].active) { - isActive = true; - } - }); - - return isActive; - }, - hoverBackground: function hoverBackground() { - return this.rootMenu.hoverBackground; - }, - backgroundColor: function backgroundColor() { - return this.rootMenu.backgroundColor || ''; - }, - activeTextColor: function activeTextColor() { - return this.rootMenu.activeTextColor || ''; - }, - textColor: function textColor() { - return this.rootMenu.textColor || ''; - }, - mode: function mode() { - return this.rootMenu.mode; - }, - isMenuPopup: function isMenuPopup() { - return this.rootMenu.isMenuPopup; - }, - titleStyle: function titleStyle() { - if (this.mode !== 'horizontal') { - return { - color: this.textColor - }; - } - return { - borderBottomColor: this.active ? this.rootMenu.activeTextColor ? this.activeTextColor : '' : 'transparent', - color: this.active ? this.activeTextColor : this.textColor - }; - }, - isFirstLevel: function isFirstLevel() { - var isFirstLevel = true; - var parent = this.$parent; - while (parent && parent !== this.rootMenu) { - if (['ElSubmenu', 'ElMenuItemGroup'].indexOf(parent.$options.componentName) > -1) { - isFirstLevel = false; - break; - } else { - parent = parent.$parent; - } - } - return isFirstLevel; - } - }, - methods: { - handleCollapseToggle: function handleCollapseToggle(value) { - if (value) { - this.initPopper(); - } else { - this.doDestroy(); - } - }, - addItem: function addItem(item) { - this.$set(this.items, item.index, item); - }, - removeItem: function removeItem(item) { - delete this.items[item.index]; - }, - addSubmenu: function addSubmenu(item) { - this.$set(this.submenus, item.index, item); - }, - removeSubmenu: function removeSubmenu(item) { - delete this.submenus[item.index]; - }, - handleClick: function handleClick() { - var rootMenu = this.rootMenu, - disabled = this.disabled; - - if (rootMenu.menuTrigger === 'hover' && rootMenu.mode === 'horizontal' || rootMenu.collapse && rootMenu.mode === 'vertical' || disabled) { - return; - } - this.dispatch('ElMenu', 'submenu-click', this); - }, - handleMouseenter: function handleMouseenter(event) { - var _this2 = this; - - var showTimeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.showTimeout; - - - if (!('ActiveXObject' in window) && event.type === 'focus' && !event.relatedTarget) { - return; - } - var rootMenu = this.rootMenu, - disabled = this.disabled; - - if (rootMenu.menuTrigger === 'click' && rootMenu.mode === 'horizontal' || !rootMenu.collapse && rootMenu.mode === 'vertical' || disabled) { - return; - } - this.dispatch('ElSubmenu', 'mouse-enter-child'); - clearTimeout(this.timeout); - this.timeout = setTimeout(function () { - _this2.rootMenu.openMenu(_this2.index, _this2.indexPath); - }, showTimeout); - - if (this.appendToBody) { - this.$parent.$el.dispatchEvent(new MouseEvent('mouseenter')); - } - }, - handleMouseleave: function handleMouseleave() { - var _this3 = this; - - var deepDispatch = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var rootMenu = this.rootMenu; - - if (rootMenu.menuTrigger === 'click' && rootMenu.mode === 'horizontal' || !rootMenu.collapse && rootMenu.mode === 'vertical') { - return; - } - this.dispatch('ElSubmenu', 'mouse-leave-child'); - clearTimeout(this.timeout); - this.timeout = setTimeout(function () { - !_this3.mouseInChild && _this3.rootMenu.closeMenu(_this3.index); - }, this.hideTimeout); - - if (this.appendToBody && deepDispatch) { - if (this.$parent.$options.name === 'ElSubmenu') { - this.$parent.handleMouseleave(true); - } - } - }, - handleTitleMouseenter: function handleTitleMouseenter() { - if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return; - var title = this.$refs['submenu-title']; - title && (title.style.backgroundColor = this.rootMenu.hoverBackground); - }, - handleTitleMouseleave: function handleTitleMouseleave() { - if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return; - var title = this.$refs['submenu-title']; - title && (title.style.backgroundColor = this.rootMenu.backgroundColor || ''); - }, - updatePlacement: function updatePlacement() { - this.currentPlacement = this.mode === 'horizontal' && this.isFirstLevel ? 'bottom-start' : 'right-start'; - }, - initPopper: function initPopper() { - this.referenceElm = this.$el; - this.popperElm = this.$refs.menu; - this.updatePlacement(); - } - }, - created: function created() { - var _this4 = this; - - this.$on('toggle-collapse', this.handleCollapseToggle); - this.$on('mouse-enter-child', function () { - _this4.mouseInChild = true; - clearTimeout(_this4.timeout); - }); - this.$on('mouse-leave-child', function () { - _this4.mouseInChild = false; - clearTimeout(_this4.timeout); - }); - }, - mounted: function mounted() { - this.parentMenu.addSubmenu(this); - this.rootMenu.addSubmenu(this); - this.initPopper(); - }, - beforeDestroy: function beforeDestroy() { - this.parentMenu.removeSubmenu(this); - this.rootMenu.removeSubmenu(this); - }, - render: function render(h) { - var _this5 = this; - - var active = this.active, - opened = this.opened, - paddingStyle = this.paddingStyle, - titleStyle = this.titleStyle, - backgroundColor = this.backgroundColor, - rootMenu = this.rootMenu, - currentPlacement = this.currentPlacement, - menuTransitionName = this.menuTransitionName, - mode = this.mode, - disabled = this.disabled, - popperClass = this.popperClass, - $slots = this.$slots, - isFirstLevel = this.isFirstLevel; - - - var popupMenu = h( - 'transition', - { - attrs: { name: menuTransitionName } - }, - [h( - 'div', - { - ref: 'menu', - directives: [{ - name: 'show', - value: opened - }], - - 'class': ['el-menu--' + mode, popperClass], - on: { - 'mouseenter': function mouseenter($event) { - return _this5.handleMouseenter($event, 100); - }, - 'mouseleave': function mouseleave() { - return _this5.handleMouseleave(true); - }, - 'focus': function focus($event) { - return _this5.handleMouseenter($event, 100); - } - } - }, - [h( - 'ul', - { - attrs: { - role: 'menu' - }, - 'class': ['el-menu el-menu--popup', 'el-menu--popup-' + currentPlacement], - style: { backgroundColor: rootMenu.backgroundColor || '' } }, - [$slots.default] - )] - )] - ); - - var inlineMenu = h('el-collapse-transition', [h( - 'ul', - { - attrs: { - role: 'menu' - }, - 'class': 'el-menu el-menu--inline', - directives: [{ - name: 'show', - value: opened - }], - - style: { backgroundColor: rootMenu.backgroundColor || '' } }, - [$slots.default] - )]); - - var submenuTitleIcon = rootMenu.mode === 'horizontal' && isFirstLevel || rootMenu.mode === 'vertical' && !rootMenu.collapse ? 'el-icon-arrow-down' : 'el-icon-arrow-right'; - - return h( - 'li', - { - 'class': { - 'el-submenu': true, - 'is-active': active, - 'is-opened': opened, - 'is-disabled': disabled - }, - attrs: { role: 'menuitem', - 'aria-haspopup': 'true', - 'aria-expanded': opened - }, - on: { - 'mouseenter': this.handleMouseenter, - 'mouseleave': function mouseleave() { - return _this5.handleMouseleave(false); - }, - 'focus': this.handleMouseenter - } - }, - [h( - 'div', - { - 'class': 'el-submenu__title', - ref: 'submenu-title', - on: { - 'click': this.handleClick, - 'mouseenter': this.handleTitleMouseenter, - 'mouseleave': this.handleTitleMouseleave - }, - - style: [paddingStyle, titleStyle, { backgroundColor: backgroundColor }] - }, - [$slots.title, h('i', { 'class': ['el-submenu__icon-arrow', submenuTitleIcon] })] - ), this.isMenuPopup ? popupMenu : inlineMenu] - ); - } -}); -// CONCATENATED MODULE: ./packages/menu/src/submenu.vue?vue&type=script&lang=js& - /* harmony default export */ var src_submenuvue_type_script_lang_js_ = (submenuvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/menu/src/submenu.vue -var submenu_render, submenu_staticRenderFns - - - - -/* normalize component */ - -var submenu_component = normalizeComponent( - src_submenuvue_type_script_lang_js_, - submenu_render, - submenu_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var submenu_api; } -submenu_component.options.__file = "packages/menu/src/submenu.vue" -/* harmony default export */ var submenu = (submenu_component.exports); -// CONCATENATED MODULE: ./packages/submenu/index.js - - -/* istanbul ignore next */ -submenu.install = function (Vue) { - Vue.component(submenu.name, submenu); -}; - -/* harmony default export */ var packages_submenu = (submenu); -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=template&id=2a5dbfea& -var menu_itemvue_type_template_id_2a5dbfea_render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "li", - { - staticClass: "el-menu-item", - class: { - "is-active": _vm.active, - "is-disabled": _vm.disabled - }, - style: [ - _vm.paddingStyle, - _vm.itemStyle, - { backgroundColor: _vm.backgroundColor } - ], - attrs: { role: "menuitem", tabindex: "-1" }, - on: { - click: _vm.handleClick, - mouseenter: _vm.onMouseEnter, - focus: _vm.onMouseEnter, - blur: _vm.onMouseLeave, - mouseleave: _vm.onMouseLeave - } - }, - [ - _vm.parentMenu.$options.componentName === "ElMenu" && - _vm.rootMenu.collapse && - _vm.$slots.title - ? _c("el-tooltip", { attrs: { effect: "dark", placement: "right" } }, [ - _c( - "div", - { attrs: { slot: "content" }, slot: "content" }, - [_vm._t("title")], - 2 - ), - _c( - "div", - { - staticStyle: { - position: "absolute", - left: "0", - top: "0", - height: "100%", - width: "100%", - display: "inline-block", - "box-sizing": "border-box", - padding: "0 20px" - } - }, - [_vm._t("default")], - 2 - ) - ]) - : [_vm._t("default"), _vm._t("title")] - ], - 2 - ) -} -var menu_itemvue_type_template_id_2a5dbfea_staticRenderFns = [] -menu_itemvue_type_template_id_2a5dbfea_render._withStripped = true - - -// CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=template&id=2a5dbfea& - -// EXTERNAL MODULE: external "element-ui/lib/tooltip" -var tooltip_ = __webpack_require__(26); -var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - - - - -/* harmony default export */ var menu_itemvue_type_script_lang_js_ = ({ - name: 'ElMenuItem', - - componentName: 'ElMenuItem', - - mixins: [menu_mixin, emitter_default.a], - - components: { ElTooltip: tooltip_default.a }, - - props: { - index: { - default: null, - validator: function validator(val) { - return typeof val === 'string' || val === null; - } - }, - route: [String, Object], - disabled: Boolean - }, - computed: { - active: function active() { - return this.index === this.rootMenu.activeIndex; - }, - hoverBackground: function hoverBackground() { - return this.rootMenu.hoverBackground; - }, - backgroundColor: function backgroundColor() { - return this.rootMenu.backgroundColor || ''; - }, - activeTextColor: function activeTextColor() { - return this.rootMenu.activeTextColor || ''; - }, - textColor: function textColor() { - return this.rootMenu.textColor || ''; - }, - mode: function mode() { - return this.rootMenu.mode; - }, - itemStyle: function itemStyle() { - var style = { - color: this.active ? this.activeTextColor : this.textColor - }; - if (this.mode === 'horizontal' && !this.isNested) { - style.borderBottomColor = this.active ? this.rootMenu.activeTextColor ? this.activeTextColor : '' : 'transparent'; - } - return style; - }, - isNested: function isNested() { - return this.parentMenu !== this.rootMenu; - } - }, - methods: { - onMouseEnter: function onMouseEnter() { - if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return; - this.$el.style.backgroundColor = this.hoverBackground; - }, - onMouseLeave: function onMouseLeave() { - if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return; - this.$el.style.backgroundColor = this.backgroundColor; - }, - handleClick: function handleClick() { - if (!this.disabled) { - this.dispatch('ElMenu', 'item-click', this); - this.$emit('click', this); - } - } - }, - mounted: function mounted() { - this.parentMenu.addItem(this); - this.rootMenu.addItem(this); - }, - beforeDestroy: function beforeDestroy() { - this.parentMenu.removeItem(this); - this.rootMenu.removeItem(this); - } -}); -// CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=script&lang=js& - /* harmony default export */ var src_menu_itemvue_type_script_lang_js_ = (menu_itemvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/menu/src/menu-item.vue - - - - - -/* normalize component */ - -var menu_item_component = normalizeComponent( - src_menu_itemvue_type_script_lang_js_, - menu_itemvue_type_template_id_2a5dbfea_render, - menu_itemvue_type_template_id_2a5dbfea_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var menu_item_api; } -menu_item_component.options.__file = "packages/menu/src/menu-item.vue" -/* harmony default export */ var menu_item = (menu_item_component.exports); -// CONCATENATED MODULE: ./packages/menu-item/index.js - - -/* istanbul ignore next */ -menu_item.install = function (Vue) { - Vue.component(menu_item.name, menu_item); -}; - -/* harmony default export */ var packages_menu_item = (menu_item); -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item-group.vue?vue&type=template&id=543b7bdc& -var menu_item_groupvue_type_template_id_543b7bdc_render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c("li", { staticClass: "el-menu-item-group" }, [ - _c( - "div", - { - staticClass: "el-menu-item-group__title", - style: { paddingLeft: _vm.levelPadding + "px" } - }, - [!_vm.$slots.title ? [_vm._v(_vm._s(_vm.title))] : _vm._t("title")], - 2 - ), - _c("ul", [_vm._t("default")], 2) - ]) -} -var menu_item_groupvue_type_template_id_543b7bdc_staticRenderFns = [] -menu_item_groupvue_type_template_id_543b7bdc_render._withStripped = true - - -// CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue?vue&type=template&id=543b7bdc& - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item-group.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var menu_item_groupvue_type_script_lang_js_ = ({ - name: 'ElMenuItemGroup', - - componentName: 'ElMenuItemGroup', - - inject: ['rootMenu'], - props: { - title: { - type: String - } - }, - data: function data() { - return { - paddingLeft: 20 - }; - }, - - computed: { - levelPadding: function levelPadding() { - var padding = 20; - var parent = this.$parent; - if (this.rootMenu.collapse) return 20; - while (parent && parent.$options.componentName !== 'ElMenu') { - if (parent.$options.componentName === 'ElSubmenu') { - padding += 20; - } - parent = parent.$parent; - } - return padding; - } - } -}); -// CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue?vue&type=script&lang=js& - /* harmony default export */ var src_menu_item_groupvue_type_script_lang_js_ = (menu_item_groupvue_type_script_lang_js_); -// CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue - - - - - -/* normalize component */ - -var menu_item_group_component = normalizeComponent( - src_menu_item_groupvue_type_script_lang_js_, - menu_item_groupvue_type_template_id_543b7bdc_render, - menu_item_groupvue_type_template_id_543b7bdc_staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var menu_item_group_api; } -menu_item_group_component.options.__file = "packages/menu/src/menu-item-group.vue" -/* harmony default export */ var menu_item_group = (menu_item_group_component.exports); -// CONCATENATED MODULE: ./packages/menu-item-group/index.js - - -/* istanbul ignore next */ -menu_item_group.install = function (Vue) { - Vue.component(menu_item_group.name, menu_item_group); -}; - -/* harmony default export */ var packages_menu_item_group = (menu_item_group); -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=343dd774& -var inputvue_type_template_id_343dd774_render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "div", - { - class: [ - _vm.type === "textarea" ? "el-textarea" : "el-input", - _vm.inputSize ? "el-input--" + _vm.inputSize : "", - { - "is-disabled": _vm.inputDisabled, - "is-exceed": _vm.inputExceed, - "el-input-group": _vm.$slots.prepend || _vm.$slots.append, - "el-input-group--append": _vm.$slots.append, - "el-input-group--prepend": _vm.$slots.prepend, - "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon, - "el-input--suffix": - _vm.$slots.suffix || - _vm.suffixIcon || - _vm.clearable || - _vm.showPassword - } - ], - on: { - mouseenter: function($event) { - _vm.hovering = true - }, - mouseleave: function($event) { - _vm.hovering = false - } - } - }, - [ - _vm.type !== "textarea" - ? [ - _vm.$slots.prepend - ? _c( - "div", - { staticClass: "el-input-group__prepend" }, - [_vm._t("prepend")], - 2 - ) - : _vm._e(), - _vm.type !== "textarea" - ? _c( - "input", - _vm._b( - { - ref: "input", - staticClass: "el-input__inner", - attrs: { - tabindex: _vm.tabindex, - type: _vm.showPassword - ? _vm.passwordVisible - ? "text" - : "password" - : _vm.type, - disabled: _vm.inputDisabled, - readonly: _vm.readonly, - autocomplete: _vm.autoComplete || _vm.autocomplete, - "aria-label": _vm.label - }, - on: { - compositionstart: _vm.handleCompositionStart, - compositionupdate: _vm.handleCompositionUpdate, - compositionend: _vm.handleCompositionEnd, - input: _vm.handleInput, - focus: _vm.handleFocus, - blur: _vm.handleBlur, - change: _vm.handleChange - } - }, - "input", - _vm.$attrs, - false - ) - ) - : _vm._e(), - _vm.$slots.prefix || _vm.prefixIcon - ? _c( - "span", - { staticClass: "el-input__prefix" }, - [ - _vm._t("prefix"), - _vm.prefixIcon - ? _c("i", { - staticClass: "el-input__icon", - class: _vm.prefixIcon - }) - : _vm._e() - ], - 2 - ) - : _vm._e(), - _vm.getSuffixVisible() - ? _c("span", { staticClass: "el-input__suffix" }, [ - _c( - "span", - { staticClass: "el-input__suffix-inner" }, - [ - !_vm.showClear || - !_vm.showPwdVisible || - !_vm.isWordLimitVisible - ? [ - _vm._t("suffix"), - _vm.suffixIcon - ? _c("i", { - staticClass: "el-input__icon", - class: _vm.suffixIcon - }) - : _vm._e() - ] - : _vm._e(), - _vm.showClear - ? _c("i", { - staticClass: - "el-input__icon el-icon-circle-close el-input__clear", - on: { - mousedown: function($event) { - $event.preventDefault() - }, - click: _vm.clear - } - }) - : _vm._e(), - _vm.showPwdVisible - ? _c("i", { - staticClass: - "el-input__icon el-icon-view el-input__clear", - on: { click: _vm.handlePasswordVisible } - }) - : _vm._e(), - _vm.isWordLimitVisible - ? _c("span", { staticClass: "el-input__count" }, [ - _c( - "span", - { staticClass: "el-input__count-inner" }, - [ - _vm._v( - "\n " + - _vm._s(_vm.textLength) + - "/" + - _vm._s(_vm.upperLimit) + - "\n " - ) - ] - ) - ]) - : _vm._e() - ], - 2 - ), - _vm.validateState - ? _c("i", { - staticClass: "el-input__icon", - class: ["el-input__validateIcon", _vm.validateIcon] - }) - : _vm._e() - ]) - : _vm._e(), - _vm.$slots.append - ? _c( - "div", - { staticClass: "el-input-group__append" }, - [_vm._t("append")], - 2 - ) - : _vm._e() - ] - : _c( - "textarea", - _vm._b( - { - ref: "textarea", - staticClass: "el-textarea__inner", - style: _vm.textareaStyle, - attrs: { - tabindex: _vm.tabindex, - disabled: _vm.inputDisabled, - readonly: _vm.readonly, - autocomplete: _vm.autoComplete || _vm.autocomplete, - "aria-label": _vm.label - }, - on: { - compositionstart: _vm.handleCompositionStart, - compositionupdate: _vm.handleCompositionUpdate, - compositionend: _vm.handleCompositionEnd, - input: _vm.handleInput, - focus: _vm.handleFocus, - blur: _vm.handleBlur, - change: _vm.handleChange - } - }, - "textarea", - _vm.$attrs, - false - ) - ), - _vm.isWordLimitVisible && _vm.type === "textarea" - ? _c("span", { staticClass: "el-input__count" }, [ - _vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit)) - ]) - : _vm._e() - ], - 2 - ) -} -var inputvue_type_template_id_343dd774_staticRenderFns = [] -inputvue_type_template_id_343dd774_render._withStripped = true - - -// CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=343dd774& - -// CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js -var hiddenTextarea = void 0; - -var HIDDEN_STYLE = '\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n'; - -var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing']; - -function calculateNodeStyling(targetElement) { - var style = window.getComputedStyle(targetElement); - - var boxSizing = style.getPropertyValue('box-sizing'); - - var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top')); - - var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width')); - - var contextStyle = CONTEXT_STYLE.map(function (name) { - return name + ':' + style.getPropertyValue(name); - }).join(';'); - - return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing }; -} - -function calcTextareaHeight(targetElement) { - var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; - var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - - if (!hiddenTextarea) { - hiddenTextarea = document.createElement('textarea'); - document.body.appendChild(hiddenTextarea); - } - - var _calculateNodeStyling = calculateNodeStyling(targetElement), - paddingSize = _calculateNodeStyling.paddingSize, - borderSize = _calculateNodeStyling.borderSize, - boxSizing = _calculateNodeStyling.boxSizing, - contextStyle = _calculateNodeStyling.contextStyle; - - hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE); - hiddenTextarea.value = targetElement.value || targetElement.placeholder || ''; - - var height = hiddenTextarea.scrollHeight; - var result = {}; - - if (boxSizing === 'border-box') { - height = height + borderSize; - } else if (boxSizing === 'content-box') { - height = height - paddingSize; - } - - hiddenTextarea.value = ''; - var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize; - - if (minRows !== null) { - var minHeight = singleRowHeight * minRows; - if (boxSizing === 'border-box') { - minHeight = minHeight + paddingSize + borderSize; - } - height = Math.max(minHeight, height); - result.minHeight = minHeight + 'px'; - } - if (maxRows !== null) { - var maxHeight = singleRowHeight * maxRows; - if (boxSizing === 'border-box') { - maxHeight = maxHeight + paddingSize + borderSize; - } - height = Math.min(maxHeight, height); - } - result.height = height + 'px'; - hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea); - hiddenTextarea = null; - return result; -}; -// EXTERNAL MODULE: external "element-ui/lib/utils/merge" -var merge_ = __webpack_require__(7); -var merge_default = /*#__PURE__*/__webpack_require__.n(merge_); - -// EXTERNAL MODULE: external "element-ui/lib/utils/shared" -var shared_ = __webpack_require__(19); - -// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - - - - - - - -/* harmony default export */ var inputvue_type_script_lang_js_ = ({ - name: 'ElInput', - - componentName: 'ElInput', - - mixins: [emitter_default.a, migrating_default.a], - - inheritAttrs: false, - - inject: { - elForm: { - default: '' - }, - elFormItem: { - default: '' - } - }, - - data: function data() { - return { - textareaCalcStyle: {}, - hovering: false, - focused: false, - isComposing: false, - passwordVisible: false - }; - }, - - - props: { - value: [String, Number], - size: String, - resize: String, - form: String, - disabled: Boolean, - readonly: Boolean, - type: { - type: String, - default: 'text' - }, - autosize: { - type: [Boolean, Object], - default: false - }, - autocomplete: { - type: String, - default: 'off' - }, - /** @Deprecated in next major version */ - autoComplete: { - type: String, - validator: function validator(val) { - false && false; - return true; - } - }, - validateEvent: { - type: Boolean, - default: true - }, - suffixIcon: String, - prefixIcon: String, - label: String, - clearable: { - type: Boolean, - default: false - }, - showPassword: { - type: Boolean, - default: false - }, - showWordLimit: { - type: Boolean, - default: false - }, - tabindex: String - }, - - computed: { - _elFormItemSize: function _elFormItemSize() { - return (this.elFormItem || {}).elFormItemSize; - }, - validateState: function validateState() { - return this.elFormItem ? this.elFormItem.validateState : ''; - }, - needStatusIcon: function needStatusIcon() { - return this.elForm ? this.elForm.statusIcon : false; - }, - validateIcon: function validateIcon() { - return { - validating: 'el-icon-loading', - success: 'el-icon-circle-check', - error: 'el-icon-circle-close' - }[this.validateState]; - }, - textareaStyle: function textareaStyle() { - return merge_default()({}, this.textareaCalcStyle, { resize: this.resize }); - }, - inputSize: function inputSize() { - return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size; - }, - inputDisabled: function inputDisabled() { - return this.disabled || (this.elForm || {}).disabled; - }, - nativeInputValue: function nativeInputValue() { - return this.value === null || this.value === undefined ? '' : String(this.value); - }, - showClear: function showClear() { - return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering); - }, - showPwdVisible: function showPwdVisible() { - return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused); - }, - isWordLimitVisible: function isWordLimitVisible() { - return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword; - }, - upperLimit: function upperLimit() { - return this.$attrs.maxlength; - }, - textLength: function textLength() { - if (typeof this.value === 'number') { - return String(this.value).length; - } - - return (this.value || '').length; - }, - inputExceed: function inputExceed() { - // show exceed style if length of initial value greater then maxlength - return this.isWordLimitVisible && this.textLength > this.upperLimit; - } - }, - - watch: { - value: function value(val) { - this.$nextTick(this.resizeTextarea); - if (this.validateEvent) { - this.dispatch('ElFormItem', 'el.form.change', [val]); - } - }, - - // native input value is set explicitly - // do not use v-model / :value in template - // see: https://github.com/ElemeFE/element/issues/14521 - nativeInputValue: function nativeInputValue() { - this.setNativeInputValue(); - }, - - // when change between and "; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; -} )(); - - -var - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -// Support: IE <=9 - 11+ -// focus() and blur() are asynchronous, except when they are no-op. -// So expect focus to be synchronous when the element is already active, -// and blur to be synchronous when the element is not already active. -// (focus and blur are always synchronous in other supported browsers, -// this just defines when we can count on it). -function expectSync( elem, type ) { - return ( elem === safeActiveElement() ) === ( type === "focus" ); -} - -// Support: IE <=9 only -// Accessing document.activeElement can throw unexpectedly -// https://bugs.jquery.com/ticket/13393 -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -function on( elem, types, selector, data, fn, one ) { - var origFn, type; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - on( elem, type, selector, data, types[ type ], one ); - } - return elem; - } - - if ( data == null && fn == null ) { - - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return elem; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return elem.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - } ); -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - - var handleObjIn, eventHandle, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.get( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Ensure that invalid selectors throw exceptions at attach time - // Evaluate against documentElement in case elem is a non-element node (e.g., document) - if ( selector ) { - jQuery.find.matchesSelector( documentElement, selector ); - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !( events = elemData.events ) ) { - events = elemData.events = {}; - } - if ( !( eventHandle = elemData.handle ) ) { - eventHandle = elemData.handle = function( e ) { - - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? - jQuery.event.dispatch.apply( elem, arguments ) : undefined; - }; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend( { - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join( "." ) - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !( handlers = events[ type ] ) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener if the special events handler returns false - if ( !special.setup || - special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - - var j, origCount, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); - - if ( !elemData || !( events = elemData.events ) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[ 2 ] && - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || - selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || - special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove data and the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - dataPriv.remove( elem, "handle events" ); - } - }, - - dispatch: function( nativeEvent ) { - - // Make a writable jQuery.Event from the native event object - var event = jQuery.event.fix( nativeEvent ); - - var i, j, ret, matched, handleObj, handlerQueue, - args = new Array( arguments.length ), - handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[ 0 ] = event; - - for ( i = 1; i < arguments.length; i++ ) { - args[ i ] = arguments[ i ]; - } - - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( ( handleObj = matched.handlers[ j++ ] ) && - !event.isImmediatePropagationStopped() ) { - - // If the event is namespaced, then each handler is only invoked if it is - // specially universal or its namespaces are a superset of the event's. - if ( !event.rnamespace || handleObj.namespace === false || - event.rnamespace.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || - handleObj.handler ).apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( ( event.result = ret ) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var i, handleObj, sel, matchedHandlers, matchedSelectors, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - if ( delegateCount && - - // Support: IE <=9 - // Black-hole SVG instance trees (trac-13180) - cur.nodeType && - - // Support: Firefox <=42 - // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) - // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click - // Support: IE 11 only - // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) - !( event.type === "click" && event.button >= 1 ) ) { - - for ( ; cur !== this; cur = cur.parentNode || this ) { - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { - matchedHandlers = []; - matchedSelectors = {}; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matchedSelectors[ sel ] === undefined ) { - matchedSelectors[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) > -1 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matchedSelectors[ sel ] ) { - matchedHandlers.push( handleObj ); - } - } - if ( matchedHandlers.length ) { - handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); - } - } - } - } - - // Add the remaining (directly-bound) handlers - cur = this; - if ( delegateCount < handlers.length ) { - handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); - } - - return handlerQueue; - }, - - addProp: function( name, hook ) { - Object.defineProperty( jQuery.Event.prototype, name, { - enumerable: true, - configurable: true, - - get: isFunction( hook ) ? - function() { - if ( this.originalEvent ) { - return hook( this.originalEvent ); - } - } : - function() { - if ( this.originalEvent ) { - return this.originalEvent[ name ]; - } - }, - - set: function( value ) { - Object.defineProperty( this, name, { - enumerable: true, - configurable: true, - writable: true, - value: value - } ); - } - } ); - }, - - fix: function( originalEvent ) { - return originalEvent[ jQuery.expando ] ? - originalEvent : - new jQuery.Event( originalEvent ); - }, - - special: { - load: { - - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - click: { - - // Utilize native event to ensure correct state for checkable inputs - setup: function( data ) { - - // For mutual compressibility with _default, replace `this` access with a local var. - // `|| data` is dead code meant only to preserve the variable through minification. - var el = this || data; - - // Claim the first handler - if ( rcheckableType.test( el.type ) && - el.click && nodeName( el, "input" ) ) { - - // dataPriv.set( el, "click", ... ) - leverageNative( el, "click", returnTrue ); - } - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function( data ) { - - // For mutual compressibility with _default, replace `this` access with a local var. - // `|| data` is dead code meant only to preserve the variable through minification. - var el = this || data; - - // Force setup before triggering a click - if ( rcheckableType.test( el.type ) && - el.click && nodeName( el, "input" ) ) { - - leverageNative( el, "click" ); - } - - // Return non-false to allow normal event-path propagation - return true; - }, - - // For cross-browser consistency, suppress native .click() on links - // Also prevent it if we're currently inside a leveraged native-event stack - _default: function( event ) { - var target = event.target; - return rcheckableType.test( target.type ) && - target.click && nodeName( target, "input" ) && - dataPriv.get( target, "click" ) || - nodeName( target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Support: Firefox 20+ - // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined && event.originalEvent ) { - event.originalEvent.returnValue = event.result; - } - } - } - } -}; - -// Ensure the presence of an event listener that handles manually-triggered -// synthetic events by interrupting progress until reinvoked in response to -// *native* events that it fires directly, ensuring that state changes have -// already occurred before other listeners are invoked. -function leverageNative( el, type, expectSync ) { - - // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add - if ( !expectSync ) { - if ( dataPriv.get( el, type ) === undefined ) { - jQuery.event.add( el, type, returnTrue ); - } - return; - } - - // Register the controller as a special universal handler for all event namespaces - dataPriv.set( el, type, false ); - jQuery.event.add( el, type, { - namespace: false, - handler: function( event ) { - var notAsync, result, - saved = dataPriv.get( this, type ); - - if ( ( event.isTrigger & 1 ) && this[ type ] ) { - - // Interrupt processing of the outer synthetic .trigger()ed event - // Saved data should be false in such cases, but might be a leftover capture object - // from an async native handler (gh-4350) - if ( !saved.length ) { - - // Store arguments for use when handling the inner native event - // There will always be at least one argument (an event object), so this array - // will not be confused with a leftover capture object. - saved = slice.call( arguments ); - dataPriv.set( this, type, saved ); - - // Trigger the native event and capture its result - // Support: IE <=9 - 11+ - // focus() and blur() are asynchronous - notAsync = expectSync( this, type ); - this[ type ](); - result = dataPriv.get( this, type ); - if ( saved !== result || notAsync ) { - dataPriv.set( this, type, false ); - } else { - result = {}; - } - if ( saved !== result ) { - - // Cancel the outer synthetic event - event.stopImmediatePropagation(); - event.preventDefault(); - return result.value; - } - - // If this is an inner synthetic event for an event with a bubbling surrogate - // (focus or blur), assume that the surrogate already propagated from triggering the - // native event and prevent that from happening again here. - // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the - // bubbling surrogate propagates *after* the non-bubbling base), but that seems - // less bad than duplication. - } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { - event.stopPropagation(); - } - - // If this is a native event triggered above, everything is now in order - // Fire an inner synthetic event with the original arguments - } else if ( saved.length ) { - - // ...and capture the result - dataPriv.set( this, type, { - value: jQuery.event.trigger( - - // Support: IE <=9 - 11+ - // Extend with the prototype to reset the above stopImmediatePropagation() - jQuery.extend( saved[ 0 ], jQuery.Event.prototype ), - saved.slice( 1 ), - this - ) - } ); - - // Abort handling of the native event - event.stopImmediatePropagation(); - } - } - } ); -} - -jQuery.removeEvent = function( elem, type, handle ) { - - // This "if" is needed for plain objects - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle ); - } -}; - -jQuery.Event = function( src, props ) { - - // Allow instantiation without the 'new' keyword - if ( !( this instanceof jQuery.Event ) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = src.defaultPrevented || - src.defaultPrevented === undefined && - - // Support: Android <=2.3 only - src.returnValue === false ? - returnTrue : - returnFalse; - - // Create target properties - // Support: Safari <=6 - 7 only - // Target should not be a text node (#504, #13143) - this.target = ( src.target && src.target.nodeType === 3 ) ? - src.target.parentNode : - src.target; - - this.currentTarget = src.currentTarget; - this.relatedTarget = src.relatedTarget; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || Date.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - constructor: jQuery.Event, - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - isSimulated: false, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - - if ( e && !this.isSimulated ) { - e.preventDefault(); - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopPropagation(); - } - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - - this.isImmediatePropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopImmediatePropagation(); - } - - this.stopPropagation(); - } -}; - -// Includes all common event props including KeyEvent and MouseEvent specific props -jQuery.each( { - altKey: true, - bubbles: true, - cancelable: true, - changedTouches: true, - ctrlKey: true, - detail: true, - eventPhase: true, - metaKey: true, - pageX: true, - pageY: true, - shiftKey: true, - view: true, - "char": true, - code: true, - charCode: true, - key: true, - keyCode: true, - button: true, - buttons: true, - clientX: true, - clientY: true, - offsetX: true, - offsetY: true, - pointerId: true, - pointerType: true, - screenX: true, - screenY: true, - targetTouches: true, - toElement: true, - touches: true, - - which: function( event ) { - var button = event.button; - - // Add which for key events - if ( event.which == null && rkeyEvent.test( event.type ) ) { - return event.charCode != null ? event.charCode : event.keyCode; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { - if ( button & 1 ) { - return 1; - } - - if ( button & 2 ) { - return 3; - } - - if ( button & 4 ) { - return 2; - } - - return 0; - } - - return event.which; - } -}, jQuery.event.addProp ); - -jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { - jQuery.event.special[ type ] = { - - // Utilize native event if possible so blur/focus sequence is correct - setup: function() { - - // Claim the first handler - // dataPriv.set( this, "focus", ... ) - // dataPriv.set( this, "blur", ... ) - leverageNative( this, type, expectSync ); - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function() { - - // Force setup before trigger - leverageNative( this, type ); - - // Return non-false to allow normal event-path propagation - return true; - }, - - delegateType: delegateType - }; -} ); - -// Create mouseenter/leave events using mouseover/out and event-time checks -// so that event delegation works in jQuery. -// Do the same for pointerenter/pointerleave and pointerover/pointerout -// -// Support: Safari 7 only -// Safari sends mouseenter too often; see: -// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 -// for the description of the bug (it existed in older Chrome versions as well). -jQuery.each( { - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mouseenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -} ); - -jQuery.fn.extend( { - - on: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn ); - }, - one: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? - handleObj.origType + "." + handleObj.namespace : - handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each( function() { - jQuery.event.remove( this, types, fn, selector ); - } ); - } -} ); - - -var - - /* eslint-disable max-len */ - - // See https://github.com/eslint/eslint/issues/3229 - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, - - /* eslint-enable */ - - // Support: IE <=10 - 11, Edge 12 - 13 only - // In IE/Edge using regex groups here causes severe slowdowns. - // See https://connect.microsoft.com/IE/feedback/details/1736512/ - rnoInnerhtml = /\s*$/g; - -// Prefer a tbody over its parent table for containing new rows -function manipulationTarget( elem, content ) { - if ( nodeName( elem, "table" ) && - nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { - - return jQuery( elem ).children( "tbody" )[ 0 ] || elem; - } - - return elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { - elem.type = elem.type.slice( 5 ); - } else { - elem.removeAttribute( "type" ); - } - - return elem; -} - -function cloneCopyEvent( src, dest ) { - var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; - - if ( dest.nodeType !== 1 ) { - return; - } - - // 1. Copy private data: events, handlers, etc. - if ( dataPriv.hasData( src ) ) { - pdataOld = dataPriv.access( src ); - pdataCur = dataPriv.set( dest, pdataOld ); - events = pdataOld.events; - - if ( events ) { - delete pdataCur.handle; - pdataCur.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - } - - // 2. Copy user data - if ( dataUser.hasData( src ) ) { - udataOld = dataUser.access( src ); - udataCur = jQuery.extend( {}, udataOld ); - - dataUser.set( dest, udataCur ); - } -} - -// Fix IE bugs, see support tests -function fixInput( src, dest ) { - var nodeName = dest.nodeName.toLowerCase(); - - // Fails to persist the checked state of a cloned checkbox or radio button. - if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - dest.checked = src.checked; - - // Fails to return the selected option to the default selected state when cloning options - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -function domManip( collection, args, callback, ignored ) { - - // Flatten any nested arrays - args = concat.apply( [], args ); - - var fragment, first, scripts, hasScripts, node, doc, - i = 0, - l = collection.length, - iNoClone = l - 1, - value = args[ 0 ], - valueIsFunction = isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( valueIsFunction || - ( l > 1 && typeof value === "string" && - !support.checkClone && rchecked.test( value ) ) ) { - return collection.each( function( index ) { - var self = collection.eq( index ); - if ( valueIsFunction ) { - args[ 0 ] = value.call( this, index, self.html() ); - } - domManip( self, args, callback, ignored ); - } ); - } - - if ( l ) { - fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - // Require either new content or an interest in ignored elements to invoke the callback - if ( first || ignored ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item - // instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( collection[ i ], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !dataPriv.access( node, "globalEval" ) && - jQuery.contains( doc, node ) ) { - - if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { - - // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl && !node.noModule ) { - jQuery._evalUrl( node.src, { - nonce: node.nonce || node.getAttribute( "nonce" ) - } ); - } - } else { - DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); - } - } - } - } - } - } - - return collection; -} - -function remove( elem, selector, keepData ) { - var node, - nodes = selector ? jQuery.filter( selector, elem ) : elem, - i = 0; - - for ( ; ( node = nodes[ i ] ) != null; i++ ) { - if ( !keepData && node.nodeType === 1 ) { - jQuery.cleanData( getAll( node ) ); - } - - if ( node.parentNode ) { - if ( keepData && isAttached( node ) ) { - setGlobalEval( getAll( node, "script" ) ); - } - node.parentNode.removeChild( node ); - } - } - - return elem; -} - -jQuery.extend( { - htmlPrefilter: function( html ) { - return html.replace( rxhtmlTag, "<$1>" ); - }, - - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var i, l, srcElements, destElements, - clone = elem.cloneNode( true ), - inPage = isAttached( elem ); - - // Fix IE cloning issues - if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && - !jQuery.isXMLDoc( elem ) ) { - - // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - fixInput( srcElements[ i ], destElements[ i ] ); - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - cloneCopyEvent( srcElements[ i ], destElements[ i ] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - // Return the cloned set - return clone; - }, - - cleanData: function( elems ) { - var data, elem, type, - special = jQuery.event.special, - i = 0; - - for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { - if ( acceptData( elem ) ) { - if ( ( data = elem[ dataPriv.expando ] ) ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataPriv.expando ] = undefined; - } - if ( elem[ dataUser.expando ] ) { - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataUser.expando ] = undefined; - } - } - } - } -} ); - -jQuery.fn.extend( { - detach: function( selector ) { - return remove( this, selector, true ); - }, - - remove: function( selector ) { - return remove( this, selector ); - }, - - text: function( value ) { - return access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().each( function() { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.textContent = value; - } - } ); - }, null, value, arguments.length ); - }, - - append: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - } ); - }, - - prepend: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - } ); - }, - - before: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - } ); - }, - - after: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - } ); - }, - - empty: function() { - var elem, - i = 0; - - for ( ; ( elem = this[ i ] ) != null; i++ ) { - if ( elem.nodeType === 1 ) { - - // Prevent memory leaks - jQuery.cleanData( getAll( elem, false ) ); - - // Remove any remaining nodes - elem.textContent = ""; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function() { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - } ); - }, - - html: function( value ) { - return access( this, function( value ) { - var elem = this[ 0 ] || {}, - i = 0, - l = this.length; - - if ( value === undefined && elem.nodeType === 1 ) { - return elem.innerHTML; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { - - value = jQuery.htmlPrefilter( value ); - - try { - for ( ; i < l; i++ ) { - elem = this[ i ] || {}; - - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch ( e ) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var ignored = []; - - // Make the changes, replacing each non-ignored context element with the new content - return domManip( this, arguments, function( elem ) { - var parent = this.parentNode; - - if ( jQuery.inArray( this, ignored ) < 0 ) { - jQuery.cleanData( getAll( this ) ); - if ( parent ) { - parent.replaceChild( elem, this ); - } - } - - // Force callback invocation - }, ignored ); - } -} ); - -jQuery.each( { - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1, - i = 0; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone( true ); - jQuery( insert[ i ] )[ original ]( elems ); - - // Support: Android <=4.0 only, PhantomJS 1 only - // .get() because push.apply(_, arraylike) throws on ancient WebKit - push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -} ); -var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); - -var getStyles = function( elem ) { - - // Support: IE <=11 only, Firefox <=30 (#15098, #14150) - // IE throws on elements created in popups - // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" - var view = elem.ownerDocument.defaultView; - - if ( !view || !view.opener ) { - view = window; - } - - return view.getComputedStyle( elem ); - }; - -var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); - - - -( function() { - - // Executing both pixelPosition & boxSizingReliable tests require only one layout - // so they're executed at the same time to save the second computation. - function computeStyleTests() { - - // This is a singleton, we need to execute it only once - if ( !div ) { - return; - } - - container.style.cssText = "position:absolute;left:-11111px;width:60px;" + - "margin-top:1px;padding:0;border:0"; - div.style.cssText = - "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + - "margin:auto;border:1px;padding:1px;" + - "width:60%;top:1%"; - documentElement.appendChild( container ).appendChild( div ); - - var divStyle = window.getComputedStyle( div ); - pixelPositionVal = divStyle.top !== "1%"; - - // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 - reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; - - // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 - // Some styles come back with percentage values, even though they shouldn't - div.style.right = "60%"; - pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; - - // Support: IE 9 - 11 only - // Detect misreporting of content dimensions for box-sizing:border-box elements - boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; - - // Support: IE 9 only - // Detect overflow:scroll screwiness (gh-3699) - // Support: Chrome <=64 - // Don't get tricked when zoom affects offsetWidth (gh-4029) - div.style.position = "absolute"; - scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; - - documentElement.removeChild( container ); - - // Nullify the div so it wouldn't be stored in the memory and - // it will also be a sign that checks already performed - div = null; - } - - function roundPixelMeasures( measure ) { - return Math.round( parseFloat( measure ) ); - } - - var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, - reliableMarginLeftVal, - container = document.createElement( "div" ), - div = document.createElement( "div" ); - - // Finish early in limited (non-browser) environments - if ( !div.style ) { - return; - } - - // Support: IE <=9 - 11 only - // Style of cloned element affects source element cloned (#8908) - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - jQuery.extend( support, { - boxSizingReliable: function() { - computeStyleTests(); - return boxSizingReliableVal; - }, - pixelBoxStyles: function() { - computeStyleTests(); - return pixelBoxStylesVal; - }, - pixelPosition: function() { - computeStyleTests(); - return pixelPositionVal; - }, - reliableMarginLeft: function() { - computeStyleTests(); - return reliableMarginLeftVal; - }, - scrollboxSize: function() { - computeStyleTests(); - return scrollboxSizeVal; - } - } ); -} )(); - - -function curCSS( elem, name, computed ) { - var width, minWidth, maxWidth, ret, - - // Support: Firefox 51+ - // Retrieving style before computed somehow - // fixes an issue with getting wrong values - // on detached elements - style = elem.style; - - computed = computed || getStyles( elem ); - - // getPropertyValue is needed for: - // .css('filter') (IE 9 only, #12537) - // .css('--customProperty) (#3144) - if ( computed ) { - ret = computed.getPropertyValue( name ) || computed[ name ]; - - if ( ret === "" && !isAttached( elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Android Browser returns percentage for some values, - // but width seems to be reliably pixels. - // This is against the CSSOM draft spec: - // https://drafts.csswg.org/cssom/#resolved-values - if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret !== undefined ? - - // Support: IE <=9 - 11 only - // IE returns zIndex value as an integer. - ret + "" : - ret; -} - - -function addGetHookIf( conditionFn, hookFn ) { - - // Define the hook, we'll check on the first run if it's really needed. - return { - get: function() { - if ( conditionFn() ) { - - // Hook not needed (or it's not possible to use it due - // to missing dependency), remove it. - delete this.get; - return; - } - - // Hook needed; redefine it so that the support test is not executed again. - return ( this.get = hookFn ).apply( this, arguments ); - } - }; -} - - -var cssPrefixes = [ "Webkit", "Moz", "ms" ], - emptyStyle = document.createElement( "div" ).style, - vendorProps = {}; - -// Return a vendor-prefixed property or undefined -function vendorPropName( name ) { - - // Check for vendor prefixed names - var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in emptyStyle ) { - return name; - } - } -} - -// Return a potentially-mapped jQuery.cssProps or vendor prefixed property -function finalPropName( name ) { - var final = jQuery.cssProps[ name ] || vendorProps[ name ]; - - if ( final ) { - return final; - } - if ( name in emptyStyle ) { - return name; - } - return vendorProps[ name ] = vendorPropName( name ) || name; -} - - -var - - // Swappable if display is none or starts with table - // except "table", "table-cell", or "table-caption" - // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rcustomProp = /^--/, - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: "0", - fontWeight: "400" - }; - -function setPositiveNumber( elem, value, subtract ) { - - // Any relative (+/-) values have already been - // normalized at this point - var matches = rcssNum.exec( value ); - return matches ? - - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : - value; -} - -function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { - var i = dimension === "width" ? 1 : 0, - extra = 0, - delta = 0; - - // Adjustment may not be necessary - if ( box === ( isBorderBox ? "border" : "content" ) ) { - return 0; - } - - for ( ; i < 4; i += 2 ) { - - // Both box models exclude margin - if ( box === "margin" ) { - delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); - } - - // If we get here with a content-box, we're seeking "padding" or "border" or "margin" - if ( !isBorderBox ) { - - // Add padding - delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // For "border" or "margin", add border - if ( box !== "padding" ) { - delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - - // But still keep track of it otherwise - } else { - extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - - // If we get here with a border-box (content + padding + border), we're seeking "content" or - // "padding" or "margin" - } else { - - // For "content", subtract padding - if ( box === "content" ) { - delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // For "content" or "padding", subtract border - if ( box !== "margin" ) { - delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - // Account for positive content-box scroll gutter when requested by providing computedVal - if ( !isBorderBox && computedVal >= 0 ) { - - // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border - // Assuming integer scroll gutter, subtract the rest and round down - delta += Math.max( 0, Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - computedVal - - delta - - extra - - 0.5 - - // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter - // Use an explicit zero to avoid NaN (gh-3964) - ) ) || 0; - } - - return delta; -} - -function getWidthOrHeight( elem, dimension, extra ) { - - // Start with computed style - var styles = getStyles( elem ), - - // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). - // Fake content-box until we know it's needed to know the true value. - boxSizingNeeded = !support.boxSizingReliable() || extra, - isBorderBox = boxSizingNeeded && - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - valueIsBorderBox = isBorderBox, - - val = curCSS( elem, dimension, styles ), - offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); - - // Support: Firefox <=54 - // Return a confounding non-pixel value or feign ignorance, as appropriate. - if ( rnumnonpx.test( val ) ) { - if ( !extra ) { - return val; - } - val = "auto"; - } - - - // Fall back to offsetWidth/offsetHeight when value is "auto" - // This happens for inline elements with no explicit setting (gh-3571) - // Support: Android <=4.1 - 4.3 only - // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) - // Support: IE 9-11 only - // Also use offsetWidth/offsetHeight for when box sizing is unreliable - // We use getClientRects() to check for hidden/disconnected. - // In those cases, the computed value can be trusted to be border-box - if ( ( !support.boxSizingReliable() && isBorderBox || - val === "auto" || - !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && - elem.getClientRects().length ) { - - isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // Where available, offsetWidth/offsetHeight approximate border box dimensions. - // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the - // retrieved value as a content box dimension. - valueIsBorderBox = offsetProp in elem; - if ( valueIsBorderBox ) { - val = elem[ offsetProp ]; - } - } - - // Normalize "" and auto - val = parseFloat( val ) || 0; - - // Adjust for the element's box model - return ( val + - boxModelAdjustment( - elem, - dimension, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles, - - // Provide the current computed size to request scroll gutter calculation (gh-3589) - val - ) - ) + "px"; -} - -jQuery.extend( { - - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "animationIterationCount": true, - "columnCount": true, - "fillOpacity": true, - "flexGrow": true, - "flexShrink": true, - "fontWeight": true, - "gridArea": true, - "gridColumn": true, - "gridColumnEnd": true, - "gridColumnStart": true, - "gridRow": true, - "gridRowEnd": true, - "gridRowStart": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: {}, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ), - style = elem.style; - - // Make sure that we're working with the right name. We don't - // want to query the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Gets hook for the prefixed version, then unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // Convert "+=" or "-=" to relative numbers (#7345) - if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { - value = adjustCSS( elem, name, ret ); - - // Fixes bug #9237 - type = "number"; - } - - // Make sure that null and NaN values aren't set (#7116) - if ( value == null || value !== value ) { - return; - } - - // If a number was passed in, add the unit (except for certain CSS properties) - // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append - // "px" to a few hardcoded values. - if ( type === "number" && !isCustomProp ) { - value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); - } - - // background-* props affect original clone's values - if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !( "set" in hooks ) || - ( value = hooks.set( elem, value, extra ) ) !== undefined ) { - - if ( isCustomProp ) { - style.setProperty( name, value ); - } else { - style[ name ] = value; - } - } - - } else { - - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && - ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { - - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var val, num, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ); - - // Make sure that we're working with the right name. We don't - // want to modify the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Try prefixed name followed by the unprefixed name - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - // Convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Make numeric if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || isFinite( num ) ? num || 0 : val; - } - - return val; - } -} ); - -jQuery.each( [ "height", "width" ], function( i, dimension ) { - jQuery.cssHooks[ dimension ] = { - get: function( elem, computed, extra ) { - if ( computed ) { - - // Certain elements can have dimension info if we invisibly show them - // but it must have a current display style that would benefit - return rdisplayswap.test( jQuery.css( elem, "display" ) ) && - - // Support: Safari 8+ - // Table columns in Safari have non-zero offsetWidth & zero - // getBoundingClientRect().width unless display is changed. - // Support: IE <=11 only - // Running getBoundingClientRect on a disconnected node - // in IE throws an error. - ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? - swap( elem, cssShow, function() { - return getWidthOrHeight( elem, dimension, extra ); - } ) : - getWidthOrHeight( elem, dimension, extra ); - } - }, - - set: function( elem, value, extra ) { - var matches, - styles = getStyles( elem ), - - // Only read styles.position if the test has a chance to fail - // to avoid forcing a reflow. - scrollboxSizeBuggy = !support.scrollboxSize() && - styles.position === "absolute", - - // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) - boxSizingNeeded = scrollboxSizeBuggy || extra, - isBorderBox = boxSizingNeeded && - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - subtract = extra ? - boxModelAdjustment( - elem, - dimension, - extra, - isBorderBox, - styles - ) : - 0; - - // Account for unreliable border-box dimensions by comparing offset* to computed and - // faking a content-box to get border and padding (gh-3699) - if ( isBorderBox && scrollboxSizeBuggy ) { - subtract -= Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - parseFloat( styles[ dimension ] ) - - boxModelAdjustment( elem, dimension, "border", false, styles ) - - 0.5 - ); - } - - // Convert to pixels if value adjustment is needed - if ( subtract && ( matches = rcssNum.exec( value ) ) && - ( matches[ 3 ] || "px" ) !== "px" ) { - - elem.style[ dimension ] = value; - value = jQuery.css( elem, dimension ); - } - - return setPositiveNumber( elem, value, subtract ); - } - }; -} ); - -jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, - function( elem, computed ) { - if ( computed ) { - return ( parseFloat( curCSS( elem, "marginLeft" ) ) || - elem.getBoundingClientRect().left - - swap( elem, { marginLeft: 0 }, function() { - return elem.getBoundingClientRect().left; - } ) - ) + "px"; - } - } -); - -// These hooks are used by animate to expand properties -jQuery.each( { - margin: "", - padding: "", - border: "Width" -}, function( prefix, suffix ) { - jQuery.cssHooks[ prefix + suffix ] = { - expand: function( value ) { - var i = 0, - expanded = {}, - - // Assumes a single number if not a string - parts = typeof value === "string" ? value.split( " " ) : [ value ]; - - for ( ; i < 4; i++ ) { - expanded[ prefix + cssExpand[ i ] + suffix ] = - parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; - } - - return expanded; - } - }; - - if ( prefix !== "margin" ) { - jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; - } -} ); - -jQuery.fn.extend( { - css: function( name, value ) { - return access( this, function( elem, name, value ) { - var styles, len, - map = {}, - i = 0; - - if ( Array.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - } -} ); - - -function Tween( elem, options, prop, end, easing ) { - return new Tween.prototype.init( elem, options, prop, end, easing ); -} -jQuery.Tween = Tween; - -Tween.prototype = { - constructor: Tween, - init: function( elem, options, prop, end, easing, unit ) { - this.elem = elem; - this.prop = prop; - this.easing = easing || jQuery.easing._default; - this.options = options; - this.start = this.now = this.cur(); - this.end = end; - this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); - }, - cur: function() { - var hooks = Tween.propHooks[ this.prop ]; - - return hooks && hooks.get ? - hooks.get( this ) : - Tween.propHooks._default.get( this ); - }, - run: function( percent ) { - var eased, - hooks = Tween.propHooks[ this.prop ]; - - if ( this.options.duration ) { - this.pos = eased = jQuery.easing[ this.easing ]( - percent, this.options.duration * percent, 0, 1, this.options.duration - ); - } else { - this.pos = eased = percent; - } - this.now = ( this.end - this.start ) * eased + this.start; - - if ( this.options.step ) { - this.options.step.call( this.elem, this.now, this ); - } - - if ( hooks && hooks.set ) { - hooks.set( this ); - } else { - Tween.propHooks._default.set( this ); - } - return this; - } -}; - -Tween.prototype.init.prototype = Tween.prototype; - -Tween.propHooks = { - _default: { - get: function( tween ) { - var result; - - // Use a property on the element directly when it is not a DOM element, - // or when there is no matching style property that exists. - if ( tween.elem.nodeType !== 1 || - tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { - return tween.elem[ tween.prop ]; - } - - // Passing an empty string as a 3rd parameter to .css will automatically - // attempt a parseFloat and fallback to a string if the parse fails. - // Simple values such as "10px" are parsed to Float; - // complex values such as "rotate(1rad)" are returned as-is. - result = jQuery.css( tween.elem, tween.prop, "" ); - - // Empty strings, null, undefined and "auto" are converted to 0. - return !result || result === "auto" ? 0 : result; - }, - set: function( tween ) { - - // Use step hook for back compat. - // Use cssHook if its there. - // Use .style if available and use plain properties where available. - if ( jQuery.fx.step[ tween.prop ] ) { - jQuery.fx.step[ tween.prop ]( tween ); - } else if ( tween.elem.nodeType === 1 && ( - jQuery.cssHooks[ tween.prop ] || - tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { - jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); - } else { - tween.elem[ tween.prop ] = tween.now; - } - } - } -}; - -// Support: IE <=9 only -// Panic based approach to setting things on disconnected nodes -Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { - set: function( tween ) { - if ( tween.elem.nodeType && tween.elem.parentNode ) { - tween.elem[ tween.prop ] = tween.now; - } - } -}; - -jQuery.easing = { - linear: function( p ) { - return p; - }, - swing: function( p ) { - return 0.5 - Math.cos( p * Math.PI ) / 2; - }, - _default: "swing" -}; - -jQuery.fx = Tween.prototype.init; - -// Back compat <1.8 extension point -jQuery.fx.step = {}; - - - - -var - fxNow, inProgress, - rfxtypes = /^(?:toggle|show|hide)$/, - rrun = /queueHooks$/; - -function schedule() { - if ( inProgress ) { - if ( document.hidden === false && window.requestAnimationFrame ) { - window.requestAnimationFrame( schedule ); - } else { - window.setTimeout( schedule, jQuery.fx.interval ); - } - - jQuery.fx.tick(); - } -} - -// Animations created synchronously will run synchronously -function createFxNow() { - window.setTimeout( function() { - fxNow = undefined; - } ); - return ( fxNow = Date.now() ); -} - -// Generate parameters to create a standard animation -function genFx( type, includeWidth ) { - var which, - i = 0, - attrs = { height: type }; - - // If we include width, step value is 1 to do all cssExpand values, - // otherwise step value is 2 to skip over Left and Right - includeWidth = includeWidth ? 1 : 0; - for ( ; i < 4; i += 2 - includeWidth ) { - which = cssExpand[ i ]; - attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; - } - - if ( includeWidth ) { - attrs.opacity = attrs.width = type; - } - - return attrs; -} - -function createTween( value, prop, animation ) { - var tween, - collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), - index = 0, - length = collection.length; - for ( ; index < length; index++ ) { - if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { - - // We're done with this property - return tween; - } - } -} - -function defaultPrefilter( elem, props, opts ) { - var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, - isBox = "width" in props || "height" in props, - anim = this, - orig = {}, - style = elem.style, - hidden = elem.nodeType && isHiddenWithinTree( elem ), - dataShow = dataPriv.get( elem, "fxshow" ); - - // Queue-skipping animations hijack the fx hooks - if ( !opts.queue ) { - hooks = jQuery._queueHooks( elem, "fx" ); - if ( hooks.unqueued == null ) { - hooks.unqueued = 0; - oldfire = hooks.empty.fire; - hooks.empty.fire = function() { - if ( !hooks.unqueued ) { - oldfire(); - } - }; - } - hooks.unqueued++; - - anim.always( function() { - - // Ensure the complete handler is called before this completes - anim.always( function() { - hooks.unqueued--; - if ( !jQuery.queue( elem, "fx" ).length ) { - hooks.empty.fire(); - } - } ); - } ); - } - - // Detect show/hide animations - for ( prop in props ) { - value = props[ prop ]; - if ( rfxtypes.test( value ) ) { - delete props[ prop ]; - toggle = toggle || value === "toggle"; - if ( value === ( hidden ? "hide" : "show" ) ) { - - // Pretend to be hidden if this is a "show" and - // there is still data from a stopped show/hide - if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { - hidden = true; - - // Ignore all other no-op show/hide data - } else { - continue; - } - } - orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); - } - } - - // Bail out if this is a no-op like .hide().hide() - propTween = !jQuery.isEmptyObject( props ); - if ( !propTween && jQuery.isEmptyObject( orig ) ) { - return; - } - - // Restrict "overflow" and "display" styles during box animations - if ( isBox && elem.nodeType === 1 ) { - - // Support: IE <=9 - 11, Edge 12 - 15 - // Record all 3 overflow attributes because IE does not infer the shorthand - // from identically-valued overflowX and overflowY and Edge just mirrors - // the overflowX value there. - opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; - - // Identify a display type, preferring old show/hide data over the CSS cascade - restoreDisplay = dataShow && dataShow.display; - if ( restoreDisplay == null ) { - restoreDisplay = dataPriv.get( elem, "display" ); - } - display = jQuery.css( elem, "display" ); - if ( display === "none" ) { - if ( restoreDisplay ) { - display = restoreDisplay; - } else { - - // Get nonempty value(s) by temporarily forcing visibility - showHide( [ elem ], true ); - restoreDisplay = elem.style.display || restoreDisplay; - display = jQuery.css( elem, "display" ); - showHide( [ elem ] ); - } - } - - // Animate inline elements as inline-block - if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { - if ( jQuery.css( elem, "float" ) === "none" ) { - - // Restore the original display value at the end of pure show/hide animations - if ( !propTween ) { - anim.done( function() { - style.display = restoreDisplay; - } ); - if ( restoreDisplay == null ) { - display = style.display; - restoreDisplay = display === "none" ? "" : display; - } - } - style.display = "inline-block"; - } - } - } - - if ( opts.overflow ) { - style.overflow = "hidden"; - anim.always( function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - } ); - } - - // Implement show/hide animations - propTween = false; - for ( prop in orig ) { - - // General show/hide setup for this element animation - if ( !propTween ) { - if ( dataShow ) { - if ( "hidden" in dataShow ) { - hidden = dataShow.hidden; - } - } else { - dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); - } - - // Store hidden/visible for toggle so `.stop().toggle()` "reverses" - if ( toggle ) { - dataShow.hidden = !hidden; - } - - // Show elements before animating them - if ( hidden ) { - showHide( [ elem ], true ); - } - - /* eslint-disable no-loop-func */ - - anim.done( function() { - - /* eslint-enable no-loop-func */ - - // The final step of a "hide" animation is actually hiding the element - if ( !hidden ) { - showHide( [ elem ] ); - } - dataPriv.remove( elem, "fxshow" ); - for ( prop in orig ) { - jQuery.style( elem, prop, orig[ prop ] ); - } - } ); - } - - // Per-property setup - propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); - if ( !( prop in dataShow ) ) { - dataShow[ prop ] = propTween.start; - if ( hidden ) { - propTween.end = propTween.start; - propTween.start = 0; - } - } - } -} - -function propFilter( props, specialEasing ) { - var index, name, easing, value, hooks; - - // camelCase, specialEasing and expand cssHook pass - for ( index in props ) { - name = camelCase( index ); - easing = specialEasing[ name ]; - value = props[ index ]; - if ( Array.isArray( value ) ) { - easing = value[ 1 ]; - value = props[ index ] = value[ 0 ]; - } - - if ( index !== name ) { - props[ name ] = value; - delete props[ index ]; - } - - hooks = jQuery.cssHooks[ name ]; - if ( hooks && "expand" in hooks ) { - value = hooks.expand( value ); - delete props[ name ]; - - // Not quite $.extend, this won't overwrite existing keys. - // Reusing 'index' because we have the correct "name" - for ( index in value ) { - if ( !( index in props ) ) { - props[ index ] = value[ index ]; - specialEasing[ index ] = easing; - } - } - } else { - specialEasing[ name ] = easing; - } - } -} - -function Animation( elem, properties, options ) { - var result, - stopped, - index = 0, - length = Animation.prefilters.length, - deferred = jQuery.Deferred().always( function() { - - // Don't match elem in the :animated selector - delete tick.elem; - } ), - tick = function() { - if ( stopped ) { - return false; - } - var currentTime = fxNow || createFxNow(), - remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), - - // Support: Android 2.3 only - // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) - temp = remaining / animation.duration || 0, - percent = 1 - temp, - index = 0, - length = animation.tweens.length; - - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( percent ); - } - - deferred.notifyWith( elem, [ animation, percent, remaining ] ); - - // If there's more to do, yield - if ( percent < 1 && length ) { - return remaining; - } - - // If this was an empty animation, synthesize a final progress notification - if ( !length ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - } - - // Resolve the animation and report its conclusion - deferred.resolveWith( elem, [ animation ] ); - return false; - }, - animation = deferred.promise( { - elem: elem, - props: jQuery.extend( {}, properties ), - opts: jQuery.extend( true, { - specialEasing: {}, - easing: jQuery.easing._default - }, options ), - originalProperties: properties, - originalOptions: options, - startTime: fxNow || createFxNow(), - duration: options.duration, - tweens: [], - createTween: function( prop, end ) { - var tween = jQuery.Tween( elem, animation.opts, prop, end, - animation.opts.specialEasing[ prop ] || animation.opts.easing ); - animation.tweens.push( tween ); - return tween; - }, - stop: function( gotoEnd ) { - var index = 0, - - // If we are going to the end, we want to run all the tweens - // otherwise we skip this part - length = gotoEnd ? animation.tweens.length : 0; - if ( stopped ) { - return this; - } - stopped = true; - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( 1 ); - } - - // Resolve when we played the last frame; otherwise, reject - if ( gotoEnd ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - deferred.resolveWith( elem, [ animation, gotoEnd ] ); - } else { - deferred.rejectWith( elem, [ animation, gotoEnd ] ); - } - return this; - } - } ), - props = animation.props; - - propFilter( props, animation.opts.specialEasing ); - - for ( ; index < length; index++ ) { - result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); - if ( result ) { - if ( isFunction( result.stop ) ) { - jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = - result.stop.bind( result ); - } - return result; - } - } - - jQuery.map( props, createTween, animation ); - - if ( isFunction( animation.opts.start ) ) { - animation.opts.start.call( elem, animation ); - } - - // Attach callbacks from options - animation - .progress( animation.opts.progress ) - .done( animation.opts.done, animation.opts.complete ) - .fail( animation.opts.fail ) - .always( animation.opts.always ); - - jQuery.fx.timer( - jQuery.extend( tick, { - elem: elem, - anim: animation, - queue: animation.opts.queue - } ) - ); - - return animation; -} - -jQuery.Animation = jQuery.extend( Animation, { - - tweeners: { - "*": [ function( prop, value ) { - var tween = this.createTween( prop, value ); - adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); - return tween; - } ] - }, - - tweener: function( props, callback ) { - if ( isFunction( props ) ) { - callback = props; - props = [ "*" ]; - } else { - props = props.match( rnothtmlwhite ); - } - - var prop, - index = 0, - length = props.length; - - for ( ; index < length; index++ ) { - prop = props[ index ]; - Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; - Animation.tweeners[ prop ].unshift( callback ); - } - }, - - prefilters: [ defaultPrefilter ], - - prefilter: function( callback, prepend ) { - if ( prepend ) { - Animation.prefilters.unshift( callback ); - } else { - Animation.prefilters.push( callback ); - } - } -} ); - -jQuery.speed = function( speed, easing, fn ) { - var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { - complete: fn || !fn && easing || - isFunction( speed ) && speed, - duration: speed, - easing: fn && easing || easing && !isFunction( easing ) && easing - }; - - // Go to the end state if fx are off - if ( jQuery.fx.off ) { - opt.duration = 0; - - } else { - if ( typeof opt.duration !== "number" ) { - if ( opt.duration in jQuery.fx.speeds ) { - opt.duration = jQuery.fx.speeds[ opt.duration ]; - - } else { - opt.duration = jQuery.fx.speeds._default; - } - } - } - - // Normalize opt.queue - true/undefined/null -> "fx" - if ( opt.queue == null || opt.queue === true ) { - opt.queue = "fx"; - } - - // Queueing - opt.old = opt.complete; - - opt.complete = function() { - if ( isFunction( opt.old ) ) { - opt.old.call( this ); - } - - if ( opt.queue ) { - jQuery.dequeue( this, opt.queue ); - } - }; - - return opt; -}; - -jQuery.fn.extend( { - fadeTo: function( speed, to, easing, callback ) { - - // Show any hidden elements after setting opacity to 0 - return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() - - // Animate to the value specified - .end().animate( { opacity: to }, speed, easing, callback ); - }, - animate: function( prop, speed, easing, callback ) { - var empty = jQuery.isEmptyObject( prop ), - optall = jQuery.speed( speed, easing, callback ), - doAnimation = function() { - - // Operate on a copy of prop so per-property easing won't be lost - var anim = Animation( this, jQuery.extend( {}, prop ), optall ); - - // Empty animations, or finishing resolves immediately - if ( empty || dataPriv.get( this, "finish" ) ) { - anim.stop( true ); - } - }; - doAnimation.finish = doAnimation; - - return empty || optall.queue === false ? - this.each( doAnimation ) : - this.queue( optall.queue, doAnimation ); - }, - stop: function( type, clearQueue, gotoEnd ) { - var stopQueue = function( hooks ) { - var stop = hooks.stop; - delete hooks.stop; - stop( gotoEnd ); - }; - - if ( typeof type !== "string" ) { - gotoEnd = clearQueue; - clearQueue = type; - type = undefined; - } - if ( clearQueue && type !== false ) { - this.queue( type || "fx", [] ); - } - - return this.each( function() { - var dequeue = true, - index = type != null && type + "queueHooks", - timers = jQuery.timers, - data = dataPriv.get( this ); - - if ( index ) { - if ( data[ index ] && data[ index ].stop ) { - stopQueue( data[ index ] ); - } - } else { - for ( index in data ) { - if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { - stopQueue( data[ index ] ); - } - } - } - - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && - ( type == null || timers[ index ].queue === type ) ) { - - timers[ index ].anim.stop( gotoEnd ); - dequeue = false; - timers.splice( index, 1 ); - } - } - - // Start the next in the queue if the last step wasn't forced. - // Timers currently will call their complete callbacks, which - // will dequeue but only if they were gotoEnd. - if ( dequeue || !gotoEnd ) { - jQuery.dequeue( this, type ); - } - } ); - }, - finish: function( type ) { - if ( type !== false ) { - type = type || "fx"; - } - return this.each( function() { - var index, - data = dataPriv.get( this ), - queue = data[ type + "queue" ], - hooks = data[ type + "queueHooks" ], - timers = jQuery.timers, - length = queue ? queue.length : 0; - - // Enable finishing flag on private data - data.finish = true; - - // Empty the queue first - jQuery.queue( this, type, [] ); - - if ( hooks && hooks.stop ) { - hooks.stop.call( this, true ); - } - - // Look for any active animations, and finish them - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && timers[ index ].queue === type ) { - timers[ index ].anim.stop( true ); - timers.splice( index, 1 ); - } - } - - // Look for any animations in the old queue and finish them - for ( index = 0; index < length; index++ ) { - if ( queue[ index ] && queue[ index ].finish ) { - queue[ index ].finish.call( this ); - } - } - - // Turn off finishing flag - delete data.finish; - } ); - } -} ); - -jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { - var cssFn = jQuery.fn[ name ]; - jQuery.fn[ name ] = function( speed, easing, callback ) { - return speed == null || typeof speed === "boolean" ? - cssFn.apply( this, arguments ) : - this.animate( genFx( name, true ), speed, easing, callback ); - }; -} ); - -// Generate shortcuts for custom animations -jQuery.each( { - slideDown: genFx( "show" ), - slideUp: genFx( "hide" ), - slideToggle: genFx( "toggle" ), - fadeIn: { opacity: "show" }, - fadeOut: { opacity: "hide" }, - fadeToggle: { opacity: "toggle" } -}, function( name, props ) { - jQuery.fn[ name ] = function( speed, easing, callback ) { - return this.animate( props, speed, easing, callback ); - }; -} ); - -jQuery.timers = []; -jQuery.fx.tick = function() { - var timer, - i = 0, - timers = jQuery.timers; - - fxNow = Date.now(); - - for ( ; i < timers.length; i++ ) { - timer = timers[ i ]; - - // Run the timer and safely remove it when done (allowing for external removal) - if ( !timer() && timers[ i ] === timer ) { - timers.splice( i--, 1 ); - } - } - - if ( !timers.length ) { - jQuery.fx.stop(); - } - fxNow = undefined; -}; - -jQuery.fx.timer = function( timer ) { - jQuery.timers.push( timer ); - jQuery.fx.start(); -}; - -jQuery.fx.interval = 13; -jQuery.fx.start = function() { - if ( inProgress ) { - return; - } - - inProgress = true; - schedule(); -}; - -jQuery.fx.stop = function() { - inProgress = null; -}; - -jQuery.fx.speeds = { - slow: 600, - fast: 200, - - // Default speed - _default: 400 -}; - - -// Based off of the plugin by Clint Helfers, with permission. -// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ -jQuery.fn.delay = function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = window.setTimeout( next, time ); - hooks.stop = function() { - window.clearTimeout( timeout ); - }; - } ); -}; - - -( function() { - var input = document.createElement( "input" ), - select = document.createElement( "select" ), - opt = select.appendChild( document.createElement( "option" ) ); - - input.type = "checkbox"; - - // Support: Android <=4.3 only - // Default value for a checkbox should be "on" - support.checkOn = input.value !== ""; - - // Support: IE <=11 only - // Must access selectedIndex to make default options select - support.optSelected = opt.selected; - - // Support: IE <=11 only - // An input loses its value after becoming a radio - input = document.createElement( "input" ); - input.value = "t"; - input.type = "radio"; - support.radioValue = input.value === "t"; -} )(); - - -var boolHook, - attrHandle = jQuery.expr.attrHandle; - -jQuery.fn.extend( { - attr: function( name, value ) { - return access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each( function() { - jQuery.removeAttr( this, name ); - } ); - } -} ); - -jQuery.extend( { - attr: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set attributes on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === "undefined" ) { - return jQuery.prop( elem, name, value ); - } - - // Attribute hooks are determined by the lowercase version - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - hooks = jQuery.attrHooks[ name.toLowerCase() ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); - } - - if ( value !== undefined ) { - if ( value === null ) { - jQuery.removeAttr( elem, name ); - return; - } - - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - elem.setAttribute( name, value + "" ); - return value; - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? undefined : ret; - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !support.radioValue && value === "radio" && - nodeName( elem, "input" ) ) { - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - removeAttr: function( elem, value ) { - var name, - i = 0, - - // Attribute names can contain non-HTML whitespace characters - // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 - attrNames = value && value.match( rnothtmlwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( ( name = attrNames[ i++ ] ) ) { - elem.removeAttribute( name ); - } - } - } -} ); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else { - elem.setAttribute( name, name ); - } - return name; - } -}; - -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { - var getter = attrHandle[ name ] || jQuery.find.attr; - - attrHandle[ name ] = function( elem, name, isXML ) { - var ret, handle, - lowercaseName = name.toLowerCase(); - - if ( !isXML ) { - - // Avoid an infinite loop by temporarily removing this function from the getter - handle = attrHandle[ lowercaseName ]; - attrHandle[ lowercaseName ] = ret; - ret = getter( elem, name, isXML ) != null ? - lowercaseName : - null; - attrHandle[ lowercaseName ] = handle; - } - return ret; - }; -} ); - - - - -var rfocusable = /^(?:input|select|textarea|button)$/i, - rclickable = /^(?:a|area)$/i; - -jQuery.fn.extend( { - prop: function( name, value ) { - return access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - return this.each( function() { - delete this[ jQuery.propFix[ name ] || name ]; - } ); - } -} ); - -jQuery.extend( { - prop: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set properties on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - return ( elem[ name ] = value ); - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - return elem[ name ]; - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - - // Support: IE <=9 - 11 only - // elem.tabIndex doesn't always return the - // correct value when it hasn't been explicitly set - // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - if ( tabindex ) { - return parseInt( tabindex, 10 ); - } - - if ( - rfocusable.test( elem.nodeName ) || - rclickable.test( elem.nodeName ) && - elem.href - ) { - return 0; - } - - return -1; - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - } -} ); - -// Support: IE <=11 only -// Accessing the selectedIndex property -// forces the browser to respect setting selected -// on the option -// The getter ensures a default option is selected -// when in an optgroup -// eslint rule "no-unused-expressions" is disabled for this code -// since it considers such accessions noop -if ( !support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent && parent.parentNode ) { - parent.parentNode.selectedIndex; - } - return null; - }, - set: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent ) { - parent.selectedIndex; - - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - } - }; -} - -jQuery.each( [ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -} ); - - - - - // Strip and collapse whitespace according to HTML spec - // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace - function stripAndCollapse( value ) { - var tokens = value.match( rnothtmlwhite ) || []; - return tokens.join( " " ); - } - - -function getClass( elem ) { - return elem.getAttribute && elem.getAttribute( "class" ) || ""; -} - -function classesToArray( value ) { - if ( Array.isArray( value ) ) { - return value; - } - if ( typeof value === "string" ) { - return value.match( rnothtmlwhite ) || []; - } - return []; -} - -jQuery.fn.extend( { - addClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - classes = classesToArray( value ); - - if ( classes.length ) { - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - if ( !arguments.length ) { - return this.attr( "class", "" ); - } - - classes = classesToArray( value ); - - if ( classes.length ) { - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) > -1 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value, - isValidValue = type === "string" || Array.isArray( value ); - - if ( typeof stateVal === "boolean" && isValidValue ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( isFunction( value ) ) { - return this.each( function( i ) { - jQuery( this ).toggleClass( - value.call( this, i, getClass( this ), stateVal ), - stateVal - ); - } ); - } - - return this.each( function() { - var className, i, self, classNames; - - if ( isValidValue ) { - - // Toggle individual class names - i = 0; - self = jQuery( this ); - classNames = classesToArray( value ); - - while ( ( className = classNames[ i++ ] ) ) { - - // Check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( value === undefined || type === "boolean" ) { - className = getClass( this ); - if ( className ) { - - // Store className if set - dataPriv.set( this, "__className__", className ); - } - - // If the element has a class name or if we're passed `false`, - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - if ( this.setAttribute ) { - this.setAttribute( "class", - className || value === false ? - "" : - dataPriv.get( this, "__className__" ) || "" - ); - } - } - } ); - }, - - hasClass: function( selector ) { - var className, elem, - i = 0; - - className = " " + selector + " "; - while ( ( elem = this[ i++ ] ) ) { - if ( elem.nodeType === 1 && - ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { - return true; - } - } - - return false; - } -} ); - - - - -var rreturn = /\r/g; - -jQuery.fn.extend( { - val: function( value ) { - var hooks, ret, valueIsFunction, - elem = this[ 0 ]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || - jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && - "get" in hooks && - ( ret = hooks.get( elem, "value" ) ) !== undefined - ) { - return ret; - } - - ret = elem.value; - - // Handle most common string cases - if ( typeof ret === "string" ) { - return ret.replace( rreturn, "" ); - } - - // Handle cases where value is null/undef or number - return ret == null ? "" : ret; - } - - return; - } - - valueIsFunction = isFunction( value ); - - return this.each( function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( valueIsFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - - } else if ( typeof val === "number" ) { - val += ""; - - } else if ( Array.isArray( val ) ) { - val = jQuery.map( val, function( value ) { - return value == null ? "" : value + ""; - } ); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - } ); - } -} ); - -jQuery.extend( { - valHooks: { - option: { - get: function( elem ) { - - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - - // Support: IE <=10 - 11 only - // option.text throws exceptions (#14686, #14858) - // Strip and collapse whitespace - // https://html.spec.whatwg.org/#strip-and-collapse-whitespace - stripAndCollapse( jQuery.text( elem ) ); - } - }, - select: { - get: function( elem ) { - var value, option, i, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one", - values = one ? null : [], - max = one ? index + 1 : options.length; - - if ( index < 0 ) { - i = max; - - } else { - i = one ? index : 0; - } - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // Support: IE <=9 only - // IE8-9 doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - - // Don't return options that are disabled or in a disabled optgroup - !option.disabled && - ( !option.parentNode.disabled || - !nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - - /* eslint-disable no-cond-assign */ - - if ( option.selected = - jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 - ) { - optionSet = true; - } - - /* eslint-enable no-cond-assign */ - } - - // Force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - } -} ); - -// Radios and checkboxes getter/setter -jQuery.each( [ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( Array.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); - } - } - }; - if ( !support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - return elem.getAttribute( "value" ) === null ? "on" : elem.value; - }; - } -} ); - - - - -// Return jQuery for attributes-only inclusion - - -support.focusin = "onfocusin" in window; - - -var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - stopPropagationCallback = function( e ) { - e.stopPropagation(); - }; - -jQuery.extend( jQuery.event, { - - trigger: function( event, data, elem, onlyHandlers ) { - - var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; - - cur = lastElement = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf( "." ) > -1 ) { - - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split( "." ); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf( ":" ) < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join( "." ); - event.rnamespace = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === ( elem.ownerDocument || document ) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { - lastElement = cur; - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && - dataPriv.get( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( ( !special._default || - special._default.apply( eventPath.pop(), data ) === false ) && - acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name as the event. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - - if ( event.isPropagationStopped() ) { - lastElement.addEventListener( type, stopPropagationCallback ); - } - - elem[ type ](); - - if ( event.isPropagationStopped() ) { - lastElement.removeEventListener( type, stopPropagationCallback ); - } - - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - // Piggyback on a donor event to simulate a different one - // Used only for `focus(in | out)` events - simulate: function( type, elem, event ) { - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true - } - ); - - jQuery.event.trigger( e, null, elem ); - } - -} ); - -jQuery.fn.extend( { - - trigger: function( type, data ) { - return this.each( function() { - jQuery.event.trigger( type, data, this ); - } ); - }, - triggerHandler: function( type, data ) { - var elem = this[ 0 ]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -} ); - - -// Support: Firefox <=44 -// Firefox doesn't have focus(in | out) events -// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 -// -// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 -// focus(in | out) events fire after focus & blur events, -// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order -// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 -if ( !support.focusin ) { - jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - var doc = this.ownerDocument || this, - attaches = dataPriv.access( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this, - attaches = dataPriv.access( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - dataPriv.remove( doc, fix ); - - } else { - dataPriv.access( doc, fix, attaches ); - } - } - }; - } ); -} -var location = window.location; - -var nonce = Date.now(); - -var rquery = ( /\?/ ); - - - -// Cross-browser xml parsing -jQuery.parseXML = function( data ) { - var xml; - if ( !data || typeof data !== "string" ) { - return null; - } - - // Support: IE 9 - 11 only - // IE throws on parseFromString with invalid input. - try { - xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); - } catch ( e ) { - xml = undefined; - } - - if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; -}; - - -var - rbracket = /\[\]$/, - rCRLF = /\r?\n/g, - rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, - rsubmittable = /^(?:input|select|textarea|keygen)/i; - -function buildParams( prefix, obj, traditional, add ) { - var name; - - if ( Array.isArray( obj ) ) { - - // Serialize array item. - jQuery.each( obj, function( i, v ) { - if ( traditional || rbracket.test( prefix ) ) { - - // Treat each array item as a scalar. - add( prefix, v ); - - } else { - - // Item is non-scalar (array or object), encode its numeric index. - buildParams( - prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", - v, - traditional, - add - ); - } - } ); - - } else if ( !traditional && toType( obj ) === "object" ) { - - // Serialize object item. - for ( name in obj ) { - buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); - } - - } else { - - // Serialize scalar item. - add( prefix, obj ); - } -} - -// Serialize an array of form elements or a set of -// key/values into a query string -jQuery.param = function( a, traditional ) { - var prefix, - s = [], - add = function( key, valueOrFunction ) { - - // If value is a function, invoke it and use its return value - var value = isFunction( valueOrFunction ) ? - valueOrFunction() : - valueOrFunction; - - s[ s.length ] = encodeURIComponent( key ) + "=" + - encodeURIComponent( value == null ? "" : value ); - }; - - if ( a == null ) { - return ""; - } - - // If an array was passed in, assume that it is an array of form elements. - if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { - - // Serialize the form elements - jQuery.each( a, function() { - add( this.name, this.value ); - } ); - - } else { - - // If traditional, encode the "old" way (the way 1.3.2 or older - // did it), otherwise encode params recursively. - for ( prefix in a ) { - buildParams( prefix, a[ prefix ], traditional, add ); - } - } - - // Return the resulting serialization - return s.join( "&" ); -}; - -jQuery.fn.extend( { - serialize: function() { - return jQuery.param( this.serializeArray() ); - }, - serializeArray: function() { - return this.map( function() { - - // Can add propHook for "elements" to filter or add form elements - var elements = jQuery.prop( this, "elements" ); - return elements ? jQuery.makeArray( elements ) : this; - } ) - .filter( function() { - var type = this.type; - - // Use .is( ":disabled" ) so that fieldset[disabled] works - return this.name && !jQuery( this ).is( ":disabled" ) && - rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && - ( this.checked || !rcheckableType.test( type ) ); - } ) - .map( function( i, elem ) { - var val = jQuery( this ).val(); - - if ( val == null ) { - return null; - } - - if ( Array.isArray( val ) ) { - return jQuery.map( val, function( val ) { - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ); - } - - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ).get(); - } -} ); - - -var - r20 = /%20/g, - rhash = /#.*$/, - rantiCache = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - - // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, - rprotocol = /^\/\//, - - /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ - prefilters = {}, - - /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ - transports = {}, - - // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression - allTypes = "*/".concat( "*" ), - - // Anchor tag for parsing the document origin - originAnchor = document.createElement( "a" ); - originAnchor.href = location.href; - -// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport -function addToPrefiltersOrTransports( structure ) { - - // dataTypeExpression is optional and defaults to "*" - return function( dataTypeExpression, func ) { - - if ( typeof dataTypeExpression !== "string" ) { - func = dataTypeExpression; - dataTypeExpression = "*"; - } - - var dataType, - i = 0, - dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; - - if ( isFunction( func ) ) { - - // For each dataType in the dataTypeExpression - while ( ( dataType = dataTypes[ i++ ] ) ) { - - // Prepend if requested - if ( dataType[ 0 ] === "+" ) { - dataType = dataType.slice( 1 ) || "*"; - ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); - - // Otherwise append - } else { - ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); - } - } - } - }; -} - -// Base inspection function for prefilters and transports -function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { - - var inspected = {}, - seekingTransport = ( structure === transports ); - - function inspect( dataType ) { - var selected; - inspected[ dataType ] = true; - jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { - var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); - if ( typeof dataTypeOrTransport === "string" && - !seekingTransport && !inspected[ dataTypeOrTransport ] ) { - - options.dataTypes.unshift( dataTypeOrTransport ); - inspect( dataTypeOrTransport ); - return false; - } else if ( seekingTransport ) { - return !( selected = dataTypeOrTransport ); - } - } ); - return selected; - } - - return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); -} - -// A special extend for ajax options -// that takes "flat" options (not to be deep extended) -// Fixes #9887 -function ajaxExtend( target, src ) { - var key, deep, - flatOptions = jQuery.ajaxSettings.flatOptions || {}; - - for ( key in src ) { - if ( src[ key ] !== undefined ) { - ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; - } - } - if ( deep ) { - jQuery.extend( true, target, deep ); - } - - return target; -} - -/* Handles responses to an ajax request: - * - finds the right dataType (mediates between content-type and expected dataType) - * - returns the corresponding response - */ -function ajaxHandleResponses( s, jqXHR, responses ) { - - var ct, type, finalDataType, firstDataType, - contents = s.contents, - dataTypes = s.dataTypes; - - // Remove auto dataType and get content-type in the process - while ( dataTypes[ 0 ] === "*" ) { - dataTypes.shift(); - if ( ct === undefined ) { - ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); - } - } - - // Check if we're dealing with a known content-type - if ( ct ) { - for ( type in contents ) { - if ( contents[ type ] && contents[ type ].test( ct ) ) { - dataTypes.unshift( type ); - break; - } - } - } - - // Check to see if we have a response for the expected dataType - if ( dataTypes[ 0 ] in responses ) { - finalDataType = dataTypes[ 0 ]; - } else { - - // Try convertible dataTypes - for ( type in responses ) { - if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { - finalDataType = type; - break; - } - if ( !firstDataType ) { - firstDataType = type; - } - } - - // Or just use first one - finalDataType = finalDataType || firstDataType; - } - - // If we found a dataType - // We add the dataType to the list if needed - // and return the corresponding response - if ( finalDataType ) { - if ( finalDataType !== dataTypes[ 0 ] ) { - dataTypes.unshift( finalDataType ); - } - return responses[ finalDataType ]; - } -} - -/* Chain conversions given the request and the original response - * Also sets the responseXXX fields on the jqXHR instance - */ -function ajaxConvert( s, response, jqXHR, isSuccess ) { - var conv2, current, conv, tmp, prev, - converters = {}, - - // Work with a copy of dataTypes in case we need to modify it for conversion - dataTypes = s.dataTypes.slice(); - - // Create converters map with lowercased keys - if ( dataTypes[ 1 ] ) { - for ( conv in s.converters ) { - converters[ conv.toLowerCase() ] = s.converters[ conv ]; - } - } - - current = dataTypes.shift(); - - // Convert to each sequential dataType - while ( current ) { - - if ( s.responseFields[ current ] ) { - jqXHR[ s.responseFields[ current ] ] = response; - } - - // Apply the dataFilter if provided - if ( !prev && isSuccess && s.dataFilter ) { - response = s.dataFilter( response, s.dataType ); - } - - prev = current; - current = dataTypes.shift(); - - if ( current ) { - - // There's only work to do if current dataType is non-auto - if ( current === "*" ) { - - current = prev; - - // Convert response if prev dataType is non-auto and differs from current - } else if ( prev !== "*" && prev !== current ) { - - // Seek a direct converter - conv = converters[ prev + " " + current ] || converters[ "* " + current ]; - - // If none found, seek a pair - if ( !conv ) { - for ( conv2 in converters ) { - - // If conv2 outputs current - tmp = conv2.split( " " ); - if ( tmp[ 1 ] === current ) { - - // If prev can be converted to accepted input - conv = converters[ prev + " " + tmp[ 0 ] ] || - converters[ "* " + tmp[ 0 ] ]; - if ( conv ) { - - // Condense equivalence converters - if ( conv === true ) { - conv = converters[ conv2 ]; - - // Otherwise, insert the intermediate dataType - } else if ( converters[ conv2 ] !== true ) { - current = tmp[ 0 ]; - dataTypes.unshift( tmp[ 1 ] ); - } - break; - } - } - } - } - - // Apply converter (if not an equivalence) - if ( conv !== true ) { - - // Unless errors are allowed to bubble, catch and return them - if ( conv && s.throws ) { - response = conv( response ); - } else { - try { - response = conv( response ); - } catch ( e ) { - return { - state: "parsererror", - error: conv ? e : "No conversion from " + prev + " to " + current - }; - } - } - } - } - } - } - - return { state: "success", data: response }; -} - -jQuery.extend( { - - // Counter for holding the number of active queries - active: 0, - - // Last-Modified header cache for next request - lastModified: {}, - etag: {}, - - ajaxSettings: { - url: location.href, - type: "GET", - isLocal: rlocalProtocol.test( location.protocol ), - global: true, - processData: true, - async: true, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - - /* - timeout: 0, - data: null, - dataType: null, - username: null, - password: null, - cache: null, - throws: false, - traditional: false, - headers: {}, - */ - - accepts: { - "*": allTypes, - text: "text/plain", - html: "text/html", - xml: "application/xml, text/xml", - json: "application/json, text/javascript" - }, - - contents: { - xml: /\bxml\b/, - html: /\bhtml/, - json: /\bjson\b/ - }, - - responseFields: { - xml: "responseXML", - text: "responseText", - json: "responseJSON" - }, - - // Data converters - // Keys separate source (or catchall "*") and destination types with a single space - converters: { - - // Convert anything to text - "* text": String, - - // Text to html (true = no transformation) - "text html": true, - - // Evaluate text as a json expression - "text json": JSON.parse, - - // Parse text as xml - "text xml": jQuery.parseXML - }, - - // For options that shouldn't be deep extended: - // you can add your own custom options here if - // and when you create one that shouldn't be - // deep extended (see ajaxExtend) - flatOptions: { - url: true, - context: true - } - }, - - // Creates a full fledged settings object into target - // with both ajaxSettings and settings fields. - // If target is omitted, writes into ajaxSettings. - ajaxSetup: function( target, settings ) { - return settings ? - - // Building a settings object - ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : - - // Extending ajaxSettings - ajaxExtend( jQuery.ajaxSettings, target ); - }, - - ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), - ajaxTransport: addToPrefiltersOrTransports( transports ), - - // Main method - ajax: function( url, options ) { - - // If url is an object, simulate pre-1.5 signature - if ( typeof url === "object" ) { - options = url; - url = undefined; - } - - // Force options to be an object - options = options || {}; - - var transport, - - // URL without anti-cache param - cacheURL, - - // Response headers - responseHeadersString, - responseHeaders, - - // timeout handle - timeoutTimer, - - // Url cleanup var - urlAnchor, - - // Request state (becomes false upon send and true upon completion) - completed, - - // To know if global events are to be dispatched - fireGlobals, - - // Loop variable - i, - - // uncached part of the url - uncached, - - // Create the final options object - s = jQuery.ajaxSetup( {}, options ), - - // Callbacks context - callbackContext = s.context || s, - - // Context for global events is callbackContext if it is a DOM node or jQuery collection - globalEventContext = s.context && - ( callbackContext.nodeType || callbackContext.jquery ) ? - jQuery( callbackContext ) : - jQuery.event, - - // Deferreds - deferred = jQuery.Deferred(), - completeDeferred = jQuery.Callbacks( "once memory" ), - - // Status-dependent callbacks - statusCode = s.statusCode || {}, - - // Headers (they are sent all at once) - requestHeaders = {}, - requestHeadersNames = {}, - - // Default abort message - strAbort = "canceled", - - // Fake xhr - jqXHR = { - readyState: 0, - - // Builds headers hashtable if needed - getResponseHeader: function( key ) { - var match; - if ( completed ) { - if ( !responseHeaders ) { - responseHeaders = {}; - while ( ( match = rheaders.exec( responseHeadersString ) ) ) { - responseHeaders[ match[ 1 ].toLowerCase() + " " ] = - ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) - .concat( match[ 2 ] ); - } - } - match = responseHeaders[ key.toLowerCase() + " " ]; - } - return match == null ? null : match.join( ", " ); - }, - - // Raw string - getAllResponseHeaders: function() { - return completed ? responseHeadersString : null; - }, - - // Caches the header - setRequestHeader: function( name, value ) { - if ( completed == null ) { - name = requestHeadersNames[ name.toLowerCase() ] = - requestHeadersNames[ name.toLowerCase() ] || name; - requestHeaders[ name ] = value; - } - return this; - }, - - // Overrides response content-type header - overrideMimeType: function( type ) { - if ( completed == null ) { - s.mimeType = type; - } - return this; - }, - - // Status-dependent callbacks - statusCode: function( map ) { - var code; - if ( map ) { - if ( completed ) { - - // Execute the appropriate callbacks - jqXHR.always( map[ jqXHR.status ] ); - } else { - - // Lazy-add the new callbacks in a way that preserves old ones - for ( code in map ) { - statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; - } - } - } - return this; - }, - - // Cancel the request - abort: function( statusText ) { - var finalText = statusText || strAbort; - if ( transport ) { - transport.abort( finalText ); - } - done( 0, finalText ); - return this; - } - }; - - // Attach deferreds - deferred.promise( jqXHR ); - - // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (#10093: consistency with old signature) - // We also use the url parameter if available - s.url = ( ( url || s.url || location.href ) + "" ) - .replace( rprotocol, location.protocol + "//" ); - - // Alias method option to type as per ticket #12004 - s.type = options.method || options.type || s.method || s.type; - - // Extract dataTypes list - s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; - - // A cross-domain request is in order when the origin doesn't match the current origin. - if ( s.crossDomain == null ) { - urlAnchor = document.createElement( "a" ); - - // Support: IE <=8 - 11, Edge 12 - 15 - // IE throws exception on accessing the href property if url is malformed, - // e.g. http://example.com:80x/ - try { - urlAnchor.href = s.url; - - // Support: IE <=8 - 11 only - // Anchor's host property isn't correctly set when s.url is relative - urlAnchor.href = urlAnchor.href; - s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== - urlAnchor.protocol + "//" + urlAnchor.host; - } catch ( e ) { - - // If there is an error parsing the URL, assume it is crossDomain, - // it can be rejected by the transport if it is invalid - s.crossDomain = true; - } - } - - // Convert data if not already a string - if ( s.data && s.processData && typeof s.data !== "string" ) { - s.data = jQuery.param( s.data, s.traditional ); - } - - // Apply prefilters - inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); - - // If request was aborted inside a prefilter, stop there - if ( completed ) { - return jqXHR; - } - - // We can fire global events as of now if asked to - // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) - fireGlobals = jQuery.event && s.global; - - // Watch for a new set of requests - if ( fireGlobals && jQuery.active++ === 0 ) { - jQuery.event.trigger( "ajaxStart" ); - } - - // Uppercase the type - s.type = s.type.toUpperCase(); - - // Determine if request has content - s.hasContent = !rnoContent.test( s.type ); - - // Save the URL in case we're toying with the If-Modified-Since - // and/or If-None-Match header later on - // Remove hash to simplify url manipulation - cacheURL = s.url.replace( rhash, "" ); - - // More options handling for requests with no content - if ( !s.hasContent ) { - - // Remember the hash so we can put it back - uncached = s.url.slice( cacheURL.length ); - - // If data is available and should be processed, append data to url - if ( s.data && ( s.processData || typeof s.data === "string" ) ) { - cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; - - // #9682: remove data so that it's not used in an eventual retry - delete s.data; - } - - // Add or update anti-cache param if needed - if ( s.cache === false ) { - cacheURL = cacheURL.replace( rantiCache, "$1" ); - uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; - } - - // Put hash and anti-cache on the URL that will be requested (gh-1732) - s.url = cacheURL + uncached; - - // Change '%20' to '+' if this is encoded form body content (gh-2658) - } else if ( s.data && s.processData && - ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { - s.data = s.data.replace( r20, "+" ); - } - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - if ( jQuery.lastModified[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); - } - if ( jQuery.etag[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); - } - } - - // Set the correct header, if data is being sent - if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { - jqXHR.setRequestHeader( "Content-Type", s.contentType ); - } - - // Set the Accepts header for the server, depending on the dataType - jqXHR.setRequestHeader( - "Accept", - s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? - s.accepts[ s.dataTypes[ 0 ] ] + - ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : - s.accepts[ "*" ] - ); - - // Check for headers option - for ( i in s.headers ) { - jqXHR.setRequestHeader( i, s.headers[ i ] ); - } - - // Allow custom headers/mimetypes and early abort - if ( s.beforeSend && - ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { - - // Abort if not done already and return - return jqXHR.abort(); - } - - // Aborting is no longer a cancellation - strAbort = "abort"; - - // Install callbacks on deferreds - completeDeferred.add( s.complete ); - jqXHR.done( s.success ); - jqXHR.fail( s.error ); - - // Get transport - transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); - - // If no transport, we auto-abort - if ( !transport ) { - done( -1, "No Transport" ); - } else { - jqXHR.readyState = 1; - - // Send global event - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); - } - - // If request was aborted inside ajaxSend, stop there - if ( completed ) { - return jqXHR; - } - - // Timeout - if ( s.async && s.timeout > 0 ) { - timeoutTimer = window.setTimeout( function() { - jqXHR.abort( "timeout" ); - }, s.timeout ); - } - - try { - completed = false; - transport.send( requestHeaders, done ); - } catch ( e ) { - - // Rethrow post-completion exceptions - if ( completed ) { - throw e; - } - - // Propagate others as results - done( -1, e ); - } - } - - // Callback for when everything is done - function done( status, nativeStatusText, responses, headers ) { - var isSuccess, success, error, response, modified, - statusText = nativeStatusText; - - // Ignore repeat invocations - if ( completed ) { - return; - } - - completed = true; - - // Clear timeout if it exists - if ( timeoutTimer ) { - window.clearTimeout( timeoutTimer ); - } - - // Dereference transport for early garbage collection - // (no matter how long the jqXHR object will be used) - transport = undefined; - - // Cache response headers - responseHeadersString = headers || ""; - - // Set readyState - jqXHR.readyState = status > 0 ? 4 : 0; - - // Determine if successful - isSuccess = status >= 200 && status < 300 || status === 304; - - // Get response data - if ( responses ) { - response = ajaxHandleResponses( s, jqXHR, responses ); - } - - // Convert no matter what (that way responseXXX fields are always set) - response = ajaxConvert( s, response, jqXHR, isSuccess ); - - // If successful, handle type chaining - if ( isSuccess ) { - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - modified = jqXHR.getResponseHeader( "Last-Modified" ); - if ( modified ) { - jQuery.lastModified[ cacheURL ] = modified; - } - modified = jqXHR.getResponseHeader( "etag" ); - if ( modified ) { - jQuery.etag[ cacheURL ] = modified; - } - } - - // if no content - if ( status === 204 || s.type === "HEAD" ) { - statusText = "nocontent"; - - // if not modified - } else if ( status === 304 ) { - statusText = "notmodified"; - - // If we have data, let's convert it - } else { - statusText = response.state; - success = response.data; - error = response.error; - isSuccess = !error; - } - } else { - - // Extract error from statusText and normalize for non-aborts - error = statusText; - if ( status || !statusText ) { - statusText = "error"; - if ( status < 0 ) { - status = 0; - } - } - } - - // Set data for the fake xhr object - jqXHR.status = status; - jqXHR.statusText = ( nativeStatusText || statusText ) + ""; - - // Success/Error - if ( isSuccess ) { - deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); - } else { - deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); - } - - // Status-dependent callbacks - jqXHR.statusCode( statusCode ); - statusCode = undefined; - - if ( fireGlobals ) { - globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", - [ jqXHR, s, isSuccess ? success : error ] ); - } - - // Complete - completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); - - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); - - // Handle the global AJAX counter - if ( !( --jQuery.active ) ) { - jQuery.event.trigger( "ajaxStop" ); - } - } - } - - return jqXHR; - }, - - getJSON: function( url, data, callback ) { - return jQuery.get( url, data, callback, "json" ); - }, - - getScript: function( url, callback ) { - return jQuery.get( url, undefined, callback, "script" ); - } -} ); - -jQuery.each( [ "get", "post" ], function( i, method ) { - jQuery[ method ] = function( url, data, callback, type ) { - - // Shift arguments if data argument was omitted - if ( isFunction( data ) ) { - type = type || callback; - callback = data; - data = undefined; - } - - // The url can be an options object (which then must have .url) - return jQuery.ajax( jQuery.extend( { - url: url, - type: method, - dataType: type, - data: data, - success: callback - }, jQuery.isPlainObject( url ) && url ) ); - }; -} ); - - -jQuery._evalUrl = function( url, options ) { - return jQuery.ajax( { - url: url, - - // Make this explicit, since user can override this through ajaxSetup (#11264) - type: "GET", - dataType: "script", - cache: true, - async: false, - global: false, - - // Only evaluate the response if it is successful (gh-4126) - // dataFilter is not invoked for failure responses, so using it instead - // of the default converter is kludgy but it works. - converters: { - "text script": function() {} - }, - dataFilter: function( response ) { - jQuery.globalEval( response, options ); - } - } ); -}; - - -jQuery.fn.extend( { - wrapAll: function( html ) { - var wrap; - - if ( this[ 0 ] ) { - if ( isFunction( html ) ) { - html = html.call( this[ 0 ] ); - } - - // The elements to wrap the target around - wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); - - if ( this[ 0 ].parentNode ) { - wrap.insertBefore( this[ 0 ] ); - } - - wrap.map( function() { - var elem = this; - - while ( elem.firstElementChild ) { - elem = elem.firstElementChild; - } - - return elem; - } ).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( isFunction( html ) ) { - return this.each( function( i ) { - jQuery( this ).wrapInner( html.call( this, i ) ); - } ); - } - - return this.each( function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - } ); - }, - - wrap: function( html ) { - var htmlIsFunction = isFunction( html ); - - return this.each( function( i ) { - jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); - } ); - }, - - unwrap: function( selector ) { - this.parent( selector ).not( "body" ).each( function() { - jQuery( this ).replaceWith( this.childNodes ); - } ); - return this; - } -} ); - - -jQuery.expr.pseudos.hidden = function( elem ) { - return !jQuery.expr.pseudos.visible( elem ); -}; -jQuery.expr.pseudos.visible = function( elem ) { - return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); -}; - - - - -jQuery.ajaxSettings.xhr = function() { - try { - return new window.XMLHttpRequest(); - } catch ( e ) {} -}; - -var xhrSuccessStatus = { - - // File protocol always yields status code 0, assume 200 - 0: 200, - - // Support: IE <=9 only - // #1450: sometimes IE returns 1223 when it should be 204 - 1223: 204 - }, - xhrSupported = jQuery.ajaxSettings.xhr(); - -support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); -support.ajax = xhrSupported = !!xhrSupported; - -jQuery.ajaxTransport( function( options ) { - var callback, errorCallback; - - // Cross domain only allowed if supported through XMLHttpRequest - if ( support.cors || xhrSupported && !options.crossDomain ) { - return { - send: function( headers, complete ) { - var i, - xhr = options.xhr(); - - xhr.open( - options.type, - options.url, - options.async, - options.username, - options.password - ); - - // Apply custom fields if provided - if ( options.xhrFields ) { - for ( i in options.xhrFields ) { - xhr[ i ] = options.xhrFields[ i ]; - } - } - - // Override mime type if needed - if ( options.mimeType && xhr.overrideMimeType ) { - xhr.overrideMimeType( options.mimeType ); - } - - // X-Requested-With header - // For cross-domain requests, seeing as conditions for a preflight are - // akin to a jigsaw puzzle, we simply never set it to be sure. - // (it can always be set on a per-request basis or even using ajaxSetup) - // For same-domain requests, won't change header if already provided. - if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { - headers[ "X-Requested-With" ] = "XMLHttpRequest"; - } - - // Set headers - for ( i in headers ) { - xhr.setRequestHeader( i, headers[ i ] ); - } - - // Callback - callback = function( type ) { - return function() { - if ( callback ) { - callback = errorCallback = xhr.onload = - xhr.onerror = xhr.onabort = xhr.ontimeout = - xhr.onreadystatechange = null; - - if ( type === "abort" ) { - xhr.abort(); - } else if ( type === "error" ) { - - // Support: IE <=9 only - // On a manual native abort, IE9 throws - // errors on any property access that is not readyState - if ( typeof xhr.status !== "number" ) { - complete( 0, "error" ); - } else { - complete( - - // File: protocol always yields status 0; see #8605, #14207 - xhr.status, - xhr.statusText - ); - } - } else { - complete( - xhrSuccessStatus[ xhr.status ] || xhr.status, - xhr.statusText, - - // Support: IE <=9 only - // IE9 has no XHR2 but throws on binary (trac-11426) - // For XHR2 non-text, let the caller handle it (gh-2498) - ( xhr.responseType || "text" ) !== "text" || - typeof xhr.responseText !== "string" ? - { binary: xhr.response } : - { text: xhr.responseText }, - xhr.getAllResponseHeaders() - ); - } - } - }; - }; - - // Listen to events - xhr.onload = callback(); - errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); - - // Support: IE 9 only - // Use onreadystatechange to replace onabort - // to handle uncaught aborts - if ( xhr.onabort !== undefined ) { - xhr.onabort = errorCallback; - } else { - xhr.onreadystatechange = function() { - - // Check readyState before timeout as it changes - if ( xhr.readyState === 4 ) { - - // Allow onerror to be called first, - // but that will not handle a native abort - // Also, save errorCallback to a variable - // as xhr.onerror cannot be accessed - window.setTimeout( function() { - if ( callback ) { - errorCallback(); - } - } ); - } - }; - } - - // Create the abort callback - callback = callback( "abort" ); - - try { - - // Do send the request (this may raise an exception) - xhr.send( options.hasContent && options.data || null ); - } catch ( e ) { - - // #14683: Only rethrow if this hasn't been notified as an error yet - if ( callback ) { - throw e; - } - } - }, - - abort: function() { - if ( callback ) { - callback(); - } - } - }; - } -} ); - - - - -// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) -jQuery.ajaxPrefilter( function( s ) { - if ( s.crossDomain ) { - s.contents.script = false; - } -} ); - -// Install script dataType -jQuery.ajaxSetup( { - accepts: { - script: "text/javascript, application/javascript, " + - "application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /\b(?:java|ecma)script\b/ - }, - converters: { - "text script": function( text ) { - jQuery.globalEval( text ); - return text; - } - } -} ); - -// Handle cache's special case and crossDomain -jQuery.ajaxPrefilter( "script", function( s ) { - if ( s.cache === undefined ) { - s.cache = false; - } - if ( s.crossDomain ) { - s.type = "GET"; - } -} ); - -// Bind script tag hack transport -jQuery.ajaxTransport( "script", function( s ) { - - // This transport only deals with cross domain or forced-by-attrs requests - if ( s.crossDomain || s.scriptAttrs ) { - var script, callback; - return { - send: function( _, complete ) { - script = jQuery( "