Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cae411eae7
commit
1c411e402e
19809 changed files with 1962608 additions and 97 deletions
25
frontend/node_modules/es-toolkit/dist/compat/array/shuffle.mjs
generated
vendored
Normal file
25
frontend/node_modules/es-toolkit/dist/compat/array/shuffle.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { shuffle as shuffle$1 } from "../../array/shuffle.mjs";
|
||||
import { isArray } from "../predicate/isArray.mjs";
|
||||
import { isArrayLike } from "../predicate/isArrayLike.mjs";
|
||||
import { isObjectLike } from "../predicate/isObjectLike.mjs";
|
||||
import { values } from "../object/values.mjs";
|
||||
import { isNil } from "../predicate/isNil.mjs";
|
||||
//#region src/compat/array/shuffle.ts
|
||||
/**
|
||||
* Randomizes the order of elements in an `collection` using the Fisher-Yates algorithm.
|
||||
*
|
||||
* This function takes an `collection` and returns a new `collection` with its elements shuffled in a random order.
|
||||
*
|
||||
* @template T - The type of elements in the `collection`.
|
||||
* @param collection - The `collection` to shuffle.
|
||||
* @returns A new `collection` with its elements shuffled in random order.
|
||||
*/
|
||||
function shuffle(collection) {
|
||||
if (isNil(collection)) return [];
|
||||
if (isArray(collection)) return shuffle$1(collection);
|
||||
if (isArrayLike(collection)) return shuffle$1(Array.from(collection));
|
||||
if (isObjectLike(collection)) return shuffle$1(values(collection));
|
||||
return [];
|
||||
}
|
||||
//#endregion
|
||||
export { shuffle };
|
||||
Loading…
Add table
Add a link
Reference in a new issue