{"version":3,"names":["clamp","val","min","Number","MIN_SAFE_INTEGER","max","MAX_SAFE_INTEGER","Math"],"sources":["clamp.ts"],"sourcesContent":["/**\n * Clamps `val` into the inclusive range `[min, max]`. Defaults match the\n * React source: `Number.MIN_SAFE_INTEGER` / `Number.MAX_SAFE_INTEGER`, which\n * make the function a no-op when a bound is omitted.\n */\nexport function clamp(\n\tval: number,\n\tmin: number = Number.MIN_SAFE_INTEGER,\n\tmax: number = Number.MAX_SAFE_INTEGER,\n): number {\n\treturn Math.max(min, Math.min(val, max));\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,KAAKA,CACpBC,GAAW,EACXC,GAAW,GAAGC,MAAM,CAACC,gBAAgB,EACrCC,GAAW,GAAGF,MAAM,CAACG,gBAAgB,EAC5B;EACT,OAAOC,IAAI,CAACF,GAAG,CAACH,GAAG,EAAEK,IAAI,CAACL,GAAG,CAACD,GAAG,EAAEI,GAAG,CAAC,CAAC;AACzC","ignoreList":[]}