import { a as e, aO as r } from "../../index-DSGwv2Yx.js";
import { u as s, l as N } from "../../kernel_funcs_utils-DGqzNlHT.js";
import { y as l } from "../../shared-zTaJ5siv.js";
const a = N + `
  return x < 0.0 ? NAN : log(x);
`, t = `
  vec4 result = log(x);
  bvec4 isNaN = isnan(x);
  result.r = isNaN.r ? x.r : (x.r < 0.0 ? NAN : result.r);
  result.g = isNaN.g ? x.g : (x.g < 0.0 ? NAN : result.g);
  result.b = isNaN.b ? x.b : (x.b < 0.0 ? NAN : result.b);
  result.a = isNaN.a ? x.a : (x.a < 0.0 ? NAN : result.a);
  return result;
`, n = s({
  opSnippet: a,
  packedOpSnippet: t,
  cpuKernelImpl: l
}), o = {
  kernelName: r,
  backendName: "webgl",
  kernelFunc: n
};
e(o);
