{"version":3,"sources":["jsdelivr-header.js","/npm/protobuf-ib@2.0.0/protobuf-ib.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,SAAW,QAAQ,cACnB,MAAQ,QAAQ,SAChB,KAAO,QAAQ,QAEf,iBACJ,SAAS,KAAK,KAAK,KAAK,UAAW,6BAClC,MAAM,GAAiB,EAAI,WAAW,8BACnC,gBACJ,SAAS,KAAK,KAAK,KAAK,UAAW,4BAClC,MAAM,GAAiB,EAAI,WAAW,4BAEnC,OAAS,CAAC,EACV,cAAgB,SAAU,GAC9B,OAAO,MAAM,OAAO,CAClB,iBACA,iBACC,QAAQ,CAAC,EAAM,EAAM,KACtB,EAAK,MAAM,IACT,EAAK,EAAI,MAAQ,EACjB,EAAG,KAAM,EAAI,GACd,IACA,CAAC,EAAK,KACP,GAAI,EAAK,OAAO,EAAM,GACtB,EAAM,KAAM,EAAM,GAEtB,EACA,OAAO,QAAU","file":"/npm/protobuf-ib@2.0.0/protobuf-ib.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/protobuf-ib@2.0.0/protobuf-ib.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const protobuf = require('protobufjs')\nconst async = require('async')\nconst path = require('path')\n\nconst IBResponseSchema =\n  protobuf.load(path.join(__dirname, '/schema/IBResponse.proto'))\n  .then((res) => { return res.lookupType('ib.IBResponse.IBResponse') })\nconst IBRequestSchema =\n  protobuf.load(path.join(__dirname, '/schema/IBRequest.proto'))\n  .then((res) => { return res.lookupType('ib.IBRequest.IBRequest') })\n\nconst schema = {}\nconst loadAllSchema = function (topCb) {\n  return async.reduce([\n    IBResponseSchema,\n    IBRequestSchema\n  ], schema, (memo, item, cb) => {\n    item.then((res) => {\n      memo[res.name] = res\n      cb(null, memo)\n    })\n  }, (err, result) => {\n    if (err) return topCb(err)\n    topCb(null, result)\n  })\n}\nmodule.exports = loadAllSchema\n"]}