1
0
Fork 0

Added Statistics calculation

Statistics now show calculated values
This commit is contained in:
Techognito 2025-09-04 17:30:00 +02:00
parent fe87374e47
commit fc0f69dacb
2147 changed files with 141321 additions and 39 deletions

6
node_modules/@mui/x-internals/hash/hash.d.ts generated vendored Normal file
View file

@ -0,0 +1,6 @@
export declare const hash: typeof xxh;
/**
* Returns an xxh hash of `input` formatted as a decimal string.
*/
declare function xxh(input: string): string;
export {};

67
node_modules/@mui/x-internals/hash/hash.js generated vendored Normal file
View file

@ -0,0 +1,67 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.hash = void 0;
const encoder = new TextEncoder();
// bufferLength must be a multiple of 4 to satisfy Int32Array constraints
let bufferLength = 2 * 1024;
let buffer = new ArrayBuffer(bufferLength);
let uint8View = new Uint8Array(buffer);
let int32View = new Int32Array(buffer);
const hash = exports.hash = xxh;
/**
* Returns an xxh hash of `input` formatted as a decimal string.
*/
// prettier-ignore
function xxh(input) {
/* eslint-disable no-bitwise */
// Worst-case scenario: full string of 2-byte characters
const requiredLength = input.length * 2;
if (requiredLength > bufferLength) {
// buffer.resize() is only available in recent browsers, so we re-allocate
// a new and views
bufferLength = requiredLength + (4 - requiredLength % 4);
buffer = new ArrayBuffer(bufferLength);
uint8View = new Uint8Array(buffer);
int32View = new Int32Array(buffer);
}
const length8 = encoder.encodeInto(input, uint8View).written;
const seed = 0;
const len = length8 | 0;
let i = 0;
let h = (seed + len | 0) + 0x165667B1 | 0;
if (len < 16) {
for (; (i + 3 | 0) < len; i = i + 4 | 0) {
h = Math.imul(rotl32(h + Math.imul(int32View[i] | 0, 0xC2B2AE3D) | 0, 17) | 0, 0x27D4EB2F);
}
} else {
let v0 = seed + 0x24234428 | 0;
let v1 = seed + 0x85EBCA77 | 0;
let v2 = seed;
let v3 = seed - 0x9E3779B1 | 0;
for (; (i + 15 | 0) < len; i = i + 16 | 0) {
v0 = Math.imul(rotl32(v0 + Math.imul(int32View[i + 0 | 0] | 0, 0x85EBCA77) | 0, 13) | 0, 0x9E3779B1);
v1 = Math.imul(rotl32(v1 + Math.imul(int32View[i + 4 | 0] | 0, 0x85EBCA77) | 0, 13) | 0, 0x9E3779B1);
v2 = Math.imul(rotl32(v2 + Math.imul(int32View[i + 8 | 0] | 0, 0x85EBCA77) | 0, 13) | 0, 0x9E3779B1);
v3 = Math.imul(rotl32(v3 + Math.imul(int32View[i + 12 | 0] | 0, 0x85EBCA77) | 0, 13) | 0, 0x9E3779B1);
}
h = (((rotl32(v0, 1) | 0 + rotl32(v1, 7) | 0) + rotl32(v2, 12) | 0) + rotl32(v3, 18) | 0) + len | 0;
for (; (i + 3 | 0) < len; i = i + 4 | 0) {
h = Math.imul(rotl32(h + Math.imul(int32View[i] | 0, 0xC2B2AE3D) | 0, 17) | 0, 0x27D4EB2F);
}
}
for (; i < len; i = i + 1 | 0) {
h = Math.imul(rotl32(h + Math.imul(uint8View[i] | 0, 0x165667B1) | 0, 11) | 0, 0x9E3779B1);
}
h = Math.imul(h ^ h >>> 15, 0x85EBCA77);
h = Math.imul(h ^ h >>> 13, 0xC2B2AE3D);
return ((h ^ h >>> 16) >>> 0).toString();
}
function rotl32(x, r) {
return x << r | x >>> 32 - r;
}

2
node_modules/@mui/x-internals/hash/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,2 @@
export * from "./hash.js";
export * from "./stringify.js";

27
node_modules/@mui/x-internals/hash/index.js generated vendored Normal file
View file

@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _hash = require("./hash");
Object.keys(_hash).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _hash[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _hash[key];
}
});
});
var _stringify = require("./stringify");
Object.keys(_stringify).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _stringify[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _stringify[key];
}
});
});

6
node_modules/@mui/x-internals/hash/stringify.d.ts generated vendored Normal file
View file

@ -0,0 +1,6 @@
/**
* A JSON.stringify that handles circular references safely.
* Fixes: https://github.com/mui/mui-x/issues/17521
* Source: https://www.30secondsofcode.org/js/s/stringify-circular-json/
*/
export declare function stringify(input: object | string | number | null): string;

27
node_modules/@mui/x-internals/hash/stringify.js generated vendored Normal file
View file

@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.stringify = stringify;
/**
* A JSON.stringify that handles circular references safely.
* Fixes: https://github.com/mui/mui-x/issues/17521
* Source: https://www.30secondsofcode.org/js/s/stringify-circular-json/
*/
function stringify(input) {
const seen = new WeakSet();
return JSON.stringify(input, (_, v) => {
// https://github.com/mui/mui-x/issues/17855
if (typeof window !== 'undefined' && v === window || typeof document !== 'undefined' && v === document) {
return v.toString();
}
if (v !== null && typeof v === 'object') {
if (seen.has(v)) {
return null;
}
seen.add(v);
}
return v;
});
}