{"version":3,"sources":["jsdelivr-header.js","/npm/@soulofmischief/bind-props@1.1.8/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACJA,OAAO,QAAU,SAAS,EAAW,EAAS,GAO5C,OAAO,OAAO,QAAS,GACpB,KAAK,GACyB,mBAAf,EAAO,GAEjB,CAAE,EAAO,GAAK,EAAO,GAAI,KAAM,IACT,iBAAf,EAAO,GACZ,CAAE,EAAO,GAAK,EAAW,EAAS,EAAO,KACzC,IACL,QAAO,CAAE,EAAG,KAAS,EAAG,EAAG,IAAO,EAAG,GAAY,IAAK,CAAC,EAC9D","file":"/npm/@soulofmischief/bind-props@1.1.8/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@soulofmischief/bind-props@1.1.8/lib/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","\n/** Bind each function property of an object to a new context. */\nmodule.exports = function bindProps( context, obj ) {\n  // Get entries, map each key/value pair to a new key/value pair\n  // that's bound to the context.\n  // Reduce back to an object.\n  // Recurse for any objects, which are assumed to be Modules.\n  // This allows for namespacing.\n\n  return Object.entries( obj )\n    .map( entry => {\n      return typeof entry[ 1 ] === 'function'\n        /* $FlowFixMe map */\n        ? [ entry[ 0 ], entry[ 1 ].bind( context )]\n        : typeof entry[ 1 ] === 'object'\n          ? [ entry[ 0 ], bindProps( context, entry[ 1 ])]\n          : entry\n    }).reduce(( a, c ) => { a[ c[ 0 ]] = c[ 1 ]; return a }, {})\n}"]}