diff --git a/common/getJson.js b/common/getJson.js new file mode 100644 index 0000000..f09f676 --- /dev/null +++ b/common/getJson.js @@ -0,0 +1,1109 @@ +// Generated by Haxe 4.0.0+ef18b627e +var serve = {}; +(function ($hx_exports, $global) { + "use strict"; + $hx_exports["jiaoyisuo"] = $hx_exports["jiaoyisuo"] || {}; + class HxOverrides { + static iter(a) { + return { + cur: 0, + arr: a, + hasNext: function () { + return this.cur < this.arr.length; + }, + next: function () { + return this.arr[this.cur++]; + } + }; + } + } + HxOverrides.__name__ = true; + class MainBoCai { + constructor() {} + static main2() {} + static main() { + // MainBoCai.genJson(100); + } + static genJson(total) { + var data = jiaoyisuo_JYSHelper.makeTestData(total); + var tree = jiaoyisuo_JYSHelper.makeTree(data, 0); + var json = jiaoyisuo_JYSHelper.makeJson(tree, data); + console.log("src/MainBoCai.hx:39:", json); + return json; + } + } + $hx_exports["MainBoCai"] = MainBoCai; + MainBoCai.__name__ = true; + Object.assign(MainBoCai.prototype, { + __class__: MainBoCai + }); + Math.__name__ = true; + class Std { + static string(s) { + return js_Boot.__string_rec(s, ""); + } + } + Std.__name__ = true; + class _$UInt_UInt_$Impl_$ { + static toFloat(this1) { + var int = this1; + if (int < 0) { + return 4294967296.0 + int; + } else { + return int + 0.0; + } + } + } + _$UInt_UInt_$Impl_$.__name__ = true; + class haxe_IMap {} + haxe_IMap.__name__ = true; + haxe_IMap.__isInterface__ = true; + class haxe_ds_IntMap { + constructor() { + this.h = {}; + } + keys() { + var a = []; + for (var key in this.h) this.h.hasOwnProperty(key) ? a.push(key | 0) : null; + return HxOverrides.iter(a); + } + iterator() { + return { + ref: this.h, + it: this.keys(), + hasNext: function () { + return this.it.hasNext(); + }, + next: function () { + var i = this.it.next(); + return this.ref[i]; + } + }; + } + } + haxe_ds_IntMap.__name__ = true; + haxe_ds_IntMap.__interfaces__ = [haxe_IMap]; + Object.assign(haxe_ds_IntMap.prototype, { + __class__: haxe_ds_IntMap + }); + class haxe_ds_StringMap { + constructor() { + this.h = {}; + } + setReserved(key, value) { + if (this.rh == null) { + this.rh = {}; + } + this.rh["$" + key] = value; + } + getReserved(key) { + if (this.rh == null) { + return null; + } else { + return this.rh["$" + key]; + } + } + } + haxe_ds_StringMap.__name__ = true; + haxe_ds_StringMap.__interfaces__ = [haxe_IMap]; + Object.assign(haxe_ds_StringMap.prototype, { + __class__: haxe_ds_StringMap + }); + class jiaoyisuo_JYSHelper { + static makeTestData(total) { + var arr = new haxe_ds_IntMap(); + var tt = [100, 200, 500]; + var _g = []; + var _g1 = 0; + var _g2 = Math.floor(101 * Math.random()); + while (_g1 < _g2) { + var i = _g1++; + _g.push(tt[Math.floor((tt.length - 1 + 1) * Math.random())]); + } + var node = { + id: 0, + parent: -1, + chargeMoney: _g, + money: (1 + Math.floor(10 * Math.random())) * 1000, + loseMoeny: (1 + Math.floor(10 * Math.random())) * 10, + jiCha: (1 + Math.floor(3 * Math.random())) * 10 / 100, + sum: 0 + }; + arr.h[0] = node; + var index = 0; + var parentArray = []; + parentArray.push(0); + var _g3 = 1; + var _g4 = total; + while (_g3 < _g4) { + var i1 = _g3++; + var id = index + 1; + var parentID = parentArray[Math.floor((parentArray.length - 1 + 1) * Math.random())]; + parentArray.push(id); + var _g31 = []; + var _g41 = 0; + var _g5 = 1 + Math.floor(10 * Math.random()); + while (_g41 < _g5) { + var i2 = _g41++; + _g31.push(tt[Math.floor((tt.length - 1 + 1) * Math.random())]); + } + var mode = { + id: id, + parent: parentID, + chargeMoney: _g31, + money: (1 + Math.floor(10 * Math.random())) * 1000, + loseMoeny: (1 + Math.floor(10 * Math.random())) * 10, + jiCha: (1 + Math.floor(3 * Math.random())) * 10 / 100, + sum: 0 + }; + arr.h[id] = mode; + ++index; + } + return arr; + } + static makeTree(arr, id) { + if (id == null) { + id = 0; + } + console.log("src/jiaoyisuo/JYSHelper.hx:75:", "开始构建树" + Std.string(id == null ? null : _$UInt_UInt_$Impl_$.toFloat(id))); + var currentNode = arr.h[id]; + var root = arr.h[id]; + var can = new haxe_ds_IntMap(); + var e = arr.iterator(); + while (e.hasNext()) { + var e1 = e.next(); + var loop = true; + var current = e1; + if (!can.h.hasOwnProperty(current.id)) { + while (current.parent != -1 && loop) + if (current.parent == root.id) { + can.h[current.id] = current; + loop = false; + if (current.id != e1.id) { + current = e1; + while (current.parent != -1) { + if (!can.h.hasOwnProperty(current.parent)) { + if (current.parent == root.id) { + break; + } + var v = arr.h[current.parent]; + can.h[current.parent] = v; + } + current = arr.h[current.parent]; + } + } + } else { + current = arr.h[current.parent]; + } + } + } + console.log("src/jiaoyisuo/JYSHelper.hx:113:", "构建树--------------------------"); + var treeRoot = new polygonal_ds_TreeNode(id); + arr.h[id].node = treeRoot; + var rootParentID = arr.h[id].parent; + var e2 = can.iterator(); + while (e2.hasNext()) { + var e3 = e2.next(); + var node = arr.h[e3.id].node; + if (e3.id != id && node == null) { + node = new polygonal_ds_TreeNode(e3.id); + arr.h[e3.id].node = node; + } + if (e3.parent != rootParentID) { + if (arr.h.hasOwnProperty(e3.parent)) { + var parentNode = arr.h[e3.parent].node; + if (parentNode == null) { + parentNode = new polygonal_ds_TreeNode(e3.parent); + arr.h[e3.parent].node = parentNode; + } + if (parentNode.val == e3.parent) { + parentNode.appendNode(node); + } else { + if (treeRoot.find(node.val) == null) { + treeRoot.appendNode(node); + } + console.log("src/jiaoyisuo/JYSHelper.hx:142:", " fter id=" + e3.id + " parent=" + e3.parent + " node=" + node.val + " nodeparent=" + arr.h[e3.parent].node.val); + } + } else { + console.log("src/jiaoyisuo/JYSHelper.hx:145:", "fucking...沒有?" + e3.parent); + } + } + } + console.log("src/jiaoyisuo/JYSHelper.hx:150:", treeRoot.toString()); + return treeRoot; + } + static makeJson(root, arr) { + var node = arr.h[root.val]; + var jsonRoot = { + name: node.id + "", + value: node.money + "", + children: [], + collapsed: false + }; + var map = new haxe_ds_StringMap(); + var k = jsonRoot.name; + if (__map_reserved[k] != null) { + map.setReserved(k, jsonRoot); + } else { + map.h[k] = jsonRoot; + } + root.preorder(function (node1, preflight, userData) { + if (node1.parent != null) { + var mNode = arr.h[node1.val]; + var currentNode = {}; + if (node1.children != null) { + var k1 = mNode.id + ""; + var v = { + name: mNode.id + "", + value: mNode.money + "", + children: [] + }; + if (__map_reserved[k1] != null) { + map.setReserved(k1, v); + } else { + map.h[k1] = v; + } + currentNode = v; + } else { + currentNode = { + name: mNode.id + "", + value: mNode.money + "" + }; + } + var key = mNode.parent + ""; + (__map_reserved[key] != null ? map.getReserved(key) : map.h[key]).children.push(currentNode); + } + return true; + }, null, false, true); + var content = JSON.stringify(jsonRoot); + return content; + } + static caleDynamicIncomeFromChild(root, arr) { + var persents_0 = 0.05; + var persents_1 = 0.08; + var persents_2 = 0.12; + var persents_3 = 0.16; + var persents_4 = 0.2; + var scores_0 = 2; + var scores_1 = 12; + var scores_2 = 30; + var scores_3 = 60; + var scores_4 = 120; + var rootClone = root.clone(); + var childs = rootClone.childIterator(); + var nodeSumArray = []; + var e = childs; + while (e.hasNext()) { + var e1 = e.next(); + var currentNode = rootClone.find(e1); + var sum = [0]; + currentNode.preorder((function (sum1) { + return function (node, preflight, userData) { + sum1[0] += arr.h[node.val].money; + return true; + }; + })(sum), null, false, true); + nodeSumArray.push({ + node: e1, + sum: sum[0] + }); + } + nodeSumArray.sort(function (a, b) { + if (a.sum > b.sum) { + return -1; + } else { + return 1; + } + }); + console.log("src/jiaoyisuo/JYSHelper.hx:226:", "去掉极大值-----------" + nodeSumArray[0].node + "所有节点"); + if (nodeSumArray.length > 1) { + var nodeU = rootClone.find(nodeSumArray[0].node); + nodeU.unlink(); + } else { + console.log("src/jiaoyisuo/JYSHelper.hx:233:", "只有1个节点 不裁剪"); + } + var sum2 = 0; + var sum21 = 0; + rootClone.preorder(function (node1, preflight1, userData1) { + if (node1.depth() > 0) { + sum2 += arr.h[node1.val].money; + sum21 += arr.h[node1.val].staitcIncome; + } + return true; + }, null, false, true); + return arr; + } + static caleRecommandIncome(id, root, arr, maxLevel) { + if (maxLevel == null) { + maxLevel = 8; + } + var node = arr.h[id]; + var total = node.money; + var rootID = root.parent.val; + var currentNode = root.find(id); + var level = 0; + while (currentNode.parent != null) + if (level < maxLevel) { + arr.h[currentNode.parent.val].recommendMoney += total * 5 / 100 * 10 / 100; + currentNode = currentNode.parent; + } + } + static caleStaticIncome(target, win) { + if (win) { + target.staitcIncome = target.gameUSDT * (0.1 + 0.19999999999999998 * Math.random()); + } else { + target.staitcIncome = target.gameUSDT * 5 / 100; + } + } + static caleTearmIncome() {} + static getlimtIncome() {} + static getShareIncome() {} + static freezingMoney() {} + static getDividendEveryData() {} + static initData() {} + static getMNode() {} + } + $hx_exports["jiaoyisuo"]["JYSHelper"] = jiaoyisuo_JYSHelper; + jiaoyisuo_JYSHelper.__name__ = true; + class js__$Boot_HaxeError extends Error { + constructor(val) { + super(); + this.val = val; + if (Error.captureStackTrace) { + Error.captureStackTrace(this, js__$Boot_HaxeError); + } + } + } + js__$Boot_HaxeError.__name__ = true; + js__$Boot_HaxeError.__super__ = Error; + Object.assign(js__$Boot_HaxeError.prototype, { + __class__: js__$Boot_HaxeError + }); + class js_Boot { + static getClass(o) { + if (o == null) { + return null; + } else if (((o) instanceof Array)) { + return Array; + } else { + var cl = o.__class__; + if (cl != null) { + return cl; + } + var name = js_Boot.__nativeClassName(o); + if (name != null) { + return js_Boot.__resolveNativeClass(name); + } + return null; + } + } + static __string_rec(o, s) { + if (o == null) { + return "null"; + } + if (s.length >= 5) { + return "<...>"; + } + var t = typeof (o); + if (t == "function" && (o.__name__ || o.__ename__)) { + t = "object"; + } + switch (t) { + case "function": + return ""; + case "object": + if (((o) instanceof Array)) { + var str = "["; + s += "\t"; + var _g3 = 0; + var _g11 = o.length; + while (_g3 < _g11) { + var i = _g3++; + str += (i > 0 ? "," : "") + js_Boot.__string_rec(o[i], s); + } + str += "]"; + return str; + } + var tostr; + try { + tostr = o.toString; + } catch (e1) { + var e2 = ((e1) instanceof js__$Boot_HaxeError) ? e1.val : e1; + return "???"; + } + if (tostr != null && tostr != Object.toString && typeof (tostr) == "function") { + var s2 = o.toString(); + if (s2 != "[object Object]") { + return s2; + } + } + var str1 = "{\n"; + s += "\t"; + var hasp = o.hasOwnProperty != null; + var k = null; + for (k in o) { + if (hasp && !o.hasOwnProperty(k)) { + continue; + } + if (k == "prototype" || k == "__class__" || k == "__super__" || k == "__interfaces__" || k == "__properties__") { + continue; + } + if (str1.length != 2) { + str1 += ", \n"; + } + str1 += s + k + " : " + js_Boot.__string_rec(o[k], s); + } + s = s.substring(1); + str1 += "\n" + s + "}"; + return str1; + case "string": + return o; + default: + return String(o); + } + } + static __interfLoop(cc, cl) { + if (cc == null) { + return false; + } + if (cc == cl) { + return true; + } + if (Object.prototype.hasOwnProperty.call(cc, "__interfaces__")) { + var intf = cc.__interfaces__; + var _g = 0; + var _g1 = intf.length; + while (_g < _g1) { + var i = _g++; + var i1 = intf[i]; + if (i1 == cl || js_Boot.__interfLoop(i1, cl)) { + return true; + } + } + } + return js_Boot.__interfLoop(cc.__super__, cl); + } + static __instanceof(o, cl) { + if (cl == null) { + return false; + } + switch (cl) { + case Array: + return ((o) instanceof Array); + case Bool: + return typeof (o) == "boolean"; + case Dynamic: + return o != null; + case Float: + return typeof (o) == "number"; + case Int: + if (typeof (o) == "number") { + return ((o | 0) === o); + } else { + return false; + } + break; + case String: + return typeof (o) == "string"; + default: + if (o != null) { + if (typeof (cl) == "function") { + if (js_Boot.__downcastCheck(o, cl)) { + return true; + } + } else if (typeof (cl) == "object" && js_Boot.__isNativeObj(cl)) { + if (((o) instanceof cl)) { + return true; + } + } + } else { + return false; + } + if (cl == Class ? o.__name__ != null : false) { + return true; + } + if (cl == Enum ? o.__ename__ != null : false) { + return true; + } + return false; + } + } + static __downcastCheck(o, cl) { + if (!((o) instanceof cl)) { + if (cl.__isInterface__) { + return js_Boot.__interfLoop(js_Boot.getClass(o), cl); + } else { + return false; + } + } else { + return true; + } + } + static __cast(o, t) { + if (o == null || js_Boot.__instanceof(o, t)) { + return o; + } else { + throw new js__$Boot_HaxeError("Cannot cast " + Std.string(o) + " to " + Std.string(t)); + } + } + static __nativeClassName(o) { + var name = js_Boot.__toStr.call(o).slice(8, -1); + if (name == "Object" || name == "Function" || name == "Math" || name == "JSON") { + return null; + } + return name; + } + static __isNativeObj(o) { + return js_Boot.__nativeClassName(o) != null; + } + static __resolveNativeClass(name) { + return $global[name]; + } + } + js_Boot.__name__ = true; + class polygonal_ds_Hashable {} + polygonal_ds_Hashable.__name__ = true; + polygonal_ds_Hashable.__isInterface__ = true; + class polygonal_ds_Collection {} + polygonal_ds_Collection.__name__ = true; + polygonal_ds_Collection.__isInterface__ = true; + polygonal_ds_Collection.__interfaces__ = [polygonal_ds_Hashable]; + Object.assign(polygonal_ds_Collection.prototype, { + __class__: polygonal_ds_Collection + }); + class polygonal_ds_Itr {} + polygonal_ds_Itr.__name__ = true; + polygonal_ds_Itr.__isInterface__ = true; + Object.assign(polygonal_ds_Itr.prototype, { + __class__: polygonal_ds_Itr + }); + class polygonal_ds_Cloneable {} + polygonal_ds_Cloneable.__name__ = true; + polygonal_ds_Cloneable.__isInterface__ = true; + Object.assign(polygonal_ds_Cloneable.prototype, { + __class__: polygonal_ds_Cloneable + }); + class polygonal_ds_TreeNode { + constructor(val, parent) { + this.mExtraInfo = 0; + this.val = val; + this.parent = parent; + this.children = null; + this.prev = null; + this.next = null; + this.mTail = null; + this.mNextInStack = null; + this.mPrevInStack = null; + if (this.parent != null) { + parent.mExtraInfo = parent.mExtraInfo & 65535 | (parent.mExtraInfo >>> 16) + 1 << 16; + if (parent.children != null) { + var tail = parent.mTail; + tail.next = this; + this.prev = tail; + this.next = null; + } else { + parent.children = this; + } + parent.mTail = this; + } + } + depth() { + if (this.parent == null) { + return 0; + } else { + var node = this; + var c = 0; + while (node.parent != null) { + ++c; + node = node.parent; + } + return c; + } + } + height() { + var h = 0; + var node = this.children; + while (node != null) { + var y = node.height(); + h = h > y ? h : y; + node = node.next; + } + return 1 + h; + } + unlink() { + if (this.parent != null) { + if (this.parent.children == this) { + this.parent.children = this.next; + } + if (this.parent.mTail == this) { + this.parent.mTail = this.prev; + } + var _this = this.parent; + _this.mExtraInfo = _this.mExtraInfo & 65535 | (_this.mExtraInfo >>> 16) - 1 << 16; + this.parent = null; + } + if (this.prev != null) { + this.prev.next = this.next; + } + if (this.next != null) { + this.next.prev = this.prev; + } + this.next = this.prev = null; + this.mNextInStack = null; + this.mPrevInStack = null; + return this; + } + appendNode(node) { + node.unlink(); + node.parent = this; + this.mExtraInfo = this.mExtraInfo & 65535 | (this.mExtraInfo >>> 16) + 1 << 16; + if (this.children != null) { + this.mTail.next = node; + node.prev = this.mTail; + node.next = null; + this.mTail = node; + } else { + this.mTail = node; + this.children = node; + } + return this; + } + find(val) { + var top = this; + while (top != null) { + var node = top; + var top1 = top; + var t = top1; + top1 = top1.mPrevInStack; + if (top1 != null) { + top1.mNextInStack = null; + } + t.mPrevInStack = null; + top = top1; + if (node.val == val) { + return node; + } + var n = node.children; + if (n != null) { + var c = node.mTail; + while (c != null) { + if (top != null) { + top.mNextInStack = c; + c.mPrevInStack = top; + } + top = c; + c = c.prev; + } + } + } + return null; + } + preorder($process, userData, preflight, iterative) { + if (iterative == null) { + iterative = false; + } + if (preflight == null) { + preflight = false; + } + if (this.parent == null && this.children == null) { + if ($process == null) { + var v = this.val; + if (preflight) { + if (v.visit(true, userData)) { + v.visit(false, userData); + } + } else { + v.visit(false, userData); + } + } else if (preflight) { + if ($process(this, true, userData)) { + $process(this, false, userData); + } + } else { + $process(this, false, userData); + } + return this; + } + if (iterative == false) { + if ($process == null) { + if (preflight) { + var v1 = this.val; + if (v1.visit(true, userData)) { + if (v1.visit(false, userData)) { + var child = this.children; + var hook; + while (child != null) { + hook = child.next; + if (!this.preOrderInternalVisitablePreflight(child, userData)) { + return this; + } + child = hook; + } + } + } + } else { + var v2 = this.val; + if (v2.visit(false, userData)) { + var child1 = this.children; + var hook1; + while (child1 != null) { + hook1 = child1.next; + if (!this.preOrderInternalVisitable(child1, userData)) { + return this; + } + child1 = hook1; + } + } + } + } else if (preflight) { + if ($process(this, true, userData)) { + if ($process(this, false, userData)) { + var child2 = this.children; + var hook2; + while (child2 != null) { + hook2 = child2.next; + if (!this.preOrderInternalPreflight(child2, $process, userData)) { + return this; + } + child2 = hook2; + } + } + } + } else if ($process(this, false, userData)) { + var child3 = this.children; + var hook3; + while (child3 != null) { + hook3 = child3.next; + if (!this.preOrderInternal(child3, $process, userData)) { + return this; + } + child3 = hook3; + } + } + } else { + var top = this; + if ($process == null) { + if (preflight) { + while (top != null) { + var node = top; + var top1 = top; + var t = top1; + top1 = top1.mPrevInStack; + if (top1 != null) { + top1.mNextInStack = null; + } + t.mPrevInStack = null; + top = top1; + var v3 = node.val; + if (!v3.visit(true, userData)) { + continue; + } + if (!v3.visit(false, userData)) { + return this; + } + var n = node.children; + if (n != null) { + var c = node.mTail; + while (c != null) { + if (top != null) { + top.mNextInStack = c; + c.mPrevInStack = top; + } + top = c; + c = c.prev; + } + } + } + } else { + while (top != null) { + var node1 = top; + var top2 = top; + var t1 = top2; + top2 = top2.mPrevInStack; + if (top2 != null) { + top2.mNextInStack = null; + } + t1.mPrevInStack = null; + top = top2; + var v4 = node1.val; + if (!v4.visit(false, userData)) { + return this; + } + var n1 = node1.children; + if (n1 != null) { + var c1 = node1.mTail; + while (c1 != null) { + if (top != null) { + top.mNextInStack = c1; + c1.mPrevInStack = top; + } + top = c1; + c1 = c1.prev; + } + } + } + } + } else if (preflight) { + while (top != null) { + var node2 = top; + var top3 = top; + var t2 = top3; + top3 = top3.mPrevInStack; + if (top3 != null) { + top3.mNextInStack = null; + } + t2.mPrevInStack = null; + top = top3; + if (!$process(node2, true, userData)) { + continue; + } + if (!$process(node2, false, userData)) { + return this; + } + var n2 = node2.children; + if (n2 != null) { + var c2 = node2.mTail; + while (c2 != null) { + if (top != null) { + top.mNextInStack = c2; + c2.mPrevInStack = top; + } + top = c2; + c2 = c2.prev; + } + } + } + } else { + while (top != null) { + var node3 = top; + var top4 = top; + var t3 = top4; + top4 = top4.mPrevInStack; + if (top4 != null) { + top4.mNextInStack = null; + } + t3.mPrevInStack = null; + top = top4; + if (!$process(node3, false, userData)) { + return this; + } + var n3 = node3.children; + if (n3 != null) { + var c3 = node3.mTail; + while (c3 != null) { + if (top != null) { + top.mNextInStack = c3; + c3.mPrevInStack = top; + } + top = c3; + c3 = c3.prev; + } + } + } + } + } + return this; + } + toString() { + var b_b = ""; + var _gthis = this; + b_b += Std.string("[ Tree size=" + this.get_size() + " depth=" + this.depth() + " height=" + this.height()); + if (this.children == null) { + b_b += "\n"; + b_b += " "; + b_b += Std.string(Std.string(this.val)); + b_b += "\n"; + b_b += "]"; + return b_b; + } + b_b += "\n"; + this.preorder(function (node, preflight, userData) { + var d = node.depth(); + var _g = 0; + var _g1 = d; + while (_g < _g1) { + var i = _g++; + if (i == d - 1) { + b_b += " +--- "; + } else { + b_b += " | "; + } + } + if (node == _gthis) { + b_b += " "; + } + b_b += Std.string(Std.string(node.val) + "\n"); + return true; + }, null); + b_b += "]"; + return b_b; + } + childIterator() { + return new polygonal_ds_ChildTreeIterator(this); + } + preOrderInternal(node, $process, userData) { + if ($process(node, false, userData)) { + if (node.children != null) { + var walker = node.children; + while (walker != null) { + if (!this.preOrderInternal(walker, $process, userData)) { + return false; + } + walker = walker.next; + } + } + return true; + } + return false; + } + preOrderInternalPreflight(node, $process, userData) { + if ($process(node, true, userData)) { + if ($process(node, false, userData)) { + if (node.children != null) { + var walker = node.children; + while (walker != null) { + if (!this.preOrderInternalPreflight(walker, $process, userData)) { + return false; + } + walker = walker.next; + } + } + return true; + } + } + return false; + } + preOrderInternalVisitable(node, userData) { + var v = node.val; + if (v.visit(false, userData)) { + if (node.children != null) { + var walker = node.children; + var hook; + while (walker != null) { + hook = walker.next; + if (!this.preOrderInternalVisitable(walker, userData)) { + return false; + } + walker = hook; + } + } + return true; + } + return false; + } + preOrderInternalVisitablePreflight(node, userData) { + var v = node.val; + if (v.visit(true, userData)) { + if (v.visit(false, userData)) { + if (node.children != null) { + var walker = node.children; + var hook; + while (walker != null) { + hook = walker.next; + if (!this.preOrderInternalVisitablePreflight(walker, userData)) { + return false; + } + walker = hook; + } + } + return true; + } + } + return false; + } + get_size() { + var c = 1; + var node = this.children; + while (node != null) { + c += node.get_size(); + node = node.next; + } + return c; + } + clone(byRef, copier) { + if (byRef == null) { + byRef = true; + } + var stack = []; + var copy = new polygonal_ds_TreeNode(copier != null ? copier(this.val) : this.val); + stack[0] = this; + stack[1] = copy; + var i = 2; + while (i > 0) { + var c = stack[--i]; + var n = stack[--i]; + c.mExtraInfo = c.mExtraInfo & 65535 | n.mExtraInfo >>> 16 << 16; + if (n.children != null) { + var nchild = n.children; + var x = nchild.val; + var x1 = byRef ? x : copier == null ? (js_Boot.__cast(x, polygonal_ds_Cloneable)).clone() : copier(x); + var cchild = c.children = new polygonal_ds_TreeNode(x1, c); + stack[i++] = nchild; + stack[i++] = cchild; + nchild = nchild.next; + while (nchild != null) { + var x2 = nchild.val; + x1 = byRef ? x2 : copier == null ? (js_Boot.__cast(x2, polygonal_ds_Cloneable)).clone() : copier(x2); + cchild.next = new polygonal_ds_TreeNode(x1, c); + cchild = cchild.next; + c.mTail = cchild; + stack[i++] = nchild; + stack[i++] = cchild; + nchild = nchild.next; + } + } + } + return copy; + } + } + polygonal_ds_TreeNode.__name__ = true; + polygonal_ds_TreeNode.__interfaces__ = [polygonal_ds_Collection]; + Object.assign(polygonal_ds_TreeNode.prototype, { + __class__: polygonal_ds_TreeNode + }); + class polygonal_ds_ChildTreeIterator { + constructor(x) { + this.mObject = x; + this.mWalker = this.mObject.children; + this.mHook = null; + } + hasNext() { + return this.mWalker != null; + } + next() { + var x = this.mWalker.val; + this.mHook = this.mWalker; + this.mWalker = this.mWalker.next; + return x; + } + } + polygonal_ds_ChildTreeIterator.__name__ = true; + polygonal_ds_ChildTreeIterator.__interfaces__ = [polygonal_ds_Itr]; + Object.assign(polygonal_ds_ChildTreeIterator.prototype, { + __class__: polygonal_ds_ChildTreeIterator + }); + class polygonal_ds_Visitable {} + polygonal_ds_Visitable.__name__ = true; + polygonal_ds_Visitable.__isInterface__ = true; + Object.assign(polygonal_ds_Visitable.prototype, { + __class__: polygonal_ds_Visitable + }); + String.prototype.__class__ = String; + String.__name__ = true; + Array.__name__ = true; + var Int = {}; + var Dynamic = {}; + var Float = Number; + var Bool = Boolean; + var Class = {}; + var Enum = {}; + var __map_reserved = {}; + Object.defineProperty(js__$Boot_HaxeError.prototype, "message", { + get: function () { + return String(this.val); + } + }); + js_Boot.__toStr = ({}).toString; + MainBoCai.main(); +})(serve, serve); +export default serve; \ No newline at end of file diff --git a/common/option.js b/common/option.js new file mode 100644 index 0000000..235fdd4 --- /dev/null +++ b/common/option.js @@ -0,0 +1,96 @@ +export default (realData, str, ctrlDown, cb) => { + return { + tooltip: { + trigger: 'item', + triggerOn: 'mousemove' + }, + series: [{ + type: 'tree', + roam: true, + data: [realData], + symbol: 'emptycircle', + left: '3%', + right: '3%', + top: '8%', + bottom: '20%', + // 缩放 + zoom: 1, + diyExpand: (name, isExpand) => { + if (ctrlDown) { + return !isExpand + } else { + // 收缩 + cb && cb(isExpand); + return isExpand + } + }, + symbolSize: (v, param) => { + if (str && param.name.match(str)) { + return 35 + } else { + return 20; + } + }, + symbol: (v, param) => { + if (Number(param.name) % 2 == 0) { + return 'image://https://cn.bing.com/th?id=OIP.1e3YVW946dgy5uJH764JXwHaFj&pid=Api&rs=1' + } else { + return 'emptycircle'; + } + }, + symbolKeepAspect: false, + layout: 'orthogonal', + orient: 'TB', + + expandAndCollapse: true, + initialTreeDepth: -1, + label: { + normal: { + show: true, + position: 'top', + verticalAlign: 'middle', + align: 'middle', + fontSize: 20, + distance: 10, + formatter: function (param) { + if (str && param.name.match(str)) { + return '{a|' + param.name + '}' + } else { + return param.name; + } + }, + rich: { + a: { + color: 'red', + fontSize: 26, + fontWeight: 'bolder', + lineHeight: 10 + } + } + }, + // 高亮悬浮 + emphasis: { + fontSize: 26, + distance: 10, + fontWeight: 'bolder', + color: 'red' + } + }, + + leaves: { + label: { + normal: { + fontSize: 20, + show: true, + distance: 10, + position: 'top', + verticalAlign: 'middle', + align: 'middle' + } + } + }, + // animation: false, + animationDurationUpdate: 750 + }] + } +} \ No newline at end of file diff --git a/components/base/_base-model.vue b/components/base/_base-model.vue new file mode 100644 index 0000000..1a7f3a0 --- /dev/null +++ b/components/base/_base-model.vue @@ -0,0 +1,79 @@ + + + \ No newline at end of file diff --git a/docs/200.html b/docs/200.html index 8df39ae..41a69a1 100644 --- a/docs/200.html +++ b/docs/200.html @@ -1,9 +1,9 @@ - Beer + Beer
Loading...
- + diff --git a/docs/_nuxt/02f154bff9392ab47ea0.js b/docs/_nuxt/02f154bff9392ab47ea0.js new file mode 100644 index 0000000..bf61760 --- /dev/null +++ b/docs/_nuxt/02f154bff9392ab47ea0.js @@ -0,0 +1,2 @@ +/*! For license information please see LICENSES */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{106:function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},107:function(e,t,n){"use strict";t.a=function(e,t){return t=t||{},new Promise(function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(JSON.parse(s.responseText))},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var f in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),u.push([t,n]),i[t]=i[t]?i[t]+","+n:n}),n(a())},s.onerror=r,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(f,t.headers[f]);s.send(t.body||null)})}},109:function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,f=r(),c=f.default;void 0===c&&(c=[]);var l=f.placeholder;return n._isMounted?c:(n.$once("hook:mounted",function(){n.$forceUpdate()}),o.placeholderTag&&(o.placeholder||l)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||l):c.length>0?c.map(function(){return e(!1)}):e(!1))}};e.exports=r},110:function(e,t,n){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,source,t){return e.concat(source).map(function(element){return n(element,t)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(symbol){return e.propertyIsEnumerable(symbol)}):[]}(e))}function f(e,source,t){var r={};return t.isMergeableObject(e)&&o(e).forEach(function(o){r[o]=n(e[o],t)}),o(source).forEach(function(o){t.isMergeableObject(source[o])&&e[o]?r[o]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(o,t)(e[o],source[o],t):r[o]=n(source[o],t)}),r}function c(t,source,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e;var c=Array.isArray(source);return c===Array.isArray(t)?c?o.arrayMerge(t,source,o):f(t,source,o):n(source,o)}return c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})},c}()},112:function(e,t,n){e.exports=n(186).default},113:function(e,t,n){var r=n(205),o=n(206)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=o},164:function(e,t,n){var content=n(165);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(32).default)("290f013b",content,!0,{sourceMap:!1})},165:function(e,t,n){(e.exports=n(31)(!1)).push([e.i,'a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,main,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}[hidden]{display:none}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}',""])},186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkError=l,t.isRetryableError=v,t.isSafeRequestError=y,t.isIdempotentRequestError=h,t.isNetworkOrIdempotentRequestError=m,t.exponentialDelay=R,t.default=T;var r,o=n(187),f=(r=o)&&r.__esModule?r:{default:r};var c="axios-retry";function l(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(0,f.default)(e)}var d=["get","head","options"],E=d.concat(["put","delete"]);function v(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function y(e){return!!e.config&&(v(e)&&-1!==d.indexOf(e.config.method))}function h(e){return!!e.config&&(v(e)&&-1!==E.indexOf(e.config.method))}function m(e){return l(e)||h(e)}function x(){return 0}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e);return t+.2*t*Math.random()}function _(e){var t=e[c]||{};return t.retryCount=t.retryCount||0,e[c]=t,t}function T(e,t){e.interceptors.request.use(function(e){return _(e).lastRequestTime=Date.now(),e}),e.interceptors.response.use(null,function(n){var r=n.config;if(!r)return Promise.reject(n);var o=function(e,t){return Object.assign({},t,e[c])}(r,t),f=o.retries,l=void 0===f?3:f,d=o.retryCondition,E=void 0===d?m:d,v=o.retryDelay,y=void 0===v?x:v,h=o.shouldResetTimeout,R=void 0!==h&&h,T=_(r);if(E(n)&&T.retryCount=o?e:r(e,t,n)}},191:function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var f=Array(o);++rt.parts.length&&(n.parts.length=t.parts.length)}else{var o=[];for(r=0;rb.sum?-1:1}),console.log("src/jiaoyisuo/JYSHelper.hx:226:","去掉极大值-----------"+r[0].node+"所有节点"),r.length>1)?t.find(r[0].node).unlink():console.log("src/jiaoyisuo/JYSHelper.hx:233:","只有1个节点 不裁剪");return t.preorder(function(e,t,r){return e.depth()>0&&(n.h[e.val].money,n.h[e.val].staitcIncome),!0},null,!1,!0),n}},{key:"caleRecommandIncome",value:function(e,n,t,r){null==r&&(r=8);for(var l=t.h[e].money,o=(n.parent.val,n.find(e));null!=o.parent;)0=5)return"<...>";var t=Object(o.a)(n);switch("function"==t&&(n.__name__||n.__ename__)&&(t="object"),t){case"function":return"";case"object":if(n instanceof Array){var r="[";s+="\t";for(var l=0,c=n.length;l0?",":"")+e.__string_rec(n[i],s)}return r+="]"}var h;try{h=n.toString}catch(e){e instanceof I&&e.val;return"???"}if(null!=h&&h!=Object.toString&&"function"==typeof h){var f=n.toString();if("[object Object]"!=f)return f}var _="{\n";s+="\t";var v=null!=n.hasOwnProperty,m=null;for(m in n)v&&!n.hasOwnProperty(m)||"prototype"!=m&&"__class__"!=m&&"__super__"!=m&&"__interfaces__"!=m&&"__properties__"!=m&&(2!=_.length&&(_+=", \n"),_+=s+m+" : "+e.__string_rec(n[m],s));return _+="\n"+(s=s.substring(1))+"}";case"string":return n;default:return String(n)}}},{key:"__interfLoop",value:function(n,t){if(null==n)return!1;if(n==t)return!0;if(Object.prototype.hasOwnProperty.call(n,"__interfaces__"))for(var r=n.__interfaces__,l=0,o=r.length;l>>16)<<16,null!=t.children){var r=t.mTail;r.next=this,this.prev=r,this.next=null}else t.children=this;t.mTail=this}}return Object(d.a)(e,[{key:"depth",value:function(){if(null==this.parent)return 0;for(var e=this,n=0;null!=e.parent;)++n,e=e.parent;return n}},{key:"height",value:function(){for(var e=0,n=this.children;null!=n;){var t=n.height();e=e>t?e:t,n=n.next}return 1+e}},{key:"unlink",value:function(){if(null!=this.parent){this.parent.children==this&&(this.parent.children=this.next),this.parent.mTail==this&&(this.parent.mTail=this.prev);var e=this.parent;e.mExtraInfo=65535&e.mExtraInfo|(e.mExtraInfo>>>16)-1<<16,this.parent=null}return null!=this.prev&&(this.prev.next=this.next),null!=this.next&&(this.next.prev=this.prev),this.next=this.prev=null,this.mNextInStack=null,this.mPrevInStack=null,this}},{key:"appendNode",value:function(e){return e.unlink(),e.parent=this,this.mExtraInfo=65535&this.mExtraInfo|1+(this.mExtraInfo>>>16)<<16,null!=this.children?(this.mTail.next=e,e.prev=this.mTail,e.next=null,this.mTail=e):(this.mTail=e,this.children=e),this}},{key:"find",value:function(e){for(var n=this;null!=n;){var t=n,r=n,l=r;if(null!=(r=r.mPrevInStack)&&(r.mNextInStack=null),l.mPrevInStack=null,n=r,t.val==e)return t;if(null!=t.children)for(var o=t.mTail;null!=o;)null!=n&&(n.mNextInStack=o,o.mPrevInStack=n),n=o,o=o.prev}return null}},{key:"preorder",value:function(e,n,t,r){if(null==r&&(r=!1),null==t&&(t=!1),null==this.parent&&null==this.children){if(null==e){var l=this.val;t?l.visit(!0,n)&&l.visit(!1,n):l.visit(!1,n)}else t?e(this,!0,n)&&e(this,!1,n):e(this,!1,n);return this}if(0==r){if(null==e)if(t){var o=this.val;if(o.visit(!0,n)&&o.visit(!1,n))for(var c,h=this.children;null!=h;){if(c=h.next,!this.preOrderInternalVisitablePreflight(h,n))return this;h=c}}else{if(this.val.visit(!1,n))for(var f,_=this.children;null!=_;){if(f=_.next,!this.preOrderInternalVisitable(_,n))return this;_=f}}else if(t){if(e(this,!0,n)&&e(this,!1,n))for(var v,m=this.children;null!=m;){if(v=m.next,!this.preOrderInternalPreflight(m,e,n))return this;m=v}}else if(e(this,!1,n))for(var d,y=this.children;null!=y;){if(d=y.next,!this.preOrderInternal(y,e,n))return this;y=d}}else{var k=this;if(null==e)if(t)for(;null!=k;){var O=k,j=k,x=j;null!=(j=j.mPrevInStack)&&(j.mNextInStack=null),x.mPrevInStack=null,k=j;var I=O.val;if(I.visit(!0,n)){if(!I.visit(!1,n))return this;if(null!=O.children)for(var S=O.mTail;null!=S;)null!=k&&(k.mNextInStack=S,S.mPrevInStack=k),k=S,S=S.prev}}else for(;null!=k;){var w=k,M=k,N=M;if(null!=(M=M.mPrevInStack)&&(M.mNextInStack=null),N.mPrevInStack=null,k=M,!w.val.visit(!1,n))return this;if(null!=w.children)for(var P=w.mTail;null!=P;)null!=k&&(k.mNextInStack=P,P.mPrevInStack=k),k=P,P=P.prev}else if(t)for(;null!=k;){var T=k,C=k,E=C;if(null!=(C=C.mPrevInStack)&&(C.mNextInStack=null),E.mPrevInStack=null,k=C,e(T,!0,n)){if(!e(T,!1,n))return this;if(null!=T.children)for(var J=T.mTail;null!=J;)null!=k&&(k.mNextInStack=J,J.mPrevInStack=k),k=J,J=J.prev}}else for(;null!=k;){var D=k,H=k,z=H;if(null!=(H=H.mPrevInStack)&&(H.mNextInStack=null),z.mPrevInStack=null,k=H,!e(D,!1,n))return this;if(null!=D.children)for(var A=D.mTail;null!=A;)null!=k&&(k.mNextInStack=A,A.mPrevInStack=k),k=A,A=A.prev}}return this}},{key:"toString",value:function(){var e="",n=this;return e+=l.string("[ Tree size="+this.get_size()+" depth="+this.depth()+" height="+this.height()),null==this.children?(e+="\n",e+=" ",e+=l.string(l.string(this.val)),e+="\n",e+="]"):(e+="\n",this.preorder(function(t,r,o){for(var c=t.depth(),h=0,f=c;h0;){var o=r[--i],c=r[--i];if(o.mExtraInfo=65535&o.mExtraInfo|c.mExtraInfo>>>16<<16,null!=c.children){var h=c.children,f=h.val,_=n?f:null==t?S.__cast(f,P).clone():t(f),v=o.children=new e(_,o);for(r[i++]=h,r[i++]=v,h=h.next;null!=h;){var m=h.val;_=n?m:null==t?S.__cast(m,P).clone():t(m),v.next=new e(_,o),v=v.next,o.mTail=v,r[i++]=h,r[i++]=v,h=h.next}}}return l}}]),e}();T.__name__=!0,T.__interfaces__=[M],Object.assign(T.prototype,{__class__:T});var C=function(){function e(n){Object(m.a)(this,e),this.mObject=n,this.mWalker=this.mObject.children,this.mHook=null}return Object(d.a)(e,[{key:"hasNext",value:function(){return null!=this.mWalker}},{key:"next",value:function(){var e=this.mWalker.val;return this.mHook=this.mWalker,this.mWalker=this.mWalker.next,e}}]),e}();C.__name__=!0,C.__interfaces__=[N],Object.assign(C.prototype,{__class__:C});var E=function e(){Object(m.a)(this,e)};E.__name__=!0,E.__isInterface__=!0,Object.assign(E.prototype,{__class__:E}),String.prototype.__class__=String,String.__name__=!0,Array.__name__=!0;var J={},D={},H=Number,z=Boolean,A={},F={},R={};Object.defineProperty(I.prototype,"message",{get:function(){return String(this.val)}}),S.__toStr={}.toString,r.main()}(y,y);var k,O,j=y,x=t(28),I=(t(115),{asyncData:(O=Object(r.a)(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.$axios,e.abrupt("return",{});case 2:case"end":return e.stop()}},e)})),function(e){return O.apply(this,arguments)}),fetch:(k=Object(r.a)(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.store,n.params,n.$axios;case 1:case"end":return e.stop()}},e)})),function(e){return k.apply(this,arguments)}),mounted:function(){var e=this;console.log(j.MainBoCai);var n=JSON.parse(j.MainBoCai.genJson(200));l.echartTree.init(document.getElementById("main")).setOption(function(e,n,t,r){var l;return{tooltip:{trigger:"item",triggerOn:"mousemove"},series:[(l={type:"tree",roam:!0,data:[e],symbol:"emptycircle",left:"3%",right:"3%",top:"8%",bottom:"20%",zoom:1,diyExpand:function(e,n){return t?!n:(r&&r(n),n)},symbolSize:function(e,param){return n&¶m.name.match(n)?35:20}},Object(x.a)(l,"symbol",function(e,param){return Number(param.name)%2==0?"image://https://cn.bing.com/th?id=OIP.1e3YVW946dgy5uJH764JXwHaFj&pid=Api&rs=1":"emptycircle"}),Object(x.a)(l,"symbolKeepAspect",!1),Object(x.a)(l,"layout","orthogonal"),Object(x.a)(l,"orient","TB"),Object(x.a)(l,"expandAndCollapse",!0),Object(x.a)(l,"initialTreeDepth",-1),Object(x.a)(l,"label",{normal:{show:!0,position:"top",verticalAlign:"middle",align:"middle",fontSize:20,distance:10,formatter:function(param){return n&¶m.name.match(n)?"{a|"+param.name+"}":param.name},rich:{a:{color:"red",fontSize:26,fontWeight:"bolder",lineHeight:10}}},emphasis:{fontSize:26,distance:10,fontWeight:"bolder",color:"red"}}),Object(x.a)(l,"leaves",{label:{normal:{fontSize:20,show:!0,distance:10,position:"top",verticalAlign:"middle",align:"middle"}}}),Object(x.a)(l,"animationDurationUpdate",750),l)]}}(n,"708",this.ctrlDown,function(){console.log("dsa"),e.showModel=!0})),document.onkeydown=this.ctrlDownFunc,document.onkeyup=this.ctrlUpFunc},destroyed:function(){document.onkeydown=null,document.onkeyup=null},data:function(){return{ctrlDown:!1,showModel:!1}},methods:{ctrlDownFunc:function(e){e.keyCode&&17==e.keyCode&&(this.ctrlDown=!0)},ctrlUpFunc:function(e){e.keyCode&&17==e.keyCode&&(this.ctrlDown=!1)}}}),S=t(14),component=Object(S.a)(I,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"home",on:{keydown:function(n){return n.ctrlKey?e.ctrlDownFunc(n):null},keyup:function(n){return n.ctrlKey?e.ctrlUpFunc(n):null}}},[t("div",{staticStyle:{width:"100%",height:"100vh"},attrs:{id:"main"}}),e._v(" "),t("BaseModel",{model:{value:e.showModel,callback:function(n){e.showModel=n},expression:"showModel"}})],1)},[],!1,null,null,null);n.default=component.exports}}]); \ No newline at end of file diff --git a/docs/_nuxt/19e7dfd2cc43c3efa4ad.js b/docs/_nuxt/19e7dfd2cc43c3efa4ad.js deleted file mode 100644 index 57671c5..0000000 --- a/docs/_nuxt/19e7dfd2cc43c3efa4ad.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{220:function(e,t,n){"use strict";n.r(t);n(37);var r,o,c=n(5),f={asyncData:(o=Object(c.a)(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.$axios,e.abrupt("return",{});case 2:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)}),fetch:(r=Object(c.a)(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.store,t.params,t.$axios;case 1:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)}),mounted:function(){},data:function(){return{}},methods:{}},h=n(16),component=Object(h.a)(f,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"home"},[this._v("\n home\n")])},[],!1,null,null,null);t.default=component.exports}}]); \ No newline at end of file diff --git a/docs/_nuxt/3beab118ddec431faff0.js b/docs/_nuxt/3beab118ddec431faff0.js deleted file mode 100644 index ad24fcf..0000000 --- a/docs/_nuxt/3beab118ddec431faff0.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see LICENSES */ -(window.webpackJsonp=window.webpackJsonp||[]).push([[5],[,,,,,function(e,t,n){"use strict";function r(e,t,n,r,o,f,c){try{var l=e[f](c),d=l.value}catch(e){return void n(e)}l.done?t(d):Promise.resolve(d).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,f){var c=e.apply(t,n);function l(e){r(c,o,f,l,d,"next",e)}function d(e){r(c,o,f,l,d,"throw",e)}l(void 0)})}}n.d(t,"a",function(){return o})},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return o})},,,,,,,,function(e,t,n){"use strict";function r(e,i){return function(e){if(Array.isArray(e))return e}(e)||function(e,i){var t=[],n=!0,r=!1,o=void 0;try{for(var f,c=e[Symbol.iterator]();!(n=(f=c.next()).done)&&(t.push(f.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return t}(e,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",function(){return r})},,function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var content=function(e,t){var content=e[1]||"",n=e[3];if(!n)return content;if(t&&"function"==typeof btoa){var r=(f=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(f))))+" */"),o=n.sources.map(function(source){return"/*# sourceURL="+n.sourceRoot+source+" */"});return[content].concat(o).concat([r]).join("\n")}var f;return[content].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+content+"}":content}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;it.parts.length&&(n.parts.length=t.parts.length)}else{var o=[];for(r=0;r0?c.map(function(){return e(!1)}):e(!1))}};e.exports=r},function(e,t,n){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,source,t){return e.concat(source).map(function(element){return n(element,t)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(symbol){return e.propertyIsEnumerable(symbol)}):[]}(e))}function f(e,source,t){var r={};return t.isMergeableObject(e)&&o(e).forEach(function(o){r[o]=n(e[o],t)}),o(source).forEach(function(o){t.isMergeableObject(source[o])&&e[o]?r[o]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(o,t)(e[o],source[o],t):r[o]=n(source[o],t)}),r}function c(t,source,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e;var c=Array.isArray(source);return c===Array.isArray(t)?c?o.arrayMerge(t,source,o):f(t,source,o):n(source,o)}return c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})},c}()},,function(e,t,n){e.exports=n(185).default},function(e,t,n){var r=n(204),o=n(205)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var content=n(164);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(39).default)("290f013b",content,!0,{sourceMap:!1})},function(e,t,n){(e.exports=n(38)(!1)).push([e.i,'a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,main,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}[hidden]{display:none}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}',""])},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkError=l,t.isRetryableError=v,t.isSafeRequestError=y,t.isIdempotentRequestError=h,t.isNetworkOrIdempotentRequestError=m,t.exponentialDelay=R,t.default=T;var r,o=n(186),f=(r=o)&&r.__esModule?r:{default:r};var c="axios-retry";function l(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(0,f.default)(e)}var d=["get","head","options"],E=d.concat(["put","delete"]);function v(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function y(e){return!!e.config&&(v(e)&&-1!==d.indexOf(e.config.method))}function h(e){return!!e.config&&(v(e)&&-1!==E.indexOf(e.config.method))}function m(e){return l(e)||h(e)}function x(){return 0}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e);return t+.2*t*Math.random()}function _(e){var t=e[c]||{};return t.retryCount=t.retryCount||0,e[c]=t,t}function T(e,t){e.interceptors.request.use(function(e){return _(e).lastRequestTime=Date.now(),e}),e.interceptors.response.use(null,function(n){var r=n.config;if(!r)return Promise.reject(n);var o=function(e,t){return Object.assign({},t,e[c])}(r,t),f=o.retries,l=void 0===f?3:f,d=o.retryCondition,E=void 0===d?m:d,v=o.retryDelay,y=void 0===v?x:v,h=o.shouldResetTimeout,R=void 0!==h&&h,T=_(r);if(E(n)&&T.retryCount=o?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var f=Array(o);++r=0&&Math.floor(e)===e&&isFinite(t)}function _(t){return c(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function w(t){return null==t?"":Array.isArray(t)||v(t)&&t.toString===d?JSON.stringify(t,null,2):String(t)}function x(t){var e=parseFloat(t);return isNaN(e)?t:e}function O(t,e){for(var map=Object.create(null),n=t.split(","),i=0;i-1)return t.splice(n,1)}}var C=Object.prototype.hasOwnProperty;function E(t,e){return C.call(t,e)}function k(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var j=/-(\w)/g,$=k(function(t){return t.replace(j,function(t,e){return e?e.toUpperCase():""})}),T=k(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),P=/\B([A-Z])/g,I=k(function(t){return t.replace(P,"-$1").toLowerCase()});var L=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(a){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,a):t.call(e)}return n._length=t.length,n};function R(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function N(t,e){for(var n in e)t[n]=e[n];return t}function M(t){for(var e={},i=0;i0,st=ot&&ot.indexOf("edge/")>0,ct=(ot&&ot.indexOf("android"),ot&&/iphone|ipad|ipod|ios/.test(ot)||"ios"===nt),ut=(ot&&/chrome\/\d+/.test(ot),ot&&/phantomjs/.test(ot),ot&&ot.match(/firefox\/(\d+)/)),ft={}.watch,lt=!1;if(tt)try{var pt={};Object.defineProperty(pt,"passive",{get:function(){lt=!0}}),window.addEventListener("test-passive",null,pt)}catch(t){}var ht=function(){return void 0===Q&&(Q=!tt&&!et&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),Q},vt=tt&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function yt(t){return"function"==typeof t&&/native code/.test(t.toString())}var mt,gt="undefined"!=typeof Symbol&&yt(Symbol)&&"undefined"!=typeof Reflect&&yt(Reflect.ownKeys);mt="undefined"!=typeof Set&&yt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var bt=D,_t=0,wt=function(){this.id=_t++,this.subs=[]};wt.prototype.addSub=function(sub){this.subs.push(sub)},wt.prototype.removeSub=function(sub){A(this.subs,sub)},wt.prototype.depend=function(){wt.target&&wt.target.addDep(this)},wt.prototype.notify=function(){var t=this.subs.slice();for(var i=0,e=t.length;i-1)if(c&&!E(o,"default"))f=!1;else if(""===f||f===I(t)){var h=Xt(String,o.type);(h<0||l0&&(ge((h=t(h,(n||"")+"_"+i))[0])&&ge(v)&&(r[d]=kt(v.text+h[0].text),h.shift()),r.push.apply(r,h)):l(h)?ge(v)?r[d]=kt(v.text+h):""!==h&&r.push(kt(h)):ge(h)&&ge(v)?r[d]=kt(v.text+h.text):(f(e._isVList)&&c(h.tag)&&o(h.key)&&c(n)&&(h.key="__vlist"+n+"_"+i+"__"),r.push(h)));return r}(t):void 0}function ge(t){return c(t)&&c(t.text)&&!1===t.isComment}function be(t,e){if(t){for(var n=Object.create(null),r=gt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,f=t?!!t.$stable:!c,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(f&&n&&n!==r&&l===n.$key&&!c&&!n.$hasNormal)return n;for(var h in o={},t)t[h]&&"$"!==h[0]&&(o[h]=Oe(e,h,t[h]))}else o={};for(var d in e)d in o||(o[d]=Se(e,d));return t&&Object.isExtensible(t)&&(t._normalized=o),X(o,"$stable",f),X(o,"$key",l),X(o,"$hasNormal",c),o}function Oe(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:me(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Se(t,e){return function(){return t[e]}}function Ae(t,e){var n,i,r,o,f;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,r=t.length;idocument.createEvent("Event").timeStamp&&(gn=function(){return bn.now()})}function _n(){var t,e;for(mn=gn(),vn=!0,ln.sort(function(a,b){return a.id-b.id}),yn=0;ynyn&&ln[i].id>t.id;)i--;ln.splice(i+1,0,t)}else ln.push(t);dn||(dn=!0,ue(_n))}}(this)},xn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||h(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Yt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},xn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},xn.prototype.depend=function(){for(var i=this.deps.length;i--;)this.deps[i].depend()},xn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||A(this.vm._watchers,this);for(var i=this.deps.length;i--;)this.deps[i].removeSub(this);this.active=!1}};var On={enumerable:!0,configurable:!0,get:D,set:D};function Sn(t,e,n){On.get=function(){return this[e][n]},On.set=function(t){this[e][n]=t},Object.defineProperty(t,n,On)}function An(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[];t.$parent&&Lt(!1);var c=function(c){o.push(c);var f=Kt(c,e,n,t);Mt(r,c,f),c in t||Sn(t,"_props",c)};for(var f in e)c(f);Lt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?D:L(e[n],t)}(t,e.methods),e.data?function(t){var data=t.$options.data;v(data=t._data="function"==typeof data?function(data,t){Ot();try{return data.call(t,t)}catch(e){return Yt(e,t,"data()"),{}}finally{St()}}(data,t):data||{})||(data={});var e=Object.keys(data),n=t.$options.props,i=(t.$options.methods,e.length);for(;i--;){var r=e[i];0,n&&E(n,r)||(o=void 0,36!==(o=(r+"").charCodeAt(0))&&95!==o&&Sn(t,"_data",r))}var o;Nt(data,!0)}(t):Nt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=ht();for(var o in e){var c=e[o],f="function"==typeof c?c:c.get;0,r||(n[o]=new xn(t,f||D,D,Cn)),o in t||En(t,o,c)}}(t,e.computed),e.watch&&e.watch!==ft&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof pattern?pattern.split(",").indexOf(t)>-1:!!y(pattern)&&pattern.test(t)}function Mn(t,filter){var e=t.cache,n=t.keys,r=t._vnode;for(var o in e){var c=e[o];if(c){var f=Rn(c.componentOptions);f&&!filter(f)&&Dn(e,o,n,r)}}}function Dn(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,A(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Tn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=zt(Pn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&on(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=_e(e._renderChildren,o),t.$scopedSlots=r,t._c=function(a,b,e,n){return Je(t,a,b,e,n,!1)},t.$createElement=function(a,b,e,n){return Je(t,a,b,e,n,!0)};var c=n&&n.data;Mt(t,"$attrs",c&&c.attrs||r,null,!0),Mt(t,"$listeners",e._parentListeners||r,null,!0)}(e),fn(e,"beforeCreate"),function(t){var e=be(t.$options.inject,t);e&&(Lt(!1),Object.keys(e).forEach(function(n){Mt(t,n,e[n])}),Lt(!0))}(e),An(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),fn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(In),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Dt,t.prototype.$delete=del,t.prototype.$watch=function(t,e,n){if(v(e))return $n(this,t,e,n);(n=n||{}).user=!0;var r=new xn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Yt(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(In),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?R(n):n;for(var r=R(arguments,1),o='event handler for "'+t+'"',i=0,c=n.length;iparseInt(this.max)&&Dn(c,f[0],f,this._vnode)),t.data.keepAlive=!0}return t||slot&&slot[0]}}};!function(t){var e={get:function(){return W}};Object.defineProperty(t,"config",e),t.util={warn:bt,extend:N,mergeOptions:zt,defineReactive:Mt},t.set=Dt,t.delete=del,t.nextTick=ue,t.observable=function(t){return Nt(t),t},t.options=Object.create(null),G.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,N(t.options.components,Un),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=R(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=zt(this.options,t),this}}(t),Ln(t),function(t){G.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&v(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(In),Object.defineProperty(In.prototype,"$isServer",{get:ht}),Object.defineProperty(In.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(In,"FunctionalRenderContext",{value:Ue}),In.version="2.6.10";var Bn=O("style,class"),qn=O("input,textarea,option,select,progress"),Hn=O("contenteditable,draggable,spellcheck"),Vn=O("events,caret,typing,plaintext-only"),zn=function(t,e){return Xn(e)||"false"===e?"false":"contenteditable"===t&&Vn(e)?e:"true"},Gn=O("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Kn="http://www.w3.org/1999/xlink",Wn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Jn=function(t){return Wn(t)?t.slice(6,t.length):""},Xn=function(t){return null==t||!1===t};function Yn(t){for(var data=t.data,e=t,n=t;c(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(data=Qn(n.data,data));for(;c(e=e.parent);)e&&e.data&&(data=Qn(data,e.data));return function(t,e){if(c(t)||c(e))return Zn(t,er(e));return""}(data.staticClass,data.class)}function Qn(t,e){return{staticClass:Zn(t.staticClass,e.staticClass),class:c(t.class)?[t.class,e.class]:e.class}}function Zn(a,b){return a?b?a+" "+b:a:b||""}function er(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i-1?Cr(t,e,n):Gn(e)?Xn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Hn(e)?t.setAttribute(e,zn(e,n)):Wn(e)?Xn(n)?t.removeAttributeNS(Kn,Jn(e)):t.setAttributeNS(Kn,e,n):Cr(t,e,n)}function Cr(t,e,n){if(Xn(n))t.removeAttribute(e);else{if(it&&!at&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Er={create:Sr,update:Sr};function kr(t,e){var n=e.elm,data=e.data,r=t.data;if(!(o(data.staticClass)&&o(data.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var f=Yn(e),l=n._transitionClasses;c(l)&&(f=Zn(f,er(l))),f!==n._prevClass&&(n.setAttribute("class",f),n._prevClass=f)}}var jr,$r={create:kr,update:kr},Tr="__r",Pr="__c";function Ir(t,e,n){var r=jr;return function o(){var c=e.apply(null,arguments);null!==c&&Nr(t,o,n,r)}}var Lr=ne&&!(ut&&Number(ut[1])<=53);function Rr(t,e,n,r){if(Lr){var o=mn,c=e;e=c._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return c.apply(this,arguments)}}jr.addEventListener(t,e,lt?{capture:n,passive:r}:n)}function Nr(t,e,n,r){(r||jr).removeEventListener(t,e._wrapper||e,n)}function Mr(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};jr=e.elm,function(t){if(c(t[Tr])){var e=it?"change":"input";t[e]=[].concat(t[Tr],t[e]||[]),delete t[Tr]}c(t[Pr])&&(t.change=[].concat(t[Pr],t.change||[]),delete t[Pr])}(n),de(n,r,Rr,Nr,Ir,e.context),jr=void 0}}var Dr,Fr={create:Mr,update:Mr};function Ur(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,f=e.elm,l=t.data.domProps||{},h=e.data.domProps||{};for(n in c(h.__ob__)&&(h=e.data.domProps=N({},h)),l)n in h||(f[n]="");for(n in h){if(r=h[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===l[n])continue;1===f.childNodes.length&&f.removeChild(f.childNodes[0])}if("value"===n&&"PROGRESS"!==f.tagName){f._value=r;var d=o(r)?"":String(r);Br(f,d)&&(f.value=d)}else if("innerHTML"===n&&or(f.tagName)&&o(f.innerHTML)){(Dr=Dr||document.createElement("div")).innerHTML=""+r+"";for(var svg=Dr.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;svg.firstChild;)f.appendChild(svg.firstChild)}else if(r!==l[n])try{f[n]=r}catch(t){}}}}function Br(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(c(r)){if(r.number)return x(n)!==x(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var qr={create:Ur,update:Ur},Hr=k(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function Vr(data){var style=zr(data.style);return data.staticStyle?N(data.staticStyle,style):style}function zr(t){return Array.isArray(t)?M(t):"string"==typeof t?Hr(t):t}var Gr,Kr=/^--/,Wr=/\s*!important$/,Jr=function(t,e,n){if(Kr.test(e))t.style.setProperty(e,n);else if(Wr.test(n))t.style.setProperty(I(e),n.replace(Wr,""),"important");else{var r=Yr(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(Zr).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function eo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Zr).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function no(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&N(e,ro(t.name||"v")),N(e,t),e}return"string"==typeof t?ro(t):void 0}}var ro=k(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),oo=tt&&!at,io="transition",ao="animation",so="transition",co="transitionend",uo="animation",fo="animationend";oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(so="WebkitTransition",co="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(uo="WebkitAnimation",fo="webkitAnimationEnd"));var lo=tt?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function po(t){lo(function(){lo(t)})}function ho(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),to(t,e))}function vo(t,e){t._transitionClasses&&A(t._transitionClasses,e),eo(t,e)}function yo(t,e,n){var r=go(t,e),o=r.type,c=r.timeout,f=r.propCount;if(!o)return n();var l=o===io?co:fo,h=0,d=function(){t.removeEventListener(l,v),n()},v=function(e){e.target===t&&++h>=f&&d()};setTimeout(function(){h0&&(n=io,v=f,y=c.length):e===ao?d>0&&(n=ao,v=d,y=h.length):y=(n=(v=Math.max(f,d))>0?f>d?io:ao:null)?n===io?c.length:h.length:0,{type:n,timeout:v,propCount:y,hasTransform:n===io&&mo.test(r[so+"Property"])}}function bo(t,e){for(;t.length1}function Ao(t,e){!0!==e.data.show&&wo(e)}var Co=function(t){var i,e,n={},r=t.modules,h=t.nodeOps;for(i=0;iw?A(t,o(n[S+1])?null:n[S+1].elm,n,_,S,r):_>S&&E(0,e,m,w)}(m,_,x,r,y):c(x)?(c(t.text)&&h.setTextContent(m,""),A(m,null,x,0,x.length-1,r)):c(_)?E(0,_,0,_.length-1):c(t.text)&&h.setTextContent(m,""):t.text!==e.text&&h.setTextContent(m,e.text),c(data)&&c(i=data.hook)&&c(i=i.postpatch)&&i(t,e)}}}function T(t,e,n){if(f(n)&&c(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i-1,option.selected!==c&&(option.selected=c);else if(B(To(option),r))return void(t.selectedIndex!==i&&(t.selectedIndex=i));o||(t.selectedIndex=-1)}}function $o(t,e){return e.every(function(e){return!B(e,t)})}function To(option){return"_value"in option?option._value:option.value}function Po(t){t.target.composing=!0}function Io(t){t.target.composing&&(t.target.composing=!1,Lo(t.target,"input"))}function Lo(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Ro(t){return!t.componentInstance||t.data&&t.data.transition?t:Ro(t.componentInstance._vnode)}var No={model:Eo,show:{bind:function(t,e,n){var r=e.value,o=(n=Ro(n)).data&&n.data.transition,c=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,wo(n,function(){t.style.display=c})):t.style.display=r?c:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Ro(n)).data&&n.data.transition?(n.data.show=!0,r?wo(n,function(){t.style.display=t.__vOriginalDisplay}):xo(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},Mo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Do(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Do(tn(e.children)):t}function Fo(t){var data={},e=t.$options;for(var n in e.propsData)data[n]=t[n];var r=e._parentListeners;for(var o in r)data[$(o)]=r[o];return data}function Uo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Bo=function(t){return t.tag||Ze(t)},qo=function(t){return"show"===t.name},Ho={name:"transition",props:Mo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Bo)).length){0;var r=this.mode;0;var o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var c=Do(o);if(!c)return o;if(this._leaving)return Uo(t,o);var f="__transition-"+this._uid+"-";c.key=null==c.key?c.isComment?f+"comment":f+c.tag:l(c.key)?0===String(c.key).indexOf(f)?c.key:f+c.key:c.key;var data=(c.data||(c.data={})).transition=Fo(this),h=this._vnode,d=Do(h);if(c.data.directives&&c.data.directives.some(qo)&&(c.data.show=!0),d&&d.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(c,d)&&!Ze(d)&&(!d.componentInstance||!d.componentInstance._vnode.isComment)){var v=d.data.transition=N({},data);if("out-in"===r)return this._leaving=!0,ve(v,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),Uo(t,o);if("in-out"===r){if(Ze(c))return h;var y,m=function(){y()};ve(data,"afterEnter",m),ve(data,"enterCancelled",m),ve(v,"delayLeave",function(t){y=t})}}return o}}},Vo=N({tag:String,moveClass:String},Mo);function zo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Go(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ko(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var s=t.elm.style;s.transform=s.WebkitTransform="translate("+r+"px,"+o+"px)",s.transitionDuration="0s"}}delete Vo.mode;var Wo={Transition:Ho,TransitionGroup:{props:Vo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=sn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",map=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],c=Fo(this),i=0;i-1?ar[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ar[t]=/HTMLUnknownElement/.test(e.toString())},N(In.options.directives,No),N(In.options.components,Wo),In.prototype.__patch__=tt?Co:D,In.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=Et),fn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new xn(t,r,D,{before:function(){t._isMounted&&!t._isDestroyed&&fn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,fn(t,"mounted")),t}(this,t=t&&tt?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},tt&&setTimeout(function(){W.devtools&&vt&&vt.emit("init",In)},0),e.a=In}).call(this,n(19),n(158).setImmediate)},,function(t,e,n){var r=n(42)("wks"),o=n(36),c=n(3).Symbol,f="function"==typeof c;(t.exports=function(t){return r[t]||(r[t]=f&&c[t]||(f?c:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},,function(t,e,n){"use strict";var r=n(98),o=n(171),c=Object.prototype.toString;function f(t){return"[object Array]"===c.call(t)}function l(t){return null!==t&&"object"==typeof t}function h(t){return"[object Function]"===c.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),f(t))for(var i=0,n=t.length;i0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(83),o=n(63);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(3),o=n(17),c=n(8),f=n(7),l=n(12),h=n(126).KEY,d=n(10),v=n(42),y=n(44),m=n(36),_=n(2),w=n(87),x=n(86),O=n(127),S=n(114),A=n(4),C=n(11),E=n(30),k=n(20),j=n(59),$=n(35),T=n(76),P=n(128),I=n(60),L=n(45),R=n(9),N=n(25),M=I.f,D=R.f,F=P.f,U=r.Symbol,B=r.JSON,H=B&&B.stringify,V=_("_hidden"),z=_("toPrimitive"),G={}.propertyIsEnumerable,K=v("symbol-registry"),W=v("symbols"),J=v("op-symbols"),X=Object.prototype,Y="function"==typeof U&&!!L.f,Q=r.QObject,Z=!Q||!Q.prototype||!Q.prototype.findChild,tt=c&&d(function(){return 7!=T(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(X,e);r&&delete X[e],D(t,e,n),r&&t!==X&&D(X,e,r)}:D,et=function(t){var e=W[t]=T(U.prototype);return e._k=t,e},nt=Y&&"symbol"==typeof U.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof U},ot=function(t,e,n){return t===X&&ot(J,e,n),A(t),e=j(e,!0),A(n),o(W,e)?(n.enumerable?(o(t,V)&&t[V][e]&&(t[V][e]=!1),n=T(n,{enumerable:$(0,!1)})):(o(t,V)||D(t,V,$(1,{})),t[V][e]=!0),tt(t,e,n)):D(t,e,n)},it=function(t,e){A(t);for(var n,r=O(e=k(e)),i=0,o=r.length;o>i;)ot(t,n=r[i++],e[n]);return t},at=function(t){var e=G.call(this,t=j(t,!0));return!(this===X&&o(W,t)&&!o(J,t))&&(!(e||!o(this,t)||!o(W,t)||o(this,V)&&this[V][t])||e)},st=function(t,e){if(t=k(t),e=j(e,!0),t!==X||!o(W,e)||o(J,e)){var n=M(t,e);return!n||!o(W,e)||o(t,V)&&t[V][e]||(n.enumerable=!0),n}},ct=function(t){for(var e,n=F(k(t)),r=[],i=0;n.length>i;)o(W,e=n[i++])||e==V||e==h||r.push(e);return r},ut=function(t){for(var e,n=t===X,r=F(n?J:k(t)),c=[],i=0;r.length>i;)!o(W,e=r[i++])||n&&!o(X,e)||c.push(W[e]);return c};Y||(l((U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor!");var t=m(arguments.length>0?arguments[0]:void 0),e=function(n){this===X&&e.call(J,n),o(this,V)&&o(this[V],t)&&(this[V][t]=!1),tt(this,t,$(1,n))};return c&&Z&&tt(X,t,{configurable:!0,set:e}),et(t)}).prototype,"toString",function(){return this._k}),I.f=st,R.f=ot,n(41).f=P.f=ct,n(46).f=at,L.f=ut,c&&!n(34)&&l(X,"propertyIsEnumerable",at,!0),w.f=function(t){return et(_(t))}),f(f.G+f.W+f.F*!Y,{Symbol:U});for(var ft="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),lt=0;ft.length>lt;)_(ft[lt++]);for(var pt=N(_.store),ht=0;pt.length>ht;)x(pt[ht++]);f(f.S+f.F*!Y,"Symbol",{for:function(t){return o(K,t+="")?K[t]:K[t]=U(t)},keyFor:function(t){if(!nt(t))throw TypeError(t+" is not a symbol!");for(var e in K)if(K[e]===t)return e},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),f(f.S+f.F*!Y,"Object",{create:function(t,e){return void 0===e?T(t):it(T(t),e)},defineProperty:ot,defineProperties:it,getOwnPropertyDescriptor:st,getOwnPropertyNames:ct,getOwnPropertySymbols:ut});var vt=d(function(){L.f(1)});f(f.S+f.F*vt,"Object",{getOwnPropertySymbols:function(t){return L.f(E(t))}}),B&&f(f.S+f.F*(!Y||d(function(){var t=U();return"[null]"!=H([t])||"{}"!=H({a:t})||"{}"!=H(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(C(e)||void 0!==t)&&!nt(t))return S(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!nt(e))return e}),r[1]=e,H.apply(B,r)}}),U.prototype[z]||n(16)(U.prototype,z,U.prototype.valueOf),y(U,"Symbol"),y(Math,"Math",!0),y(r.JSON,"JSON",!0)},,,function(t,e,n){var r=n(43);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(a){return t.call(e,a)};case 2:return function(a,b){return t.call(e,a,b)};case 3:return function(a,b,n){return t.call(e,a,b,n)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(22);t.exports=function(t){return Object(r(t))}},,,function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=!1},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports={}},,function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",f=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function h(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,c=Object.create(o.prototype),f=new L(r||[]);return c._invoke=function(t,e,n){var r=v;return function(o,c){if(r===m)throw new Error("Generator is already running");if(r===_){if("throw"===o)throw c;return N()}for(n.method=o,n.arg=c;;){var f=n.delegate;if(f){var l=T(f,n);if(l){if(l===w)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===v)throw r=_,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var h=d(t,e,n);if("normal"===h.type){if(r=n.done?_:y,h.arg===w)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(r=_,n.method="throw",n.arg=h.arg)}}}(t,n,f),c}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var v="suspendedStart",y="suspendedYield",m="executing",_="completed",w={};function x(){}function O(){}function S(){}var A={};A[c]=function(){return this};var C=Object.getPrototypeOf,E=C&&C(C(R([])));E&&E!==n&&r.call(E,c)&&(A=E);var k=S.prototype=x.prototype=Object.create(A);function j(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function $(t){var e;this._invoke=function(n,o){function c(){return new Promise(function(e,c){!function e(n,o,c,f){var l=d(t[n],t,o);if("throw"!==l.type){var h=l.arg,v=h.value;return v&&"object"==typeof v&&r.call(v,"__await")?Promise.resolve(v.__await).then(function(t){e("next",t,c,f)},function(t){e("throw",t,c,f)}):Promise.resolve(v).then(function(t){h.value=t,c(h)},function(t){return e("throw",t,c,f)})}f(l.arg)}(n,o,e,c)})}return e=e?e.then(c,c):c()}}function T(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method))return w;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return w}var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,w;var c=o.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,w):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,w)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(t){if(t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--i){var c=this.tryEntries[i],f=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=r.call(c,"catchLoc"),h=r.call(c,"finallyLoc");if(l&&h){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--i){var e=this.tryEntries[i];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),I(e),w}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var r=n.arg;I(e)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),w}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){var r=n(9).f,o=Function.prototype,c=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(c)[1]}catch(t){return""}}})},function(t,e,n){var r=n(83),o=n(63).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(15),o=n(3),c=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(34)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(9).f,o=n(17),c=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,c)&&r(t,c,{configurable:!0,value:e})}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var r=n(48),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var c=n.call(t,e);if("object"!=typeof c)throw new TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){var r=n(23),o=n(2)("toStringTag"),c="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:c?r(e):"Object"==(f=r(e))&&"function"==typeof e.callee?"Arguments":f}},function(t,e,n){"use strict";n(129);var r=n(12),o=n(16),c=n(10),f=n(22),l=n(2),h=n(66),d=l("species"),v=!c(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),y=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var m=l(t),_=!c(function(){var e={};return e[m]=function(){return 7},7!=""[t](e)}),w=_?!c(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[d]=function(){return n}),n[m](""),!e}):void 0;if(!_||!w||"replace"===t&&!v||"split"===t&&!y){var x=/./[m],O=n(f,m,""[t],function(t,e,n,r,o){return e.exec===h?_&&!o?{done:!0,value:x.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),S=O[0],A=O[1];r(String.prototype,t,S),o(RegExp.prototype,m,2==e?function(t,e){return A.call(t,this,e)}:function(t){return A.call(t,this)})}}},function(t,e,n){"use strict";var r=n(4);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(30),o=n(25);n(131)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){"use strict";var r=n(4),o=n(30),c=n(24),f=n(33),l=n(65),h=n(47),d=Math.max,v=Math.min,y=Math.floor,m=/\$([$&`']|\d\d?|<[^>]*>)/g,_=/\$([$&`']|\d\d?)/g;n(49)("replace",2,function(t,e,n,w){return[function(r,o){var c=t(this),f=null==r?void 0:r[e];return void 0!==f?f.call(r,c,o):n.call(String(c),r,o)},function(t,e){var o=w(n,t,this,e);if(o.done)return o.value;var y=r(t),m=String(this),_="function"==typeof e;_||(e=String(e));var O=y.global;if(O){var S=y.unicode;y.lastIndex=0}for(var A=[];;){var C=h(y,m);if(null===C)break;if(A.push(C),!O)break;""===String(C[0])&&(y.lastIndex=l(m,c(y.lastIndex),S))}for(var E,k="",j=0,i=0;i=j&&(k+=m.slice(j,T)+N,j=T+$.length)}return k+m.slice(j)}];function x(t,e,r,c,f,l){var h=r+t.length,d=c.length,v=_;return void 0!==f&&(f=o(f),v=m),n.call(l,v,function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(h);case"<":l=f[o.slice(1,-1)];break;default:var v=+o;if(0===v)return n;if(v>d){var m=y(v/10);return 0===m?n:m<=d?void 0===c[m-1]?o.charAt(1):c[m-1]+o.charAt(1):n}l=c[v-1]}return void 0===l?"":l})}})},,,,,,,function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(46),o=n(35),c=n(20),f=n(59),l=n(17),h=n(82),d=Object.getOwnPropertyDescriptor;e.f=n(8)?d:function(t,e){if(t=c(t),e=f(e,!0),h)try{return d(t,e)}catch(t){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(11),o=n(3).document,c=r(o)&&r(o.createElement);t.exports=function(t){return c?o.createElement(t):{}}},function(t,e,n){var r=n(42)("keys"),o=n(36);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){n(86)("asyncIterator")},function(t,e,n){"use strict";var r=n(80)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){"use strict";var r,o,c=n(50),f=RegExp.prototype.exec,l=String.prototype.replace,h=f,d=(r=/a/,o=/b*/g,f.call(r,"a"),f.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),v=void 0!==/()??/.exec("")[1];(d||v)&&(h=function(t){var e,n,r,i,o=this;return v&&(n=new RegExp("^"+o.source+"$(?!\\s)",c.call(o))),d&&(e=o.lastIndex),r=f.call(o,t),d&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),v&&r&&r.length>1&&l.call(r[0],n,function(){for(i=1;i1?arguments[1]:void 0)}}),n(78)("includes")},function(t,e,n){var r=n(11),o=n(23),c=n(2)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[c])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(4),o=n(43),c=n(2)("species");t.exports=function(t,e){var n,f=r(t).constructor;return void 0===f||null==(n=r(f)[c])?e:o(n)}},function(t,e,n){var r=n(7),o=n(148),c=n(20),f=n(60),l=n(149);r(r.S,"Object",{getOwnPropertyDescriptors:function(object){for(var t,desc,e=c(object),n=f.f,r=o(e),h={},i=0;r.length>i;)void 0!==(desc=n(e,t=r[i++]))&&l(h,t,desc);return h}})},,,,function(t,e,n){"use strict";function r(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function o(t,e){return e instanceof t||e&&(e.name===t.name||e._name===t._name)}function c(a,b){for(var t in b)a[t]=b[t];return a}var f={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,data=e.data;data.routerView=!0;for(var f=o.$createElement,l=n.name,h=o.$route,d=o._routerViewCache||(o._routerViewCache={}),v=0,y=!1;o&&o._routerRoot!==o;){var m=o.$vnode&&o.$vnode.data;m&&(m.routerView&&v++,m.keepAlive&&o._inactive&&(y=!0)),o=o.$parent}if(data.routerViewDepth=v,y)return f(d[l],data,r);var _=h.matched[v];if(!_)return d[l]=null,f();var component=d[l]=_.components[l];data.registerRouteInstance=function(t,e){var n=_.instances[l];(e&&n!==t||!e&&n===t)&&(_.instances[l]=e)},(data.hook||(data.hook={})).prepatch=function(t,e){_.instances[l]=e.componentInstance},data.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==_.instances[l]&&(_.instances[l]=t.componentInstance)};var w=data.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(h,_.props&&_.props[l]);if(w){w=data.props=c({},w);var x=data.attrs=data.attrs||{};for(var O in w)component.props&&O in component.props||(x[O]=w[O],delete w[O])}return f(component,data,r)}};var l=/[!'()*]/g,h=function(t){return"%"+t.charCodeAt(0).toString(16)},d=/%2C/g,v=function(t){return encodeURIComponent(t).replace(l,h).replace(d,",")},y=decodeURIComponent;function m(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(param){var t=param.replace(/\+/g," ").split("="),n=y(t.shift()),r=t.length>0?y(t.join("=")):null;void 0===e[n]?e[n]=r:Array.isArray(e[n])?e[n].push(r):e[n]=[e[n],r]}),e):e}function _(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return v(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(v(e)):r.push(v(e)+"="+v(t)))}),r.join("&")}return v(e)+"="+v(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var w=/\/?$/;function x(t,e,n,r){var o=r&&r.options.stringifyQuery,c=e.query||{};try{c=O(c)}catch(t){}var f={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:c,params:e.params||{},fullPath:C(e,o),matched:t?A(t):[]};return n&&(f.redirectedFrom=C(n,o)),Object.freeze(f)}function O(t){if(Array.isArray(t))return t.map(O);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=O(t[n]);return e}return t}var S=x(null,{path:"/"});function A(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function C(t,e){var path=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;return void 0===r&&(r=""),(path||"/")+(e||_)(n)+r}function E(a,b){return b===S?a===b:!!b&&(a.path&&b.path?a.path.replace(w,"")===b.path.replace(w,"")&&a.hash===b.hash&&k(a.query,b.query):!(!a.name||!b.name)&&(a.name===b.name&&a.hash===b.hash&&k(a.query,b.query)&&k(a.params,b.params)))}function k(a,b){if(void 0===a&&(a={}),void 0===b&&(b={}),!a||!b)return a===b;var t=Object.keys(a),e=Object.keys(b);return t.length===e.length&&t.every(function(t){var e=a[t],n=b[t];return"object"==typeof e&&"object"==typeof n?k(e,n):String(e)===String(n)})}function j(t,base,e){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return base+t;var r=base.split("/");e&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),i=0;i=0&&(t=path.slice(n),path=path.slice(0,n));var r=path.indexOf("?");return r>=0&&(e=path.slice(r+1),path=path.slice(0,r)),{path:path,query:e,hash:t}}(o.path||""),d=e&&e.path||"/",path=h.path?j(h.path,d,n||o.append):d,v=function(t,e,n){void 0===e&&(e={});var r,o=n||m;try{r=o(t||"")}catch(t){r={}}for(var c in e)r[c]=e[c];return r}(h.query,o.query,r&&r.options.parseQuery),y=o.hash||h.hash;return y&&"#"!==y.charAt(0)&&(y="#"+y),{_normalized:!0,path:path,query:v,hash:y}}var Y,Q=[String,Object],Z=[String,Array],tt=function(){},et={name:"RouterLink",props:{to:{type:Q,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Z,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),f=o.location,l=o.route,h=o.href,d={},v=n.options.linkActiveClass,y=n.options.linkExactActiveClass,m=null==v?"router-link-active":v,_=null==y?"router-link-exact-active":y,O=null==this.activeClass?m:this.activeClass,S=null==this.exactActiveClass?_:this.exactActiveClass,A=l.redirectedFrom?x(null,X(l.redirectedFrom),null,n):l;d[S]=E(r,A),d[O]=this.exact?d[S]:function(t,e){return 0===t.path.replace(w,"/").indexOf(e.path.replace(w,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,A);var C=function(t){nt(t)&&(e.replace?n.replace(f,tt):n.push(f,tt))},k={click:nt};Array.isArray(this.event)?this.event.forEach(function(t){k[t]=C}):k[this.event]=C;var data={class:d},j=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:h,route:l,navigate:C,isActive:d[O],isExactActive:d[S]});if(j){if(1===j.length)return j[0];if(j.length>1||!j.length)return 0===j.length?t():t("span",{},j)}if("a"===this.tag)data.on=k,data.attrs={href:h};else{var a=function t(e){if(e)for(var n,i=0;i-1&&(l.params[m]=n.params[m]);return l.path=J(v.path,l.params),h(v,l,f)}if(l.path){l.params={};for(var i=0;i=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function kt(t){return function(e,n,o){var c=!1,f=0,l=null;jt(t,function(t,e,n,h){if("function"==typeof t&&void 0===t.cid){c=!0,f++;var d,v=Pt(function(e){var r;((r=e).__esModule||Tt&&"Module"===r[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Y.extend(e),n.components[h]=e,--f<=0&&o()}),y=Pt(function(t){var e="Failed to resolve async component "+h+": "+t;l||(l=r(t)?t:new Error(e),o(l))});try{d=t(v,y)}catch(t){y(t)}if(d)if("function"==typeof d.then)d.then(v,y);else{var m=d.component;m&&"function"==typeof m.then&&m.then(v,y)}}}),c||o()}}function jt(t,e){return $t(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function $t(t){return Array.prototype.concat.apply([],t)}var Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Pt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var It=function(t){function e(){t.call(this,"Navigating to current location is not allowed"),this.name=this._name="NavigationDuplicated"}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);It._name="NavigationDuplicated";var Lt=function(t,base){this.router=t,this.base=function(base){if(!base)if(ot){var t=document.querySelector("base");base=(base=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else base="/";"/"!==base.charAt(0)&&(base="/"+base);return base.replace(/\/$/,"")}(base),this.current=S,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Rt(t,e,n,r){var o=jt(t,function(t,r,o,c){var f=function(t,e){"function"!=typeof t&&(t=Y.extend(t));return t.options[e]}(t,e);if(f)return Array.isArray(f)?f.map(function(t){return n(t,r,o,c)}):n(f,r,o,c)});return $t(r?o.reverse():o)}function Nt(t,e){if(e)return function(){return t.apply(e,arguments)}}Lt.prototype.listen=function(t){this.cb=t},Lt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Lt.prototype.onError=function(t){this.errorCbs.push(t)},Lt.prototype.transitionTo=function(t,e,n){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),e&&e(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},Lt.prototype.confirmTransition=function(t,e,n){var c=this,f=this.current,l=function(t){!o(It,t)&&r(t)&&(c.errorCbs.length?c.errorCbs.forEach(function(e){e(t)}):console.error(t)),n&&n(t)};if(E(t,f)&&t.matched.length===f.matched.length)return this.ensureURL(),l(new It(t));var h=function(t,e){var i,n=Math.max(t.length,e.length);for(i=0;i-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function qt(path){var t=window.location.href,i=t.indexOf("#");return(i>=0?t.slice(0,i):t)+"#"+path}function Ht(path){_t?At(qt(path)):window.location.hash=path}function Vt(path){_t?Ct(qt(path)):window.location.replace(qt(path))}var zt=function(t){function e(e,base){t.call(this,e,base),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)},function(t){o(It,t)&&(e.index=n)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Lt),Gt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=st(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!_t&&!1!==t.fallback,this.fallback&&(e="hash"),ot||(e="abstract"),this.mode=e,e){case"history":this.history=new Mt(this,t.base);break;case"hash":this.history=new Ft(this,t.base,this.fallback);break;case"abstract":this.history=new zt(this,t.base);break;default:0}},Kt={currentRoute:{configurable:!0}};function Wt(t,e){return t.push(e),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}Gt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Kt.currentRoute.get=function(){return this.history&&this.history.current},Gt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)}),!this.app){this.app=t;var n=this.history;if(n instanceof Mt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Ft){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Gt.prototype.beforeEach=function(t){return Wt(this.beforeHooks,t)},Gt.prototype.beforeResolve=function(t){return Wt(this.resolveHooks,t)},Gt.prototype.afterEach=function(t){return Wt(this.afterHooks,t)},Gt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Gt.prototype.onError=function(t){this.history.onError(t)},Gt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){r.history.push(t,e,n)});this.history.push(t,e,n)},Gt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){r.history.replace(t,e,n)});this.history.replace(t,e,n)},Gt.prototype.go=function(t){this.history.go(t)},Gt.prototype.back=function(){this.go(-1)},Gt.prototype.forward=function(){this.go(1)},Gt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Gt.prototype.resolve=function(t,e,n){var r=X(t,e=e||this.history.current,n,this),o=this.match(r,e),c=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(base,t,e){var path="hash"===e?"#"+t:t;return base?$(base+"/"+path):path}(this.history.base,c,this.mode),normalizedTo:r,resolved:o}},Gt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==S&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Gt.prototype,Kt),Gt.install=function t(e){if(!t.installed||Y!==e){t.installed=!0,Y=e;var n=function(t){return void 0!==t},r=function(t,e){var i=t.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",f),e.component("RouterLink",et);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Gt.version="3.1.2",ot&&window.Vue&&window.Vue.use(Gt),e.a=Gt},function(t,e,n){"use strict";(function(t){var n=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}var o=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(t,e){this._children[t]=e},o.prototype.removeChild=function(t){delete this._children[t]},o.prototype.getChild=function(t){return this._children[t]},o.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},o.prototype.forEachChild=function(t){r(this._children,t)},o.prototype.forEachGetter=function(t){this._rawModule.getters&&r(this._rawModule.getters,t)},o.prototype.forEachAction=function(t){this._rawModule.actions&&r(this._rawModule.actions,t)},o.prototype.forEachMutation=function(t){this._rawModule.mutations&&r(this._rawModule.mutations,t)},Object.defineProperties(o.prototype,c);var f=function(t){this.register([],t,!1)};f.prototype.get=function(path){return path.reduce(function(t,e){return t.getChild(e)},this.root)},f.prototype.getNamespace=function(path){var t=this.root;return path.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},f.prototype.update=function(t){!function t(path,e,n){0;e.update(n);if(n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;t(path.concat(r),e.getChild(r),n.modules[r])}}([],this.root,t)},f.prototype.register=function(path,t,e){var n=this;void 0===e&&(e=!0);var c=new o(t,e);0===path.length?this.root=c:this.get(path.slice(0,-1)).addChild(path[path.length-1],c);t.modules&&r(t.modules,function(t,r){n.register(path.concat(r),t,e)})},f.prototype.unregister=function(path){var t=this.get(path.slice(0,-1)),e=path[path.length-1];t.getChild(e).runtime&&t.removeChild(e)};var l;var h=function(t){var e=this;void 0===t&&(t={}),!l&&"undefined"!=typeof window&&window.Vue&&O(window.Vue);var r=t.plugins;void 0===r&&(r=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l;var c=this,h=this.dispatch,d=this.commit;this.dispatch=function(t,e){return h.call(c,t,e)},this.commit=function(t,e,n){return d.call(c,t,e,n)},this.strict=o;var v=this._modules.root.state;_(this,v,[],this._modules.root),m(this,v),r.forEach(function(t){return t(e)}),(void 0!==t.devtools?t.devtools:l.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){n.emit("vuex:mutation",t,e)}))}(this)},d={state:{configurable:!0}};function v(t,e){return e.indexOf(t)<0&&e.push(t),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function y(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;_(t,n,[],t._modules.root,!0),m(t,n,e)}function m(t,e,n){var o=t._vm;t.getters={};var c=t._wrappedGetters,f={};r(c,function(e,n){f[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var h=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:f}),l.config.silent=h,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(t),o&&(n&&t._withCommit(function(){o._data.$$state=null}),l.nextTick(function(){return o.$destroy()}))}function _(t,e,path,n,r){var o=!path.length,c=t._modules.getNamespace(path);if(n.namespaced&&(t._modulesNamespaceMap[c]=n),!o&&!r){var f=w(e,path.slice(0,-1)),h=path[path.length-1];t._withCommit(function(){l.set(f,h,n.state)})}var d=n.context=function(t,e,path){var n=""===e,r={dispatch:n?t.dispatch:function(n,r,o){var c=x(n,r,o),f=c.payload,l=c.options,h=c.type;return l&&l.root||(h=e+h),t.dispatch(h,f)},commit:n?t.commit:function(n,r,o){var c=x(n,r,o),f=c.payload,l=c.options,h=c.type;l&&l.root||(h=e+h),t.commit(h,f,l)}};return Object.defineProperties(r,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(o){if(o.slice(0,r)===e){var c=o.slice(r);Object.defineProperty(n,c,{get:function(){return t.getters[o]},enumerable:!0})}}),n}(t,e)}},state:{get:function(){return w(t.state,path)}}}),r}(t,c,path);n.forEachMutation(function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,r.state,e)})}(t,c+n,e,d)}),n.forEachAction(function(e,n){var r=e.root?n:c+n,o=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e,o){var c,f=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,o);return(c=f)&&"function"==typeof c.then||(f=Promise.resolve(f)),t._devtoolHook?f.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):f})}(t,r,o,d)}),n.forEachGetter(function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,c+n,e,d)}),n.forEachChild(function(n,o){_(t,e,path.concat(o),n,r)})}function w(t,path){return path.length?path.reduce(function(t,e){return t[e]},t):t}function x(t,e,n){var r;return null!==(r=t)&&"object"==typeof r&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function O(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},h.prototype.commit=function(t,e,n){var r=this,o=x(t,e,n),c=o.type,f=o.payload,l=(o.options,{type:c,payload:f}),h=this._mutations[c];h&&(this._withCommit(function(){h.forEach(function(t){t(f)})}),this._subscribers.forEach(function(sub){return sub(l,r.state)}))},h.prototype.dispatch=function(t,e){var n=this,r=x(t,e),o=r.type,c=r.payload,f={type:o,payload:c},l=this._actions[o];if(l){try{this._actionSubscribers.filter(function(sub){return sub.before}).forEach(function(sub){return sub.before(f,n.state)})}catch(t){0}return(l.length>1?Promise.all(l.map(function(t){return t(c)})):l[0](c)).then(function(t){try{n._actionSubscribers.filter(function(sub){return sub.after}).forEach(function(sub){return sub.after(f,n.state)})}catch(t){0}return t})}},h.prototype.subscribe=function(t){return v(t,this._subscribers)},h.prototype.subscribeAction=function(t){return v("function"==typeof t?{before:t}:t,this._actionSubscribers)},h.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},h.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},h.prototype.registerModule=function(path,t,e){void 0===e&&(e={}),"string"==typeof path&&(path=[path]),this._modules.register(path,t),_(this,this.state,path,this._modules.get(path),e.preserveState),m(this,this.state)},h.prototype.unregisterModule=function(path){var t=this;"string"==typeof path&&(path=[path]),this._modules.unregister(path),this._withCommit(function(){var e=w(t.state,path.slice(0,-1));l.delete(e,path[path.length-1])}),y(this)},h.prototype.hotUpdate=function(t){this._modules.update(t),y(this,!0)},h.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(h.prototype,d);var S=j(function(t,e){var n={};return k(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=$(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0}),n}),A=j(function(t,e){var n={};return k(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var c=$(this.$store,"mapMutations",t);if(!c)return;r=c.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}}),n}),C=j(function(t,e){var n={};return k(e).forEach(function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||$(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0}),n}),E=j(function(t,e){var n={};return k(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var c=$(this.$store,"mapActions",t);if(!c)return;r=c.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}}),n});function k(map){return Array.isArray(map)?map.map(function(t){return{key:t,val:t}}):Object.keys(map).map(function(t){return{key:t,val:map[t]}})}function j(t){return function(e,map){return"string"!=typeof e?(map=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,map)}}function $(t,e,n){return t._modulesNamespaceMap[n]}var T={Store:h,install:O,version:"3.1.1",mapState:S,mapMutations:A,mapGetters:C,mapActions:E,createNamespacedHelpers:function(t){return{mapState:S.bind(null,t),mapGetters:C.bind(null,t),mapMutations:A.bind(null,t),mapActions:E.bind(null,t)}}};e.a=T}).call(this,n(19))},function(t,e,n){var r=n(4),o=n(123),c=n(63),f=n(62)("IE_PROTO"),l=function(){},h=function(){var t,iframe=n(61)("iframe"),i=c.length;for(iframe.style.display="none",n(85).appendChild(iframe),iframe.src="javascript:",(t=iframe.contentWindow.document).open(),t.write(" +
diff --git a/docs/login/index.html b/docs/login/index.html index 2a547d8..01ad6ac 100644 --- a/docs/login/index.html +++ b/docs/login/index.html @@ -1,11 +1,11 @@ - Beer + Beer
ppp{} -

已有帐号?

请使用您的帐号进行登录

没有帐号?

立即注册加入我们,和我们一起开始旅程吧

+

已有帐号?

请使用您的帐号进行登录

没有帐号?

立即注册加入我们,和我们一起开始旅程吧

diff --git a/package-lock.json b/package-lock.json index 567efb9..f43daa5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3529,6 +3529,11 @@ "safer-buffer": "^2.1.0" } }, + "echart-tree": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/echart-tree/-/echart-tree-1.0.4.tgz", + "integrity": "sha512-RcxXgzL9cZCI8OwgRJlGZdH55GXyog9jdKwxuQMEkulbGmJttE4eHhCdT5NIuWEQVkIvwHsyo4u3CFNabc6YxQ==" + }, "ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", diff --git a/package.json b/package.json index 5a188ab..8e713b3 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "autoprefixer": "^9.6.1", "bootstrap-vue": "^2.0.0-rc.27", "cross-env": "^5.2.0", + "echart-tree": "^1.0.4", "jquery": "^3.4.1", "koa": "^2.6.2", "koa-router": "^7.4.0", diff --git a/pages/index.vue b/pages/index.vue index 3aa6871..84b305b 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,31 +1,60 @@ diff --git a/plugins/global-components.js b/plugins/global-components.js index b3ff65e..20bb122 100644 --- a/plugins/global-components.js +++ b/plugins/global-components.js @@ -1,19 +1,20 @@ // 引入vue 及 lodash import Vue from 'vue' -import upperFirst from 'lodash/upperFirst' // 首字线大写 -import camelCase from 'lodash/camelCase' // 驼峰命名大法 +import upperFirst from 'lodash/upperFirst' // 首字线大写 +import camelCase from 'lodash/camelCase' // 驼峰命名大法 // 把 /component/base/ 下的所有 vue 组件 require 进来 // path: 要引入的组件所在相对路径(相对于当前文件) // deep: 是否检索子文件夹 // matchFile: 匹配的文件名称 // require.context(path, deep, matchFile) -const requireComponent = require.context('../components/base/', false, /_base-[\w-]+\.vue$/) +const requireComponent = require.context('../components/base/', true, /_base-[\w-]+\.vue$/) // 遍历 require 进来的组件并注册 requireComponent.keys().forEach((fileName) => { + const componentConfig = requireComponent(fileName) - const componentName = upperFirst( camelCase( fileName.replace(/^\.\/_/, '').replace(/\.\w+$/, '') ) ) + const componentName = upperFirst(camelCase(fileName.replace(/^\.\/_/, '').replace(/\.\w+$/, ''))) // 全局注册组件 Vue.component(componentName, componentConfig.default || componentConfig) -}) +}) \ No newline at end of file diff --git a/plugins/global.js b/plugins/global.js index 38e4ee2..2d1c0dd 100644 --- a/plugins/global.js +++ b/plugins/global.js @@ -1,9 +1,14 @@ import Vue from 'vue' -Vue.directive('stopsubmit',{ - inserted:function(el){ - el.addEventListener('submit',function(e){ - e.preventDefault(); - }); - } - }); \ No newline at end of file +Vue.directive('focus', { + inserted: function (el) { + el.focus(); + } +}); +Vue.directive('stopsubmit', { + inserted: function (el) { + el.addEventListener('submit', function (e) { + e.preventDefault(); + }); + } +}); \ No newline at end of file