{"ast":null,"code":"import sha1 from \"./lib/sha1\";\nimport v35 from \"./lib/v35\";\nimport { Uuidv5Namespace } from \"./uuid.types\";\nfunction uuidv4() {\n  if (process.env.NODE_ENV === 'test' || typeof crypto === 'undefined' && typeof window === 'undefined') {\n    return eval('require')('node:crypto').randomUUID();\n  }\n  return crypto.randomUUID();\n}\nconst uuid = {\n  v4: uuidv4,\n  v5: v35('v5', 0x50, sha1),\n  namespace: Uuidv5Namespace\n};\nexport default uuid;","map":{"version":3,"names":["sha1","v35","Uuidv5Namespace","uuidv4","process","env","NODE_ENV","crypto","window","eval","randomUUID","uuid","v4","v5","namespace"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/expo-modules-core/src/uuid/uuid.web.ts"],"sourcesContent":["import sha1 from './lib/sha1';\nimport v35 from './lib/v35';\nimport { UUID, Uuidv5Namespace } from './uuid.types';\n\nfunction uuidv4(): string {\n  if (\n    // We use this code path in jest-expo.\n    process.env.NODE_ENV === 'test' ||\n    // Node.js has supported global crypto since v15.\n    (typeof crypto === 'undefined' &&\n      // Only use abstract imports in server environments.\n      typeof window === 'undefined')\n  ) {\n    // NOTE: Metro statically extracts all `require` statements to resolve them for environments\n    // that don't support `require` natively. Here we check if we're running in a server environment\n    // by using the standard `typeof window` check, then running `eval` to skip Metro's static\n    // analysis and keep the `require` statement intact for runtime evaluation.\n    // eslint-disable-next-line no-eval\n    return eval('require')('node:crypto').randomUUID();\n  }\n\n  return crypto.randomUUID();\n}\n\nconst uuid: UUID = {\n  v4: uuidv4,\n  v5: v35('v5', 0x50, sha1),\n  namespace: Uuidv5Namespace,\n};\n\nexport default uuid;\n"],"mappings":"AAAA,OAAOA,IAAI;AACX,OAAOC,GAAG;AACV,SAAeC,eAAe;AAE9B,SAASC,MAAMA,CAAA,EAAW;EACxB,IAEEC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM,IAE9B,OAAOC,MAAM,KAAK,WAAW,IAE5B,OAAOC,MAAM,KAAK,WAAY,EAChC;IAMA,OAAOC,IAAI,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAACC,UAAU,CAAC,CAAC;EACpD;EAEA,OAAOH,MAAM,CAACG,UAAU,CAAC,CAAC;AAC5B;AAEA,MAAMC,IAAU,GAAG;EACjBC,EAAE,EAAET,MAAM;EACVU,EAAE,EAAEZ,GAAG,CAAC,IAAI,EAAE,IAAI,EAAED,IAAI,CAAC;EACzBc,SAAS,EAAEZ;AACb,CAAC;AAED,eAAeS,IAAI","ignoreList":[]},"metadata":{"hasCjsExports":false},"sourceType":"module","externalDependencies":[]}