Files
DeviceManager/node_modules/.cache/sb-vite/deps/chunk-EO6MPZI4.js

115 lines
3.9 KiB
JavaScript

// node_modules/@storybook/csf/dist/index.mjs
var B = Object.create;
var R = Object.defineProperty;
var b = Object.getOwnPropertyDescriptor;
var C = Object.getOwnPropertyNames;
var h = Object.getPrototypeOf;
var w = Object.prototype.hasOwnProperty;
var I = (r, e) => () => (e || r((e = { exports: {} }).exports, e), e.exports);
var E = (r, e, t, n) => {
if (e && typeof e == "object" || typeof e == "function")
for (let a of C(e))
!w.call(r, a) && a !== t && R(r, a, { get: () => e[a], enumerable: !(n = b(e, a)) || n.enumerable });
return r;
};
var P = (r, e, t) => (t = r != null ? B(h(r)) : {}, E(e || !r || !r.__esModule ? R(t, "default", { value: r, enumerable: true }) : t, r));
var x = I((T) => {
Object.defineProperty(T, "__esModule", { value: true }), T.isEqual = function() {
var r = Object.prototype.toString, e = Object.getPrototypeOf, t = Object.getOwnPropertySymbols ? function(n) {
return Object.keys(n).concat(Object.getOwnPropertySymbols(n));
} : Object.keys;
return function(n, a) {
return function i(o, s, d) {
var y, g, p, A = r.call(o), F = r.call(s);
if (o === s)
return true;
if (o == null || s == null)
return false;
if (d.indexOf(o) > -1 && d.indexOf(s) > -1)
return true;
if (d.push(o, s), A != F || (y = t(o), g = t(s), y.length != g.length || y.some(function(l) {
return !i(o[l], s[l], d);
})))
return false;
switch (A.slice(8, -1)) {
case "Symbol":
return o.valueOf() == s.valueOf();
case "Date":
case "Number":
return +o == +s || +o != +o && +s != +s;
case "RegExp":
case "Function":
case "String":
case "Boolean":
return "" + o == "" + s;
case "Set":
case "Map":
y = o.entries(), g = s.entries();
do
if (!i((p = y.next()).value, g.next().value, d))
return false;
while (!p.done);
return true;
case "ArrayBuffer":
o = new Uint8Array(o), s = new Uint8Array(s);
case "DataView":
o = new Uint8Array(o.buffer), s = new Uint8Array(s.buffer);
case "Float32Array":
case "Float64Array":
case "Int8Array":
case "Int16Array":
case "Int32Array":
case "Uint8Array":
case "Uint16Array":
case "Uint32Array":
case "Uint8ClampedArray":
case "Arguments":
case "Array":
if (o.length != s.length)
return false;
for (p = 0; p < o.length; p++)
if ((p in o || p in s) && (p in o != p in s || !i(o[p], s[p], d)))
return false;
return true;
case "Object":
return i(e(o), e(s), d);
default:
return false;
}
}(n, a, []);
};
}();
});
var c = P(x());
var S = (r) => r.map((e) => typeof e < "u").filter(Boolean).length;
var O = (r, e) => {
let { exists: t, eq: n, neq: a, truthy: i } = r;
if (S([t, n, a, i]) > 1)
throw new Error(`Invalid conditional test ${JSON.stringify({ exists: t, eq: n, neq: a })}`);
if (typeof n < "u")
return (0, c.isEqual)(e, n);
if (typeof a < "u")
return !(0, c.isEqual)(e, a);
if (typeof t < "u") {
let s = typeof e < "u";
return t ? s : !s;
}
return (typeof i > "u" ? true : i) ? !!e : !e;
};
var v = (r, e, t) => {
if (!r.if)
return true;
let { arg: n, global: a } = r.if;
if (S([n, a]) !== 1)
throw new Error(`Invalid conditional value ${JSON.stringify({ arg: n, global: a })}`);
let i = n ? e[n] : t[a];
return O(r.if, i);
};
var L = (r) => r.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, "-").replace(/-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
export {
v,
L
};
//# sourceMappingURL=chunk-EO6MPZI4.js.map