@lanaco/lnc-react-ui
Version:
React component library
111 lines (110 loc) • 3.12 kB
JavaScript
import { _ as s, a as p } from "./setPrototypeOf-CttqfWo1.js";
function o(e) {
"@babel/helpers - typeof";
return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, o(e);
}
function u(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
return n;
}
function v(e, t) {
if (e) {
if (typeof e == "string") return u(e, t);
var r = {}.toString.call(e).slice(8, -1);
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? u(e, t) : void 0;
}
}
function _(e, t) {
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}), Object.defineProperty(e, "prototype", {
writable: !1
}), t && s(e, t);
}
function i(e) {
return i = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
return t.__proto__ || Object.getPrototypeOf(t);
}, i(e);
}
function a() {
try {
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
}));
} catch {
}
return (a = function() {
return !!e;
})();
}
function y(e, t) {
if (t && (o(t) == "object" || typeof t == "function")) return t;
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
return p(e);
}
function g(e) {
var t = a();
return function() {
var r, n = i(e);
if (t) {
var l = i(this).constructor;
r = Reflect.construct(n, arguments, l);
} else r = n.apply(this, arguments);
return y(this, r);
};
}
function d(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
}
function b(e, t) {
if (o(e) != "object" || !e) return e;
var r = e[Symbol.toPrimitive];
if (r !== void 0) {
var n = r.call(e, t);
if (o(n) != "object") return n;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
function f(e) {
var t = b(e, "string");
return o(t) == "symbol" ? t : t + "";
}
function c(e, t) {
for (var r = 0; r < t.length; r++) {
var n = t[r];
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, f(n.key), n);
}
}
function h(e, t, r) {
return t && c(e.prototype, t), r && c(e, r), Object.defineProperty(e, "prototype", {
writable: !1
}), e;
}
function O(e, t, r) {
return (t = f(t)) in e ? Object.defineProperty(e, t, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = r, e;
}
export {
O as _,
v as a,
u as b,
o as c,
_ as d,
g as e,
h as f,
d as g
};