vue-laravel-crud 1.5.12 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,360 +1,374 @@
1
- 'use strict';function _iterableToArrayLimit(arr, i) {
2
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
3
- if (null != _i) {
4
- var _s,
5
- _e,
6
- _x,
7
- _r,
8
- _arr = [],
9
- _n = !0,
10
- _d = !1;
1
+ 'use strict';function _iterableToArrayLimit(r, l) {
2
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3
+ if (null != t) {
4
+ var e,
5
+ n,
6
+ i,
7
+ u,
8
+ a = [],
9
+ f = !0,
10
+ o = !1;
11
11
  try {
12
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
13
- if (Object(_i) !== _i) return;
14
- _n = !1;
15
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
16
- } catch (err) {
17
- _d = !0, _e = err;
12
+ if (i = (t = t.call(r)).next, 0 === l) {
13
+ if (Object(t) !== t) return;
14
+ f = !1;
15
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
16
+ } catch (r) {
17
+ o = !0, n = r;
18
18
  } finally {
19
19
  try {
20
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
20
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
21
21
  } finally {
22
- if (_d) throw _e;
22
+ if (o) throw n;
23
23
  }
24
24
  }
25
- return _arr;
25
+ return a;
26
26
  }
27
27
  }
28
- function ownKeys(object, enumerableOnly) {
29
- var keys = Object.keys(object);
28
+ function ownKeys(e, r) {
29
+ var t = Object.keys(e);
30
30
  if (Object.getOwnPropertySymbols) {
31
- var symbols = Object.getOwnPropertySymbols(object);
32
- enumerableOnly && (symbols = symbols.filter(function (sym) {
33
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
34
- })), keys.push.apply(keys, symbols);
31
+ var o = Object.getOwnPropertySymbols(e);
32
+ r && (o = o.filter(function (r) {
33
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
34
+ })), t.push.apply(t, o);
35
35
  }
36
- return keys;
36
+ return t;
37
37
  }
38
- function _objectSpread2(target) {
39
- for (var i = 1; i < arguments.length; i++) {
40
- var source = null != arguments[i] ? arguments[i] : {};
41
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
42
- _defineProperty$1(target, key, source[key]);
43
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
44
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
38
+ function _objectSpread2(e) {
39
+ for (var r = 1; r < arguments.length; r++) {
40
+ var t = null != arguments[r] ? arguments[r] : {};
41
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
42
+ _defineProperty$1(e, r, t[r]);
43
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
44
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
45
45
  });
46
46
  }
47
- return target;
47
+ return e;
48
48
  }
49
49
  function _regeneratorRuntime() {
50
50
  _regeneratorRuntime = function () {
51
- return exports;
51
+ return e;
52
52
  };
53
- var exports = {},
54
- Op = Object.prototype,
55
- hasOwn = Op.hasOwnProperty,
56
- defineProperty = Object.defineProperty || function (obj, key, desc) {
57
- obj[key] = desc.value;
58
- },
59
- $Symbol = "function" == typeof Symbol ? Symbol : {},
60
- iteratorSymbol = $Symbol.iterator || "@@iterator",
61
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
62
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
63
- function define(obj, key, value) {
64
- return Object.defineProperty(obj, key, {
65
- value: value,
53
+ var t,
54
+ e = {},
55
+ r = Object.prototype,
56
+ n = r.hasOwnProperty,
57
+ o = Object.defineProperty || function (t, e, r) {
58
+ t[e] = r.value;
59
+ },
60
+ i = "function" == typeof Symbol ? Symbol : {},
61
+ a = i.iterator || "@@iterator",
62
+ c = i.asyncIterator || "@@asyncIterator",
63
+ u = i.toStringTag || "@@toStringTag";
64
+ function define(t, e, r) {
65
+ return Object.defineProperty(t, e, {
66
+ value: r,
66
67
  enumerable: !0,
67
68
  configurable: !0,
68
69
  writable: !0
69
- }), obj[key];
70
+ }), t[e];
70
71
  }
71
72
  try {
72
73
  define({}, "");
73
- } catch (err) {
74
- define = function (obj, key, value) {
75
- return obj[key] = value;
74
+ } catch (t) {
75
+ define = function (t, e, r) {
76
+ return t[e] = r;
76
77
  };
77
78
  }
78
- function wrap(innerFn, outerFn, self, tryLocsList) {
79
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
80
- generator = Object.create(protoGenerator.prototype),
81
- context = new Context(tryLocsList || []);
82
- return defineProperty(generator, "_invoke", {
83
- value: makeInvokeMethod(innerFn, self, context)
84
- }), generator;
79
+ function wrap(t, e, r, n) {
80
+ var i = e && e.prototype instanceof Generator ? e : Generator,
81
+ a = Object.create(i.prototype),
82
+ c = new Context(n || []);
83
+ return o(a, "_invoke", {
84
+ value: makeInvokeMethod(t, r, c)
85
+ }), a;
85
86
  }
86
- function tryCatch(fn, obj, arg) {
87
+ function tryCatch(t, e, r) {
87
88
  try {
88
89
  return {
89
90
  type: "normal",
90
- arg: fn.call(obj, arg)
91
+ arg: t.call(e, r)
91
92
  };
92
- } catch (err) {
93
+ } catch (t) {
93
94
  return {
94
95
  type: "throw",
95
- arg: err
96
+ arg: t
96
97
  };
97
98
  }
98
99
  }
99
- exports.wrap = wrap;
100
- var ContinueSentinel = {};
100
+ e.wrap = wrap;
101
+ var h = "suspendedStart",
102
+ l = "suspendedYield",
103
+ f = "executing",
104
+ s = "completed",
105
+ y = {};
101
106
  function Generator() {}
102
107
  function GeneratorFunction() {}
103
108
  function GeneratorFunctionPrototype() {}
104
- var IteratorPrototype = {};
105
- define(IteratorPrototype, iteratorSymbol, function () {
109
+ var p = {};
110
+ define(p, a, function () {
106
111
  return this;
107
112
  });
108
- var getProto = Object.getPrototypeOf,
109
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
110
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
111
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
112
- function defineIteratorMethods(prototype) {
113
- ["next", "throw", "return"].forEach(function (method) {
114
- define(prototype, method, function (arg) {
115
- return this._invoke(method, arg);
113
+ var d = Object.getPrototypeOf,
114
+ v = d && d(d(values([])));
115
+ v && v !== r && n.call(v, a) && (p = v);
116
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
117
+ function defineIteratorMethods(t) {
118
+ ["next", "throw", "return"].forEach(function (e) {
119
+ define(t, e, function (t) {
120
+ return this._invoke(e, t);
116
121
  });
117
122
  });
118
123
  }
119
- function AsyncIterator(generator, PromiseImpl) {
120
- function invoke(method, arg, resolve, reject) {
121
- var record = tryCatch(generator[method], generator, arg);
122
- if ("throw" !== record.type) {
123
- var result = record.arg,
124
- value = result.value;
125
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
126
- invoke("next", value, resolve, reject);
127
- }, function (err) {
128
- invoke("throw", err, resolve, reject);
129
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
130
- result.value = unwrapped, resolve(result);
131
- }, function (error) {
132
- return invoke("throw", error, resolve, reject);
124
+ function AsyncIterator(t, e) {
125
+ function invoke(r, o, i, a) {
126
+ var c = tryCatch(t[r], t, o);
127
+ if ("throw" !== c.type) {
128
+ var u = c.arg,
129
+ h = u.value;
130
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
131
+ invoke("next", t, i, a);
132
+ }, function (t) {
133
+ invoke("throw", t, i, a);
134
+ }) : e.resolve(h).then(function (t) {
135
+ u.value = t, i(u);
136
+ }, function (t) {
137
+ return invoke("throw", t, i, a);
133
138
  });
134
139
  }
135
- reject(record.arg);
140
+ a(c.arg);
136
141
  }
137
- var previousPromise;
138
- defineProperty(this, "_invoke", {
139
- value: function (method, arg) {
142
+ var r;
143
+ o(this, "_invoke", {
144
+ value: function (t, n) {
140
145
  function callInvokeWithMethodAndArg() {
141
- return new PromiseImpl(function (resolve, reject) {
142
- invoke(method, arg, resolve, reject);
146
+ return new e(function (e, r) {
147
+ invoke(t, n, e, r);
143
148
  });
144
149
  }
145
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
150
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
146
151
  }
147
152
  });
148
153
  }
149
- function makeInvokeMethod(innerFn, self, context) {
150
- var state = "suspendedStart";
151
- return function (method, arg) {
152
- if ("executing" === state) throw new Error("Generator is already running");
153
- if ("completed" === state) {
154
- if ("throw" === method) throw arg;
155
- return doneResult();
156
- }
157
- for (context.method = method, context.arg = arg;;) {
158
- var delegate = context.delegate;
159
- if (delegate) {
160
- var delegateResult = maybeInvokeDelegate(delegate, context);
161
- if (delegateResult) {
162
- if (delegateResult === ContinueSentinel) continue;
163
- return delegateResult;
154
+ function makeInvokeMethod(e, r, n) {
155
+ var o = h;
156
+ return function (i, a) {
157
+ if (o === f) throw new Error("Generator is already running");
158
+ if (o === s) {
159
+ if ("throw" === i) throw a;
160
+ return {
161
+ value: t,
162
+ done: !0
163
+ };
164
+ }
165
+ for (n.method = i, n.arg = a;;) {
166
+ var c = n.delegate;
167
+ if (c) {
168
+ var u = maybeInvokeDelegate(c, n);
169
+ if (u) {
170
+ if (u === y) continue;
171
+ return u;
164
172
  }
165
173
  }
166
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
167
- if ("suspendedStart" === state) throw state = "completed", context.arg;
168
- context.dispatchException(context.arg);
169
- } else "return" === context.method && context.abrupt("return", context.arg);
170
- state = "executing";
171
- var record = tryCatch(innerFn, self, context);
172
- if ("normal" === record.type) {
173
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
174
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
175
+ if (o === h) throw o = s, n.arg;
176
+ n.dispatchException(n.arg);
177
+ } else "return" === n.method && n.abrupt("return", n.arg);
178
+ o = f;
179
+ var p = tryCatch(e, r, n);
180
+ if ("normal" === p.type) {
181
+ if (o = n.done ? s : l, p.arg === y) continue;
174
182
  return {
175
- value: record.arg,
176
- done: context.done
183
+ value: p.arg,
184
+ done: n.done
177
185
  };
178
186
  }
179
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
187
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
180
188
  }
181
189
  };
182
190
  }
183
- function maybeInvokeDelegate(delegate, context) {
184
- var methodName = context.method,
185
- method = delegate.iterator[methodName];
186
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
187
- var record = tryCatch(method, delegate.iterator, context.arg);
188
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
189
- var info = record.arg;
190
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
191
+ function maybeInvokeDelegate(e, r) {
192
+ var n = r.method,
193
+ o = e.iterator[n];
194
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
195
+ var i = tryCatch(o, e.iterator, r.arg);
196
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
197
+ var a = i.arg;
198
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
191
199
  }
192
- function pushTryEntry(locs) {
193
- var entry = {
194
- tryLoc: locs[0]
200
+ function pushTryEntry(t) {
201
+ var e = {
202
+ tryLoc: t[0]
195
203
  };
196
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
204
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
197
205
  }
198
- function resetTryEntry(entry) {
199
- var record = entry.completion || {};
200
- record.type = "normal", delete record.arg, entry.completion = record;
206
+ function resetTryEntry(t) {
207
+ var e = t.completion || {};
208
+ e.type = "normal", delete e.arg, t.completion = e;
201
209
  }
202
- function Context(tryLocsList) {
210
+ function Context(t) {
203
211
  this.tryEntries = [{
204
212
  tryLoc: "root"
205
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
213
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
206
214
  }
207
- function values(iterable) {
208
- if (iterable) {
209
- var iteratorMethod = iterable[iteratorSymbol];
210
- if (iteratorMethod) return iteratorMethod.call(iterable);
211
- if ("function" == typeof iterable.next) return iterable;
212
- if (!isNaN(iterable.length)) {
213
- var i = -1,
214
- next = function next() {
215
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
216
- return next.value = undefined, next.done = !0, next;
215
+ function values(e) {
216
+ if (e || "" === e) {
217
+ var r = e[a];
218
+ if (r) return r.call(e);
219
+ if ("function" == typeof e.next) return e;
220
+ if (!isNaN(e.length)) {
221
+ var o = -1,
222
+ i = function next() {
223
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
224
+ return next.value = t, next.done = !0, next;
217
225
  };
218
- return next.next = next;
226
+ return i.next = i;
219
227
  }
220
228
  }
221
- return {
222
- next: doneResult
223
- };
224
- }
225
- function doneResult() {
226
- return {
227
- value: undefined,
228
- done: !0
229
- };
229
+ throw new TypeError(typeof e + " is not iterable");
230
230
  }
231
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
231
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
232
232
  value: GeneratorFunctionPrototype,
233
233
  configurable: !0
234
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
234
+ }), o(GeneratorFunctionPrototype, "constructor", {
235
235
  value: GeneratorFunction,
236
236
  configurable: !0
237
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
238
- var ctor = "function" == typeof genFun && genFun.constructor;
239
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
240
- }, exports.mark = function (genFun) {
241
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
242
- }, exports.awrap = function (arg) {
237
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
238
+ var e = "function" == typeof t && t.constructor;
239
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
240
+ }, e.mark = function (t) {
241
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
242
+ }, e.awrap = function (t) {
243
243
  return {
244
- __await: arg
244
+ __await: t
245
245
  };
246
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
246
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
247
247
  return this;
248
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
249
- void 0 === PromiseImpl && (PromiseImpl = Promise);
250
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
251
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
252
- return result.done ? result.value : iter.next();
248
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
249
+ void 0 === i && (i = Promise);
250
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
251
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
252
+ return t.done ? t.value : a.next();
253
253
  });
254
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
254
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
255
255
  return this;
256
- }), define(Gp, "toString", function () {
256
+ }), define(g, "toString", function () {
257
257
  return "[object Generator]";
258
- }), exports.keys = function (val) {
259
- var object = Object(val),
260
- keys = [];
261
- for (var key in object) keys.push(key);
262
- return keys.reverse(), function next() {
263
- for (; keys.length;) {
264
- var key = keys.pop();
265
- if (key in object) return next.value = key, next.done = !1, next;
258
+ }), e.keys = function (t) {
259
+ var e = Object(t),
260
+ r = [];
261
+ for (var n in e) r.push(n);
262
+ return r.reverse(), function next() {
263
+ for (; r.length;) {
264
+ var t = r.pop();
265
+ if (t in e) return next.value = t, next.done = !1, next;
266
266
  }
267
267
  return next.done = !0, next;
268
268
  };
269
- }, exports.values = values, Context.prototype = {
269
+ }, e.values = values, Context.prototype = {
270
270
  constructor: Context,
271
- reset: function (skipTempReset) {
272
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
271
+ reset: function (e) {
272
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
273
273
  },
274
274
  stop: function () {
275
275
  this.done = !0;
276
- var rootRecord = this.tryEntries[0].completion;
277
- if ("throw" === rootRecord.type) throw rootRecord.arg;
276
+ var t = this.tryEntries[0].completion;
277
+ if ("throw" === t.type) throw t.arg;
278
278
  return this.rval;
279
279
  },
280
- dispatchException: function (exception) {
281
- if (this.done) throw exception;
282
- var context = this;
283
- function handle(loc, caught) {
284
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
285
- }
286
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
287
- var entry = this.tryEntries[i],
288
- record = entry.completion;
289
- if ("root" === entry.tryLoc) return handle("end");
290
- if (entry.tryLoc <= this.prev) {
291
- var hasCatch = hasOwn.call(entry, "catchLoc"),
292
- hasFinally = hasOwn.call(entry, "finallyLoc");
293
- if (hasCatch && hasFinally) {
294
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
295
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
296
- } else if (hasCatch) {
297
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
280
+ dispatchException: function (e) {
281
+ if (this.done) throw e;
282
+ var r = this;
283
+ function handle(n, o) {
284
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
285
+ }
286
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
287
+ var i = this.tryEntries[o],
288
+ a = i.completion;
289
+ if ("root" === i.tryLoc) return handle("end");
290
+ if (i.tryLoc <= this.prev) {
291
+ var c = n.call(i, "catchLoc"),
292
+ u = n.call(i, "finallyLoc");
293
+ if (c && u) {
294
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
295
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
296
+ } else if (c) {
297
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
298
298
  } else {
299
- if (!hasFinally) throw new Error("try statement without catch or finally");
300
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
299
+ if (!u) throw new Error("try statement without catch or finally");
300
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
301
301
  }
302
302
  }
303
303
  }
304
304
  },
305
- abrupt: function (type, arg) {
306
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
307
- var entry = this.tryEntries[i];
308
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
309
- var finallyEntry = entry;
305
+ abrupt: function (t, e) {
306
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
307
+ var o = this.tryEntries[r];
308
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
309
+ var i = o;
310
310
  break;
311
311
  }
312
312
  }
313
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
314
- var record = finallyEntry ? finallyEntry.completion : {};
315
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
313
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
314
+ var a = i ? i.completion : {};
315
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
316
316
  },
317
- complete: function (record, afterLoc) {
318
- if ("throw" === record.type) throw record.arg;
319
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
317
+ complete: function (t, e) {
318
+ if ("throw" === t.type) throw t.arg;
319
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
320
320
  },
321
- finish: function (finallyLoc) {
322
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
323
- var entry = this.tryEntries[i];
324
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
321
+ finish: function (t) {
322
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
323
+ var r = this.tryEntries[e];
324
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
325
325
  }
326
326
  },
327
- catch: function (tryLoc) {
328
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
329
- var entry = this.tryEntries[i];
330
- if (entry.tryLoc === tryLoc) {
331
- var record = entry.completion;
332
- if ("throw" === record.type) {
333
- var thrown = record.arg;
334
- resetTryEntry(entry);
327
+ catch: function (t) {
328
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
329
+ var r = this.tryEntries[e];
330
+ if (r.tryLoc === t) {
331
+ var n = r.completion;
332
+ if ("throw" === n.type) {
333
+ var o = n.arg;
334
+ resetTryEntry(r);
335
335
  }
336
- return thrown;
336
+ return o;
337
337
  }
338
338
  }
339
339
  throw new Error("illegal catch attempt");
340
340
  },
341
- delegateYield: function (iterable, resultName, nextLoc) {
341
+ delegateYield: function (e, r, n) {
342
342
  return this.delegate = {
343
- iterator: values(iterable),
344
- resultName: resultName,
345
- nextLoc: nextLoc
346
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
343
+ iterator: values(e),
344
+ resultName: r,
345
+ nextLoc: n
346
+ }, "next" === this.method && (this.arg = t), y;
347
347
  }
348
- }, exports;
348
+ }, e;
349
+ }
350
+ function _toPrimitive(t, r) {
351
+ if ("object" != typeof t || !t) return t;
352
+ var e = t[Symbol.toPrimitive];
353
+ if (void 0 !== e) {
354
+ var i = e.call(t, r || "default");
355
+ if ("object" != typeof i) return i;
356
+ throw new TypeError("@@toPrimitive must return a primitive value.");
357
+ }
358
+ return ("string" === r ? String : Number)(t);
359
+ }
360
+ function _toPropertyKey(t) {
361
+ var i = _toPrimitive(t, "string");
362
+ return "symbol" == typeof i ? i : String(i);
349
363
  }
350
- function _typeof$1(obj) {
364
+ function _typeof$1(o) {
351
365
  "@babel/helpers - typeof";
352
366
 
353
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
354
- return typeof obj;
355
- } : function (obj) {
356
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
357
- }, _typeof$1(obj);
367
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
368
+ return typeof o;
369
+ } : function (o) {
370
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
371
+ }, _typeof$1(o);
358
372
  }
359
373
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
360
374
  try {
@@ -433,20 +447,6 @@ function _nonIterableSpread$1() {
433
447
  }
434
448
  function _nonIterableRest() {
435
449
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
436
- }
437
- function _toPrimitive(input, hint) {
438
- if (typeof input !== "object" || input === null) return input;
439
- var prim = input[Symbol.toPrimitive];
440
- if (prim !== undefined) {
441
- var res = prim.call(input, hint || "default");
442
- if (typeof res !== "object") return res;
443
- throw new TypeError("@@toPrimitive must return a primitive value.");
444
- }
445
- return (hint === "string" ? String : Number)(input);
446
- }
447
- function _toPropertyKey(arg) {
448
- var key = _toPrimitive(arg, "string");
449
- return typeof key === "symbol" ? key : String(key);
450
450
  }var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
451
451
 
452
452
  function getDefaultExportFromCjs (x) {
@@ -479,11 +479,7 @@ function getAugmentedNamespace(n) {
479
479
  });
480
480
  });
481
481
  return a;
482
- }var vuedraggable_umdExports = {};
483
- var vuedraggable_umd = {
484
- get exports(){ return vuedraggable_umdExports; },
485
- set exports(v){ vuedraggable_umdExports = v; },
486
- };/**!
482
+ }var vuedraggable_umd = {exports: {}};/**!
487
483
  * Sortable 1.10.2
488
484
  * @author RubaXa <trash@rubaxa.org>
489
485
  * @author owenm <owen23355@gmail.com>
@@ -4178,7 +4174,9 @@ function removeMultiDragElements() {
4178
4174
  }
4179
4175
 
4180
4176
  Sortable.mount(new AutoScrollPlugin());
4181
- Sortable.mount(Remove, Revert);var sortable_esm=/*#__PURE__*/Object.freeze({__proto__:null,'default':Sortable,MultiDrag:MultiDragPlugin,Sortable:Sortable,Swap:SwapPlugin});var require$$0 = /*@__PURE__*/getAugmentedNamespace(sortable_esm);(function (module, exports) {
4177
+ Sortable.mount(Remove, Revert);var sortable_esm=/*#__PURE__*/Object.freeze({__proto__:null,'default':Sortable,MultiDrag:MultiDragPlugin,Sortable:Sortable,Swap:SwapPlugin});var require$$0 = /*@__PURE__*/getAugmentedNamespace(sortable_esm);vuedraggable_umd.exports;
4178
+
4179
+ (function (module, exports) {
4182
4180
  (function webpackUniversalModuleDefinition(root, factory) {
4183
4181
  module.exports = factory(require$$0);
4184
4182
  })((typeof self !== 'undefined' ? self : commonjsGlobal), function(__WEBPACK_EXTERNAL_MODULE_a352__) {
@@ -6596,15 +6594,14 @@ Sortable.mount(Remove, Revert);var sortable_esm=/*#__PURE__*/Object.freeze({__pr
6596
6594
  /******/ })["default"];
6597
6595
  });
6598
6596
 
6599
- } (vuedraggable_umd));
6597
+ } (vuedraggable_umd, vuedraggable_umd.exports));
6600
6598
 
6599
+ var vuedraggable_umdExports = vuedraggable_umd.exports;
6601
6600
  var draggable = /*@__PURE__*/getDefaultExportFromCjs(vuedraggable_umdExports);function commonjsRequire(path) {
6602
6601
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
6603
- }var momentExports = {};
6604
- var moment$1 = {
6605
- get exports(){ return momentExports; },
6606
- set exports(v){ momentExports = v; },
6607
- };(function (module, exports) {
6602
+ }var moment$1 = {exports: {}};moment$1.exports;
6603
+
6604
+ (function (module, exports) {
6608
6605
  (function (global, factory) {
6609
6606
  module.exports = factory() ;
6610
6607
  }(commonjsGlobal, (function () {
@@ -6753,24 +6750,25 @@ var moment$1 = {
6753
6750
  }
6754
6751
 
6755
6752
  function isValid(m) {
6756
- if (m._isValid == null) {
6757
- var flags = getParsingFlags(m),
6758
- parsedParts = some.call(flags.parsedDateParts, function (i) {
6759
- return i != null;
6760
- }),
6761
- isNowValid =
6762
- !isNaN(m._d.getTime()) &&
6763
- flags.overflow < 0 &&
6764
- !flags.empty &&
6765
- !flags.invalidEra &&
6766
- !flags.invalidMonth &&
6767
- !flags.invalidWeekday &&
6768
- !flags.weekdayMismatch &&
6769
- !flags.nullInput &&
6770
- !flags.invalidFormat &&
6771
- !flags.userInvalidated &&
6772
- (!flags.meridiem || (flags.meridiem && parsedParts));
6773
-
6753
+ var flags = null,
6754
+ parsedParts = false,
6755
+ isNowValid = m._d && !isNaN(m._d.getTime());
6756
+ if (isNowValid) {
6757
+ flags = getParsingFlags(m);
6758
+ parsedParts = some.call(flags.parsedDateParts, function (i) {
6759
+ return i != null;
6760
+ });
6761
+ isNowValid =
6762
+ flags.overflow < 0 &&
6763
+ !flags.empty &&
6764
+ !flags.invalidEra &&
6765
+ !flags.invalidMonth &&
6766
+ !flags.invalidWeekday &&
6767
+ !flags.weekdayMismatch &&
6768
+ !flags.nullInput &&
6769
+ !flags.invalidFormat &&
6770
+ !flags.userInvalidated &&
6771
+ (!flags.meridiem || (flags.meridiem && parsedParts));
6774
6772
  if (m._strict) {
6775
6773
  isNowValid =
6776
6774
  isNowValid &&
@@ -6778,12 +6776,11 @@ var moment$1 = {
6778
6776
  flags.unusedTokens.length === 0 &&
6779
6777
  flags.bigHour === undefined;
6780
6778
  }
6781
-
6782
- if (Object.isFrozen == null || !Object.isFrozen(m)) {
6783
- m._isValid = isNowValid;
6784
- } else {
6785
- return isNowValid;
6786
- }
6779
+ }
6780
+ if (Object.isFrozen == null || !Object.isFrozen(m)) {
6781
+ m._isValid = isNowValid;
6782
+ } else {
6783
+ return isNowValid;
6787
6784
  }
6788
6785
  return m._isValid;
6789
6786
  }
@@ -7228,12 +7225,56 @@ var moment$1 = {
7228
7225
  return isFunction(format) ? format(output) : format.replace(/%s/i, output);
7229
7226
  }
7230
7227
 
7231
- var aliases = {};
7232
-
7233
- function addUnitAlias(unit, shorthand) {
7234
- var lowerCase = unit.toLowerCase();
7235
- aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
7236
- }
7228
+ var aliases = {
7229
+ D: 'date',
7230
+ dates: 'date',
7231
+ date: 'date',
7232
+ d: 'day',
7233
+ days: 'day',
7234
+ day: 'day',
7235
+ e: 'weekday',
7236
+ weekdays: 'weekday',
7237
+ weekday: 'weekday',
7238
+ E: 'isoWeekday',
7239
+ isoweekdays: 'isoWeekday',
7240
+ isoweekday: 'isoWeekday',
7241
+ DDD: 'dayOfYear',
7242
+ dayofyears: 'dayOfYear',
7243
+ dayofyear: 'dayOfYear',
7244
+ h: 'hour',
7245
+ hours: 'hour',
7246
+ hour: 'hour',
7247
+ ms: 'millisecond',
7248
+ milliseconds: 'millisecond',
7249
+ millisecond: 'millisecond',
7250
+ m: 'minute',
7251
+ minutes: 'minute',
7252
+ minute: 'minute',
7253
+ M: 'month',
7254
+ months: 'month',
7255
+ month: 'month',
7256
+ Q: 'quarter',
7257
+ quarters: 'quarter',
7258
+ quarter: 'quarter',
7259
+ s: 'second',
7260
+ seconds: 'second',
7261
+ second: 'second',
7262
+ gg: 'weekYear',
7263
+ weekyears: 'weekYear',
7264
+ weekyear: 'weekYear',
7265
+ GG: 'isoWeekYear',
7266
+ isoweekyears: 'isoWeekYear',
7267
+ isoweekyear: 'isoWeekYear',
7268
+ w: 'week',
7269
+ weeks: 'week',
7270
+ week: 'week',
7271
+ W: 'isoWeek',
7272
+ isoweeks: 'isoWeek',
7273
+ isoweek: 'isoWeek',
7274
+ y: 'year',
7275
+ years: 'year',
7276
+ year: 'year',
7277
+ };
7237
7278
 
7238
7279
  function normalizeUnits(units) {
7239
7280
  return typeof units === 'string'
@@ -7258,11 +7299,24 @@ var moment$1 = {
7258
7299
  return normalizedInput;
7259
7300
  }
7260
7301
 
7261
- var priorities = {};
7262
-
7263
- function addUnitPriority(unit, priority) {
7264
- priorities[unit] = priority;
7265
- }
7302
+ var priorities = {
7303
+ date: 9,
7304
+ day: 11,
7305
+ weekday: 11,
7306
+ isoWeekday: 11,
7307
+ dayOfYear: 4,
7308
+ hour: 13,
7309
+ millisecond: 16,
7310
+ minute: 14,
7311
+ month: 8,
7312
+ quarter: 7,
7313
+ second: 15,
7314
+ weekYear: 1,
7315
+ isoWeekYear: 1,
7316
+ week: 5,
7317
+ isoWeek: 5,
7318
+ year: 1,
7319
+ };
7266
7320
 
7267
7321
  function getPrioritizedUnits(unitsObj) {
7268
7322
  var units = [],
@@ -7278,96 +7332,6 @@ var moment$1 = {
7278
7332
  return units;
7279
7333
  }
7280
7334
 
7281
- function isLeapYear(year) {
7282
- return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
7283
- }
7284
-
7285
- function absFloor(number) {
7286
- if (number < 0) {
7287
- // -0 -> 0
7288
- return Math.ceil(number) || 0;
7289
- } else {
7290
- return Math.floor(number);
7291
- }
7292
- }
7293
-
7294
- function toInt(argumentForCoercion) {
7295
- var coercedNumber = +argumentForCoercion,
7296
- value = 0;
7297
-
7298
- if (coercedNumber !== 0 && isFinite(coercedNumber)) {
7299
- value = absFloor(coercedNumber);
7300
- }
7301
-
7302
- return value;
7303
- }
7304
-
7305
- function makeGetSet(unit, keepTime) {
7306
- return function (value) {
7307
- if (value != null) {
7308
- set$1(this, unit, value);
7309
- hooks.updateOffset(this, keepTime);
7310
- return this;
7311
- } else {
7312
- return get(this, unit);
7313
- }
7314
- };
7315
- }
7316
-
7317
- function get(mom, unit) {
7318
- return mom.isValid()
7319
- ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
7320
- : NaN;
7321
- }
7322
-
7323
- function set$1(mom, unit, value) {
7324
- if (mom.isValid() && !isNaN(value)) {
7325
- if (
7326
- unit === 'FullYear' &&
7327
- isLeapYear(mom.year()) &&
7328
- mom.month() === 1 &&
7329
- mom.date() === 29
7330
- ) {
7331
- value = toInt(value);
7332
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
7333
- value,
7334
- mom.month(),
7335
- daysInMonth(value, mom.month())
7336
- );
7337
- } else {
7338
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
7339
- }
7340
- }
7341
- }
7342
-
7343
- // MOMENTS
7344
-
7345
- function stringGet(units) {
7346
- units = normalizeUnits(units);
7347
- if (isFunction(this[units])) {
7348
- return this[units]();
7349
- }
7350
- return this;
7351
- }
7352
-
7353
- function stringSet(units, value) {
7354
- if (typeof units === 'object') {
7355
- units = normalizeObjectUnits(units);
7356
- var prioritized = getPrioritizedUnits(units),
7357
- i,
7358
- prioritizedLen = prioritized.length;
7359
- for (i = 0; i < prioritizedLen; i++) {
7360
- this[prioritized[i].unit](units[prioritized[i].unit]);
7361
- }
7362
- } else {
7363
- units = normalizeUnits(units);
7364
- if (isFunction(this[units])) {
7365
- return this[units](value);
7366
- }
7367
- }
7368
- return this;
7369
- }
7370
-
7371
7335
  var match1 = /\d/, // 0 - 9
7372
7336
  match2 = /\d\d/, // 00 - 99
7373
7337
  match3 = /\d{3}/, // 000 - 999
@@ -7388,6 +7352,8 @@ var moment$1 = {
7388
7352
  // includes scottish gaelic two word and hyphenated months
7389
7353
  matchWord =
7390
7354
  /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
7355
+ match1to2NoLeadingZero = /^[1-9]\d?/, // 1-99
7356
+ match1to2HasZero = /^([1-9]\d|\d)/, // 0-99
7391
7357
  regexes;
7392
7358
 
7393
7359
  regexes = {};
@@ -7426,6 +7392,26 @@ var moment$1 = {
7426
7392
  return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
7427
7393
  }
7428
7394
 
7395
+ function absFloor(number) {
7396
+ if (number < 0) {
7397
+ // -0 -> 0
7398
+ return Math.ceil(number) || 0;
7399
+ } else {
7400
+ return Math.floor(number);
7401
+ }
7402
+ }
7403
+
7404
+ function toInt(argumentForCoercion) {
7405
+ var coercedNumber = +argumentForCoercion,
7406
+ value = 0;
7407
+
7408
+ if (coercedNumber !== 0 && isFinite(coercedNumber)) {
7409
+ value = absFloor(coercedNumber);
7410
+ }
7411
+
7412
+ return value;
7413
+ }
7414
+
7429
7415
  var tokens = {};
7430
7416
 
7431
7417
  function addParseToken(token, callback) {
@@ -7459,6 +7445,10 @@ var moment$1 = {
7459
7445
  }
7460
7446
  }
7461
7447
 
7448
+ function isLeapYear(year) {
7449
+ return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
7450
+ }
7451
+
7462
7452
  var YEAR = 0,
7463
7453
  MONTH = 1,
7464
7454
  DATE = 2,
@@ -7469,6 +7459,173 @@ var moment$1 = {
7469
7459
  WEEK = 7,
7470
7460
  WEEKDAY = 8;
7471
7461
 
7462
+ // FORMATTING
7463
+
7464
+ addFormatToken('Y', 0, 0, function () {
7465
+ var y = this.year();
7466
+ return y <= 9999 ? zeroFill(y, 4) : '+' + y;
7467
+ });
7468
+
7469
+ addFormatToken(0, ['YY', 2], 0, function () {
7470
+ return this.year() % 100;
7471
+ });
7472
+
7473
+ addFormatToken(0, ['YYYY', 4], 0, 'year');
7474
+ addFormatToken(0, ['YYYYY', 5], 0, 'year');
7475
+ addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
7476
+
7477
+ // PARSING
7478
+
7479
+ addRegexToken('Y', matchSigned);
7480
+ addRegexToken('YY', match1to2, match2);
7481
+ addRegexToken('YYYY', match1to4, match4);
7482
+ addRegexToken('YYYYY', match1to6, match6);
7483
+ addRegexToken('YYYYYY', match1to6, match6);
7484
+
7485
+ addParseToken(['YYYYY', 'YYYYYY'], YEAR);
7486
+ addParseToken('YYYY', function (input, array) {
7487
+ array[YEAR] =
7488
+ input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
7489
+ });
7490
+ addParseToken('YY', function (input, array) {
7491
+ array[YEAR] = hooks.parseTwoDigitYear(input);
7492
+ });
7493
+ addParseToken('Y', function (input, array) {
7494
+ array[YEAR] = parseInt(input, 10);
7495
+ });
7496
+
7497
+ // HELPERS
7498
+
7499
+ function daysInYear(year) {
7500
+ return isLeapYear(year) ? 366 : 365;
7501
+ }
7502
+
7503
+ // HOOKS
7504
+
7505
+ hooks.parseTwoDigitYear = function (input) {
7506
+ return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
7507
+ };
7508
+
7509
+ // MOMENTS
7510
+
7511
+ var getSetYear = makeGetSet('FullYear', true);
7512
+
7513
+ function getIsLeapYear() {
7514
+ return isLeapYear(this.year());
7515
+ }
7516
+
7517
+ function makeGetSet(unit, keepTime) {
7518
+ return function (value) {
7519
+ if (value != null) {
7520
+ set$1(this, unit, value);
7521
+ hooks.updateOffset(this, keepTime);
7522
+ return this;
7523
+ } else {
7524
+ return get(this, unit);
7525
+ }
7526
+ };
7527
+ }
7528
+
7529
+ function get(mom, unit) {
7530
+ if (!mom.isValid()) {
7531
+ return NaN;
7532
+ }
7533
+
7534
+ var d = mom._d,
7535
+ isUTC = mom._isUTC;
7536
+
7537
+ switch (unit) {
7538
+ case 'Milliseconds':
7539
+ return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
7540
+ case 'Seconds':
7541
+ return isUTC ? d.getUTCSeconds() : d.getSeconds();
7542
+ case 'Minutes':
7543
+ return isUTC ? d.getUTCMinutes() : d.getMinutes();
7544
+ case 'Hours':
7545
+ return isUTC ? d.getUTCHours() : d.getHours();
7546
+ case 'Date':
7547
+ return isUTC ? d.getUTCDate() : d.getDate();
7548
+ case 'Day':
7549
+ return isUTC ? d.getUTCDay() : d.getDay();
7550
+ case 'Month':
7551
+ return isUTC ? d.getUTCMonth() : d.getMonth();
7552
+ case 'FullYear':
7553
+ return isUTC ? d.getUTCFullYear() : d.getFullYear();
7554
+ default:
7555
+ return NaN; // Just in case
7556
+ }
7557
+ }
7558
+
7559
+ function set$1(mom, unit, value) {
7560
+ var d, isUTC, year, month, date;
7561
+
7562
+ if (!mom.isValid() || isNaN(value)) {
7563
+ return;
7564
+ }
7565
+
7566
+ d = mom._d;
7567
+ isUTC = mom._isUTC;
7568
+
7569
+ switch (unit) {
7570
+ case 'Milliseconds':
7571
+ return void (isUTC
7572
+ ? d.setUTCMilliseconds(value)
7573
+ : d.setMilliseconds(value));
7574
+ case 'Seconds':
7575
+ return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));
7576
+ case 'Minutes':
7577
+ return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));
7578
+ case 'Hours':
7579
+ return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
7580
+ case 'Date':
7581
+ return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
7582
+ // case 'Day': // Not real
7583
+ // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
7584
+ // case 'Month': // Not used because we need to pass two variables
7585
+ // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
7586
+ case 'FullYear':
7587
+ break; // See below ...
7588
+ default:
7589
+ return; // Just in case
7590
+ }
7591
+
7592
+ year = value;
7593
+ month = mom.month();
7594
+ date = mom.date();
7595
+ date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
7596
+ void (isUTC
7597
+ ? d.setUTCFullYear(year, month, date)
7598
+ : d.setFullYear(year, month, date));
7599
+ }
7600
+
7601
+ // MOMENTS
7602
+
7603
+ function stringGet(units) {
7604
+ units = normalizeUnits(units);
7605
+ if (isFunction(this[units])) {
7606
+ return this[units]();
7607
+ }
7608
+ return this;
7609
+ }
7610
+
7611
+ function stringSet(units, value) {
7612
+ if (typeof units === 'object') {
7613
+ units = normalizeObjectUnits(units);
7614
+ var prioritized = getPrioritizedUnits(units),
7615
+ i,
7616
+ prioritizedLen = prioritized.length;
7617
+ for (i = 0; i < prioritizedLen; i++) {
7618
+ this[prioritized[i].unit](units[prioritized[i].unit]);
7619
+ }
7620
+ } else {
7621
+ units = normalizeUnits(units);
7622
+ if (isFunction(this[units])) {
7623
+ return this[units](value);
7624
+ }
7625
+ }
7626
+ return this;
7627
+ }
7628
+
7472
7629
  function mod(n, x) {
7473
7630
  return ((n % x) + x) % x;
7474
7631
  }
@@ -7517,17 +7674,9 @@ var moment$1 = {
7517
7674
  return this.localeData().months(this, format);
7518
7675
  });
7519
7676
 
7520
- // ALIASES
7521
-
7522
- addUnitAlias('month', 'M');
7523
-
7524
- // PRIORITY
7525
-
7526
- addUnitPriority('month', 8);
7527
-
7528
7677
  // PARSING
7529
7678
 
7530
- addRegexToken('M', match1to2);
7679
+ addRegexToken('M', match1to2, match1to2NoLeadingZero);
7531
7680
  addRegexToken('MM', match1to2, match2);
7532
7681
  addRegexToken('MMM', function (isStrict, locale) {
7533
7682
  return locale.monthsShortRegex(isStrict);
@@ -7693,8 +7842,6 @@ var moment$1 = {
7693
7842
  // MOMENTS
7694
7843
 
7695
7844
  function setMonth(mom, value) {
7696
- var dayOfMonth;
7697
-
7698
7845
  if (!mom.isValid()) {
7699
7846
  // No op
7700
7847
  return mom;
@@ -7712,8 +7859,13 @@ var moment$1 = {
7712
7859
  }
7713
7860
  }
7714
7861
 
7715
- dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
7716
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
7862
+ var month = value,
7863
+ date = mom.date();
7864
+
7865
+ date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));
7866
+ void (mom._isUTC
7867
+ ? mom._d.setUTCMonth(month, date)
7868
+ : mom._d.setMonth(month, date));
7717
7869
  return mom;
7718
7870
  }
7719
7871
 
@@ -7780,27 +7932,24 @@ var moment$1 = {
7780
7932
  longPieces = [],
7781
7933
  mixedPieces = [],
7782
7934
  i,
7783
- mom;
7935
+ mom,
7936
+ shortP,
7937
+ longP;
7784
7938
  for (i = 0; i < 12; i++) {
7785
7939
  // make the regex if we don't have it already
7786
7940
  mom = createUTC([2000, i]);
7787
- shortPieces.push(this.monthsShort(mom, ''));
7788
- longPieces.push(this.months(mom, ''));
7789
- mixedPieces.push(this.months(mom, ''));
7790
- mixedPieces.push(this.monthsShort(mom, ''));
7941
+ shortP = regexEscape(this.monthsShort(mom, ''));
7942
+ longP = regexEscape(this.months(mom, ''));
7943
+ shortPieces.push(shortP);
7944
+ longPieces.push(longP);
7945
+ mixedPieces.push(longP);
7946
+ mixedPieces.push(shortP);
7791
7947
  }
7792
7948
  // Sorting makes sure if one month (or abbr) is a prefix of another it
7793
7949
  // will match the longer piece.
7794
7950
  shortPieces.sort(cmpLenRev);
7795
7951
  longPieces.sort(cmpLenRev);
7796
7952
  mixedPieces.sort(cmpLenRev);
7797
- for (i = 0; i < 12; i++) {
7798
- shortPieces[i] = regexEscape(shortPieces[i]);
7799
- longPieces[i] = regexEscape(longPieces[i]);
7800
- }
7801
- for (i = 0; i < 24; i++) {
7802
- mixedPieces[i] = regexEscape(mixedPieces[i]);
7803
- }
7804
7953
 
7805
7954
  this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
7806
7955
  this._monthsShortRegex = this._monthsRegex;
@@ -7814,69 +7963,6 @@ var moment$1 = {
7814
7963
  );
7815
7964
  }
7816
7965
 
7817
- // FORMATTING
7818
-
7819
- addFormatToken('Y', 0, 0, function () {
7820
- var y = this.year();
7821
- return y <= 9999 ? zeroFill(y, 4) : '+' + y;
7822
- });
7823
-
7824
- addFormatToken(0, ['YY', 2], 0, function () {
7825
- return this.year() % 100;
7826
- });
7827
-
7828
- addFormatToken(0, ['YYYY', 4], 0, 'year');
7829
- addFormatToken(0, ['YYYYY', 5], 0, 'year');
7830
- addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
7831
-
7832
- // ALIASES
7833
-
7834
- addUnitAlias('year', 'y');
7835
-
7836
- // PRIORITIES
7837
-
7838
- addUnitPriority('year', 1);
7839
-
7840
- // PARSING
7841
-
7842
- addRegexToken('Y', matchSigned);
7843
- addRegexToken('YY', match1to2, match2);
7844
- addRegexToken('YYYY', match1to4, match4);
7845
- addRegexToken('YYYYY', match1to6, match6);
7846
- addRegexToken('YYYYYY', match1to6, match6);
7847
-
7848
- addParseToken(['YYYYY', 'YYYYYY'], YEAR);
7849
- addParseToken('YYYY', function (input, array) {
7850
- array[YEAR] =
7851
- input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
7852
- });
7853
- addParseToken('YY', function (input, array) {
7854
- array[YEAR] = hooks.parseTwoDigitYear(input);
7855
- });
7856
- addParseToken('Y', function (input, array) {
7857
- array[YEAR] = parseInt(input, 10);
7858
- });
7859
-
7860
- // HELPERS
7861
-
7862
- function daysInYear(year) {
7863
- return isLeapYear(year) ? 366 : 365;
7864
- }
7865
-
7866
- // HOOKS
7867
-
7868
- hooks.parseTwoDigitYear = function (input) {
7869
- return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
7870
- };
7871
-
7872
- // MOMENTS
7873
-
7874
- var getSetYear = makeGetSet('FullYear', true);
7875
-
7876
- function getIsLeapYear() {
7877
- return isLeapYear(this.year());
7878
- }
7879
-
7880
7966
  function createDate(y, m, d, h, M, s, ms) {
7881
7967
  // can't just apply() to create a date:
7882
7968
  // https://stackoverflow.com/q/181348
@@ -7982,21 +8068,11 @@ var moment$1 = {
7982
8068
  addFormatToken('w', ['ww', 2], 'wo', 'week');
7983
8069
  addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
7984
8070
 
7985
- // ALIASES
7986
-
7987
- addUnitAlias('week', 'w');
7988
- addUnitAlias('isoWeek', 'W');
7989
-
7990
- // PRIORITIES
7991
-
7992
- addUnitPriority('week', 5);
7993
- addUnitPriority('isoWeek', 5);
7994
-
7995
8071
  // PARSING
7996
8072
 
7997
- addRegexToken('w', match1to2);
8073
+ addRegexToken('w', match1to2, match1to2NoLeadingZero);
7998
8074
  addRegexToken('ww', match1to2, match2);
7999
- addRegexToken('W', match1to2);
8075
+ addRegexToken('W', match1to2, match1to2NoLeadingZero);
8000
8076
  addRegexToken('WW', match1to2, match2);
8001
8077
 
8002
8078
  addWeekParseToken(
@@ -8058,17 +8134,6 @@ var moment$1 = {
8058
8134
  addFormatToken('e', 0, 0, 'weekday');
8059
8135
  addFormatToken('E', 0, 0, 'isoWeekday');
8060
8136
 
8061
- // ALIASES
8062
-
8063
- addUnitAlias('day', 'd');
8064
- addUnitAlias('weekday', 'e');
8065
- addUnitAlias('isoWeekday', 'E');
8066
-
8067
- // PRIORITY
8068
- addUnitPriority('day', 11);
8069
- addUnitPriority('weekday', 11);
8070
- addUnitPriority('isoWeekday', 11);
8071
-
8072
8137
  // PARSING
8073
8138
 
8074
8139
  addRegexToken('d', match1to2);
@@ -8148,24 +8213,24 @@ var moment$1 = {
8148
8213
  return m === true
8149
8214
  ? shiftWeekdays(weekdays, this._week.dow)
8150
8215
  : m
8151
- ? weekdays[m.day()]
8152
- : weekdays;
8216
+ ? weekdays[m.day()]
8217
+ : weekdays;
8153
8218
  }
8154
8219
 
8155
8220
  function localeWeekdaysShort(m) {
8156
8221
  return m === true
8157
8222
  ? shiftWeekdays(this._weekdaysShort, this._week.dow)
8158
8223
  : m
8159
- ? this._weekdaysShort[m.day()]
8160
- : this._weekdaysShort;
8224
+ ? this._weekdaysShort[m.day()]
8225
+ : this._weekdaysShort;
8161
8226
  }
8162
8227
 
8163
8228
  function localeWeekdaysMin(m) {
8164
8229
  return m === true
8165
8230
  ? shiftWeekdays(this._weekdaysMin, this._week.dow)
8166
8231
  : m
8167
- ? this._weekdaysMin[m.day()]
8168
- : this._weekdaysMin;
8232
+ ? this._weekdaysMin[m.day()]
8233
+ : this._weekdaysMin;
8169
8234
  }
8170
8235
 
8171
8236
  function handleStrictParse$1(weekdayName, format, strict) {
@@ -8314,7 +8379,8 @@ var moment$1 = {
8314
8379
  if (!this.isValid()) {
8315
8380
  return input != null ? this : NaN;
8316
8381
  }
8317
- var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
8382
+
8383
+ var day = get(this, 'Day');
8318
8384
  if (input != null) {
8319
8385
  input = parseWeekday(input, this.localeData());
8320
8386
  return this.add(input - day, 'd');
@@ -8513,13 +8579,6 @@ var moment$1 = {
8513
8579
  meridiem('a', true);
8514
8580
  meridiem('A', false);
8515
8581
 
8516
- // ALIASES
8517
-
8518
- addUnitAlias('hour', 'h');
8519
-
8520
- // PRIORITY
8521
- addUnitPriority('hour', 13);
8522
-
8523
8582
  // PARSING
8524
8583
 
8525
8584
  function matchMeridiem(isStrict, locale) {
@@ -8528,9 +8587,9 @@ var moment$1 = {
8528
8587
 
8529
8588
  addRegexToken('a', matchMeridiem);
8530
8589
  addRegexToken('A', matchMeridiem);
8531
- addRegexToken('H', match1to2);
8532
- addRegexToken('h', match1to2);
8533
- addRegexToken('k', match1to2);
8590
+ addRegexToken('H', match1to2, match1to2HasZero);
8591
+ addRegexToken('h', match1to2, match1to2NoLeadingZero);
8592
+ addRegexToken('k', match1to2, match1to2NoLeadingZero);
8534
8593
  addRegexToken('HH', match1to2, match2);
8535
8594
  addRegexToken('hh', match1to2, match2);
8536
8595
  addRegexToken('kk', match1to2, match2);
@@ -8680,7 +8739,8 @@ var moment$1 = {
8680
8739
 
8681
8740
  function isLocaleNameSane(name) {
8682
8741
  // Prevent names that look like filesystem paths, i.e contain '/' or '\'
8683
- return name.match('^[^/\\\\]*$') != null;
8742
+ // Ensure name is available and function returns boolean
8743
+ return !!(name && name.match('^[^/\\\\]*$'));
8684
8744
  }
8685
8745
 
8686
8746
  function loadLocale(name) {
@@ -8872,21 +8932,21 @@ var moment$1 = {
8872
8932
  a[MONTH] < 0 || a[MONTH] > 11
8873
8933
  ? MONTH
8874
8934
  : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
8875
- ? DATE
8876
- : a[HOUR] < 0 ||
8877
- a[HOUR] > 24 ||
8878
- (a[HOUR] === 24 &&
8879
- (a[MINUTE] !== 0 ||
8880
- a[SECOND] !== 0 ||
8881
- a[MILLISECOND] !== 0))
8882
- ? HOUR
8883
- : a[MINUTE] < 0 || a[MINUTE] > 59
8884
- ? MINUTE
8885
- : a[SECOND] < 0 || a[SECOND] > 59
8886
- ? SECOND
8887
- : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
8888
- ? MILLISECOND
8889
- : -1;
8935
+ ? DATE
8936
+ : a[HOUR] < 0 ||
8937
+ a[HOUR] > 24 ||
8938
+ (a[HOUR] === 24 &&
8939
+ (a[MINUTE] !== 0 ||
8940
+ a[SECOND] !== 0 ||
8941
+ a[MILLISECOND] !== 0))
8942
+ ? HOUR
8943
+ : a[MINUTE] < 0 || a[MINUTE] > 59
8944
+ ? MINUTE
8945
+ : a[SECOND] < 0 || a[SECOND] > 59
8946
+ ? SECOND
8947
+ : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
8948
+ ? MILLISECOND
8949
+ : -1;
8890
8950
 
8891
8951
  if (
8892
8952
  getParsingFlags(m)._overflowDayOfYear &&
@@ -10327,16 +10387,16 @@ var moment$1 = {
10327
10387
  return diff < -6
10328
10388
  ? 'sameElse'
10329
10389
  : diff < -1
10330
- ? 'lastWeek'
10331
- : diff < 0
10332
- ? 'lastDay'
10333
- : diff < 1
10334
- ? 'sameDay'
10335
- : diff < 2
10336
- ? 'nextDay'
10337
- : diff < 7
10338
- ? 'nextWeek'
10339
- : 'sameElse';
10390
+ ? 'lastWeek'
10391
+ : diff < 0
10392
+ ? 'lastDay'
10393
+ : diff < 1
10394
+ ? 'sameDay'
10395
+ : diff < 2
10396
+ ? 'nextDay'
10397
+ : diff < 7
10398
+ ? 'nextWeek'
10399
+ : 'sameElse';
10340
10400
  }
10341
10401
 
10342
10402
  function calendar$1(time, formats) {
@@ -11144,16 +11204,22 @@ var moment$1 = {
11144
11204
  mixedPieces = [],
11145
11205
  i,
11146
11206
  l,
11207
+ erasName,
11208
+ erasAbbr,
11209
+ erasNarrow,
11147
11210
  eras = this.eras();
11148
11211
 
11149
11212
  for (i = 0, l = eras.length; i < l; ++i) {
11150
- namePieces.push(regexEscape(eras[i].name));
11151
- abbrPieces.push(regexEscape(eras[i].abbr));
11152
- narrowPieces.push(regexEscape(eras[i].narrow));
11213
+ erasName = regexEscape(eras[i].name);
11214
+ erasAbbr = regexEscape(eras[i].abbr);
11215
+ erasNarrow = regexEscape(eras[i].narrow);
11153
11216
 
11154
- mixedPieces.push(regexEscape(eras[i].name));
11155
- mixedPieces.push(regexEscape(eras[i].abbr));
11156
- mixedPieces.push(regexEscape(eras[i].narrow));
11217
+ namePieces.push(erasName);
11218
+ abbrPieces.push(erasAbbr);
11219
+ narrowPieces.push(erasNarrow);
11220
+ mixedPieces.push(erasName);
11221
+ mixedPieces.push(erasAbbr);
11222
+ mixedPieces.push(erasNarrow);
11157
11223
  }
11158
11224
 
11159
11225
  this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
@@ -11186,14 +11252,6 @@ var moment$1 = {
11186
11252
 
11187
11253
  // ALIASES
11188
11254
 
11189
- addUnitAlias('weekYear', 'gg');
11190
- addUnitAlias('isoWeekYear', 'GG');
11191
-
11192
- // PRIORITY
11193
-
11194
- addUnitPriority('weekYear', 1);
11195
- addUnitPriority('isoWeekYear', 1);
11196
-
11197
11255
  // PARSING
11198
11256
 
11199
11257
  addRegexToken('G', matchSigned);
@@ -11223,7 +11281,7 @@ var moment$1 = {
11223
11281
  this,
11224
11282
  input,
11225
11283
  this.week(),
11226
- this.weekday(),
11284
+ this.weekday() + this.localeData()._week.dow,
11227
11285
  this.localeData()._week.dow,
11228
11286
  this.localeData()._week.doy
11229
11287
  );
@@ -11285,14 +11343,6 @@ var moment$1 = {
11285
11343
 
11286
11344
  addFormatToken('Q', 0, 'Qo', 'quarter');
11287
11345
 
11288
- // ALIASES
11289
-
11290
- addUnitAlias('quarter', 'Q');
11291
-
11292
- // PRIORITY
11293
-
11294
- addUnitPriority('quarter', 7);
11295
-
11296
11346
  // PARSING
11297
11347
 
11298
11348
  addRegexToken('Q', match1);
@@ -11312,16 +11362,9 @@ var moment$1 = {
11312
11362
 
11313
11363
  addFormatToken('D', ['DD', 2], 'Do', 'date');
11314
11364
 
11315
- // ALIASES
11316
-
11317
- addUnitAlias('date', 'D');
11318
-
11319
- // PRIORITY
11320
- addUnitPriority('date', 9);
11321
-
11322
11365
  // PARSING
11323
11366
 
11324
- addRegexToken('D', match1to2);
11367
+ addRegexToken('D', match1to2, match1to2NoLeadingZero);
11325
11368
  addRegexToken('DD', match1to2, match2);
11326
11369
  addRegexToken('Do', function (isStrict, locale) {
11327
11370
  // TODO: Remove "ordinalParse" fallback in next major release.
@@ -11343,13 +11386,6 @@ var moment$1 = {
11343
11386
 
11344
11387
  addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
11345
11388
 
11346
- // ALIASES
11347
-
11348
- addUnitAlias('dayOfYear', 'DDD');
11349
-
11350
- // PRIORITY
11351
- addUnitPriority('dayOfYear', 4);
11352
-
11353
11389
  // PARSING
11354
11390
 
11355
11391
  addRegexToken('DDD', match1to3);
@@ -11374,17 +11410,9 @@ var moment$1 = {
11374
11410
 
11375
11411
  addFormatToken('m', ['mm', 2], 0, 'minute');
11376
11412
 
11377
- // ALIASES
11378
-
11379
- addUnitAlias('minute', 'm');
11380
-
11381
- // PRIORITY
11382
-
11383
- addUnitPriority('minute', 14);
11384
-
11385
11413
  // PARSING
11386
11414
 
11387
- addRegexToken('m', match1to2);
11415
+ addRegexToken('m', match1to2, match1to2HasZero);
11388
11416
  addRegexToken('mm', match1to2, match2);
11389
11417
  addParseToken(['m', 'mm'], MINUTE);
11390
11418
 
@@ -11396,17 +11424,9 @@ var moment$1 = {
11396
11424
 
11397
11425
  addFormatToken('s', ['ss', 2], 0, 'second');
11398
11426
 
11399
- // ALIASES
11400
-
11401
- addUnitAlias('second', 's');
11402
-
11403
- // PRIORITY
11404
-
11405
- addUnitPriority('second', 15);
11406
-
11407
11427
  // PARSING
11408
11428
 
11409
- addRegexToken('s', match1to2);
11429
+ addRegexToken('s', match1to2, match1to2HasZero);
11410
11430
  addRegexToken('ss', match1to2, match2);
11411
11431
  addParseToken(['s', 'ss'], SECOND);
11412
11432
 
@@ -11444,14 +11464,6 @@ var moment$1 = {
11444
11464
  return this.millisecond() * 1000000;
11445
11465
  });
11446
11466
 
11447
- // ALIASES
11448
-
11449
- addUnitAlias('millisecond', 'ms');
11450
-
11451
- // PRIORITY
11452
-
11453
- addUnitPriority('millisecond', 16);
11454
-
11455
11467
  // PARSING
11456
11468
 
11457
11469
  addRegexToken('S', match1to3, match1);
@@ -11759,12 +11771,12 @@ var moment$1 = {
11759
11771
  toInt((number % 100) / 10) === 1
11760
11772
  ? 'th'
11761
11773
  : b === 1
11762
- ? 'st'
11763
- : b === 2
11764
- ? 'nd'
11765
- : b === 3
11766
- ? 'rd'
11767
- : 'th';
11774
+ ? 'st'
11775
+ : b === 2
11776
+ ? 'nd'
11777
+ : b === 3
11778
+ ? 'rd'
11779
+ : 'th';
11768
11780
  return number + output;
11769
11781
  },
11770
11782
  });
@@ -11937,19 +11949,6 @@ var moment$1 = {
11937
11949
  }
11938
11950
  }
11939
11951
 
11940
- // TODO: Use this.as('ms')?
11941
- function valueOf$1() {
11942
- if (!this.isValid()) {
11943
- return NaN;
11944
- }
11945
- return (
11946
- this._milliseconds +
11947
- this._days * 864e5 +
11948
- (this._months % 12) * 2592e6 +
11949
- toInt(this._months / 12) * 31536e6
11950
- );
11951
- }
11952
-
11953
11952
  function makeAs(alias) {
11954
11953
  return function () {
11955
11954
  return this.as(alias);
@@ -11964,7 +11963,8 @@ var moment$1 = {
11964
11963
  asWeeks = makeAs('w'),
11965
11964
  asMonths = makeAs('M'),
11966
11965
  asQuarters = makeAs('Q'),
11967
- asYears = makeAs('y');
11966
+ asYears = makeAs('y'),
11967
+ valueOf$1 = asMilliseconds;
11968
11968
 
11969
11969
  function clone$1() {
11970
11970
  return createDuration(this);
@@ -12233,7 +12233,7 @@ var moment$1 = {
12233
12233
 
12234
12234
  //! moment.js
12235
12235
 
12236
- hooks.version = '2.29.4';
12236
+ hooks.version = '2.30.1';
12237
12237
 
12238
12238
  setHookCallback(createLocal);
12239
12239
 
@@ -12280,24 +12280,23 @@ var moment$1 = {
12280
12280
 
12281
12281
  return hooks;
12282
12282
 
12283
- })));
12284
- } (moment$1));
12283
+ })));
12284
+ } (moment$1, moment$1.exports));
12285
12285
 
12286
- var moment = momentExports;var vueInfiniteLoadingExports = {};
12287
- var vueInfiniteLoading = {
12288
- get exports(){ return vueInfiniteLoadingExports; },
12289
- set exports(v){ vueInfiniteLoadingExports = v; },
12290
- };/*!
12286
+ var momentExports = moment$1.exports;
12287
+ var moment = /*@__PURE__*/getDefaultExportFromCjs(momentExports);var vueInfiniteLoading = {exports: {}};/*!
12291
12288
  * vue-infinite-loading v2.4.5
12292
12289
  * (c) 2016-2020 PeachScript
12293
12290
  * MIT License
12294
12291
  */
12292
+ vueInfiniteLoading.exports;
12295
12293
 
12296
12294
  (function (module, exports) {
12297
- !function(t,e){module.exports=e();}(commonjsGlobal,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i});},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){var i=n(6);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0, n(3).default)("6223ff68",i,!0,{});},function(t,e,n){var i=n(8);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0, n(3).default)("27f0e51f",i,!0,{});},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var a=(o=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),r=i.sources.map((function(t){return "/*# sourceURL="+i.sourceRoot+t+" */"}));return [n].concat(r).concat([a]).join("\n")}var o;return [n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},a=0;a<this.length;a++){var r=this[a][0];"number"==typeof r&&(i[r]=!0);}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o));}},e};},function(t,e,n){function i(t,e){for(var n=[],i={},a=0;a<e.length;a++){var r=e[a],o=r[0],s={id:t+":"+a,css:r[1],media:r[2],sourceMap:r[3]};i[o]?i[o].parts.push(s):n.push(i[o]={id:o,parts:[s]});}return n}n.r(e),n.d(e,"default",(function(){return f}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},o=a&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,d=!1,c=function(){},u=null,p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,a){d=n,u=a||{};var o=i(t,e);return b(o),function(e){for(var n=[],a=0;a<o.length;a++){var s=o[a];(l=r[s.id]).refs--,n.push(l);}e?b(o=i(t,e)):o=[];for(a=0;a<n.length;a++){var l;if(0===(l=n[a]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete r[l.id];}}}}function b(t){for(var e=0;e<t.length;e++){var n=t[e],i=r[n.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](n.parts[a]);for(;a<n.parts.length;a++)i.parts.push(m(n.parts[a]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length);}else {var o=[];for(a=0;a<n.parts.length;a++)o.push(m(n.parts[a]));r[n.id]={id:n.id,refs:1,parts:o};}}}function h(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function m(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(d)return c;i.parentNode.removeChild(i);}if(p){var a=l++;i=s||(s=h()),e=w.bind(null,i,a,!1),n=w.bind(null,i,a,!0);}else i=h(),e=y.bind(null,i),n=function(){i.parentNode.removeChild(i);};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i);}else n();}}var g,v=(g=[],function(t,e){return g[t]=e,g.filter(Boolean).join("\n")});function w(t,e,n,i){var a=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,a);else {var r=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r);}}function y(t,e){var n=e.css,i=e.media,a=e.sourceMap;if(i&&t.setAttribute("media",i),u.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else {for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n));}}},function(t,e){function n(e){return "function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n;},function(t,e,n){n.r(e);var i=n(0),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}));}(r);e.default=a.a;},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,'.loading-wave-dots[data-v-46b20d22]{position:relative}.loading-wave-dots[data-v-46b20d22] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite;animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite}.loading-wave-dots[data-v-46b20d22] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-46b20d22] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-46b20d22] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-data-v-46b20d22 linear .75s infinite;animation:loading-circles-data-v-46b20d22 linear .75s infinite}.loading-circles[data-v-46b20d22] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-46b20d22] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-46b20d22] .bubble-item{background:#666;-webkit-animation:loading-bubbles-data-v-46b20d22 linear .75s infinite;animation:loading-bubbles-data-v-46b20d22 linear .75s infinite}.loading-bubbles[data-v-46b20d22] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-46b20d22]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite;animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite}.loading-default[data-v-46b20d22]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-46b20d22]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-data-v-46b20d22 linear .85s infinite;animation:loading-rotating-data-v-46b20d22 linear .85s infinite}@-webkit-keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-46b20d22],.loading-circles[data-v-46b20d22]{position:relative}.loading-bubbles[data-v-46b20d22] .bubble-item,.loading-circles[data-v-46b20d22] .circle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2),.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3),.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4),.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5),.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6),.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7),.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child,.loading-circles[data-v-46b20d22] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""]);},function(t,e,n){n.r(e);var i=n(1),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}));}(r);e.default=a.a;},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".infinite-loading-container[data-v-644ea9c9]{clear:both;text-align:center}.infinite-loading-container[data-v-644ea9c9] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-644ea9c9]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-644ea9c9]:not(:active):hover{opacity:.8}",""]);},function(t,e,n){n.r(e);var i={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},a=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t={passive:!0},!0}});window.addEventListener("testpassive",e,e),window.remove("testpassive",e,e);}catch(t){}return t}(),r={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n ajax('https://www.example.com/api/news')\n .then((res) => {\n if (res.data.length) {\n $state.loaded();\n } else {\n $state.complete();\n }\n });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},o={INFINITE_LOOP:["executed the callback function more than ".concat(i.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n ...\n \x3c!-- set force-use-infinite-wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n ...\n \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},l={color:"#666",fontSize:"14px",padding:"10px 0"},d={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:i,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:r,ERRORS:o,STATUS:s},c=n(4),u=n.n(c),p={BUBBLES:{render:function(t){return t("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(t){return t("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(t){return t("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(t){return t("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(t){return t("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return t("span",{attrs:{class:"wave-item"}})})))}}};function f(t,e,n,i,a,r,o,s){var l,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o);},d._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot);}:a),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)};}else {var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l];}return {exports:t,options:d}}var b=f({name:"Spinner",computed:{spinnerView:function(){return p[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return d.slots.spinner&&"string"==typeof d.slots.spinner?{render:function(){return this._v(d.slots.spinner)}}:"object"===u()(d.slots.spinner)?d.slots.spinner:p[d.props.spinner.toUpperCase()]||p.DEFAULT}}},(function(){var t=this.$createElement;return (this._self._c||t)(this.spinnerView,{tag:"component"})}),[],!1,(function(t){var e=n(5);e.__inject__&&e.__inject__(t);}),"46b20d22",null).exports;function h(t){"production"!==d.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(t));}function m(t){console.error("[Vue-infinite-loading error]: ".concat(t));}var g={timers:[],caches:[],throttle:function(t){var e=this;-1===this.caches.indexOf(t)&&(this.caches.push(t),this.timers.push(setTimeout((function(){t(),e.caches.splice(e.caches.indexOf(t),1),e.timers.shift();}),d.system.throttleLimit)));},reset:function(){this.timers.forEach((function(t){clearTimeout(t);})),this.timers.length=0,this.caches=[];}},v={isChecked:!1,timer:null,times:0,track:function(){var t=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){t.isChecked=!0;}),d.system.loopCheckTimeout),this.times>d.system.loopCheckMaxCalls&&(m(o.INFINITE_LOOP),this.isChecked=!0);}},w={key:"_infiniteScrollHeight",getScrollElm:function(t){return t===window?document.documentElement:t},save:function(t){var e=this.getScrollElm(t);e[this.key]=e.scrollHeight;},restore:function(t){var e=this.getScrollElm(t);"number"==typeof e[this.key]&&(e.scrollTop=e.scrollHeight-e[this.key]+e.scrollTop),this.remove(e);},remove:function(t){void 0!==t[this.key]&&delete t[this.key];}};function y(t){return t.replace(/[A-Z]/g,(function(t){return "-".concat(t.toLowerCase())}))}function x(t){return t.offsetWidth+t.offsetHeight>0}var k=f({name:"InfiniteLoading",data:function(){return {scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:d.slots}},components:{Spinner:b},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var t=this,e={};return Object.keys(d.slots).forEach((function(n){var i=y(n);(!t.$slots[i]&&!d.slots[n].render||t.$slots[i]&&!t.$slots[i][0].tag)&&(e[n]=l);})),e}},props:{distance:{type:Number,default:d.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:d.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset();}},mounted:function(){var t=this;this.$watch("forceUseInfiniteWrapper",(function(){t.scrollParent=t.getScrollParent();}),{immediate:!0}),this.scrollHandler=function(e){t.status===s.READY&&(e&&e.constructor===Event&&x(t.$el)?g.throttle(t.attemptLoad):t.attemptLoad());},setTimeout((function(){t.scrollHandler(),t.scrollParent.addEventListener("scroll",t.scrollHandler,a);}),1),this.$on("$InfiniteLoading:loaded",(function(e){t.isFirstLoad=!1,"top"===t.direction&&t.$nextTick((function(){w.restore(t.scrollParent);})),t.status===s.LOADING&&t.$nextTick(t.attemptLoad.bind(null,!0)),e&&e.target===t||h(r.STATE_CHANGER);})),this.$on("$InfiniteLoading:complete",(function(e){t.status=s.COMPLETE,t.$nextTick((function(){t.$forceUpdate();})),t.scrollParent.removeEventListener("scroll",t.scrollHandler,a),e&&e.target===t||h(r.STATE_CHANGER);})),this.$on("$InfiniteLoading:reset",(function(e){t.status=s.READY,t.isFirstLoad=!0,w.remove(t.scrollParent),t.scrollParent.addEventListener("scroll",t.scrollHandler,a),setTimeout((function(){g.reset(),t.scrollHandler();}),1),e&&e.target===t||h(r.IDENTIFIER);})),this.stateChanger={loaded:function(){t.$emit("$InfiniteLoading:loaded",{target:t});},complete:function(){t.$emit("$InfiniteLoading:complete",{target:t});},reset:function(){t.$emit("$InfiniteLoading:reset",{target:t});},error:function(){t.status=s.ERROR,g.reset();}},this.onInfinite&&h(r.INFINITE_EVENT);},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a);},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,a);},methods:{attemptLoad:function(t){var e=this;this.status!==s.COMPLETE&&x(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){w.save(e.scrollParent);})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!t||this.forceUseInfiniteWrapper||v.isChecked||v.track()):this.status===s.LOADING&&(this.status=s.READY);},getCurrentDistance:function(){var t;"top"===this.direction?t="number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:t=this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom);return t},getScrollParent:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return "string"==typeof this.forceUseInfiniteWrapper&&(t=document.querySelector(this.forceUseInfiniteWrapper)),t||("BODY"===e.tagName?t=window:!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1?t=e:(e.hasAttribute("infinite-wrapper")||e.hasAttribute("data-infinite-wrapper"))&&(t=e)),t||this.getScrollParent(e.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(g.reset(),w.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a));}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"infinite-loading-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:t.slotStyles.spinner},[t._t("spinner",[n("spinner",{attrs:{spinner:t.spinner}})])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noResults},[t._t("no-results",[t.slots.noResults.render?n(t.slots.noResults,{tag:"component"}):[t._v(t._s(t.slots.noResults))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noMore},[t._t("no-more",[t.slots.noMore.render?n(t.slots.noMore,{tag:"component"}):[t._v(t._s(t.slots.noMore))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:t.slotStyles.error},[t._t("error",[t.slots.error.render?n(t.slots.error,{tag:"component",attrs:{trigger:t.attemptLoad}}):[t._v("\n "+t._s(t.slots.error)+"\n "),n("br"),t._v(" "),n("button",{staticClass:"btn-try-infinite",domProps:{textContent:t._s(t.slots.errorBtnText)},on:{click:t.attemptLoad}})]],{trigger:t.attemptLoad})],2)])}),[],!1,(function(t){var e=n(7);e.__inject__&&e.__inject__(t);}),"644ea9c9",null).exports;function E(t){d.mode=t.config.productionTip?"development":"production";}Object.defineProperty(k,"install",{configurable:!1,enumerable:!1,value:function(t,e){Object.assign(d.props,e&&e.props),Object.assign(d.slots,e&&e.slots),Object.assign(d.system,e&&e.system),t.component("infinite-loading",k),E(t);}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",k),E(window.Vue));e.default=k;}])}));
12298
- } (vueInfiniteLoading));
12295
+ !function(t,e){module.exports=e();}(commonjsGlobal,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i});},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){var i=n(6);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0, n(3).default)("6223ff68",i,!0,{});},function(t,e,n){var i=n(8);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0, n(3).default)("27f0e51f",i,!0,{});},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var a=(o=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),r=i.sources.map((function(t){return "/*# sourceURL="+i.sourceRoot+t+" */"}));return [n].concat(r).concat([a]).join("\n")}var o;return [n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},a=0;a<this.length;a++){var r=this[a][0];"number"==typeof r&&(i[r]=!0);}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o));}},e};},function(t,e,n){function i(t,e){for(var n=[],i={},a=0;a<e.length;a++){var r=e[a],o=r[0],s={id:t+":"+a,css:r[1],media:r[2],sourceMap:r[3]};i[o]?i[o].parts.push(s):n.push(i[o]={id:o,parts:[s]});}return n}n.r(e),n.d(e,"default",(function(){return f}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},o=a&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,d=!1,c=function(){},u=null,p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,a){d=n,u=a||{};var o=i(t,e);return b(o),function(e){for(var n=[],a=0;a<o.length;a++){var s=o[a];(l=r[s.id]).refs--,n.push(l);}e?b(o=i(t,e)):o=[];for(a=0;a<n.length;a++){var l;if(0===(l=n[a]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete r[l.id];}}}}function b(t){for(var e=0;e<t.length;e++){var n=t[e],i=r[n.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](n.parts[a]);for(;a<n.parts.length;a++)i.parts.push(m(n.parts[a]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length);}else {var o=[];for(a=0;a<n.parts.length;a++)o.push(m(n.parts[a]));r[n.id]={id:n.id,refs:1,parts:o};}}}function h(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function m(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(d)return c;i.parentNode.removeChild(i);}if(p){var a=l++;i=s||(s=h()),e=w.bind(null,i,a,!1),n=w.bind(null,i,a,!0);}else i=h(),e=y.bind(null,i),n=function(){i.parentNode.removeChild(i);};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i);}else n();}}var g,v=(g=[],function(t,e){return g[t]=e,g.filter(Boolean).join("\n")});function w(t,e,n,i){var a=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,a);else {var r=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r);}}function y(t,e){var n=e.css,i=e.media,a=e.sourceMap;if(i&&t.setAttribute("media",i),u.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else {for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n));}}},function(t,e){function n(e){return "function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n;},function(t,e,n){n.r(e);var i=n(0),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}));}(r);e.default=a.a;},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,'.loading-wave-dots[data-v-46b20d22]{position:relative}.loading-wave-dots[data-v-46b20d22] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite;animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite}.loading-wave-dots[data-v-46b20d22] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-46b20d22] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-46b20d22] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-data-v-46b20d22 linear .75s infinite;animation:loading-circles-data-v-46b20d22 linear .75s infinite}.loading-circles[data-v-46b20d22] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-46b20d22] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-46b20d22] .bubble-item{background:#666;-webkit-animation:loading-bubbles-data-v-46b20d22 linear .75s infinite;animation:loading-bubbles-data-v-46b20d22 linear .75s infinite}.loading-bubbles[data-v-46b20d22] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-46b20d22]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite;animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite}.loading-default[data-v-46b20d22]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-46b20d22]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-data-v-46b20d22 linear .85s infinite;animation:loading-rotating-data-v-46b20d22 linear .85s infinite}@-webkit-keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-46b20d22],.loading-circles[data-v-46b20d22]{position:relative}.loading-bubbles[data-v-46b20d22] .bubble-item,.loading-circles[data-v-46b20d22] .circle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2),.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3),.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4),.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5),.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6),.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7),.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child,.loading-circles[data-v-46b20d22] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""]);},function(t,e,n){n.r(e);var i=n(1),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}));}(r);e.default=a.a;},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".infinite-loading-container[data-v-644ea9c9]{clear:both;text-align:center}.infinite-loading-container[data-v-644ea9c9] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-644ea9c9]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-644ea9c9]:not(:active):hover{opacity:.8}",""]);},function(t,e,n){n.r(e);var i={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},a=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t={passive:!0},!0}});window.addEventListener("testpassive",e,e),window.remove("testpassive",e,e);}catch(t){}return t}(),r={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n ajax('https://www.example.com/api/news')\n .then((res) => {\n if (res.data.length) {\n $state.loaded();\n } else {\n $state.complete();\n }\n });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},o={INFINITE_LOOP:["executed the callback function more than ".concat(i.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n ...\n \x3c!-- set force-use-infinite-wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n ...\n \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},l={color:"#666",fontSize:"14px",padding:"10px 0"},d={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:i,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:r,ERRORS:o,STATUS:s},c=n(4),u=n.n(c),p={BUBBLES:{render:function(t){return t("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(t){return t("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(t){return t("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(t){return t("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(t){return t("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return t("span",{attrs:{class:"wave-item"}})})))}}};function f(t,e,n,i,a,r,o,s){var l,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o);},d._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot);}:a),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)};}else {var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l];}return {exports:t,options:d}}var b=f({name:"Spinner",computed:{spinnerView:function(){return p[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return d.slots.spinner&&"string"==typeof d.slots.spinner?{render:function(){return this._v(d.slots.spinner)}}:"object"===u()(d.slots.spinner)?d.slots.spinner:p[d.props.spinner.toUpperCase()]||p.DEFAULT}}},(function(){var t=this.$createElement;return (this._self._c||t)(this.spinnerView,{tag:"component"})}),[],!1,(function(t){var e=n(5);e.__inject__&&e.__inject__(t);}),"46b20d22",null).exports;function h(t){"production"!==d.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(t));}function m(t){console.error("[Vue-infinite-loading error]: ".concat(t));}var g={timers:[],caches:[],throttle:function(t){var e=this;-1===this.caches.indexOf(t)&&(this.caches.push(t),this.timers.push(setTimeout((function(){t(),e.caches.splice(e.caches.indexOf(t),1),e.timers.shift();}),d.system.throttleLimit)));},reset:function(){this.timers.forEach((function(t){clearTimeout(t);})),this.timers.length=0,this.caches=[];}},v={isChecked:!1,timer:null,times:0,track:function(){var t=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){t.isChecked=!0;}),d.system.loopCheckTimeout),this.times>d.system.loopCheckMaxCalls&&(m(o.INFINITE_LOOP),this.isChecked=!0);}},w={key:"_infiniteScrollHeight",getScrollElm:function(t){return t===window?document.documentElement:t},save:function(t){var e=this.getScrollElm(t);e[this.key]=e.scrollHeight;},restore:function(t){var e=this.getScrollElm(t);"number"==typeof e[this.key]&&(e.scrollTop=e.scrollHeight-e[this.key]+e.scrollTop),this.remove(e);},remove:function(t){void 0!==t[this.key]&&delete t[this.key];}};function y(t){return t.replace(/[A-Z]/g,(function(t){return "-".concat(t.toLowerCase())}))}function x(t){return t.offsetWidth+t.offsetHeight>0}var k=f({name:"InfiniteLoading",data:function(){return {scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:d.slots}},components:{Spinner:b},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var t=this,e={};return Object.keys(d.slots).forEach((function(n){var i=y(n);(!t.$slots[i]&&!d.slots[n].render||t.$slots[i]&&!t.$slots[i][0].tag)&&(e[n]=l);})),e}},props:{distance:{type:Number,default:d.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:d.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset();}},mounted:function(){var t=this;this.$watch("forceUseInfiniteWrapper",(function(){t.scrollParent=t.getScrollParent();}),{immediate:!0}),this.scrollHandler=function(e){t.status===s.READY&&(e&&e.constructor===Event&&x(t.$el)?g.throttle(t.attemptLoad):t.attemptLoad());},setTimeout((function(){t.scrollHandler(),t.scrollParent.addEventListener("scroll",t.scrollHandler,a);}),1),this.$on("$InfiniteLoading:loaded",(function(e){t.isFirstLoad=!1,"top"===t.direction&&t.$nextTick((function(){w.restore(t.scrollParent);})),t.status===s.LOADING&&t.$nextTick(t.attemptLoad.bind(null,!0)),e&&e.target===t||h(r.STATE_CHANGER);})),this.$on("$InfiniteLoading:complete",(function(e){t.status=s.COMPLETE,t.$nextTick((function(){t.$forceUpdate();})),t.scrollParent.removeEventListener("scroll",t.scrollHandler,a),e&&e.target===t||h(r.STATE_CHANGER);})),this.$on("$InfiniteLoading:reset",(function(e){t.status=s.READY,t.isFirstLoad=!0,w.remove(t.scrollParent),t.scrollParent.addEventListener("scroll",t.scrollHandler,a),setTimeout((function(){g.reset(),t.scrollHandler();}),1),e&&e.target===t||h(r.IDENTIFIER);})),this.stateChanger={loaded:function(){t.$emit("$InfiniteLoading:loaded",{target:t});},complete:function(){t.$emit("$InfiniteLoading:complete",{target:t});},reset:function(){t.$emit("$InfiniteLoading:reset",{target:t});},error:function(){t.status=s.ERROR,g.reset();}},this.onInfinite&&h(r.INFINITE_EVENT);},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a);},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,a);},methods:{attemptLoad:function(t){var e=this;this.status!==s.COMPLETE&&x(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){w.save(e.scrollParent);})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!t||this.forceUseInfiniteWrapper||v.isChecked||v.track()):this.status===s.LOADING&&(this.status=s.READY);},getCurrentDistance:function(){var t;"top"===this.direction?t="number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:t=this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom);return t},getScrollParent:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return "string"==typeof this.forceUseInfiniteWrapper&&(t=document.querySelector(this.forceUseInfiniteWrapper)),t||("BODY"===e.tagName?t=window:!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1?t=e:(e.hasAttribute("infinite-wrapper")||e.hasAttribute("data-infinite-wrapper"))&&(t=e)),t||this.getScrollParent(e.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(g.reset(),w.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a));}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"infinite-loading-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:t.slotStyles.spinner},[t._t("spinner",[n("spinner",{attrs:{spinner:t.spinner}})])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noResults},[t._t("no-results",[t.slots.noResults.render?n(t.slots.noResults,{tag:"component"}):[t._v(t._s(t.slots.noResults))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noMore},[t._t("no-more",[t.slots.noMore.render?n(t.slots.noMore,{tag:"component"}):[t._v(t._s(t.slots.noMore))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:t.slotStyles.error},[t._t("error",[t.slots.error.render?n(t.slots.error,{tag:"component",attrs:{trigger:t.attemptLoad}}):[t._v("\n "+t._s(t.slots.error)+"\n "),n("br"),t._v(" "),n("button",{staticClass:"btn-try-infinite",domProps:{textContent:t._s(t.slots.errorBtnText)},on:{click:t.attemptLoad}})]],{trigger:t.attemptLoad})],2)])}),[],!1,(function(t){var e=n(7);e.__inject__&&e.__inject__(t);}),"644ea9c9",null).exports;function E(t){d.mode=t.config.productionTip?"development":"production";}Object.defineProperty(k,"install",{configurable:!1,enumerable:!1,value:function(t,e){Object.assign(d.props,e&&e.props),Object.assign(d.slots,e&&e.slots),Object.assign(d.system,e&&e.system),t.component("infinite-loading",k),E(t);}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",k),E(window.Vue));e.default=k;}])}));
12296
+ } (vueInfiniteLoading, vueInfiniteLoading.exports));
12299
12297
 
12300
- var InfiniteLoading = /*@__PURE__*/getDefaultExportFromCjs(vueInfiniteLoadingExports);var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}var css = "tr td[data-v-7974038a]:last-child,\ntr td[data-v-7974038a]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-7974038a] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-7974038a] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-7974038a] .crud-title[data-v-7974038a] {\n margin: 0; }\n .crud-header[data-v-7974038a] .crud-search[data-v-7974038a] {\n max-width: 15rem; }\n .crud-header[data-v-7974038a] .crud-search[data-v-7974038a] .btn[data-v-7974038a] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem; }\n .crud-header[data-v-7974038a] .crud-search[data-v-7974038a] .btn[data-v-7974038a].open[data-v-7974038a] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-7974038a] .table-options[data-v-7974038a] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-7974038a] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-7974038a] {\n table-layout: auto; }\n .table[data-v-7974038a] tbody[data-v-7974038a] td[data-v-7974038a] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-7974038a] tbody[data-v-7974038a] td[data-v-7974038a]::-webkit-scrollbar {\n display: none; } }\n";
12298
+ var vueInfiniteLoadingExports = vueInfiniteLoading.exports;
12299
+ var InfiniteLoading = /*@__PURE__*/getDefaultExportFromCjs(vueInfiniteLoadingExports);var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}var css = "tr td[data-v-3e65ccf8]:last-child,\ntr td[data-v-3e65ccf8]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-3e65ccf8] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-3e65ccf8] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-3e65ccf8] .crud-title[data-v-3e65ccf8] {\n margin: 0; }\n .crud-header[data-v-3e65ccf8] .crud-search[data-v-3e65ccf8] {\n max-width: 15rem; }\n .crud-header[data-v-3e65ccf8] .crud-search[data-v-3e65ccf8] .btn[data-v-3e65ccf8] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem; }\n .crud-header[data-v-3e65ccf8] .crud-search[data-v-3e65ccf8] .btn[data-v-3e65ccf8].open[data-v-3e65ccf8] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-3e65ccf8] .table-options[data-v-3e65ccf8] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-3e65ccf8] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-3e65ccf8] {\n table-layout: auto; }\n .table[data-v-3e65ccf8] tbody[data-v-3e65ccf8] td[data-v-3e65ccf8] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-3e65ccf8] tbody[data-v-3e65ccf8] td[data-v-3e65ccf8]::-webkit-scrollbar {\n display: none; } }\n";
12301
12300
  n(css, {});function normalizeComponent (
12302
12301
  scriptExports,
12303
12302
  render,
@@ -12428,7 +12427,8 @@ n(css, {});function normalizeComponent (
12428
12427
  infiniteScrollKey: 1,
12429
12428
  optionsLoaded: false,
12430
12429
  isMobile: false,
12431
- refreshing: false
12430
+ refreshing: false,
12431
+ fetchError: false
12432
12432
  };
12433
12433
  },
12434
12434
  watch: {
@@ -12693,6 +12693,10 @@ n(css, {});function normalizeComponent (
12693
12693
  };
12694
12694
  }
12695
12695
  },
12696
+ masonryEnabled: {
12697
+ type: Boolean,
12698
+ default: false
12699
+ },
12696
12700
  masonrySort: {
12697
12701
  type: Boolean,
12698
12702
  default: false
@@ -12817,6 +12821,7 @@ n(css, {});function normalizeComponent (
12817
12821
  if (hasNextPage) {
12818
12822
  var page = this.pagination.current_page + 1;
12819
12823
  this.fetchItems(page, true).then(function () {
12824
+ console.debug("infinite handler then");
12820
12825
  $state.loaded();
12821
12826
  }).catch(function (error) {
12822
12827
  console.debug("infinite handler error", error);
@@ -13157,6 +13162,8 @@ n(css, {});function normalizeComponent (
13157
13162
  //console.debug(error);
13158
13163
  _this10.toastError(error);
13159
13164
  _this10.loading = false;
13165
+ _this10.firstLoad = true;
13166
+ _this10.fetchError = true;
13160
13167
  });
13161
13168
  },
13162
13169
  removeItem: function removeItem(id, index) {
@@ -13222,7 +13229,6 @@ n(css, {});function normalizeComponent (
13222
13229
  console.error("Cannot delete item without ID or index");
13223
13230
  // You might want to show an error message or handle it in a way that fits your application.
13224
13231
  }
13225
-
13226
13232
  _this13.loading = false;
13227
13233
  case 2:
13228
13234
  case "end":
@@ -13761,7 +13767,7 @@ var _sfc_render = function render() {
13761
13767
  callback: function callback($$v) {
13762
13768
  _vm.$set(_vm.internalFilterByProp(column.prop + '_from'), "value", $$v);
13763
13769
  },
13764
- expression: "internalFilterByProp(column.prop + '_from').value\n "
13770
+ expression: "internalFilterByProp(column.prop + '_from').value\n "
13765
13771
  }
13766
13772
  })], 1), _c('div', {
13767
13773
  staticClass: "col-6"
@@ -13777,7 +13783,7 @@ var _sfc_render = function render() {
13777
13783
  callback: function callback($$v) {
13778
13784
  _vm.$set(_vm.internalFilterByProp(column.prop + '_to'), "value", $$v);
13779
13785
  },
13780
- expression: "internalFilterByProp(column.prop + '_to').value\n "
13786
+ expression: "internalFilterByProp(column.prop + '_to').value\n "
13781
13787
  }
13782
13788
  })], 1)])]) : column.type == 'state' ? _c('div', {
13783
13789
  staticClass: "form-group"
@@ -14043,7 +14049,7 @@ var _sfc_render = function render() {
14043
14049
  callback: function callback($$v) {
14044
14050
  _vm.$set(_vm.internalFilterByProp(column.prop + '_from'), "value", $$v);
14045
14051
  },
14046
- expression: "internalFilterByProp(column.prop + '_from').value\n "
14052
+ expression: "internalFilterByProp(column.prop + '_from').value\n "
14047
14053
  }
14048
14054
  })], 1), _c('div', {
14049
14055
  staticClass: "col-6"
@@ -14060,7 +14066,7 @@ var _sfc_render = function render() {
14060
14066
  callback: function callback($$v) {
14061
14067
  _vm.$set(_vm.internalFilterByProp(column.prop + '_to'), "value", $$v);
14062
14068
  },
14063
- expression: "internalFilterByProp(column.prop + '_to').value\n "
14069
+ expression: "internalFilterByProp(column.prop + '_to').value\n "
14064
14070
  }
14065
14071
  })], 1)]) : column.type == 'state' && _vm.optionsLoaded ? _c('select', {
14066
14072
  directives: [{
@@ -14333,6 +14339,19 @@ var _sfc_render = function render() {
14333
14339
  },
14334
14340
  expression: "items"
14335
14341
  }
14342
+ }, [_c('masonry', {
14343
+ attrs: {
14344
+ "cols": {
14345
+ default: _vm.colLg,
14346
+ 1000: _vm.colMd,
14347
+ 700: _vm.colSm,
14348
+ 400: _vm.colXs
14349
+ },
14350
+ "gutter": {
14351
+ default: '30px',
14352
+ 700: '15px'
14353
+ }
14354
+ }
14336
14355
  }, _vm._l(_vm.itemsList, function (item, index) {
14337
14356
  return _c('b-col', {
14338
14357
  key: index,
@@ -14418,7 +14437,7 @@ var _sfc_render = function render() {
14418
14437
  }, {
14419
14438
  "item": item
14420
14439
  })], 2)], 1);
14421
- }), 1), !_vm.loading && _vm.items && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
14440
+ }), 1)], 1), !_vm.loading && _vm.items && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
14422
14441
  staticClass: "p-3"
14423
14442
  }, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e()], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
14424
14443
  class: _vm.listContainerClass
@@ -14604,7 +14623,7 @@ var _sfc_render = function render() {
14604
14623
  }) : _vm._e()], 2)], 1);
14605
14624
  };
14606
14625
  var _sfc_staticRenderFns = [];
14607
- var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "7974038a", null, null);
14626
+ var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "3e65ccf8", null, null);
14608
14627
  var component$1 = __component__.exports;// Import vue component
14609
14628
 
14610
14629
  // Default export is installable instance of component.