')).get(0),
A = v + E + "-el",
L = "".concat(v + P + "-el", " ").concat(v + P),
_ = "".concat(A, " ").concat(v + E);
y = u('
')).get(0), w = u('
')).get(0), x = u('
')).get(0), O = u('
')).get(0), C = u('
')).get(0), S = u('
')).get(0), k = u('
')).get(0), j = u('
')).get(0), this["marginT" + o] = y, this["marginB" + o] = w, this["marginL" + o] = x, this["marginR" + o] = O, this["padT" + o] = C, this["padB" + o] = S, this["padL" + o] = k, this["padR" + o] = j, M.appendChild(y), M.appendChild(w), M.appendChild(x), M.appendChild(O), D.appendChild(C), D.appendChild(S), D.appendChild(k), D.appendChild(j), b.appendChild(M), b.appendChild(D), this[m] = "1"
}
var N = "px",
I = parseFloat(g.marginLeft.replace(N, "")) * d,
F = parseFloat(g.marginRight.replace(N, "")) * d,
V = parseFloat(g.marginTop.replace(N, "")) * d,
R = parseFloat(g.marginBottom.replace(N, "")) * d,
z = y.style,
H = w.style,
$ = x.style,
U = O.style,
B = C.style,
W = S.style,
q = k.style,
G = j.style,
K = parseFloat(p.left),
Y = parseFloat(g.width) * d + N;
z.height = V + N, z.width = Y, z.top = p.top - V + N, z.left = K + N, H.height = R + N, H.width = Y, H.top = p.top + p.height + N, H.left = K + N;
var X = p.height + V + R + N,
J = p.top - V + N;
$.height = X, $.width = I + N, $.top = J, $.left = K - I + N, U.height = X, U.width = F + N, U.top = J, U.left = K + p.width + N;
var Z = parseFloat(g.paddingTop) * d;
B.height = Z + N;
var Q = parseFloat(g.paddingBottom) * d;
W.height = Q + N;
var tt = p.height - Q - Z + N,
et = p.top + Z + N;
q.height = tt, q.width = parseFloat(g.paddingLeft) * d + N, q.top = et;
var nt = parseFloat(g.paddingRight) * d;
G.height = tt, G.width = nt + N, G.top = et
}
},
stop: function(t, e) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
r = (n || {}).state || "",
i = this.getOffsetMethod(r);
t.Canvas[i](n.view).style.opacity = 0
}
}
}, function(t, e, n) {
"use strict";
n.r(e), e.default = {
run: function(t) {
this.toggleVis(t)
},
stop: function(t) {
this.toggleVis(t, 0)
},
toggleVis: function(t) {
var e = this,
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1;
if (!t.Commands.isActive("preview")) {
var r = n ? "add" : "remove";
t.Canvas.getFrames().forEach(function(t) {
t.view.getBody().classList[r]("".concat(e.ppfx, "dashed"))
})
}
}
}
}, function(t, e, n) {
"use strict";
n.r(e);
var r = n(2),
i = n.n(r),
o = {
stylePrefix: "",
appendTo: "",
sortable: 1,
hidable: 1,
hideTextnode: 1,
root: "",
showWrapper: 1,
showHover: 1,
scrollCanvas: {
behavior: "smooth",
block: "nearest"
},
scrollLayers: {
behavior: "auto",
block: "nearest"
},
highlightHover: 1
},
a = n(36),
s = n(0);
function l(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})), n.push.apply(n, r)
}
return n
}
function c(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? l(Object(n), !0).forEach(function(e) {
i()(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : l(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
e.default = function() {
var t, e, n = {};
return {
name: "LayerManager",
init: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return (n = c(c({}, o), e)).stylePrefix = e.pStylePrefix, t = n.em, this
},
getConfig: function() {
return n
},
onLoad: function() {
e = new a.a({
level: 0,
config: n,
opened: n.opened || {},
model: t.get("DomComponents").getWrapper()
}), t && t.on("component:selected", this.componentChanged), this.componentChanged()
},
postRender: function() {
var t = n.appendTo,
e = n.root;
e && this.setRoot(e), t && (Object(s.isElement)(t) ? t : document.querySelector(t)).appendChild(this.render())
},
setRoot: function(t) {
return e.setRoot(t), this
},
getRoot: function() {
return e.model
},
getAll: function() {
return e
},
componentChanged: function(e) {
if (!(arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}).fromLayers) {
var r = t.get("opened"),
i = t.getSelected(),
o = n.scrollLayers,
a = i && i.collection ? i.collection.parent : null;
for (var s in r) r[s].set("open", 0);
for (; a;) a.set("open", 1), r[a.cid] = a, a = a.collection ? a.collection.parent : null;
if (i && o) {
var l = i.viewLayer && i.viewLayer.el;
l && l.scrollIntoView(o)
}
}
},
render: function() {
return e.render().el
},
destroy: function() {
e && e.remove(), [t, e, n].forEach(function(t) {
return {}
})
}
}
}
}, function(t, e, n) {
var r, i, o;
i = [n(0), n(1)], void 0 === (o = "function" == typeof(r = function(t, e) {
var n = Array.prototype.slice;
function r(t, e, n) {
return n.length <= 4 ? t.call(e, n[0], n[1], n[2], n[3]) : t.apply(e, n)
}
function i(t, e) {
return n.call(t, e)
}
function o(e, n) {
return null != e && (t.isArray(n) || (n = i(arguments, 1)), t.all(n, function(t) {
return t in e
}))
}
var a, s, l = (a = !1, s = -1, function() {
return a || (s++, a = !0, t.defer(function() {
a = !1
})), s
});
function c() {
this.registeredObjects = [], this.cidIndexes = []
}
function u(e, n, r, i) {
for (var o, a = 0, s = n.length; a < s; a++)
if (o = n[a]) {
if ("on" === e) {
if (!i.objectRegistry.register(o)) continue
} else if (!i.objectRegistry.unregister(o)) continue;
t.isFunction(o[e]) && o[e]("all", r, i)
}
}
function d(e, n) {
var r = n.type,
i = n.undoTypes,
o = !i[r] || i[r][e];
t.isFunction(o) && o(n.object, n.before, n.after, n.options)
}
function h(e, r, i, o, a) {
if (!(i.isCurrentlyUndoRedoing || "undo" === e && -1 === i.pointer || "redo" === e && i.pointer === i.length - 1)) {
i.isCurrentlyUndoRedoing = !0;
var s, l, c = "undo" === e;
for (a ? l = c && i.pointer === i.length - 1 || !c && -1 === i.pointer ? t.clone(i.models) : n.apply(i.models, c ? [0, i.pointer] : [i.pointer, i.length - 1]) : (s = i.at(c ? i.pointer : i.pointer + 1), l = o ? i.where({
magicFusionIndex: s.get("magicFusionIndex")
}) : [s]), i.pointer += (c ? -1 : 1) * l.length; s = c ? l.pop() : l.shift();) s[e]();
i.isCurrentlyUndoRedoing = !1, r.trigger(e, r)
}
}
c.prototype = {
isRegistered: function(e) {
return e && e.cid ? this.registeredObjects[e.cid] : t.contains(this.registeredObjects, e)
},
register: function(t) {
return !this.isRegistered(t) && (t && t.cid ? (this.registeredObjects[t.cid] = t, this.cidIndexes.push(t.cid)) : this.registeredObjects.push(t), !0)
},
unregister: function(e) {
if (this.isRegistered(e)) {
if (e && e.cid) delete this.registeredObjects[e.cid], this.cidIndexes.splice(t.indexOf(this.cidIndexes, e.cid), 1);
else {
var n = t.indexOf(this.registeredObjects, e);
this.registeredObjects.splice(n, 1)
}
return !0
}
return !1
},
get: function() {
return t.map(this.cidIndexes, function(t) {
return this.registeredObjects[t]
}, this).concat(this.registeredObjects)
}
};
var f = {
add: {
undo: function(t, e, n, r) {
t.remove(n, r)
},
redo: function(t, e, n, r) {
r.index && (r.at = r.index), t.add(n, r)
},
on: function(e, n, r) {
return {
object: n,
before: void 0,
after: e,
options: t.clone(r)
}
}
},
remove: {
undo: function(t, e, n, r) {
"index" in r && (r.at = r.index), t.add(e, r)
},
redo: function(t, e, n, r) {
t.remove(e, r)
},
on: function(e, n, r) {
return {
object: n,
before: e,
after: void 0,
options: t.clone(r)
}
}
},
change: {
undo: function(e, n, r, i) {
t.isEmpty(n) ? t.each(t.keys(r), e.unset, e) : (e.set(n), i && i.unsetData && i.unsetData.before && i.unsetData.before.length && t.each(i.unsetData.before, e.unset, e))
},
redo: function(e, n, r, i) {
t.isEmpty(r) ? t.each(t.keys(n), e.unset, e) : (e.set(r), i && i.unsetData && i.unsetData.after && i.unsetData.after.length && t.each(i.unsetData.after, e.unset, e))
},
on: function(e, n) {
var r = e.changedAttributes(),
i = t.keys(r),
o = t.pick(e.previousAttributes(), i),
a = t.keys(o),
s = (n || (n = {})).unsetData = {
after: [],
before: []
};
return i.length != a.length && (i.length > a.length ? t.each(i, function(t) {
t in o || s.before.push(t)
}, this) : t.each(a, function(t) {
t in r || s.after.push(t)
})), {
object: e,
before: o,
after: r,
options: t.clone(n)
}
}
},
reset: {
undo: function(t, e, n) {
t.reset(e)
},
redo: function(t, e, n) {
t.reset(n)
},
on: function(e, n) {
return {
object: e,
before: n.previousModels,
after: t.clone(e.models)
}
}
}
};
function p() {}
function g(e, n, r, i) {
if ("object" == typeof n) return t.each(n, function(t, n) {
2 === e ? g(e, t, r, i) : g(e, n, t, r)
});
switch (e) {
case 0:
o(r, "undo", "redo", "on") && t.all(t.pick(r, "undo", "redo", "on"), t.isFunction) && (i[n] = r);
break;
case 1:
i[n] && t.isObject(r) && (i[n] = t.extend({}, i[n], r));
break;
case 2:
delete i[n]
}
return this
}
p.prototype = f;
var v = e.Model.extend({
defaults: {
type: null,
object: null,
before: null,
after: null,
magicFusionIndex: null
},
undo: function(t) {
d("undo", this.attributes)
},
redo: function(t) {
d("redo", this.attributes)
}
}),
m = e.Collection.extend({
model: v,
pointer: -1,
track: !1,
isCurrentlyUndoRedoing: !1,
maximumStackLength: 1 / 0,
setMaxLength: function(t) {
this.maximumStackLength = t
}
}),
b = e.Model.extend({
defaults: {
maximumStackLength: 1 / 0,
track: !1
},
initialize: function(e) {
this.stack = new m, this.objectRegistry = new c, this.undoTypes = new p, this.stack.setMaxLength(this.get("maximumStackLength")), this.on("change:maximumStackLength", function(t, e) {
this.stack.setMaxLength(e)
}, this), e && e.track && this.startTracking(), e && e.register && (t.isArray(e.register) || t.isArguments(e.register) ? r(this.register, this, e.register) : this.register(e.register))
},
startTracking: function() {
this.set("track", !0), this.stack.track = !0
},
stopTracking: function() {
this.set("track", !1), this.stack.track = !1
},
isTracking: function() {
return this.get("track")
},
_addToStack: function(t) {
! function(t, e, n, i) {
if (t.track && !t.isCurrentlyUndoRedoing && e in i && function(t, e) {
var n = t.condition,
i = typeof n;
return "function" === i ? !!r(n, t, e) : "boolean" !== i || n
}(i[e], n)) {
var a = r(i[e].on, i[e], n);
if (o(a, "object", "before", "after")) {
if (a.type = e, a.magicFusionIndex = l(), a.undoTypes = i, t.pointer < t.length - 1)
for (var s = t.length - t.pointer - 1; s--;) t.pop();
t.pointer = t.length, t.add(a), t.length > t.maximumStackLength && (t.shift(), t.pointer--)
}
}
}(this.stack, t, i(arguments, 1), this.undoTypes)
},
register: function() {
u("on", arguments, this._addToStack, this)
},
unregister: function() {
u("off", arguments, this._addToStack, this)
},
unregisterAll: function() {
r(this.unregister, this, this.objectRegistry.get())
},
undo: function(t) {
h("undo", this, this.stack, t)
},
undoAll: function() {
h("undo", this, this.stack, !1, !0)
},
redo: function(t) {
h("redo", this, this.stack, t)
},
redoAll: function() {
h("redo", this, this.stack, !1, !0)
},
isAvailable: function(t) {
var e = this.stack,
n = e.length;
switch (t) {
case "undo":
return n > 0 && e.pointer > -1;
case "redo":
return n > 0 && e.pointer < n - 1;
default:
return !1
}
},
merge: function(e) {
for (var n, r = t.isArray(e) ? e : i(arguments); n = r.pop();) n instanceof b && n.stack instanceof m && (n.stack = this.stack)
},
addUndoType: function(t, e) {
g(0, t, e, this.undoTypes)
},
changeUndoType: function(t, e) {
g(1, t, e, this.undoTypes)
},
removeUndoType: function(t) {
g(2, t, void 0, this.undoTypes)
},
clear: function() {
this.stack.reset(), this.stack.pointer = -1
}
});
return t.extend(b, {
defaults: function(e) {
t.extend(b.prototype.defaults, e)
},
addUndoType: function(t, e) {
g(0, t, e, f)
},
changeUndoType: function(t, e) {
g(1, t, e, f)
},
removeUndoType: function(t) {
g(2, t, void 0, f)
}
}), e.UndoManager = b
}) ? r.apply(e, i) : r) || (t.exports = o)
}, function(t, e, n) {
"use strict";
e.a = function(t) {
var e = this.constructor;
return this.then(function(n) {
return e.resolve(t()).then(function() {
return n
})
}, function(n) {
return e.resolve(t()).then(function() {
return e.reject(n)
})
})
}
}, function(t, e, n) {
"use strict";
var r = n(8),
i = n.n(r);
e.a = function(t) {
return new this(function(e, n) {
if (!t || void 0 === t.length) return n(new TypeError(i()(t) + " " + t + " is not iterable(cannot read property Symbol(Symbol.iterator))"));
var r = Array.prototype.slice.call(t);
if (0 === r.length) return e([]);
var o = r.length;
function a(t, n) {
if (n && ("object" === i()(n) || "function" == typeof n)) {
var s = n.then;
if ("function" == typeof s) return void s.call(n, function(e) {
a(t, e)
}, function(n) {
r[t] = {
status: "rejected",
reason: n
}, 0 == --o && e(r)
})
}
r[t] = {
status: "fulfilled",
value: n
}, 0 == --o && e(r)
}
for (var s = 0; s < r.length; s++) a(s, r[s])
})
}
}, function(t, e, n) {
var r = n(87),
i = n(88),
o = n(43),
a = n(89);
t.exports = function(t, e) {
return r(t) || i(t, e) || o(t, e) || a()
}
}, function(t, e, n) {
var r = n(42);
t.exports = function(t) {
if (Array.isArray(t)) return r(t)
}
}, function(t, e) {
t.exports = function(t) {
if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t)
}
}, function(t, e) {
t.exports = function() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}
}, function(t, e, n) {
"use strict";
n.r(e);
var r = n(8),
i = n.n(r),
o = n(2),
a = n.n(o),
s = n(0),
l = n(39),
c = n.n(l);
function u(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})), n.push.apply(n, r)
}
return n
}
function d(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? u(Object(n), !0).forEach(function(e) {
a()(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : u(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
e.default = function() {
var t, e, n = {},
r = {
defaults: {
"core:undo": {
keys: "⌘+z, ctrl+z",
handler: "core:undo"
},
"core:redo": {
keys: "⌘+shift+z, ctrl+shift+z",
handler: "core:redo"
},
"core:copy": {
keys: "⌘+c, ctrl+c",
handler: "core:copy"
},
"core:paste": {
keys: "⌘+v, ctrl+v",
handler: "core:paste"
},
"core:component-next": {
keys: "s",
handler: "core:component-next"
},
"core:component-prev": {
keys: "w",
handler: "core:component-prev"
},
"core:component-enter": {
keys: "d",
handler: "core:component-enter"
},
"core:component-exit": {
keys: "a",
handler: "core:component-exit"
},
"core:component-delete": {
keys: "backspace, delete",
handler: "core:component-delete",
opts: {
prevent: 1
}
}
}
};
return {
keymaster: c.a,
name: "Keymaps",
getConfig: function() {
return e
},
init: function() {
var n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return e = d(d({}, r), n), t = e.em, this.em = t, this
},
onLoad: function() {
var t = e.defaults;
for (var n in t) {
var r = t[n];
this.add(n, r.keys, r.handler, r.opts || {})
}
},
add: function(t, e, r) {
var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {},
a = this.em,
l = a.get("Commands"),
u = a.getEditor(),
d = a.get("Canvas"),
h = {
id: t,
keys: e,
handler: r
};
return n[t] && this.remove(t), n[t] = h, c()(e, function(e, n) {
var c = {
event: e,
h: n
};
if (r = Object(s.isString)(r) ? l.get(r) : r, !a.isEditing() && !u.Canvas.isInputFocused() || o.force) {
o.prevent && d.getCanvasView().preventDefault(e), "object" == i()(r) ? l.runCommand(r, c) : r(u, 0, c);
var h = [t, n.shortcut, e];
a.trigger.apply(a, ["keymap:emit"].concat(h)), a.trigger.apply(a, ["keymap:emit:".concat(t)].concat(h))
}
}), a.trigger("keymap:add", h), h
},
get: function(t) {
return n[t]
},
getAll: function() {
return n
},
remove: function(t) {
var e = this.em,
r = this.get(t);
if (r) return delete n[t], r.keys.split(", ").forEach(function(t) {
return c.a.unbind(t.trim())
}), e && e.trigger("keymap:remove", r), r
},
removeAll: function() {
var t = this;
return Object.keys(n).forEach(function(e) {
return t.remove(e)
}), this
},
destroy: function() {
this.removeAll(), [t, e, n].forEach(function(t) {
return {}
}), this.em = {}
}
}
}
}, function(t, e, n) {
"use strict";
n.r(e);
var r = n(2),
i = n.n(r),
o = n(70),
a = n.n(o);
function s(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})), n.push.apply(n, r)
}
return n
}
function l(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? s(Object(n), !0).forEach(function(e) {
i()(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : s(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
e.default = function() {
var t, e, n, r, i = {
maximumStackLength: 500
},
o = function(t) {
return t.avoidStore || t.noUndo
};
return {
name: "UndoManager",
init: function() {
var s = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
n = l(l({}, s), i), t = n.em, this.em = t, (e = new a.a(l({
track: !0,
register: []
}, n))).changeUndoType("change", {
condition: !1
}), e.changeUndoType("add", {
on: function(t, e) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
if (!o(n)) return {
object: e,
before: void 0,
after: t,
options: l({}, n)
}
}
}), e.changeUndoType("remove", {
on: function(t, e) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
if (!o(n)) return {
object: e,
before: t,
after: void 0,
options: l({}, n)
}
}
});
var c = {
on: function(t, e) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
if (!r && (r = t.previousAttributes()), !o(n)) {
var i = {
object: t,
before: r,
after: t.toJSON({
keepSymbols: 1
})
};
return r = null, i
}
},
undo: function(t, e, n, r) {
t.set(e)
},
redo: function(t, e, n, r) {
t.set(n)
}
};
return ["style", "attributes", "content", "src"].forEach(function(t) {
return e.addUndoType("change:".concat(t), c)
}), e.on("undo redo", function() {
return t.trigger("component:toggled change:canvasOffset")
}), ["undo", "redo"].forEach(function(n) {
return e.on(n, function() {
return t.trigger(n)
})
}), this
},
getConfig: function() {
return n
},
add: function(t) {
return e.register(t), this
},
remove: function(t) {
return e.unregister(t), this
},
removeAll: function() {
return e.unregisterAll(), this
},
start: function() {
return e.startTracking(), this
},
stop: function() {
return e.stopTracking(), this
},
undo: function() {
var n = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0];
return !t.isEditing() && e.undo(n), this
},
undoAll: function() {
return e.undoAll(), this
},
redo: function() {
var n = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0];
return !t.isEditing() && e.redo(n), this
},
redoAll: function() {
return e.redoAll(), this
},
hasUndo: function() {
return e.isAvailable("undo")
},
hasRedo: function() {
return e.isAvailable("redo")
},
getStack: function() {
return e.stack
},
getStackGroup: function() {
var t = [],
e = [];
return this.getStack().forEach(function(n) {
var r = n.get("magicFusionIndex");
e.indexOf(r) < 0 && (e.push(r), t.push(n))
}), t
},
getPointer: function() {
return this.getStack().pointer
},
clear: function() {
return e.clear(), this
},
getInstance: function() {
return e
},
destroy: function() {
this.clear().removeAll(), [t, e, n, r].forEach(function(t) {
return {}
}), this.em = {}
}
}
}
}, function(t, e, n) {
(function(t) {
var r = void 0 !== t && t || "undefined" != typeof self && self || window,
i = Function.prototype.apply;
function o(t, e) {
this._id = t, this._clearFn = e
}
e.setTimeout = function() {
return new o(i.call(setTimeout, r, arguments), clearTimeout)
}, e.setInterval = function() {
return new o(i.call(setInterval, r, arguments), clearInterval)
}, e.clearTimeout = e.clearInterval = function(t) {
t && t.close()
}, o.prototype.unref = o.prototype.ref = function() {}, o.prototype.close = function() {
this._clearFn.call(r, this._id)
}, e.enroll = function(t, e) {
clearTimeout(t._idleTimeoutId), t._idleTimeout = e
}, e.unenroll = function(t) {
clearTimeout(t._idleTimeoutId), t._idleTimeout = -1
}, e._unrefActive = e.active = function(t) {
clearTimeout(t._idleTimeoutId);
var e = t._idleTimeout;
e >= 0 && (t._idleTimeoutId = setTimeout(function() {
t._onTimeout && t._onTimeout()
}, e))
}, n(80), e.setImmediate = "undefined" != typeof self && self.setImmediate || void 0 !== t && t.setImmediate || this && this.setImmediate, e.clearImmediate = "undefined" != typeof self && self.clearImmediate || void 0 !== t && t.clearImmediate || this && this.clearImmediate
}).call(this, n(26))
}, function(t, e, n) {
(function(t, e) {
! function(t, n) {
"use strict";
if (!t.setImmediate) {
var r, i, o, a, s, l = 1,
c = {},
u = !1,
d = t.document,
h = Object.getPrototypeOf && Object.getPrototypeOf(t);
h = h && h.setTimeout ? h : t, "[object process]" === {}.toString.call(t.process) ? r = function(t) {
e.nextTick(function() {
p(t)
})
} : function() {
if (t.postMessage && !t.importScripts) {
var e = !0,
n = t.onmessage;
return t.onmessage = function() {
e = !1
}, t.postMessage("", "*"), t.onmessage = n, e
}
}() ? (a = "setImmediate$" + Math.random() + "$", s = function(e) {
e.source === t && "string" == typeof e.data && 0 === e.data.indexOf(a) && p(+e.data.slice(a.length))
}, t.addEventListener ? t.addEventListener("message", s, !1) : t.attachEvent("onmessage", s), r = function(e) {
t.postMessage(a + e, "*")
}) : t.MessageChannel ? ((o = new MessageChannel).port1.onmessage = function(t) {
p(t.data)
}, r = function(t) {
o.port2.postMessage(t)
}) : d && "onreadystatechange" in d.createElement("script") ? (i = d.documentElement, r = function(t) {
var e = d.createElement("script");
e.onreadystatechange = function() {
p(t), e.onreadystatechange = null, i.removeChild(e), e = null
}, i.appendChild(e)
}) : r = function(t) {
setTimeout(p, 0, t)
}, h.setImmediate = function(t) {
"function" != typeof t && (t = new Function("" + t));
for (var e = new Array(arguments.length - 1), n = 0; n < e.length; n++) e[n] = arguments[n + 1];
var i = {
callback: t,
args: e
};
return c[l] = i, r(l), l++
}, h.clearImmediate = f
}
function f(t) {
delete c[t]
}
function p(t) {
if (u) setTimeout(p, 0, t);
else {
var e = c[t];
if (e) {
u = !0;
try {
! function(t) {
var e = t.callback,
r = t.args;
switch (r.length) {
case 0:
e();
break;
case 1:
e(r[0]);
break;
case 2:
e(r[0], r[1]);
break;
case 3:
e(r[0], r[1], r[2]);
break;
default:
e.apply(n, r)
}
}(e)
} finally {
f(t), u = !1
}
}
}
}
}("undefined" == typeof self ? void 0 === t ? this : t : self)
}).call(this, n(26), n(81))
}, function(t, e) {
var n, r, i = t.exports = {};
function o() {
throw new Error("setTimeout has not been defined")
}
function a() {
throw new Error("clearTimeout has not been defined")
}
function s(t) {
if (n === setTimeout) return setTimeout(t, 0);
if ((n === o || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0);
try {
return n(t, 0)
} catch (e) {
try {
return n.call(null, t, 0)
} catch (e) {
return n.call(this, t, 0)
}
}
}! function() {
try {
n = "function" == typeof setTimeout ? setTimeout : o
} catch (t) {
n = o
}
try {
r = "function" == typeof clearTimeout ? clearTimeout : a
} catch (t) {
r = a
}
}();
var l, c = [],
u = !1,
d = -1;
function h() {
u && l && (u = !1, l.length ? c = l.concat(c) : d = -1, c.length && f())
}
function f() {
if (!u) {
var t = s(h);
u = !0;
for (var e = c.length; e;) {
for (l = c, c = []; ++d < e;) l && l[d].run();
d = -1, e = c.length
}
l = null, u = !1,
function(t) {
if (r === clearTimeout) return clearTimeout(t);
if ((r === a || !r) && clearTimeout) return r = clearTimeout, clearTimeout(t);
try {
r(t)
} catch (e) {
try {
return r.call(null, t)
} catch (e) {
return r.call(this, t)
}
}
}(t)
}
}
function p(t, e) {
this.fun = t, this.array = e
}
function g() {}
i.nextTick = function(t) {
var e = new Array(arguments.length - 1);
if (arguments.length > 1)
for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
c.push(new p(t, e)), 1 !== c.length || u || s(f)
}, p.prototype.run = function() {
this.fun.apply(null, this.array)
}, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {}, i.on = g, i.addListener = g, i.once = g, i.off = g, i.removeListener = g, i.removeAllListeners = g, i.emit = g, i.prependListener = g, i.prependOnceListener = g, i.listeners = function(t) {
return []
}, i.binding = function(t) {
throw new Error("process.binding is not supported")
}, i.cwd = function() {
return "/"
}, i.chdir = function(t) {
throw new Error("process.chdir is not supported")
}, i.umask = function() {
return 0
}
}, function(t, e) {
t.exports = function(t, e) {
if (null == t) return {};
var n, r, i = {},
o = Object.keys(t);
for (r = 0; r < o.length; r++) n = o[r], e.indexOf(n) >= 0 || (i[n] = t[n]);
return i
}
}, function(t, e, n) {
! function(t) {
"use strict";
var e = {
script: [
["lang", /(javascript|babel)/i, "javascript"],
["type", /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i, "javascript"],
["type", /./, "text/plain"],
[null, null, "javascript"]
],
style: [
["lang", /^css$/i, "css"],
["type", /^(text\/)?(x-)?(stylesheet|css)$/i, "css"],
["type", /./, "text/plain"],
[null, null, "css"]
]
},
n = {};
function r(t, e) {
var r = t.match(function(t) {
return n[t] || (n[t] = new RegExp("\\s+" + t + "\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))
}(e));
return r ? /^\s*(.*?)\s*$/.exec(r[2])[1] : ""
}
function i(t, e) {
return new RegExp((e ? "^" : "") + "", "i")
}
function o(t, e) {
for (var n in t)
for (var r = e[n] || (e[n] = []), i = t[n], o = i.length - 1; o >= 0; o--) r.unshift(i[o])
}
t.defineMode("htmlmixed", function(n, a) {
var s = t.getMode(n, {
name: "xml",
htmlMode: !0,
multilineTagIndentFactor: a.multilineTagIndentFactor,
multilineTagIndentPastTag: a.multilineTagIndentPastTag,
allowMissingTagName: a.allowMissingTagName
}),
l = {},
c = a && a.tags,
u = a && a.scriptTypes;
if (o(e, l), c && o(c, l), u)
for (var d = u.length - 1; d >= 0; d--) l.script.unshift(["type", u[d].matches, u[d].mode]);
function h(e, o) {
var a, c = s.token(e, o.htmlState),
u = /\btag\b/.test(c);
if (u && !/[<>\s\/]/.test(e.current()) && (a = o.htmlState.tagName && o.htmlState.tagName.toLowerCase()) && l.hasOwnProperty(a)) o.inTag = a + " ";
else if (o.inTag && u && />$/.test(e.current())) {
var d = /^([\S]+) (.*)/.exec(o.inTag);
o.inTag = null;
var f = ">" == e.current() && function(t, e) {
for (var n = 0; n < t.length; n++) {
var i = t[n];
if (!i[0] || i[1].test(r(e, i[0]))) return i[2]
}
}(l[d[1]], d[2]),
p = t.getMode(n, f),
g = i(d[1], !0),
v = i(d[1], !1);
o.token = function(t, e) {
return t.match(g, !1) ? (e.token = h, e.localState = e.localMode = null, null) : function(t, e, n) {
var r = t.current(),
i = r.search(e);
return i > -1 ? t.backUp(r.length - i) : r.match(/<\/?$/) && (t.backUp(r.length), t.match(e, !1) || t.match(r)), n
}(t, v, e.localMode.token(t, e.localState))
}, o.localMode = p, o.localState = t.startState(p, s.indent(o.htmlState, "", ""))
} else o.inTag && (o.inTag += e.current(), e.eol() && (o.inTag += " "));
return c
}
return {
startState: function() {
return {
token: h,
inTag: null,
localMode: null,
localState: null,
htmlState: t.startState(s)
}
},
copyState: function(e) {
var n;
return e.localState && (n = t.copyState(e.localMode, e.localState)), {
token: e.token,
inTag: e.inTag,
localMode: e.localMode,
localState: n,
htmlState: t.copyState(s, e.htmlState)
}
},
token: function(t, e) {
return e.token(t, e)
},
indent: function(e, n, r) {
return !e.localMode || /^\s*<\//.test(n) ? s.indent(e.htmlState, n, r) : e.localMode.indent ? e.localMode.indent(e.localState, n, r) : t.Pass
},
innerMode: function(t) {
return {
state: t.localState || t.htmlState,
mode: t.localMode || s
}
}
}
}, "xml", "javascript", "css"), t.defineMIME("text/html", "htmlmixed")
}(n(13), n(84), n(85), n(44))
}, function(t, e, n) {
! function(t) {
"use strict";
var e = {
autoSelfClosers: {
area: !0,
base: !0,
br: !0,
col: !0,
command: !0,
embed: !0,
frame: !0,
hr: !0,
img: !0,
input: !0,
keygen: !0,
link: !0,
meta: !0,
param: !0,
source: !0,
track: !0,
wbr: !0,
menuitem: !0
},
implicitlyClosed: {
dd: !0,
li: !0,
optgroup: !0,
option: !0,
p: !0,
rp: !0,
rt: !0,
tbody: !0,
td: !0,
tfoot: !0,
th: !0,
tr: !0
},
contextGrabbers: {
dd: {
dd: !0,
dt: !0
},
dt: {
dd: !0,
dt: !0
},
li: {
li: !0
},
option: {
option: !0,
optgroup: !0
},
optgroup: {
optgroup: !0
},
p: {
address: !0,
article: !0,
aside: !0,
blockquote: !0,
dir: !0,
div: !0,
dl: !0,
fieldset: !0,
footer: !0,
form: !0,
h1: !0,
h2: !0,
h3: !0,
h4: !0,
h5: !0,
h6: !0,
header: !0,
hgroup: !0,
hr: !0,
menu: !0,
nav: !0,
ol: !0,
p: !0,
pre: !0,
section: !0,
table: !0,
ul: !0
},
rp: {
rp: !0,
rt: !0
},
rt: {
rp: !0,
rt: !0
},
tbody: {
tbody: !0,
tfoot: !0
},
td: {
td: !0,
th: !0
},
tfoot: {
tbody: !0
},
th: {
td: !0,
th: !0
},
thead: {
tbody: !0,
tfoot: !0
},
tr: {
tr: !0
}
},
doNotIndent: {
pre: !0
},
allowUnquoted: !0,
allowMissing: !0,
caseFold: !0
},
n = {
autoSelfClosers: {},
implicitlyClosed: {},
contextGrabbers: {},
doNotIndent: {},
allowUnquoted: !1,
allowMissing: !1,
allowMissingTagName: !1,
caseFold: !1
};
t.defineMode("xml", function(r, i) {
var o, a, s = r.indentUnit,
l = {},
c = i.htmlMode ? e : n;
for (var u in c) l[u] = c[u];
for (var u in i) l[u] = i[u];
function d(t, e) {
function n(n) {
return e.tokenize = n, n(t, e)
}
var r = t.next();
return "<" == r ? t.eat("!") ? t.eat("[") ? t.match("CDATA[") ? n(f("atom", "]]>")) : null : t.match("--") ? n(f("comment", "--\x3e")) : t.match("DOCTYPE", !0, !0) ? (t.eatWhile(/[\w\._\-]/), n(function t(e) {
return function(n, r) {
for (var i; null != (i = n.next());) {
if ("<" == i) return r.tokenize = t(e + 1), r.tokenize(n, r);
if (">" == i) {
if (1 == e) {
r.tokenize = d;
break
}
return r.tokenize = t(e - 1), r.tokenize(n, r)
}
}
return "meta"
}
}(1))) : null : t.eat("?") ? (t.eatWhile(/[\w\._\-]/), e.tokenize = f("meta", "?>"), "meta") : (o = t.eat("/") ? "closeTag" : "openTag", e.tokenize = h, "tag bracket") : "&" == r ? (t.eat("#") ? t.eat("x") ? t.eatWhile(/[a-fA-F\d]/) && t.eat(";") : t.eatWhile(/[\d]/) && t.eat(";") : t.eatWhile(/[\w\.\-:]/) && t.eat(";")) ? "atom" : "error" : (t.eatWhile(/[^&<]/), null)
}
function h(t, e) {
var n, r, i = t.next();
if (">" == i || "/" == i && t.eat(">")) return e.tokenize = d, o = ">" == i ? "endTag" : "selfcloseTag", "tag bracket";
if ("=" == i) return o = "equals", null;
if ("<" == i) {
e.tokenize = d, e.state = m, e.tagName = e.tagStart = null;
var a = e.tokenize(t, e);
return a ? a + " tag error" : "tag error"
}
return /[\'\"]/.test(i) ? (e.tokenize = (n = i, (r = function(t, e) {
for (; !t.eol();)
if (t.next() == n) {
e.tokenize = h;
break
} return "string"
}).isInAttribute = !0, r), e.stringStartCol = t.column(), e.tokenize(t, e)) : (t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/), "word")
}
function f(t, e) {
return function(n, r) {
for (; !n.eol();) {
if (n.match(e)) {
r.tokenize = d;
break
}
n.next()
}
return t
}
}
function p(t, e, n) {
this.prev = t.context, this.tagName = e || "", this.indent = t.indented, this.startOfLine = n, (l.doNotIndent.hasOwnProperty(e) || t.context && t.context.noIndent) && (this.noIndent = !0)
}
function g(t) {
t.context && (t.context = t.context.prev)
}
function v(t, e) {
for (var n;;) {
if (!t.context) return;
if (n = t.context.tagName, !l.contextGrabbers.hasOwnProperty(n) || !l.contextGrabbers[n].hasOwnProperty(e)) return;
g(t)
}
}
function m(t, e, n) {
return "openTag" == t ? (n.tagStart = e.column(), b) : "closeTag" == t ? y : m
}
function b(t, e, n) {
return "word" == t ? (n.tagName = e.current(), a = "tag", O) : l.allowMissingTagName && "endTag" == t ? (a = "tag bracket", O(t, 0, n)) : (a = "error", b)
}
function y(t, e, n) {
if ("word" == t) {
var r = e.current();
return n.context && n.context.tagName != r && l.implicitlyClosed.hasOwnProperty(n.context.tagName) && g(n), n.context && n.context.tagName == r || !1 === l.matchClosing ? (a = "tag", w) : (a = "tag error", x)
}
return l.allowMissingTagName && "endTag" == t ? (a = "tag bracket", w(t, 0, n)) : (a = "error", x)
}
function w(t, e, n) {
return "endTag" != t ? (a = "error", w) : (g(n), m)
}
function x(t, e, n) {
return a = "error", w(t, 0, n)
}
function O(t, e, n) {
if ("word" == t) return a = "attribute", C;
if ("endTag" == t || "selfcloseTag" == t) {
var r = n.tagName,
i = n.tagStart;
return n.tagName = n.tagStart = null, "selfcloseTag" == t || l.autoSelfClosers.hasOwnProperty(r) ? v(n, r) : (v(n, r), n.context = new p(n, r, i == n.indented)), m
}
return a = "error", O
}
function C(t, e, n) {
return "equals" == t ? S : (l.allowMissing || (a = "error"), O(t, 0, n))
}
function S(t, e, n) {
return "string" == t ? k : "word" == t && l.allowUnquoted ? (a = "string", O) : (a = "error", O(t, 0, n))
}
function k(t, e, n) {
return "string" == t ? k : O(t, 0, n)
}
return d.isInText = !0, {
startState: function(t) {
var e = {
tokenize: d,
state: m,
indented: t || 0,
tagName: null,
tagStart: null,
context: null
};
return null != t && (e.baseIndent = t), e
},
token: function(t, e) {
if (!e.tagName && t.sol() && (e.indented = t.indentation()), t.eatSpace()) return null;
o = null;
var n = e.tokenize(t, e);
return (n || o) && "comment" != n && (a = null, e.state = e.state(o || n, t, e), a && (n = "error" == a ? n + " error" : a)), n
},
indent: function(e, n, r) {
var i = e.context;
if (e.tokenize.isInAttribute) return e.tagStart == e.indented ? e.stringStartCol + 1 : e.indented + s;
if (i && i.noIndent) return t.Pass;
if (e.tokenize != h && e.tokenize != d) return r ? r.match(/^(\s*)/)[0].length : 0;
if (e.tagName) return !1 !== l.multilineTagIndentPastTag ? e.tagStart + e.tagName.length + 2 : e.tagStart + s * (l.multilineTagIndentFactor || 1);
if (l.alignCDATA && /$/,
blockCommentStart: "\x3c!--",
blockCommentEnd: "--\x3e",
configuration: l.htmlMode ? "html" : "xml",
helperType: l.htmlMode ? "html" : "xml",
skipAttribute: function(t) {
t.state == S && (t.state = O)
},
xmlCurrentTag: function(t) {
return t.tagName ? {
name: t.tagName,
close: "closeTag" == t.type
} : null
},
xmlCurrentContext: function(t) {
for (var e = [], n = t.context; n; n = n.prev) e.push(n.tagName);
return e.reverse()
}
}
}), t.defineMIME("text/xml", "xml"), t.defineMIME("application/xml", "xml"), t.mimeModes.hasOwnProperty("text/html") || t.defineMIME("text/html", {
name: "xml",
htmlMode: !0
})
}(n(13))
}, function(t, e, n) {
! function(t) {
"use strict";
t.defineMode("javascript", function(e, n) {
var r, i, o = e.indentUnit,
a = n.statementIndent,
s = n.jsonld,
l = n.json || s,
c = n.typescript,
u = n.wordCharacters || /[\w$\xa1-\uffff]/,
d = function() {
function t(t) {
return {
type: t,
style: "keyword"
}
}
var e = t("keyword a"),
n = t("keyword b"),
r = t("keyword c"),
i = t("keyword d"),
o = t("operator"),
a = {
type: "atom",
style: "atom"
};
return {
if: t("if"),
while: e,
with: e,
else: n,
do: n,
try: n,
finally: n,
return: i,
break: i,
continue: i,
new: t("new"),
delete: r,
void: r,
throw: r,
debugger: t("debugger"),
var: t("var"),
const: t("var"),
let: t("var"),
function: t("function"),
catch: t("catch"),
for: t("for"),
switch: t("switch"),
case: t("case"),
default: t("default"),
in: o,
typeof: o,
instanceof: o,
true: a,
false: a,
null: a,
undefined: a,
NaN: a,
Infinity: a,
this: t("this"),
class: t("class"),
super: t("atom"),
yield: r,
export: t("export"),
import: t("import"),
extends: r,
await: r
}
}(),
h = /[+\-*&%=<>!?|~^@]/,
f = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
function p(t, e, n) {
return r = t, i = n, e
}
function g(t, e) {
var n, r = t.next();
if ('"' == r || "'" == r) return e.tokenize = (n = r, function(t, e) {
var r, i = !1;
if (s && "@" == t.peek() && t.match(f)) return e.tokenize = g, p("jsonld-keyword", "meta");
for (; null != (r = t.next()) && (r != n || i);) i = !i && "\\" == r;
return i || (e.tokenize = g), p("string", "string")
}), e.tokenize(t, e);
if ("." == r && t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) return p("number", "number");
if ("." == r && t.match("..")) return p("spread", "meta");
if (/[\[\]{}\(\),;\:\.]/.test(r)) return p(r);
if ("=" == r && t.eat(">")) return p("=>", "operator");
if ("0" == r && t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) return p("number", "number");
if (/\d/.test(r)) return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), p("number", "number");
if ("/" == r) return t.eat("*") ? (e.tokenize = v, v(t, e)) : t.eat("/") ? (t.skipToEnd(), p("comment", "comment")) : Yt(t, e, 1) ? (function(t) {
for (var e, n = !1, r = !1; null != (e = t.next());) {
if (!n) {
if ("/" == e && !r) return;
"[" == e ? r = !0 : r && "]" == e && (r = !1)
}
n = !n && "\\" == e
}
}(t), t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), p("regexp", "string-2")) : (t.eat("="), p("operator", "operator", t.current()));
if ("`" == r) return e.tokenize = m, m(t, e);
if ("#" == r && "!" == t.peek()) return t.skipToEnd(), p("meta", "meta");
if ("#" == r && t.eatWhile(u)) return p("variable", "property");
if ("<" == r && t.match("!--") || "-" == r && t.match("->") && !/\S/.test(t.string.slice(0, t.start))) return t.skipToEnd(), p("comment", "comment");
if (h.test(r)) return ">" == r && e.lexical && ">" == e.lexical.type || (t.eat("=") ? "!" != r && "=" != r || t.eat("=") : /[<>*+\-|&?]/.test(r) && (t.eat(r), ">" == r && t.eat(r))), "?" == r && t.eat(".") ? p(".") : p("operator", "operator", t.current());
if (u.test(r)) {
t.eatWhile(u);
var i = t.current();
if ("." != e.lastType) {
if (d.propertyIsEnumerable(i)) {
var o = d[i];
return p(o.type, o.style, i)
}
if ("async" == i && t.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, !1)) return p("async", "keyword", i)
}
return p("variable", "variable", i)
}
}
function v(t, e) {
for (var n, r = !1; n = t.next();) {
if ("/" == n && r) {
e.tokenize = g;
break
}
r = "*" == n
}
return p("comment", "comment")
}
function m(t, e) {
for (var n, r = !1; null != (n = t.next());) {
if (!r && ("`" == n || "$" == n && t.eat("{"))) {
e.tokenize = g;
break
}
r = !r && "\\" == n
}
return p("quasi", "string-2", t.current())
}
var b = "([{}])";
function y(t, e) {
e.fatArrowAt && (e.fatArrowAt = null);
var n = t.string.indexOf("=>", t.start);
if (!(n < 0)) {
if (c) {
var r = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start, n));
r && (n = r.index)
}
for (var i = 0, o = !1, a = n - 1; a >= 0; --a) {
var s = t.string.charAt(a),
l = b.indexOf(s);
if (l >= 0 && l < 3) {
if (!i) {
++a;
break
}
if (0 == --i) {
"(" == s && (o = !0);
break
}
} else if (l >= 3 && l < 6) ++i;
else if (u.test(s)) o = !0;
else if (/["'\/`]/.test(s))
for (;; --a) {
if (0 == a) return;
if (t.string.charAt(a - 1) == s && "\\" != t.string.charAt(a - 2)) {
a--;
break
}
} else if (o && !i) {
++a;
break
}
}
o && !i && (e.fatArrowAt = a)
}
}
var w = {
atom: !0,
number: !0,
variable: !0,
string: !0,
regexp: !0,
this: !0,
"jsonld-keyword": !0
};
function x(t, e, n, r, i, o) {
this.indented = t, this.column = e, this.type = n, this.prev = i, this.info = o, null != r && (this.align = r)
}
function O(t, e) {
for (var n = t.localVars; n; n = n.next)
if (n.name == e) return !0;
for (var r = t.context; r; r = r.prev)
for (n = r.vars; n; n = n.next)
if (n.name == e) return !0
}
var C = {
state: null,
column: null,
marked: null,
cc: null
};
function S() {
for (var t = arguments.length - 1; t >= 0; t--) C.cc.push(arguments[t])
}
function k() {
return S.apply(null, arguments), !0
}
function j(t, e) {
for (var n = e; n; n = n.next)
if (n.name == t) return !0;
return !1
}
function T(t) {
var e = C.state;
if (C.marked = "def", e.context)
if ("var" == e.lexical.info && e.context && e.context.block) {
var r = function t(e, n) {
if (n) {
if (n.block) {
var r = t(e, n.prev);
return r ? r == n.prev ? n : new E(r, n.vars, !0) : null
}
return j(e, n.vars) ? n : new E(n.prev, new M(e, n.vars), !1)
}
return null
}(t, e.context);
if (null != r) return void(e.context = r)
} else if (!j(t, e.localVars)) return void(e.localVars = new M(t, e.localVars));
n.globalVars && !j(t, e.globalVars) && (e.globalVars = new M(t, e.globalVars))
}
function P(t) {
return "public" == t || "private" == t || "protected" == t || "abstract" == t || "readonly" == t
}
function E(t, e, n) {
this.prev = t, this.vars = e, this.block = n
}
function M(t, e) {
this.name = t, this.next = e
}
var D = new M("this", new M("arguments", null));
function A() {
C.state.context = new E(C.state.context, C.state.localVars, !1), C.state.localVars = D
}
function L() {
C.state.context = new E(C.state.context, C.state.localVars, !0), C.state.localVars = null
}
function _() {
C.state.localVars = C.state.context.vars, C.state.context = C.state.context.prev
}
function N(t, e) {
var n = function() {
var n = C.state,
r = n.indented;
if ("stat" == n.lexical.type) r = n.lexical.indented;
else
for (var i = n.lexical; i && ")" == i.type && i.align; i = i.prev) r = i.indented;
n.lexical = new x(r, C.stream.column(), t, null, n.lexical, e)
};
return n.lex = !0, n
}
function I() {
var t = C.state;
t.lexical.prev && (")" == t.lexical.type && (t.indented = t.lexical.indented), t.lexical = t.lexical.prev)
}
function F(t) {
return function e(n) {
return n == t ? k() : ";" == t || "}" == n || ")" == n || "]" == n ? S() : k(e)
}
}
function V(t, e) {
return "var" == t ? k(N("vardef", e), wt, F(";"), I) : "keyword a" == t ? k(N("form"), $, V, I) : "keyword b" == t ? k(N("form"), V, I) : "keyword d" == t ? C.stream.match(/^\s*$/, !1) ? k() : k(N("stat"), B, F(";"), I) : "debugger" == t ? k(F(";")) : "{" == t ? k(N("}"), L, at, I, _) : ";" == t ? k() : "if" == t ? ("else" == C.state.lexical.info && C.state.cc[C.state.cc.length - 1] == I && C.state.cc.pop()(), k(N("form"), $, V, I, jt)) : "function" == t ? k(Mt) : "for" == t ? k(N("form"), Tt, V, I) : "class" == t || c && "interface" == e ? (C.marked = "keyword", k(N("form", "class" == t ? t : e), Nt, I)) : "variable" == t ? c && "declare" == e ? (C.marked = "keyword", k(V)) : c && ("module" == e || "enum" == e || "type" == e) && C.stream.match(/^\s*\w/, !1) ? (C.marked = "keyword", "enum" == e ? k(Gt) : "type" == e ? k(At, F("operator"), dt, F(";")) : k(N("form"), xt, F("{"), N("}"), at, I, I)) : c && "namespace" == e ? (C.marked = "keyword", k(N("form"), z, V, I)) : c && "abstract" == e ? (C.marked = "keyword", k(V)) : k(N("stat"), Q) : "switch" == t ? k(N("form"), $, F("{"), N("}", "switch"), L, at, I, I, _) : "case" == t ? k(z, F(":")) : "default" == t ? k(F(":")) : "catch" == t ? k(N("form"), A, R, V, I, _) : "export" == t ? k(N("stat"), Rt, I) : "import" == t ? k(N("stat"), Ht, I) : "async" == t ? k(V) : "@" == e ? k(z, V) : S(N("stat"), z, F(";"), I)
}
function R(t) {
if ("(" == t) return k(Lt, F(")"))
}
function z(t, e) {
return U(t, e, !1)
}
function H(t, e) {
return U(t, e, !0)
}
function $(t) {
return "(" != t ? S() : k(N(")"), B, F(")"), I)
}
function U(t, e, n) {
if (C.state.fatArrowAt == C.stream.start) {
var r = n ? X : Y;
if ("(" == t) return k(A, N(")"), it(Lt, ")"), I, F("=>"), r, _);
if ("variable" == t) return S(A, xt, F("=>"), r, _)
}
var i = n ? q : W;
return w.hasOwnProperty(t) ? k(i) : "function" == t ? k(Mt, i) : "class" == t || c && "interface" == e ? (C.marked = "keyword", k(N("form"), _t, I)) : "keyword c" == t || "async" == t ? k(n ? H : z) : "(" == t ? k(N(")"), B, F(")"), I, i) : "operator" == t || "spread" == t ? k(n ? H : z) : "[" == t ? k(N("]"), qt, I, i) : "{" == t ? ot(et, "}", null, i) : "quasi" == t ? S(G, i) : "new" == t ? k(function(t) {
return function(e) {
return "." == e ? k(t ? Z : J) : "variable" == e && c ? k(mt, t ? q : W) : S(t ? H : z)
}
}(n)) : "import" == t ? k(z) : k()
}
function B(t) {
return t.match(/[;\}\)\],]/) ? S() : S(z)
}
function W(t, e) {
return "," == t ? k(B) : q(t, e, !1)
}
function q(t, e, n) {
var r = 0 == n ? W : q,
i = 0 == n ? z : H;
return "=>" == t ? k(A, n ? X : Y, _) : "operator" == t ? /\+\+|--/.test(e) || c && "!" == e ? k(r) : c && "<" == e && C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? k(N(">"), it(dt, ">"), I, r) : "?" == e ? k(z, F(":"), i) : k(i) : "quasi" == t ? S(G, r) : ";" != t ? "(" == t ? ot(H, ")", "call", r) : "." == t ? k(tt, r) : "[" == t ? k(N("]"), B, F("]"), I, r) : c && "as" == e ? (C.marked = "keyword", k(dt, r)) : "regexp" == t ? (C.state.lastType = C.marked = "operator", C.stream.backUp(C.stream.pos - C.stream.start - 1), k(i)) : void 0 : void 0
}
function G(t, e) {
return "quasi" != t ? S() : "${" != e.slice(e.length - 2) ? k(G) : k(z, K)
}
function K(t) {
if ("}" == t) return C.marked = "string-2", C.state.tokenize = m, k(G)
}
function Y(t) {
return y(C.stream, C.state), S("{" == t ? V : z)
}
function X(t) {
return y(C.stream, C.state), S("{" == t ? V : H)
}
function J(t, e) {
if ("target" == e) return C.marked = "keyword", k(W)
}
function Z(t, e) {
if ("target" == e) return C.marked = "keyword", k(q)
}
function Q(t) {
return ":" == t ? k(I, V) : S(W, F(";"), I)
}
function tt(t) {
if ("variable" == t) return C.marked = "property", k()
}
function et(t, e) {
return "async" == t ? (C.marked = "property", k(et)) : "variable" == t || "keyword" == C.style ? (C.marked = "property", "get" == e || "set" == e ? k(nt) : (c && C.state.fatArrowAt == C.stream.start && (n = C.stream.match(/^\s*:\s*/, !1)) && (C.state.fatArrowAt = C.stream.pos + n[0].length), k(rt))) : "number" == t || "string" == t ? (C.marked = s ? "property" : C.style + " property", k(rt)) : "jsonld-keyword" == t ? k(rt) : c && P(e) ? (C.marked = "keyword", k(et)) : "[" == t ? k(z, st, F("]"), rt) : "spread" == t ? k(H, rt) : "*" == e ? (C.marked = "keyword", k(et)) : ":" == t ? S(rt) : void 0;
var n
}
function nt(t) {
return "variable" != t ? S(rt) : (C.marked = "property", k(Mt))
}
function rt(t) {
return ":" == t ? k(H) : "(" == t ? S(Mt) : void 0
}
function it(t, e, n) {
function r(i, o) {
if (n ? n.indexOf(i) > -1 : "," == i) {
var a = C.state.lexical;
return "call" == a.info && (a.pos = (a.pos || 0) + 1), k(function(n, r) {
return n == e || r == e ? S() : S(t)
}, r)
}
return i == e || o == e ? k() : n && n.indexOf(";") > -1 ? S(t) : k(F(e))
}
return function(n, i) {
return n == e || i == e ? k() : S(t, r)
}
}
function ot(t, e, n) {
for (var r = 3; r < arguments.length; r++) C.cc.push(arguments[r]);
return k(N(e, n), it(t, e), I)
}
function at(t) {
return "}" == t ? k() : S(V, at)
}
function st(t, e) {
if (c) {
if (":" == t) return k(dt);
if ("?" == e) return k(st)
}
}
function lt(t, e) {
if (c && (":" == t || "in" == e)) return k(dt)
}
function ct(t) {
if (c && ":" == t) return C.stream.match(/^\s*\w+\s+is\b/, !1) ? k(z, ut, dt) : k(dt)
}
function ut(t, e) {
if ("is" == e) return C.marked = "keyword", k()
}
function dt(t, e) {
return "keyof" == e || "typeof" == e || "infer" == e ? (C.marked = "keyword", k("typeof" == e ? H : dt)) : "variable" == t || "void" == e ? (C.marked = "type", k(vt)) : "|" == e || "&" == e ? k(dt) : "string" == t || "number" == t || "atom" == t ? k(vt) : "[" == t ? k(N("]"), it(dt, "]", ","), I, vt) : "{" == t ? k(N("}"), ft, I, vt) : "(" == t ? k(it(gt, ")"), ht, vt) : "<" == t ? k(it(dt, ">"), dt) : void 0
}
function ht(t) {
if ("=>" == t) return k(dt)
}
function ft(t) {
return "}" == t ? k() : "," == t || ";" == t ? k(ft) : S(pt, ft)
}
function pt(t, e) {
return "variable" == t || "keyword" == C.style ? (C.marked = "property", k(pt)) : "?" == e || "number" == t || "string" == t ? k(pt) : ":" == t ? k(dt) : "[" == t ? k(F("variable"), lt, F("]"), pt) : "(" == t ? S(Dt, pt) : t.match(/[;\}\)\],]/) ? void 0 : k()
}
function gt(t, e) {
return "variable" == t && C.stream.match(/^\s*[?:]/, !1) || "?" == e ? k(gt) : ":" == t ? k(dt) : "spread" == t ? k(gt) : S(dt)
}
function vt(t, e) {
return "<" == e ? k(N(">"), it(dt, ">"), I, vt) : "|" == e || "." == t || "&" == e ? k(dt) : "[" == t ? k(dt, F("]"), vt) : "extends" == e || "implements" == e ? (C.marked = "keyword", k(dt)) : "?" == e ? k(dt, F(":"), dt) : void 0
}
function mt(t, e) {
if ("<" == e) return k(N(">"), it(dt, ">"), I, vt)
}
function bt() {
return S(dt, yt)
}
function yt(t, e) {
if ("=" == e) return k(dt)
}
function wt(t, e) {
return "enum" == e ? (C.marked = "keyword", k(Gt)) : S(xt, st, St, kt)
}
function xt(t, e) {
return c && P(e) ? (C.marked = "keyword", k(xt)) : "variable" == t ? (T(e), k()) : "spread" == t ? k(xt) : "[" == t ? ot(Ct, "]") : "{" == t ? ot(Ot, "}") : void 0
}
function Ot(t, e) {
return "variable" != t || C.stream.match(/^\s*:/, !1) ? ("variable" == t && (C.marked = "property"), "spread" == t ? k(xt) : "}" == t ? S() : "[" == t ? k(z, F("]"), F(":"), Ot) : k(F(":"), xt, St)) : (T(e), k(St))
}
function Ct() {
return S(xt, St)
}
function St(t, e) {
if ("=" == e) return k(H)
}
function kt(t) {
if ("," == t) return k(wt)
}
function jt(t, e) {
if ("keyword b" == t && "else" == e) return k(N("form", "else"), V, I)
}
function Tt(t, e) {
return "await" == e ? k(Tt) : "(" == t ? k(N(")"), Pt, I) : void 0
}
function Pt(t) {
return "var" == t ? k(wt, Et) : "variable" == t ? k(Et) : S(Et)
}
function Et(t, e) {
return ")" == t ? k() : ";" == t ? k(Et) : "in" == e || "of" == e ? (C.marked = "keyword", k(z, Et)) : S(z, Et)
}
function Mt(t, e) {
return "*" == e ? (C.marked = "keyword", k(Mt)) : "variable" == t ? (T(e), k(Mt)) : "(" == t ? k(A, N(")"), it(Lt, ")"), I, ct, V, _) : c && "<" == e ? k(N(">"), it(bt, ">"), I, Mt) : void 0
}
function Dt(t, e) {
return "*" == e ? (C.marked = "keyword", k(Dt)) : "variable" == t ? (T(e), k(Dt)) : "(" == t ? k(A, N(")"), it(Lt, ")"), I, ct, _) : c && "<" == e ? k(N(">"), it(bt, ">"), I, Dt) : void 0
}
function At(t, e) {
return "keyword" == t || "variable" == t ? (C.marked = "type", k(At)) : "<" == e ? k(N(">"), it(bt, ">"), I) : void 0
}
function Lt(t, e) {
return "@" == e && k(z, Lt), "spread" == t ? k(Lt) : c && P(e) ? (C.marked = "keyword", k(Lt)) : c && "this" == t ? k(st, St) : S(xt, st, St)
}
function _t(t, e) {
return "variable" == t ? Nt(t, e) : It(t, e)
}
function Nt(t, e) {
if ("variable" == t) return T(e), k(It)
}
function It(t, e) {
return "<" == e ? k(N(">"), it(bt, ">"), I, It) : "extends" == e || "implements" == e || c && "," == t ? ("implements" == e && (C.marked = "keyword"), k(c ? dt : z, It)) : "{" == t ? k(N("}"), Ft, I) : void 0
}
function Ft(t, e) {
return "async" == t || "variable" == t && ("static" == e || "get" == e || "set" == e || c && P(e)) && C.stream.match(/^\s+[\w$\xa1-\uffff]/, !1) ? (C.marked = "keyword", k(Ft)) : "variable" == t || "keyword" == C.style ? (C.marked = "property", k(Vt, Ft)) : "number" == t || "string" == t ? k(Vt, Ft) : "[" == t ? k(z, st, F("]"), Vt, Ft) : "*" == e ? (C.marked = "keyword", k(Ft)) : c && "(" == t ? S(Dt, Ft) : ";" == t || "," == t ? k(Ft) : "}" == t ? k() : "@" == e ? k(z, Ft) : void 0
}
function Vt(t, e) {
if ("?" == e) return k(Vt);
if (":" == t) return k(dt, St);
if ("=" == e) return k(H);
var n = C.state.lexical.prev;
return S(n && "interface" == n.info ? Dt : Mt)
}
function Rt(t, e) {
return "*" == e ? (C.marked = "keyword", k(Wt, F(";"))) : "default" == e ? (C.marked = "keyword", k(z, F(";"))) : "{" == t ? k(it(zt, "}"), Wt, F(";")) : S(V)
}
function zt(t, e) {
return "as" == e ? (C.marked = "keyword", k(F("variable"))) : "variable" == t ? S(H, zt) : void 0
}
function Ht(t) {
return "string" == t ? k() : "(" == t ? S(z) : S($t, Ut, Wt)
}
function $t(t, e) {
return "{" == t ? ot($t, "}") : ("variable" == t && T(e), "*" == e && (C.marked = "keyword"), k(Bt))
}
function Ut(t) {
if ("," == t) return k($t, Ut)
}
function Bt(t, e) {
if ("as" == e) return C.marked = "keyword", k($t)
}
function Wt(t, e) {
if ("from" == e) return C.marked = "keyword", k(z)
}
function qt(t) {
return "]" == t ? k() : S(it(H, "]"))
}
function Gt() {
return S(N("form"), xt, F("{"), N("}"), it(Kt, "}"), I, I)
}
function Kt() {
return S(xt, St)
}
function Yt(t, e, n) {
return e.tokenize == g && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType) || "quasi" == e.lastType && /\{\s*$/.test(t.string.slice(0, t.pos - (n || 0)))
}
return _.lex = !0, I.lex = !0, {
startState: function(t) {
var e = {
tokenize: g,
lastType: "sof",
cc: [],
lexical: new x((t || 0) - o, 0, "block", !1),
localVars: n.localVars,
context: n.localVars && new E(null, null, !1),
indented: t || 0
};
return n.globalVars && "object" == typeof n.globalVars && (e.globalVars = n.globalVars), e
},
token: function(t, e) {
if (t.sol() && (e.lexical.hasOwnProperty("align") || (e.lexical.align = !1), e.indented = t.indentation(), y(t, e)), e.tokenize != v && t.eatSpace()) return null;
var n = e.tokenize(t, e);
return "comment" == r ? n : (e.lastType = "operator" != r || "++" != i && "--" != i ? r : "incdec", function(t, e, n, r, i) {
var o = t.cc;
for (C.state = t, C.stream = i, C.marked = null, C.cc = o, C.style = e, t.lexical.hasOwnProperty("align") || (t.lexical.align = !0);;)
if ((o.length ? o.pop() : l ? z : V)(n, r)) {
for (; o.length && o[o.length - 1].lex;) o.pop()();
return C.marked ? C.marked : "variable" == n && O(t, r) ? "variable-2" : e
}
}(e, n, r, i, t))
},
indent: function(e, r) {
if (e.tokenize == v || e.tokenize == m) return t.Pass;
if (e.tokenize != g) return 0;
var i, s = r && r.charAt(0),
l = e.lexical;
if (!/^\s*else\b/.test(r))
for (var c = e.cc.length - 1; c >= 0; --c) {
var u = e.cc[c];
if (u == I) l = l.prev;
else if (u != jt) break
}
for (;
("stat" == l.type || "form" == l.type) && ("}" == s || (i = e.cc[e.cc.length - 1]) && (i == W || i == q) && !/^[,\.=+\-*:?[\(]/.test(r));) l = l.prev;
a && ")" == l.type && "stat" == l.prev.type && (l = l.prev);
var d = l.type,
f = s == d;
return "vardef" == d ? l.indented + ("operator" == e.lastType || "," == e.lastType ? l.info.length + 1 : 0) : "form" == d && "{" == s ? l.indented : "form" == d ? l.indented + o : "stat" == d ? l.indented + (function(t, e) {
return "operator" == t.lastType || "," == t.lastType || h.test(e.charAt(0)) || /[,.]/.test(e.charAt(0))
}(e, r) ? a || o : 0) : "switch" != l.info || f || 0 == n.doubleIndentSwitch ? l.align ? l.column + (f ? 0 : 1) : l.indented + (f ? 0 : o) : l.indented + (/^(?:case|default)\b/.test(r) ? o : 2 * o)
},
electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
blockCommentStart: l ? null : "/*",
blockCommentEnd: l ? null : "*/",
blockCommentContinue: l ? null : " * ",
lineComment: l ? null : "//",
fold: "brace",
closeBrackets: "()[]{}''\"\"``",
helperType: l ? "json" : "javascript",
jsonldMode: s,
jsonMode: l,
expressionAllowed: Yt,
skipExpression: function(t) {
var e = t.cc[t.cc.length - 1];
e != z && e != H || t.cc.pop()
}
}
}), t.registerHelper("wordChars", "javascript", /[\w$]/), t.defineMIME("text/javascript", "javascript"), t.defineMIME("text/ecmascript", "javascript"), t.defineMIME("application/javascript", "javascript"), t.defineMIME("application/x-javascript", "javascript"), t.defineMIME("application/ecmascript", "javascript"), t.defineMIME("application/json", {
name: "javascript",
json: !0
}), t.defineMIME("application/x-json", {
name: "javascript",
json: !0
}), t.defineMIME("application/manifest+json", {
name: "javascript",
json: !0
}), t.defineMIME("application/ld+json", {
name: "javascript",
jsonld: !0
}), t.defineMIME("text/typescript", {
name: "javascript",
typescript: !0
}), t.defineMIME("application/typescript", {
name: "javascript",
typescript: !0
})
}(n(13))
}, function(t, e, n) {
! function(t) {
t.extendMode("css", {
commentStart: "/*",
commentEnd: "*/",
newlineAfterToken: function(t, e) {
return /^[;{}]$/.test(e)
}
}), t.extendMode("javascript", {
commentStart: "/*",
commentEnd: "*/",
newlineAfterToken: function(t, e, n, r) {
return this.jsonMode ? /^[\[,{]$/.test(e) || /^}/.test(n) : (";" != e || !r.lexical || ")" != r.lexical.type) && /^[;{}]$/.test(e) && !/^;/.test(n)
}
});
var e = /^(a|abbr|acronym|area|base|bdo|big|br|button|caption|cite|code|col|colgroup|dd|del|dfn|em|frame|hr|iframe|img|input|ins|kbd|label|legend|link|map|object|optgroup|option|param|q|samp|script|select|small|span|strong|sub|sup|textarea|tt|var)$/;
t.extendMode("xml", {
commentStart: "\x3c!--",
commentEnd: "--\x3e",
newlineAfterToken: function(t, n, r, i) {
var o = !1;
return "html" == this.configuration && (o = !!i.context && e.test(i.context.tagName)), !o && ("tag" == t && />$/.test(n) && i.context || /^ -1 && s > -1 && s > a && (t = t.substr(0, a) + t.substring(a + o.commentStart.length, s) + t.substr(s + o.commentEnd.length)), i.replaceRange(t, n, r)
}
})
}), t.defineExtension("autoIndentRange", function(t, e) {
var n = this;
this.operation(function() {
for (var r = t.line; r <= e.line; r++) n.indentLine(r, "smart")
})
}), t.defineExtension("autoFormatRange", function(e, n) {
var r = this,
i = r.getMode(),
o = r.getRange(e, n).split("\n"),
a = t.copyState(i, r.getTokenAt(e).state),
s = r.getOption("tabSize"),
l = "",
c = 0,
u = 0 === e.ch;
function d() {
l += "\n", u = !0, ++c
}
for (var h = 0; h < o.length; ++h) {
for (var f = new t.StringStream(o[h], s); !f.eol();) {
var p = t.innerMode(i, a),
g = i.token(f, a),
v = f.current();
f.start = f.pos, u && !/\S/.test(v) || (l += v, u = !1), !u && p.mode.newlineAfterToken && p.mode.newlineAfterToken(g, v, f.string.slice(f.pos) || o[h + 1] || "", p.state) && d()
}!f.pos && i.blankLine && i.blankLine(a), !u && h < o.length - 1 && d()
}
r.operation(function() {
r.replaceRange(l, e, n);
for (var t = e.line + 1, i = e.line + c; t <= i; ++t) r.indentLine(t, "smart");
r.setSelection(e, r.getCursor(!1))
})
})
}(n(13))
}, function(t, e) {
t.exports = function(t) {
if (Array.isArray(t)) return t
}
}, function(t, e) {
t.exports = function(t, e) {
if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) {
var n = [],
r = !0,
i = !1,
o = void 0;
try {
for (var a, s = t[Symbol.iterator](); !(r = (a = s.next()).done) && (n.push(a.value), !e || n.length !== e); r = !0);
} catch (t) {
i = !0, o = t
} finally {
try {
r || null == s.return || s.return()
} finally {
if (i) throw o
}
}
return n
}
}
}, function(t, e) {
t.exports = function() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}
}, function(t, e, n) {
"use strict";
n.r(e);
var r = n(1),
i = n.n(r),
o = n(36),
a = n(5);
e.default = i.a.View.extend({
initialize: function() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
this.opt = t;
var e = t.config || {};
this.level = t.level, this.config = e, this.preview = t.preview, this.ppfx = e.pStylePrefix || "", this.pfx = e.stylePrefix || "", this.parent = t.parent, this.parentView = t.parentView;
var n = this.pfx,
r = this.ppfx,
i = this.parent,
o = this.collection;
this.listenTo(o, "add", this.addTo), this.listenTo(o, "reset resetNavigator", this.render), this.listenTo(o, "remove", this.removeChildren), this.className = "".concat(n, "layers");
var s = e.em;
if (e.sortable && !this.opt.sorter) {
var l = s.get("Utils");
this.opt.sorter = new l.Sorter({
container: e.sortContainer || this.el,
containerSel: ".".concat(this.className),
itemSel: ".".concat(n, "layer"),
ignoreViewChildren: 1,
onEndMove: function(t, e, n) {
var r = e.getSourceModel();
s.setSelected(r, {
forceChange: 1
}), s.trigger("".concat(a.eventDrag, ":end"), n)
},
avoidSelectOnEnd: 1,
nested: 1,
ppfx: r,
pfx: n
})
}
this.sorter = this.opt.sorter || "", this.$el.data("collection", o), i && this.$el.data("model", i)
},
removeChildren: function(t) {
var e = t.viewLayer;
e && (e.remove(), t.viewLayer = 0)
},
addTo: function(t) {
var e = this.collection.indexOf(t);
this.addToCollection(t, null, e)
},
addToCollection: function(t, e, n) {
var r = this.level,
i = this.parentView,
a = e || null,
s = new(0, o.a)({
level: r,
model: t,
parentView: i,
config: this.config,
sorter: this.sorter,
isCountable: this.isCountable,
opened: this.opt.opened
}).render().el;
if (a) a.appendChild(s);
else if (void 0 !== n) {
var l = "before";
this.$el.children().length == n && (n--, l = "after"), n < 0 ? this.$el.append(s) : this.$el.children().eq(n)[l](s)
} else this.$el.append(s);
return s
},
isCountable: function(t, e) {
var n = t.get("type"),
r = t.get("tagName");
return !(("textnode" == n || "br" == r) && e || !t.get("layerable"))
},
render: function() {
var t = this,
e = document.createDocumentFragment(),
n = this.el;
return n.innerHTML = "", this.collection.each(function(n) {
return t.addToCollection(n, e)
}), n.appendChild(e), n.className = this.className, this
}
})
}, function(t, e, n) {
var r = {
"./CanvasClear": 45,
"./CanvasClear.js": 45,
"./CanvasMove": 46,
"./CanvasMove.js": 46,
"./CommandAbstract": 22,
"./CommandAbstract.js": 22,
"./ComponentDelete": 47,
"./ComponentDelete.js": 47,
"./ComponentDrag": 48,
"./ComponentDrag.js": 48,
"./ComponentEnter": 49,
"./ComponentEnter.js": 49,
"./ComponentExit": 50,
"./ComponentExit.js": 50,
"./ComponentNext": 51,
"./ComponentNext.js": 51,
"./ComponentPrev": 52,
"./ComponentPrev.js": 52,
"./ComponentStyleClear": 53,
"./ComponentStyleClear.js": 53,
"./CopyComponent": 54,
"./CopyComponent.js": 54,
"./DeleteComponent": 55,
"./DeleteComponent.js": 55,
"./ExportTemplate": 56,
"./ExportTemplate.js": 56,
"./Fullscreen": 57,
"./Fullscreen.js": 57,
"./MoveComponent": 58,
"./MoveComponent.js": 58,
"./OpenAssets": 59,
"./OpenAssets.js": 59,
"./OpenBlocks": 60,
"./OpenBlocks.js": 60,
"./OpenLayers": 61,
"./OpenLayers.js": 61,
"./OpenStyleManager": 62,
"./OpenStyleManager.js": 62,
"./OpenTraitManager": 63,
"./OpenTraitManager.js": 63,
"./PasteComponent": 64,
"./PasteComponent.js": 64,
"./Preview": 65,
"./Preview.js": 65,
"./Resize": 66,
"./Resize.js": 66,
"./SelectComponent": 14,
"./SelectComponent.js": 14,
"./SelectPosition": 27,
"./SelectPosition.js": 27,
"./ShowOffset": 67,
"./ShowOffset.js": 67,
"./SwitchVisibility": 68,
"./SwitchVisibility.js": 68
};
function i(t) {
var e = o(t);
return n(e)
}
function o(t) {
if (!n.o(r, t)) {
var e = new Error("Cannot find module '" + t + "'");
throw e.code = "MODULE_NOT_FOUND", e
}
return r[t]
}
i.keys = function() {
return Object.keys(r)
}, i.resolve = o, t.exports = i, i.id = 91
}, function(t, e, n) {
"use strict";
n.r(e);
var r = n(8),
i = n.n(r),
o = n(2),
a = n.n(o),
s = n(1),
l = n.n(s),
c = n(0),
u = {
stylePrefix: "comp-",
wrapperId: "wrapper",
wrapperName: "Body",
wrapper: {
removable: !1,
copyable: !1,
draggable: !1,
components: [],
traits: [],
stylable: ["background", "background-color", "background-image", "background-repeat", "background-attachment", "background-position", "background-size"]
},
components: [],
draggableComponents: 1,
storeWrapper: 0,
processor: 0,
voidElements: ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"]
},
d = n(5),
h = n(21),
f = n(6),
p = n(35);
function g(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})), n.push.apply(n, r)
}
return n
}
function v(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? g(Object(n), !0).forEach(function(e) {
a()(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : g(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
var m = d.default.extend({
defaults: v(v({}, d.default.prototype.defaults), {}, {
type: "cell",
tagName: "td",
draggable: ["tr"]
})
}, {
isComponent: function(t) {
var e = "",
n = t.tagName;
return "TD" != n && "TH" != n || (e = {
type: "cell",
tagName: n.toLowerCase()
}), e
}
}),
b = f.default.extend({});
function y(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})), n.push.apply(n, r)
}
return n
}
function w(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? y(Object(n), !0).forEach(function(e) {
a()(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : y(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
var x = d.default.extend({
defaults: w(w({}, d.default.prototype.defaults), {}, {
tagName: "tr",
draggable: ["thead", "tbody", "tfoot"],
droppable: ["th", "td"]
})
}, {
isComponent: function(t) {
return "TR" == t.tagName && !0
}
}),
O = f.default.extend({});
function C(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})), n.push.apply(n, r)
}
return n
}
function S(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? C(Object(n), !0).forEach(function(e) {
a()(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : C(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
var k = d.default.extend({
defaults: S(S({}, d.default.prototype.defaults), {}, {
type: "table",
tagName: "table",
droppable: ["tbody", "thead", "tfoot"]
}),
initialize: function(t, e) {
d.default.prototype.initialize.apply(this, arguments);
var n = this.get("components");
!n.length && n.add({
type: "tbody"
})
}
}, {
isComponent: function(t) {
var e = "";
return "TABLE" == t.tagName && (e = {
type: "table"
}), e
}
}),
j = f.default.extend({
events: {}
});
function T(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})), n.push.apply(n, r)
}
return n
}
function P(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? T(Object(n), !0).forEach(function(e) {
a()(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : T(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
var E = d.default.extend({
defaults: P(P({}, d.default.prototype.defaults), {}, {
type: "tbody",
tagName: "tbody",
draggable: ["table"],
droppable: ["tr"],
columns: 1,
rows: 1
}),
initialize: function(t, e) {
d.default.prototype.initialize.apply(this, arguments);
var n = this.get("components"),
r = this.get("columns"),
i = this.get("rows");
if (!n.length) {
for (var o = []; i--;) {
for (var a = [], s = r; s--;) a.push({
type: "cell",
classes: ["cell"]
});
o.push({
type: "row",
classes: ["row"],
components: a
})
}
n.add(o)
}
}
}, {
isComponent: function(t) {
var e = "";
return "TBODY" == t.tagName && (e = {
type: "tbody"
}), e
}
});
function M(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})), n.push.apply(n, r)
}
return n
}
function D(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? M(Object(n), !0).forEach(function(e) {
a()(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : M(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
var A = E.extend({
defaults: D(D({}, E.prototype.defaults), {}, {
type: "thead",
tagName: "thead"
})
}, {
isComponent: function(t) {
var e = "";
return "THEAD" == t.tagName && (e = {
type: "thead"
}), e
}
}),
L = f.default.extend({}),
_ = f.default.extend({});
function N(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})), n.push.apply(n, r)
}
return n
}
function I(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? N(Object(n), !0).forEach(function(e) {
a()(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : N(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
var F = E.extend({
defaults: I(I({}, E.prototype.defaults), {}, {
type: "tfoot",
tagName: "tfoot"
})
}, {
isComponent: function(t) {
var e = "";
return "TFOOT" == t.tagName && (e = {
type: "tfoot"
}), e
}
}),
V = f.default.extend({});
function R(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})), n.push.apply(n, r)
}
return n
}
function z(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? R(Object(n), !0).forEach(function(e) {
a()(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : R(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
var H = 'xmlns="http://www.w3.org/2000/svg" width="100" viewBox="0 0 24 24" style="fill: rgba(0,0,0,0.15); transform: scale(0.75)"',
$ = d.default.extend({
defaults: z(z({}, d.default.prototype.defaults), {}, {
type: "image",
tagName: "img",
void: !0,
droppable: 0,
editable: 1,
highlightable: 0,
resizable: {
ratioDefault: 1
},
traits: ["alt"],
src: "
'),
fallback: "
'),
file: ""
}),
initialize: function(t, e) {
d.default.prototype.initialize.apply(this, arguments);
var n = this.get("attributes");
n.src && this.set("src", n.src)
},
initToolbar: function() {
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n];
d.default.prototype.initToolbar.apply(this, e);
var r = this.em;
if (r) {
var i = "image-editor";
if (r.get("Commands").has(i)) {
for (var o = !1, a = this.get("toolbar"), s = 0; s < a.length; s++)
if ("image-editor" === a[s].command) {
o = !0;
break
} o || (a.push({
attributes: {
class: "fa fa-pencil"
},
command: i
}), this.set("toolbar", a))
}
}
},
getAttrToHTML: function() {
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n];
var r = d.default.prototype.getAttrToHTML.apply(this, e),
i = this.getSrcResult();
return i && (r.src = i), r
},
getSrcResult: function() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
e = this.get(t.fallback ? "fallback" : "src") || "",
n = e;
return e && "