mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
139 lines
5.2 KiB
JavaScript
139 lines
5.2 KiB
JavaScript
|
! function (t) {
|
||
|
if (true) module.exports = t();
|
||
|
else { }
|
||
|
}((function () {
|
||
|
return function t(e, r, n) {
|
||
|
function i(a, s) {
|
||
|
if (!r[a]) {
|
||
|
if (!e[a]) {
|
||
|
var u = undefined;
|
||
|
if (!s && u) return require(a, !0);
|
||
|
if (o) return o(a, !0);
|
||
|
var c = new Error("Cannot find module '" + a + "'");
|
||
|
throw c.code = "MODULE_NOT_FOUND", c
|
||
|
}
|
||
|
var f = r[a] = {
|
||
|
exports: {}
|
||
|
};
|
||
|
e[a][0].call(f.exports, (function (t) {
|
||
|
return i(e[a][1][t] || t)
|
||
|
}), f, f.exports, t, e, r, n)
|
||
|
}
|
||
|
return r[a].exports
|
||
|
}
|
||
|
for (var o = undefined, a = 0; a < n.length; a++) i(n[a]);
|
||
|
return i
|
||
|
}({
|
||
|
40: [function (t, e, r) {
|
||
|
"use strict";
|
||
|
|
||
|
function n(t) {
|
||
|
return (n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
|
||
|
return typeof t
|
||
|
} : function (t) {
|
||
|
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
|
||
|
})(t)
|
||
|
}
|
||
|
|
||
|
function i(t, e) {
|
||
|
for (var r = 0; r < e.length; r++) {
|
||
|
var n = e[r];
|
||
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function o(t, e) {
|
||
|
return (o = Object.setPrototypeOf || function (t, e) {
|
||
|
return t.__proto__ = e, t
|
||
|
})(t, e)
|
||
|
}
|
||
|
|
||
|
function a(t) {
|
||
|
var e = function () {
|
||
|
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
||
|
if (Reflect.construct.sham) return !1;
|
||
|
if ("function" == typeof Proxy) return !0;
|
||
|
try {
|
||
|
return Date.prototype.toString.call(Reflect.construct(Date, [], (function () { }))), !0
|
||
|
} catch (t) {
|
||
|
return !1
|
||
|
}
|
||
|
}();
|
||
|
return function () {
|
||
|
var r, n = u(t);
|
||
|
if (e) {
|
||
|
var i = u(this).constructor;
|
||
|
r = Reflect.construct(n, arguments, i)
|
||
|
} else r = n.apply(this, arguments);
|
||
|
return s(this, r)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function s(t, e) {
|
||
|
return !e || "object" !== n(e) && "function" != typeof e ? function (t) {
|
||
|
if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||
|
return t
|
||
|
}(t) : e
|
||
|
}
|
||
|
|
||
|
function u(t) {
|
||
|
return (u = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
|
||
|
return t.__proto__ || Object.getPrototypeOf(t)
|
||
|
})(t)
|
||
|
}
|
||
|
var c = function (t) {
|
||
|
! function (t, e) {
|
||
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
||
|
t.prototype = Object.create(e && e.prototype, {
|
||
|
constructor: {
|
||
|
value: t,
|
||
|
writable: !0,
|
||
|
configurable: !0
|
||
|
}
|
||
|
}), e && o(t, e)
|
||
|
}(u, t);
|
||
|
var e, r, n, s = a(u);
|
||
|
|
||
|
function u(t) {
|
||
|
var e;
|
||
|
return function (t, e) {
|
||
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
|
||
|
}(this, u), (e = s.call(this))._model = t, e
|
||
|
}
|
||
|
return e = u, (r = [{
|
||
|
key: "render",
|
||
|
value: function (t, e, r) {
|
||
|
(e === r[2] || "x:SizeWithCells" === this.tag && e === r[1]) && t.leafNode(this.tag)
|
||
|
}
|
||
|
}, {
|
||
|
key: "parseOpen",
|
||
|
value: function (t) {
|
||
|
switch (t.name) {
|
||
|
case this.tag:
|
||
|
return this.model = {}, this.model[this.tag] = !0, !0;
|
||
|
default:
|
||
|
return !1
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: "parseText",
|
||
|
value: function () { }
|
||
|
}, {
|
||
|
key: "parseClose",
|
||
|
value: function () {
|
||
|
return !1
|
||
|
}
|
||
|
}, {
|
||
|
key: "tag",
|
||
|
get: function () {
|
||
|
return this._model && this._model.tag
|
||
|
}
|
||
|
}]) && i(e.prototype, r), n && i(e, n), u
|
||
|
}(t("../../base-xform"));
|
||
|
e.exports = c
|
||
|
}, {
|
||
|
"../../base-xform": 31
|
||
|
}]
|
||
|
}, {}, [15])(15)
|
||
|
}));
|