{"version":3,"sources":["jsdelivr-header.js","/npm/@walletconnect/react-native-compat@2.23.9/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCLS,qBAAsB,iBAAoB,0BAG5C,2BAGA,uCAGA,iCAyBP,GAtBsB,oBAAX,SACT,OAAO,OAAS,QAAQ,UAAU,QAIhB,oBAAT,OACT,OAAO,KAAO,SAAU,GACtB,OAAO,OAAO,MAAM,EAAI,OAAQ,EAAK,UAAU,SAAS,SAC1D,GAIkB,oBAAT,OACT,OAAO,KAAO,SAAU,GACtB,OAAO,OAAO,MACZ,OAAO,KAAK,EAAY,UAAU,OAClC,OAAO,KAAK,EAAY,UACxB,UACA,SAAS,SACb,QAG6B,IAApB,QAAQ,QACjB,IACE,OAAO,QAAU,QAAQ,gBAAgB,OAC3C,CAAE,MAAO,GAEP,QAAQ,MAAM,6DAChB,CAGF,QAAgC,IAArB,QAAQ,SACjB,IACE,OAAO,SAAW,QAAQ,gBAAgB,QAC5C,CAAE,MAAO,GAEP,QAAQ,MAAM,8DAChB,CAGF,QAA+B,IAApB,QAAQ,QACjB,IACE,OAAO,QAAU,QAAQ,kCAC3B,CAAE,MAAO,GAEP,QAAQ,MAAM,wEAChB,CAGF,QAAmC,IAAxB,QAAQ,YACjB,IACE,MAAM,EAAS,uBACoB,mBAAxB,EAAO,aAChB,OAAO,YAAc,IAChB,EAAO,eACV,eAAgB,EAAO,gBAGzB,OAAO,YAAc,CAEzB,CAAE,MAAO,GAEP,QAAQ,MAAM,2DAChB,CAIF,IACE,MAAM,EAAY,eACd,SACoC,IAA3B,WAAW,YACpB,WAAW,YAAc,CAAE,cAAe,CAAC,GACjC,WAAW,YAAY,gBACjC,WAAW,YAAY,cAAgB,CAAC,GAE1C,WAAW,YAAY,cAAc,mBAAqB,EAE9D,CAAE,MAAO,GAET","file":"/npm/@walletconnect/react-native-compat@2.23.9/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@walletconnect/react-native-compat@2.23.9/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/* eslint-disable @typescript-eslint/no-require-imports */\nimport { getApplicationModule, getPayModule } from \"./module/index.ts\";\n\n// Polyfill TextEncode / TextDecode\nimport \"fast-text-encoding\";\n\n// Polyfill crypto.getRandomvalues\nimport \"react-native-get-random-values\";\n\n// Polyfill URL()\nimport \"react-native-url-polyfill/auto\";\n\n// Polyfill Buffer\nif (typeof Buffer === \"undefined\") {\n  global.Buffer = require(\"buffer\").Buffer;\n}\n\n// Polyfill btoa\nif (typeof btoa === \"undefined\") {\n  global.btoa = function (str) {\n    return Buffer.alloc(str.length, str, \"binary\").toString(\"base64\");\n  };\n}\n\n// Polyfill atob\nif (typeof atob === \"undefined\") {\n  global.atob = function (b64Encoded) {\n    return Buffer.alloc(\n      Buffer.from(b64Encoded, \"base64\").length,\n      Buffer.from(b64Encoded, \"base64\"),\n      \"binary\",\n    ).toString(\"binary\");\n  };\n}\n\nif (typeof global?.Linking === \"undefined\") {\n  try {\n    global.Linking = require(\"react-native\").Linking;\n  } catch (e) {\n    // eslint-disable-next-line no-console\n    console.error(\"react-native-compat: react-native.Linking is not available\");\n  }\n}\n\nif (typeof global?.Platform === \"undefined\") {\n  try {\n    global.Platform = require(\"react-native\").Platform;\n  } catch (e) {\n    // eslint-disable-next-line no-console\n    console.error(\"react-native-compat: react-native.Platform is not available\");\n  }\n}\n\nif (typeof global?.NetInfo === \"undefined\") {\n  try {\n    global.NetInfo = require(\"@react-native-community/netinfo\");\n  } catch (e) {\n    // eslint-disable-next-line no-console\n    console.error(\"react-native-compat: @react-native-community/netinfo is not available\");\n  }\n}\n\nif (typeof global?.Application === \"undefined\") {\n  try {\n    const module = getApplicationModule();\n    if (typeof module.getConstants === \"function\") {\n      global.Application = {\n        ...module.getConstants(),\n        isAppInstalled: module.isAppInstalled,\n      };\n    } else {\n      global.Application = module;\n    }\n  } catch (e) {\n    // eslint-disable-next-line no-console\n    console.error(\"react-native-compat: Application module is not available\");\n  }\n}\n\n// Set up globalThis.ReactNative.NativeModules.RNWalletConnectPay for @walletconnect/pay\ntry {\n  const payModule = getPayModule();\n  if (payModule) {\n    if (typeof globalThis.ReactNative === \"undefined\") {\n      globalThis.ReactNative = { NativeModules: {} };\n    } else if (!globalThis.ReactNative.NativeModules) {\n      globalThis.ReactNative.NativeModules = {};\n    }\n    globalThis.ReactNative.NativeModules.RNWalletConnectPay = payModule;\n  }\n} catch (e) {\n  // Pay module not available - this is fine, it's optional\n}\n"]}