/
vue.js
3680 lines (3680 loc) · 239 KB
/
vue.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
!function(global1, factory) {
'object' == typeof exports && 'undefined' != typeof module ? module.exports = factory() : 'function' == typeof define && define.amd ? define(factory) : (global1 = global1 || self).Vue = factory();
}(this, function() {
'use strict';
var Vue, Vue1, cid, Vue2, configDef, Vue3, dataDef, propsDef, Vue4, hookRE, Vue5, Vue6, baseCompile, _isServer, _Set, timerFunc, mark, measure, initProxy, target, len, str, chr, index$1, expressionPos, expressionEndPos, target$1, svgContainer, emptyStyle, decoder, warn$2, delimiters, transforms, preTransforms, postTransforms, platformIsPreTag, platformMustUseProp, platformGetTagNamespace, maybeComponent, isStaticKey, isPlatformReservedTag, div, emptyObject = Object.freeze({});
function isUndef(v) {
return null == v;
}
function isDef(v) {
return null != v;
}
function isTrue(v) {
return !0 === v;
}
function isPrimitive(value) {
return 'string' == typeof value || 'number' == typeof value || 'symbol' == typeof value || 'boolean' == typeof value;
}
function isObject(obj) {
return null !== obj && 'object' == typeof obj;
}
var _toString = Object.prototype.toString;
function toRawType(value) {
return _toString.call(value).slice(8, -1);
}
function isPlainObject(obj) {
return '[object Object]' === _toString.call(obj);
}
function isRegExp(v) {
return '[object RegExp]' === _toString.call(v);
}
function isValidArrayIndex(val) {
var n = parseFloat(String(val));
return n >= 0 && Math.floor(n) === n && isFinite(val);
}
function isPromise(val) {
return isDef(val) && 'function' == typeof val.then && 'function' == typeof val.catch;
}
function toString(val) {
return null == val ? '' : Array.isArray(val) || isPlainObject(val) && val.toString === _toString ? JSON.stringify(val, null, 2) : String(val);
}
function toNumber(val) {
var n = parseFloat(val);
return isNaN(n) ? val : n;
}
function makeMap(str, expectsLowerCase) {
for(var map = Object.create(null), list = str.split(','), i = 0; i < list.length; i++)map[list[i]] = !0;
return expectsLowerCase ? function(val) {
return map[val.toLowerCase()];
} : function(val) {
return map[val];
};
}
var isBuiltInTag = makeMap('slot,component', !0), isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
function remove(arr, item) {
if (arr.length) {
var index = arr.indexOf(item);
if (index > -1) return arr.splice(index, 1);
}
}
var hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwn(obj, key) {
return hasOwnProperty.call(obj, key);
}
function cached(fn) {
var cache = Object.create(null);
return function(str) {
return cache[str] || (cache[str] = fn(str));
};
}
var camelizeRE = /-(\w)/g, camelize = cached(function(str) {
return str.replace(camelizeRE, function(_, c) {
return c ? c.toUpperCase() : '';
});
}), capitalize = cached(function(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
}), hyphenateRE = /\B([A-Z])/g, hyphenate = cached(function(str) {
return str.replace(hyphenateRE, '-$1').toLowerCase();
}), bind = Function.prototype.bind ? function(fn, ctx) {
return fn.bind(ctx);
} : function(fn, ctx) {
function boundFn(a) {
var l = arguments.length;
return l ? l > 1 ? fn.apply(ctx, arguments) : fn.call(ctx, a) : fn.call(ctx);
}
return boundFn._length = fn.length, boundFn;
};
function toArray(list, start) {
start = start || 0;
for(var i = list.length - start, ret = Array(i); i--;)ret[i] = list[i + start];
return ret;
}
function extend(to, _from) {
for(var key in _from)to[key] = _from[key];
return to;
}
function toObject(arr) {
for(var res = {}, i = 0; i < arr.length; i++)arr[i] && extend(res, arr[i]);
return res;
}
function noop(a, b, c) {}
var no = function(a, b, c) {
return !1;
}, identity = function(_) {
return _;
};
function looseEqual(a, b) {
if (a === b) return !0;
var isObjectA = isObject(a), isObjectB = isObject(b);
if (isObjectA && isObjectB) try {
var isArrayA = Array.isArray(a), isArrayB = Array.isArray(b);
if (isArrayA && isArrayB) return a.length === b.length && a.every(function(e, i) {
return looseEqual(e, b[i]);
});
if (a instanceof Date && b instanceof Date) return a.getTime() === b.getTime();
if (isArrayA || isArrayB) return !1;
var keysA = Object.keys(a), keysB = Object.keys(b);
return keysA.length === keysB.length && keysA.every(function(key) {
return looseEqual(a[key], b[key]);
});
} catch (e) {
return !1;
}
else if (!isObjectA && !isObjectB) return String(a) === String(b);
else return !1;
}
function looseIndexOf(arr, val) {
for(var i = 0; i < arr.length; i++)if (looseEqual(arr[i], val)) return i;
return -1;
}
function once(fn) {
var called = !1;
return function() {
called || (called = !0, fn.apply(this, arguments));
};
}
var SSR_ATTR = 'data-server-rendered', ASSET_TYPES = [
'component',
'directive',
'filter'
], LIFECYCLE_HOOKS = [
'beforeCreate',
'created',
'beforeMount',
'mounted',
'beforeUpdate',
'updated',
'beforeDestroy',
'destroyed',
'activated',
'deactivated',
'errorCaptured',
'serverPrefetch'
], config = {
optionMergeStrategies: Object.create(null),
silent: !1,
productionTip: !0,
devtools: !0,
performance: !1,
errorHandler: null,
warnHandler: null,
ignoredElements: [],
keyCodes: Object.create(null),
isReservedTag: no,
isReservedAttr: no,
isUnknownElement: no,
getTagNamespace: noop,
parsePlatformTagName: identity,
mustUseProp: no,
async: !0,
_lifecycleHooks: LIFECYCLE_HOOKS
}, unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
function isReserved(str) {
var c = (str + '').charCodeAt(0);
return 0x24 === c || 0x5F === c;
}
function def(obj, key, val, enumerable) {
Object.defineProperty(obj, key, {
value: val,
enumerable: !!enumerable,
writable: !0,
configurable: !0
});
}
var bailRE = RegExp("[^" + unicodeRegExp.source + ".$_\\d]"), hasProto = '__proto__' in {}, inBrowser = 'undefined' != typeof window, inWeex = 'undefined' != typeof WXEnvironment && !!WXEnvironment.platform, weexPlatform = inWeex && WXEnvironment.platform.toLowerCase(), UA = inBrowser && window.navigator.userAgent.toLowerCase(), isIE = UA && /msie|trident/.test(UA), isIE9 = UA && UA.indexOf('msie 9.0') > 0, isEdge = UA && UA.indexOf('edge/') > 0;
UA && UA.indexOf('android');
var isIOS = UA && /iphone|ipad|ipod|ios/.test(UA) || 'ios' === weexPlatform;
UA && /chrome\/\d+/.test(UA), UA && /phantomjs/.test(UA);
var isFF = UA && UA.match(/firefox\/(\d+)/), nativeWatch = {}.watch, supportsPassive = !1;
if (inBrowser) try {
var opts = {};
Object.defineProperty(opts, 'passive', {
get: function() {
supportsPassive = !0;
}
}), window.addEventListener('test-passive', null, opts);
} catch (e) {}
var isServerRendering = function() {
return void 0 === _isServer && (_isServer = !inBrowser && !inWeex && 'undefined' != typeof global && global.process && 'server' === global.process.env.VUE_ENV), _isServer;
}, devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
function isNative(Ctor) {
return 'function' == typeof Ctor && /native code/.test(Ctor.toString());
}
var hasSymbol = 'undefined' != typeof Symbol && isNative(Symbol) && 'undefined' != typeof Reflect && isNative(Reflect.ownKeys);
_Set = 'undefined' != typeof Set && isNative(Set) ? Set : function() {
function Set1() {
this.set = Object.create(null);
}
return Set1.prototype.has = function(key) {
return !0 === this.set[key];
}, Set1.prototype.add = function(key) {
this.set[key] = !0;
}, Set1.prototype.clear = function() {
this.set = Object.create(null);
}, Set1;
}();
var warn = noop, tip = noop, generateComponentTrace = noop, formatComponentName = noop, hasConsole = 'undefined' != typeof console, classifyRE = /(?:^|[-_])(\w)/g;
warn = function(msg, vm) {
var trace = vm ? generateComponentTrace(vm) : '';
config.warnHandler ? config.warnHandler.call(null, msg, vm, trace) : hasConsole && !config.silent && console.error("[Vue warn]: " + msg + trace);
}, tip = function(msg, vm) {
hasConsole && !config.silent && console.warn("[Vue tip]: " + msg + (vm ? generateComponentTrace(vm) : ''));
}, formatComponentName = function(vm, includeFile) {
if (vm.$root === vm) return '<Root>';
var options = 'function' == typeof vm && null != vm.cid ? vm.options : vm._isVue ? vm.$options || vm.constructor.options : vm, name = options.name || options._componentTag, file = options.__file;
if (!name && file) {
var match = file.match(/([^/\\]+)\.vue$/);
name = match && match[1];
}
return (name ? "<" + name.replace(classifyRE, function(c) {
return c.toUpperCase();
}).replace(/[-_]/g, '') + ">" : "<Anonymous>") + (file && !1 !== includeFile ? " at " + file : '');
};
var repeat = function(str, n) {
for(var res = ''; n;)n % 2 == 1 && (res += str), n > 1 && (str += str), n >>= 1;
return res;
};
generateComponentTrace = function(vm) {
if (!vm._isVue || !vm.$parent) return "\n\n(found in " + formatComponentName(vm) + ")";
for(var tree = [], currentRecursiveSequence = 0; vm;){
if (tree.length > 0) {
var last = tree[tree.length - 1];
if (last.constructor === vm.constructor) {
currentRecursiveSequence++, vm = vm.$parent;
continue;
}
currentRecursiveSequence > 0 && (tree[tree.length - 1] = [
last,
currentRecursiveSequence
], currentRecursiveSequence = 0);
}
tree.push(vm), vm = vm.$parent;
}
return '\n\nfound in\n\n' + tree.map(function(vm, i) {
return "" + (0 === i ? '---> ' : repeat(' ', 5 + 2 * i)) + (Array.isArray(vm) ? formatComponentName(vm[0]) + "... (" + vm[1] + " recursive calls)" : formatComponentName(vm));
}).join('\n');
};
var uid = 0, Dep = function() {
this.id = uid++, this.subs = [];
};
Dep.prototype.addSub = function(sub) {
this.subs.push(sub);
}, Dep.prototype.removeSub = function(sub) {
remove(this.subs, sub);
}, Dep.prototype.depend = function() {
Dep.target && Dep.target.addDep(this);
}, Dep.prototype.notify = function() {
var subs = this.subs.slice();
config.async || subs.sort(function(a, b) {
return a.id - b.id;
});
for(var i = 0, l = subs.length; i < l; i++)subs[i].update();
}, Dep.target = null;
var targetStack = [];
function pushTarget(target) {
targetStack.push(target), Dep.target = target;
}
function popTarget() {
targetStack.pop(), Dep.target = targetStack[targetStack.length - 1];
}
var VNode = function(tag, data, children, text, elm, context, componentOptions, asyncFactory) {
this.tag = tag, this.data = data, this.children = children, this.text = text, this.elm = elm, this.ns = void 0, this.context = context, this.fnContext = void 0, this.fnOptions = void 0, this.fnScopeId = void 0, this.key = data && data.key, this.componentOptions = componentOptions, this.componentInstance = void 0, this.parent = void 0, this.raw = !1, this.isStatic = !1, this.isRootInsert = !0, this.isComment = !1, this.isCloned = !1, this.isOnce = !1, this.asyncFactory = asyncFactory, this.asyncMeta = void 0, this.isAsyncPlaceholder = !1;
}, prototypeAccessors = {
child: {
configurable: !0
}
};
prototypeAccessors.child.get = function() {
return this.componentInstance;
}, Object.defineProperties(VNode.prototype, prototypeAccessors);
var createEmptyVNode = function(text) {
void 0 === text && (text = '');
var node = new VNode();
return node.text = text, node.isComment = !0, node;
};
function createTextVNode(val) {
return new VNode(void 0, void 0, void 0, String(val));
}
function cloneVNode(vnode) {
var cloned = new VNode(vnode.tag, vnode.data, vnode.children && vnode.children.slice(), vnode.text, vnode.elm, vnode.context, vnode.componentOptions, vnode.asyncFactory);
return cloned.ns = vnode.ns, cloned.isStatic = vnode.isStatic, cloned.key = vnode.key, cloned.isComment = vnode.isComment, cloned.fnContext = vnode.fnContext, cloned.fnOptions = vnode.fnOptions, cloned.fnScopeId = vnode.fnScopeId, cloned.asyncMeta = vnode.asyncMeta, cloned.isCloned = !0, cloned;
}
var arrayProto = Array.prototype, arrayMethods = Object.create(arrayProto);
[
'push',
'pop',
'shift',
'unshift',
'splice',
'sort',
'reverse'
].forEach(function(method) {
var original = arrayProto[method];
def(arrayMethods, method, function() {
for(var inserted, args = [], len = arguments.length; len--;)args[len] = arguments[len];
var result = original.apply(this, args), ob = this.__ob__;
switch(method){
case 'push':
case 'unshift':
inserted = args;
break;
case 'splice':
inserted = args.slice(2);
}
return inserted && ob.observeArray(inserted), ob.dep.notify(), result;
});
});
var arrayKeys = Object.getOwnPropertyNames(arrayMethods), shouldObserve = !0, Observer = function(value) {
this.value = value, this.dep = new Dep(), this.vmCount = 0, def(value, '__ob__', this), Array.isArray(value) ? (hasProto ? value.__proto__ = arrayMethods : function(target, src, keys) {
for(var i = 0, l = keys.length; i < l; i++){
var key = keys[i];
def(target, key, src[key]);
}
}(value, arrayMethods, arrayKeys), this.observeArray(value)) : this.walk(value);
};
function observe(value, asRootData) {
var ob;
if (isObject(value) && !(value instanceof VNode)) return hasOwn(value, '__ob__') && value.__ob__ instanceof Observer ? ob = value.__ob__ : shouldObserve && !isServerRendering() && (Array.isArray(value) || isPlainObject(value)) && Object.isExtensible(value) && !value._isVue && (ob = new Observer(value)), asRootData && ob && ob.vmCount++, ob;
}
function defineReactive$$1(obj, key, val, customSetter, shallow) {
var dep = new Dep(), property = Object.getOwnPropertyDescriptor(obj, key);
if (!property || !1 !== property.configurable) {
var getter = property && property.get, setter = property && property.set;
(!getter || setter) && 2 == arguments.length && (val = obj[key]);
var childOb = !shallow && observe(val);
Object.defineProperty(obj, key, {
enumerable: !0,
configurable: !0,
get: function() {
var value = getter ? getter.call(obj) : val;
return Dep.target && (dep.depend(), childOb && (childOb.dep.depend(), Array.isArray(value) && function dependArray(value) {
for(var e = void 0, i = 0, l = value.length; i < l; i++)(e = value[i]) && e.__ob__ && e.__ob__.dep.depend(), Array.isArray(e) && dependArray(e);
}(value))), value;
},
set: function(newVal) {
var value = getter ? getter.call(obj) : val;
newVal !== value && (newVal == newVal || value == value) && (customSetter && customSetter(), (!getter || setter) && (setter ? setter.call(obj, newVal) : val = newVal, childOb = !shallow && observe(newVal), dep.notify()));
}
});
}
}
function set(target, key, val) {
if ((isUndef(target) || isPrimitive(target)) && warn("Cannot set reactive property on undefined, null, or primitive value: " + target), Array.isArray(target) && isValidArrayIndex(key)) return target.length = Math.max(target.length, key), target.splice(key, 1, val), val;
if (key in target && !(key in Object.prototype)) return target[key] = val, val;
var ob = target.__ob__;
return target._isVue || ob && ob.vmCount ? (warn("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."), val) : ob ? (defineReactive$$1(ob.value, key, val), ob.dep.notify(), val) : (target[key] = val, val);
}
function del(target, key) {
if ((isUndef(target) || isPrimitive(target)) && warn("Cannot delete reactive property on undefined, null, or primitive value: " + target), Array.isArray(target) && isValidArrayIndex(key)) {
target.splice(key, 1);
return;
}
var ob = target.__ob__;
if (target._isVue || ob && ob.vmCount) {
warn("Avoid deleting properties on a Vue instance or its root $data - just set it to null.");
return;
}
hasOwn(target, key) && (delete target[key], ob && ob.dep.notify());
}
Observer.prototype.walk = function(obj) {
for(var keys = Object.keys(obj), i = 0; i < keys.length; i++)defineReactive$$1(obj, keys[i]);
}, Observer.prototype.observeArray = function(items) {
for(var i = 0, l = items.length; i < l; i++)observe(items[i]);
};
var strats = config.optionMergeStrategies;
function mergeData(to, from) {
if (!from) return to;
for(var key, toVal, fromVal, keys = hasSymbol ? Reflect.ownKeys(from) : Object.keys(from), i = 0; i < keys.length; i++)'__ob__' !== (key = keys[i]) && (toVal = to[key], fromVal = from[key], hasOwn(to, key) ? toVal !== fromVal && isPlainObject(toVal) && isPlainObject(fromVal) && mergeData(toVal, fromVal) : set(to, key, fromVal));
return to;
}
function mergeDataOrFn(parentVal, childVal, vm) {
return vm ? function() {
var instanceData = 'function' == typeof childVal ? childVal.call(vm, vm) : childVal, defaultData = 'function' == typeof parentVal ? parentVal.call(vm, vm) : parentVal;
return instanceData ? mergeData(instanceData, defaultData) : defaultData;
} : childVal ? parentVal ? function() {
return mergeData('function' == typeof childVal ? childVal.call(this, this) : childVal, 'function' == typeof parentVal ? parentVal.call(this, this) : parentVal);
} : childVal : parentVal;
}
function mergeHook(parentVal, childVal) {
var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [
childVal
] : parentVal;
return res ? function(hooks) {
for(var res = [], i = 0; i < hooks.length; i++)-1 === res.indexOf(hooks[i]) && res.push(hooks[i]);
return res;
}(res) : res;
}
function mergeAssets(parentVal, childVal, vm, key) {
var res = Object.create(parentVal || null);
return childVal ? (assertObjectType(key, childVal, vm), extend(res, childVal)) : res;
}
strats.el = strats.propsData = function(parent, child, vm, key) {
return vm || warn("option \"" + key + '" can only be used during instance creation with the `new` keyword.'), defaultStrat(parent, child);
}, strats.data = function(parentVal, childVal, vm) {
return vm ? mergeDataOrFn(parentVal, childVal, vm) : childVal && 'function' != typeof childVal ? (warn('The "data" option should be a function that returns a per-instance value in component definitions.', vm), parentVal) : mergeDataOrFn(parentVal, childVal);
}, LIFECYCLE_HOOKS.forEach(function(hook) {
strats[hook] = mergeHook;
}), ASSET_TYPES.forEach(function(type) {
strats[type + 's'] = mergeAssets;
}), strats.watch = function(parentVal, childVal, vm, key) {
if (parentVal === nativeWatch && (parentVal = void 0), childVal === nativeWatch && (childVal = void 0), !childVal) return Object.create(parentVal || null);
if (assertObjectType(key, childVal, vm), !parentVal) return childVal;
var ret = {};
for(var key$1 in extend(ret, parentVal), childVal){
var parent = ret[key$1], child = childVal[key$1];
parent && !Array.isArray(parent) && (parent = [
parent
]), ret[key$1] = parent ? parent.concat(child) : Array.isArray(child) ? child : [
child
];
}
return ret;
}, strats.props = strats.methods = strats.inject = strats.computed = function(parentVal, childVal, vm, key) {
if (childVal && assertObjectType(key, childVal, vm), !parentVal) return childVal;
var ret = Object.create(null);
return extend(ret, parentVal), childVal && extend(ret, childVal), ret;
}, strats.provide = mergeDataOrFn;
var defaultStrat = function(parentVal, childVal) {
return void 0 === childVal ? parentVal : childVal;
};
function validateComponentName(name) {
RegExp("^[a-zA-Z][\\-\\.0-9_" + unicodeRegExp.source + "]*$").test(name) || warn('Invalid component name: "' + name + '". Component names should conform to valid custom element name in html5 specification.'), (isBuiltInTag(name) || config.isReservedTag(name)) && warn("Do not use built-in or reserved HTML elements as component id: " + name);
}
function assertObjectType(name, value, vm) {
isPlainObject(value) || warn("Invalid value for option \"" + name + '": expected an Object, but got ' + toRawType(value) + ".", vm);
}
function mergeOptions(parent, child, vm) {
if (!function(options) {
for(var key in options.components)validateComponentName(key);
}(child), 'function' == typeof child && (child = child.options), !function(options, vm) {
var i, val, props = options.props;
if (props) {
var res = {};
if (Array.isArray(props)) for(i = props.length; i--;)'string' == typeof (val = props[i]) ? res[camelize(val)] = {
type: null
} : warn('props must be strings when using array syntax.');
else if (isPlainObject(props)) for(var key in props)val = props[key], res[camelize(key)] = isPlainObject(val) ? val : {
type: val
};
else warn('Invalid value for option "props": expected an Array or an Object, but got ' + toRawType(props) + ".", vm);
options.props = res;
}
}(child, vm), !function(options, vm) {
var inject = options.inject;
if (inject) {
var normalized = options.inject = {};
if (Array.isArray(inject)) for(var i = 0; i < inject.length; i++)normalized[inject[i]] = {
from: inject[i]
};
else if (isPlainObject(inject)) for(var key in inject){
var val = inject[key];
normalized[key] = isPlainObject(val) ? extend({
from: key
}, val) : {
from: val
};
}
else warn('Invalid value for option "inject": expected an Array or an Object, but got ' + toRawType(inject) + ".", vm);
}
}(child, vm), !function(options) {
var dirs = options.directives;
if (dirs) for(var key in dirs){
var def$$1 = dirs[key];
'function' == typeof def$$1 && (dirs[key] = {
bind: def$$1,
update: def$$1
});
}
}(child), !child._base && (child.extends && (parent = mergeOptions(parent, child.extends, vm)), child.mixins)) for(var key, i = 0, l = child.mixins.length; i < l; i++)parent = mergeOptions(parent, child.mixins[i], vm);
var options = {};
for(key in parent)mergeField(key);
for(key in child)hasOwn(parent, key) || mergeField(key);
function mergeField(key) {
var strat = strats[key] || defaultStrat;
options[key] = strat(parent[key], child[key], vm, key);
}
return options;
}
function resolveAsset(options, type, id, warnMissing) {
if ('string' == typeof id) {
var assets = options[type];
if (hasOwn(assets, id)) return assets[id];
var camelizedId = camelize(id);
if (hasOwn(assets, camelizedId)) return assets[camelizedId];
var PascalCaseId = capitalize(camelizedId);
if (hasOwn(assets, PascalCaseId)) return assets[PascalCaseId];
var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
return warnMissing && !res && warn('Failed to resolve ' + type.slice(0, -1) + ': ' + id, options), res;
}
}
function validateProp(key, propOptions, propsData, vm) {
var prop = propOptions[key], absent = !hasOwn(propsData, key), value = propsData[key], booleanIndex = getTypeIndex(Boolean, prop.type);
if (booleanIndex > -1) {
if (absent && !hasOwn(prop, 'default')) value = !1;
else if ('' === value || value === hyphenate(key)) {
var stringIndex = getTypeIndex(String, prop.type);
(stringIndex < 0 || booleanIndex < stringIndex) && (value = !0);
}
}
if (void 0 === value) {
value = function(vm, prop, key) {
if (hasOwn(prop, 'default')) {
var def = prop.default;
return (isObject(def) && warn('Invalid default value for prop "' + key + '": Props with type Object/Array must use a factory function to return the default value.', vm), vm && vm.$options.propsData && void 0 === vm.$options.propsData[key] && void 0 !== vm._props[key]) ? vm._props[key] : 'function' == typeof def && 'Function' !== getType(prop.type) ? def.call(vm) : def;
}
}(vm, prop, key);
var prevShouldObserve = shouldObserve;
shouldObserve = !0, observe(value), shouldObserve = prevShouldObserve;
}
return function(prop, name, value, vm, absent) {
if (prop.required && absent) {
warn('Missing required prop: "' + name + '"', vm);
return;
}
if (null != value || prop.required) {
var message, expectedType, receivedType, expectedValue, receivedValue, type = prop.type, valid = !type || !0 === type, expectedTypes = [];
if (type) {
Array.isArray(type) || (type = [
type
]);
for(var i = 0; i < type.length && !valid; i++){
var assertedType = function(value, type) {
var valid, expectedType = getType(type);
if (simpleCheckRE.test(expectedType)) {
var t = typeof value;
(valid = t === expectedType.toLowerCase()) || 'object' !== t || (valid = value instanceof type);
} else valid = 'Object' === expectedType ? isPlainObject(value) : 'Array' === expectedType ? Array.isArray(value) : value instanceof type;
return {
valid: valid,
expectedType: expectedType
};
}(value, type[i]);
expectedTypes.push(assertedType.expectedType || ''), valid = assertedType.valid;
}
}
if (!valid) {
warn((message = "Invalid prop: type check failed for prop \"" + name + '". Expected ' + expectedTypes.map(capitalize).join(', '), expectedType = expectedTypes[0], receivedType = toRawType(value), expectedValue = styleValue(value, expectedType), receivedValue = styleValue(value, receivedType), 1 === expectedTypes.length && isExplicable(expectedType) && !function() {
for(var args = [], len = arguments.length; len--;)args[len] = arguments[len];
return args.some(function(elem) {
return 'boolean' === elem.toLowerCase();
});
}(expectedType, receivedType) && (message += " with value " + expectedValue), message += ", got " + receivedType + " ", isExplicable(receivedType) && (message += "with value " + receivedValue + "."), message), vm);
return;
}
var validator = prop.validator;
validator && !validator(value) && warn('Invalid prop: custom validator check failed for prop "' + name + '".', vm);
}
}(prop, key, value, vm, absent), value;
}
var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
function getType(fn) {
var match = fn && fn.toString().match(/^\s*function (\w+)/);
return match ? match[1] : '';
}
function getTypeIndex(type, expectedTypes) {
if (!Array.isArray(expectedTypes)) return getType(expectedTypes) === getType(type) ? 0 : -1;
for(var i = 0, len = expectedTypes.length; i < len; i++)if (getType(expectedTypes[i]) === getType(type)) return i;
return -1;
}
function styleValue(value, type) {
return 'String' === type ? "\"" + value + "\"" : 'Number' === type ? "" + Number(value) : "" + value;
}
function isExplicable(value) {
return [
'string',
'number',
'boolean'
].some(function(elem) {
return value.toLowerCase() === elem;
});
}
function handleError(err, vm, info) {
pushTarget();
try {
if (vm) for(var cur = vm; cur = cur.$parent;){
var hooks = cur.$options.errorCaptured;
if (hooks) for(var i = 0; i < hooks.length; i++)try {
if (!1 === hooks[i].call(cur, err, vm, info)) return;
} catch (e) {
globalHandleError(e, cur, 'errorCaptured hook');
}
}
globalHandleError(err, vm, info);
} finally{
popTarget();
}
}
function invokeWithErrorHandling(handler, context, args, vm, info) {
var res;
try {
(res = args ? handler.apply(context, args) : handler.call(context)) && !res._isVue && isPromise(res) && !res._handled && (res.catch(function(e) {
return handleError(e, vm, info + " (Promise/async)");
}), res._handled = !0);
} catch (e) {
handleError(e, vm, info);
}
return res;
}
function globalHandleError(err, vm, info) {
if (config.errorHandler) try {
return config.errorHandler.call(null, err, vm, info);
} catch (e) {
e !== err && logError(e, null, 'config.errorHandler');
}
logError(err, vm, info);
}
function logError(err, vm, info) {
if (warn("Error in " + info + ": \"" + err.toString() + "\"", vm), (inBrowser || inWeex) && 'undefined' != typeof console) console.error(err);
else throw err;
}
var isUsingMicroTask = !1, callbacks = [], pending = !1;
function flushCallbacks() {
pending = !1;
var copies = callbacks.slice(0);
callbacks.length = 0;
for(var i = 0; i < copies.length; i++)copies[i]();
}
if ('undefined' != typeof Promise && isNative(Promise)) {
var p = Promise.resolve();
timerFunc = function() {
p.then(flushCallbacks), isIOS && setTimeout(noop);
}, isUsingMicroTask = !0;
} else if (!isIE && 'undefined' != typeof MutationObserver && (isNative(MutationObserver) || '[object MutationObserverConstructor]' === MutationObserver.toString())) {
var counter = 1, observer = new MutationObserver(flushCallbacks), textNode = document.createTextNode(String(counter));
observer.observe(textNode, {
characterData: !0
}), timerFunc = function() {
counter = (counter + 1) % 2, textNode.data = String(counter);
}, isUsingMicroTask = !0;
} else timerFunc = 'undefined' != typeof setImmediate && isNative(setImmediate) ? function() {
setImmediate(flushCallbacks);
} : function() {
setTimeout(flushCallbacks, 0);
};
function nextTick(cb, ctx) {
var _resolve;
if (callbacks.push(function() {
if (cb) try {
cb.call(ctx);
} catch (e) {
handleError(e, ctx, 'nextTick');
}
else _resolve && _resolve(ctx);
}), pending || (pending = !0, timerFunc()), !cb && 'undefined' != typeof Promise) return new Promise(function(resolve) {
_resolve = resolve;
});
}
var perf = inBrowser && window.performance;
perf && perf.mark && perf.measure && perf.clearMarks && perf.clearMeasures && (mark = function(tag) {
return perf.mark(tag);
}, measure = function(name, startTag, endTag) {
perf.measure(name, startTag, endTag), perf.clearMarks(startTag), perf.clearMarks(endTag);
});
var allowedGlobals = makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"), warnNonPresent = function(target, key) {
warn("Property or method \"" + key + '" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.', target);
}, warnReservedPrefix = function(target, key) {
warn("Property \"" + key + "\" must be accessed with \"$data." + key + '" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://vuejs.org/v2/api/#data', target);
}, hasProxy = 'undefined' != typeof Proxy && isNative(Proxy);
if (hasProxy) {
var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
config.keyCodes = new Proxy(config.keyCodes, {
set: function(target, key, value) {
return isBuiltInModifier(key) ? (warn("Avoid overwriting built-in modifier in config.keyCodes: ." + key), !1) : (target[key] = value, !0);
}
});
}
var hasHandler = {
has: function(target, key) {
var has = key in target, isAllowed = allowedGlobals(key) || 'string' == typeof key && '_' === key.charAt(0) && !(key in target.$data);
return has || isAllowed || (key in target.$data ? warnReservedPrefix(target, key) : warnNonPresent(target, key)), has || !isAllowed;
}
}, getHandler = {
get: function(target, key) {
return 'string' != typeof key || key in target || (key in target.$data ? warnReservedPrefix(target, key) : warnNonPresent(target, key)), target[key];
}
};
initProxy = function(vm) {
if (hasProxy) {
var options = vm.$options, handlers = options.render && options.render._withStripped ? getHandler : hasHandler;
vm._renderProxy = new Proxy(vm, handlers);
} else vm._renderProxy = vm;
};
var seenObjects = new _Set();
function traverse(val) {
(function _traverse(val, seen) {
var i, keys, isA = Array.isArray(val);
if (!(!isA && !isObject(val) || Object.isFrozen(val)) && !(val instanceof VNode)) {
if (val.__ob__) {
var depId = val.__ob__.dep.id;
if (seen.has(depId)) return;
seen.add(depId);
}
if (isA) for(i = val.length; i--;)_traverse(val[i], seen);
else for(i = (keys = Object.keys(val)).length; i--;)_traverse(val[keys[i]], seen);
}
})(val, seenObjects), seenObjects.clear();
}
var normalizeEvent = cached(function(name) {
var passive = '&' === name.charAt(0), once$$1 = '~' === (name = passive ? name.slice(1) : name).charAt(0), capture = '!' === (name = once$$1 ? name.slice(1) : name).charAt(0);
return {
name: name = capture ? name.slice(1) : name,
once: once$$1,
capture: capture,
passive: passive
};
});
function createFnInvoker(fns, vm) {
function invoker() {
var arguments$1 = arguments, fns = invoker.fns;
if (!Array.isArray(fns)) return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler");
for(var cloned = fns.slice(), i = 0; i < cloned.length; i++)invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
}
return invoker.fns = fns, invoker;
}
function updateListeners(on, oldOn, add, remove$$1, createOnceHandler, vm) {
var name, cur, old, event;
for(name in on)cur = on[name], old = oldOn[name], event = normalizeEvent(name), isUndef(cur) ? warn("Invalid handler for event \"" + event.name + "\": got " + String(cur), vm) : isUndef(old) ? (isUndef(cur.fns) && (cur = on[name] = createFnInvoker(cur, vm)), isTrue(event.once) && (cur = on[name] = createOnceHandler(event.name, cur, event.capture)), add(event.name, cur, event.capture, event.passive, event.params)) : cur !== old && (old.fns = cur, on[name] = old);
for(name in oldOn)isUndef(on[name]) && remove$$1((event = normalizeEvent(name)).name, oldOn[name], event.capture);
}
function mergeVNodeHook(def, hookKey, hook) {
def instanceof VNode && (def = def.data.hook || (def.data.hook = {}));
var invoker, oldHook = def[hookKey];
function wrappedHook() {
hook.apply(this, arguments), remove(invoker.fns, wrappedHook);
}
isUndef(oldHook) ? invoker = createFnInvoker([
wrappedHook
]) : isDef(oldHook.fns) && isTrue(oldHook.merged) ? (invoker = oldHook).fns.push(wrappedHook) : invoker = createFnInvoker([
oldHook,
wrappedHook
]), invoker.merged = !0, def[hookKey] = invoker;
}
function checkProp(res, hash, key, altKey, preserve) {
if (isDef(hash)) {
if (hasOwn(hash, key)) return res[key] = hash[key], preserve || delete hash[key], !0;
if (hasOwn(hash, altKey)) return res[key] = hash[altKey], preserve || delete hash[altKey], !0;
}
return !1;
}
function normalizeChildren(children) {
return isPrimitive(children) ? [
createTextVNode(children)
] : Array.isArray(children) ? function normalizeArrayChildren(children, nestedIndex) {
var i, c, lastIndex, last, res = [];
for(i = 0; i < children.length; i++)!isUndef(c = children[i]) && 'boolean' != typeof c && (lastIndex = res.length - 1, last = res[lastIndex], Array.isArray(c) ? c.length > 0 && (isTextNode((c = normalizeArrayChildren(c, (nestedIndex || '') + "_" + i))[0]) && isTextNode(last) && (res[lastIndex] = createTextVNode(last.text + c[0].text), c.shift()), res.push.apply(res, c)) : isPrimitive(c) ? isTextNode(last) ? res[lastIndex] = createTextVNode(last.text + c) : '' !== c && res.push(createTextVNode(c)) : isTextNode(c) && isTextNode(last) ? res[lastIndex] = createTextVNode(last.text + c.text) : (isTrue(children._isVList) && isDef(c.tag) && isUndef(c.key) && isDef(nestedIndex) && (c.key = "__vlist" + nestedIndex + "_" + i + "__"), res.push(c)));
return res;
}(children) : void 0;
}
function isTextNode(node) {
return isDef(node) && isDef(node.text) && !1 === node.isComment;
}
function resolveInject(inject, vm) {
if (inject) {
for(var result = Object.create(null), keys = hasSymbol ? Reflect.ownKeys(inject) : Object.keys(inject), i = 0; i < keys.length; i++){
var key = keys[i];
if ('__ob__' !== key) {
for(var provideKey = inject[key].from, source = vm; source;){
if (source._provided && hasOwn(source._provided, provideKey)) {
result[key] = source._provided[provideKey];
break;
}
source = source.$parent;
}
if (!source) {
if ('default' in inject[key]) {
var provideDefault = inject[key].default;
result[key] = 'function' == typeof provideDefault ? provideDefault.call(vm) : provideDefault;
} else warn("Injection \"" + key + "\" not found", vm);
}
}
}
return result;
}
}
function resolveSlots(children, context) {
if (!children || !children.length) return {};
for(var slots = {}, i = 0, l = children.length; i < l; i++){
var child = children[i], data = child.data;
if (data && data.attrs && data.attrs.slot && delete data.attrs.slot, (child.context === context || child.fnContext === context) && data && null != data.slot) {
var name = data.slot, slot = slots[name] || (slots[name] = []);
'template' === child.tag ? slot.push.apply(slot, child.children || []) : slot.push(child);
} else (slots.default || (slots.default = [])).push(child);
}
for(var name$1 in slots)slots[name$1].every(isWhitespace) && delete slots[name$1];
return slots;
}
function isWhitespace(node) {
return node.isComment && !node.asyncFactory || ' ' === node.text;
}
function normalizeScopedSlots(slots, normalSlots, prevSlots) {
var res, hasNormalSlots = Object.keys(normalSlots).length > 0, isStable = slots ? !!slots.$stable : !hasNormalSlots, key = slots && slots.$key;
if (slots) {
if (slots._normalized) return slots._normalized;
if (isStable && prevSlots && prevSlots !== emptyObject && key === prevSlots.$key && !hasNormalSlots && !prevSlots.$hasNormal) return prevSlots;
for(var key$1 in res = {}, slots)slots[key$1] && '$' !== key$1[0] && (res[key$1] = function(normalSlots, key, fn) {
var normalized = function() {
var res = arguments.length ? fn.apply(null, arguments) : fn({});
return (res = res && 'object' == typeof res && !Array.isArray(res) ? [
res
] : normalizeChildren(res)) && (0 === res.length || 1 === res.length && res[0].isComment) ? void 0 : res;
};
return fn.proxy && Object.defineProperty(normalSlots, key, {
get: normalized,
enumerable: !0,
configurable: !0
}), normalized;
}(normalSlots, key$1, slots[key$1]));
} else res = {};
for(var key$2 in normalSlots)key$2 in res || (res[key$2] = function(slots, key) {
return function() {
return slots[key];
};
}(normalSlots, key$2));
return slots && Object.isExtensible(slots) && (slots._normalized = res), def(res, '$stable', isStable), def(res, '$key', key), def(res, '$hasNormal', hasNormalSlots), res;
}
function renderList(val, render) {
var ret, i, l, keys, key;
if (Array.isArray(val) || 'string' == typeof val) for(i = 0, ret = Array(val.length), l = val.length; i < l; i++)ret[i] = render(val[i], i);
else if ('number' == typeof val) for(i = 0, ret = Array(val); i < val; i++)ret[i] = render(i + 1, i);
else if (isObject(val)) {
if (hasSymbol && val[Symbol.iterator]) {
ret = [];
for(var iterator = val[Symbol.iterator](), result = iterator.next(); !result.done;)ret.push(render(result.value, ret.length)), result = iterator.next();
} else for(i = 0, ret = Array((keys = Object.keys(val)).length), l = keys.length; i < l; i++)key = keys[i], ret[i] = render(val[key], key, i);
}
return isDef(ret) || (ret = []), ret._isVList = !0, ret;
}
function renderSlot(name, fallback, props, bindObject) {
var nodes, scopedSlotFn = this.$scopedSlots[name];
scopedSlotFn ? (props = props || {}, bindObject && (isObject(bindObject) || warn('slot v-bind without argument expects an Object', this), props = extend(extend({}, bindObject), props)), nodes = scopedSlotFn(props) || fallback) : nodes = this.$slots[name] || fallback;
var target = props && props.slot;
return target ? this.$createElement('template', {
slot: target
}, nodes) : nodes;
}
function resolveFilter(id) {
return resolveAsset(this.$options, 'filters', id, !0) || identity;
}
function isKeyNotMatch(expect, actual) {
return Array.isArray(expect) ? -1 === expect.indexOf(actual) : expect !== actual;
}
function checkKeyCodes(eventKeyCode, key, builtInKeyCode, eventKeyName, builtInKeyName) {
var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
return builtInKeyName && eventKeyName && !config.keyCodes[key] ? isKeyNotMatch(builtInKeyName, eventKeyName) : mappedKeyCode ? isKeyNotMatch(mappedKeyCode, eventKeyCode) : eventKeyName ? hyphenate(eventKeyName) !== key : void 0;
}
function bindObjectProps(data, tag, value, asProp, isSync) {
if (value) {
if (isObject(value)) {
Array.isArray(value) && (value = toObject(value));
var hash, loop = function(key) {
if ('class' === key || 'style' === key || isReservedAttribute(key)) hash = data;
else {
var type = data.attrs && data.attrs.type;
hash = asProp || config.mustUseProp(tag, type, key) ? data.domProps || (data.domProps = {}) : data.attrs || (data.attrs = {});
}
var camelizedKey = camelize(key), hyphenatedKey = hyphenate(key);
camelizedKey in hash || hyphenatedKey in hash || (hash[key] = value[key], isSync && ((data.on || (data.on = {}))["update:" + key] = function($event) {
value[key] = $event;
}));
};
for(var key in value)loop(key);
} else warn('v-bind without argument expects an Object or Array value', this);
}
return data;
}
function renderStatic(index, isInFor) {
var cached = this._staticTrees || (this._staticTrees = []), tree = cached[index];
return tree && !isInFor || markStatic(tree = cached[index] = this.$options.staticRenderFns[index].call(this._renderProxy, null, this), "__static__" + index, !1), tree;
}
function markOnce(tree, index, key) {
return markStatic(tree, "__once__" + index + (key ? "_" + key : ""), !0), tree;
}
function markStatic(tree, key, isOnce) {
if (Array.isArray(tree)) for(var i = 0; i < tree.length; i++)tree[i] && 'string' != typeof tree[i] && markStaticNode(tree[i], key + "_" + i, isOnce);
else markStaticNode(tree, key, isOnce);
}
function markStaticNode(node, key, isOnce) {
node.isStatic = !0, node.key = key, node.isOnce = isOnce;
}
function bindObjectListeners(data, value) {
if (value) {
if (isPlainObject(value)) {
var on = data.on = data.on ? extend({}, data.on) : {};
for(var key in value){
var existing = on[key], ours = value[key];
on[key] = existing ? [].concat(existing, ours) : ours;
}
} else warn('v-on without argument expects an Object value', this);
}
return data;
}
function bindDynamicKeys(baseObj, values) {
for(var i = 0; i < values.length; i += 2){
var key = values[i];
'string' == typeof key && key ? baseObj[values[i]] = values[i + 1] : '' !== key && null !== key && warn("Invalid value for dynamic directive argument (expected string or null): " + key, this);
}
return baseObj;
}
function prependModifier(value, symbol) {
return 'string' == typeof value ? symbol + value : value;
}
function installRenderHelpers(target) {
target._o = markOnce, target._n = toNumber, target._s = toString, target._l = renderList, target._t = renderSlot, target._q = looseEqual, target._i = looseIndexOf, target._m = renderStatic, target._f = resolveFilter, target._k = checkKeyCodes, target._b = bindObjectProps, target._v = createTextVNode, target._e = createEmptyVNode, target._u = function resolveScopedSlots(fns, res, hasDynamicKeys, contentHashKey) {
res = res || {
$stable: !hasDynamicKeys
};
for(var i = 0; i < fns.length; i++){
var slot = fns[i];
Array.isArray(slot) ? resolveScopedSlots(slot, res, hasDynamicKeys) : slot && (slot.proxy && (slot.fn.proxy = !0), res[slot.key] = slot.fn);
}
return contentHashKey && (res.$key = contentHashKey), res;
}, target._g = bindObjectListeners, target._d = bindDynamicKeys, target._p = prependModifier;
}
function FunctionalRenderContext(data, props, children, parent, Ctor) {
var contextVm, this$1 = this, options = Ctor.options;
hasOwn(parent, '_uid') ? (contextVm = Object.create(parent))._original = parent : (contextVm = parent, parent = parent._original);
var isCompiled = isTrue(options._compiled), needNormalization = !isCompiled;
this.data = data, this.props = props, this.children = children, this.parent = parent, this.listeners = data.on || emptyObject, this.injections = resolveInject(options.inject, parent), this.slots = function() {
return this$1.$slots || normalizeScopedSlots(data.scopedSlots, this$1.$slots = resolveSlots(children, parent)), this$1.$slots;
}, Object.defineProperty(this, 'scopedSlots', {
enumerable: !0,
get: function() {
return normalizeScopedSlots(data.scopedSlots, this.slots());
}
}), isCompiled && (this.$options = options, this.$slots = this.slots(), this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots)), options._scopeId ? this._c = function(a, b, c, d) {
var vnode = createElement(contextVm, a, b, c, d, needNormalization);
return vnode && !Array.isArray(vnode) && (vnode.fnScopeId = options._scopeId, vnode.fnContext = parent), vnode;
} : this._c = function(a, b, c, d) {
return createElement(contextVm, a, b, c, d, needNormalization);
};
}
function cloneAndMarkFunctionalResult(vnode, data, contextVm, options, renderContext) {
var clone = cloneVNode(vnode);
return clone.fnContext = contextVm, clone.fnOptions = options, (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext, data.slot && ((clone.data || (clone.data = {})).slot = data.slot), clone;
}
function mergeProps(to, from) {
for(var key in from)to[camelize(key)] = from[key];
}
installRenderHelpers(FunctionalRenderContext.prototype);
var componentVNodeHooks = {
init: function(vnode, hydrating) {
var options, inlineTemplate;
vnode.componentInstance && !vnode.componentInstance._isDestroyed && vnode.data.keepAlive ? componentVNodeHooks.prepatch(vnode, vnode) : (vnode.componentInstance = (options = {
_isComponent: !0,
_parentVnode: vnode,
parent: activeInstance
}, isDef(inlineTemplate = vnode.data.inlineTemplate) && (options.render = inlineTemplate.render, options.staticRenderFns = inlineTemplate.staticRenderFns), new vnode.componentOptions.Ctor(options))).$mount(hydrating ? vnode.elm : void 0, hydrating);
},
prepatch: function(oldVnode, vnode) {
var options = vnode.componentOptions;
!function(vm, propsData, listeners, parentVnode, renderChildren) {
isUpdatingChildComponent = !0;
var newScopedSlots = parentVnode.data.scopedSlots, oldScopedSlots = vm.$scopedSlots, hasDynamicScopedSlot = !!(newScopedSlots && !newScopedSlots.$stable || oldScopedSlots !== emptyObject && !oldScopedSlots.$stable || newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key), needsForceUpdate = !!(renderChildren || vm.$options._renderChildren || hasDynamicScopedSlot);
if (vm.$options._parentVnode = parentVnode, vm.$vnode = parentVnode, vm._vnode && (vm._vnode.parent = parentVnode), vm.$options._renderChildren = renderChildren, vm.$attrs = parentVnode.data.attrs || emptyObject, vm.$listeners = listeners || emptyObject, propsData && vm.$options.props) {
shouldObserve = !1;
for(var props = vm._props, propKeys = vm.$options._propKeys || [], i = 0; i < propKeys.length; i++){
var key = propKeys[i], propOptions = vm.$options.props;
props[key] = validateProp(key, propOptions, propsData, vm);
}
shouldObserve = !0, vm.$options.propsData = propsData;
}
listeners = listeners || emptyObject;
var oldListeners = vm.$options._parentListeners;
vm.$options._parentListeners = listeners, updateComponentListeners(vm, listeners, oldListeners), needsForceUpdate && (vm.$slots = resolveSlots(renderChildren, parentVnode.context), vm.$forceUpdate()), isUpdatingChildComponent = !1;
}(vnode.componentInstance = oldVnode.componentInstance, options.propsData, options.listeners, vnode, options.children);
},
insert: function(vnode) {
var context = vnode.context, componentInstance = vnode.componentInstance;
componentInstance._isMounted || (componentInstance._isMounted = !0, callHook(componentInstance, 'mounted')), vnode.data.keepAlive && (context._isMounted ? (componentInstance._inactive = !1, activatedChildren.push(componentInstance)) : activateChildComponent(componentInstance, !0));
},
destroy: function(vnode) {
var componentInstance = vnode.componentInstance;
componentInstance._isDestroyed || (vnode.data.keepAlive ? function deactivateChildComponent(vm, direct) {
if (!(direct && (vm._directInactive = !0, isInInactiveTree(vm))) && !vm._inactive) {
vm._inactive = !0;
for(var i = 0; i < vm.$children.length; i++)deactivateChildComponent(vm.$children[i]);
callHook(vm, 'deactivated');
}
}(componentInstance, !0) : componentInstance.$destroy());
}
}, hooksToMerge = Object.keys(componentVNodeHooks);