{"version":3,"sources":["jsdelivr-header.js","/npm/lit-redux@1.0.3/bundle.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IAEtD,IAAI,QAAU,QAAQ,YAElB,SAAW,OAAO,QAAU,SAAU,GACxC,IAAK,IAAI,EAAI,EAAG,EAAI,UAAU,OAAQ,IAAK,CACzC,IAAI,EAAS,UAAU,GAEvB,IAAK,IAAI,KAAO,EACV,OAAO,UAAU,eAAe,KAAK,EAAQ,KAC/C,EAAO,GAAO,EAAO,GAG3B,CAEA,OAAO,CACT,EAEI,QAAU,WACZ,IAAI,EAAkB,UAAU,OAAS,QAAsB,IAAjB,UAAU,GAAmB,UAAU,GAAK,KACtF,EAAqB,UAAU,OAAS,QAAsB,IAAjB,UAAU,GAAmB,UAAU,GAAK,KACzF,EAAa,UAAU,OAAS,QAAsB,IAAjB,UAAU,GAAmB,UAAU,GAAK,KACjF,EAAU,UAAU,OAAS,QAAsB,IAAjB,UAAU,GAAmB,UAAU,GAAK,KAClF,OAAO,SAAU,GACf,OAAO,SAAU,GACf,IAGI,EAHoB,SAAS,CAC/B,SAAU,SACT,GAC8B,SAE7B,EAAQ,EAAS,GACjB,EAAS,SAAgB,GAC3B,IAAI,EAAa,EAAkB,EAAgB,EAAO,GAAY,KAClE,EAAgB,EAAqB,EAAmB,EAAM,SAAU,GAAY,KACxF,OAAO,EAAU,EAAa,EAAW,EAAY,EAAe,GAAY,SAAS,CAAC,EAAG,EAAY,EAAe,GAC1H,EACA,OAAO,QAAQ,WAAU,SAAU,GAIjC,OAHA,EAAM,WAAU,WACd,OAAO,EAAK,SAAS,EAAO,EAAM,YACpC,IACO,EAAO,EAAM,WACtB,GACF,CACF,CACF,EAEA,QAAQ,QAAU","file":"/npm/lit-redux@1.0.3/bundle.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/lit-redux@1.0.3/bundle.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar litHtml = require('lit-html');\n\nvar _extends = Object.assign || function (target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = arguments[i];\n\n    for (var key in source) {\n      if (Object.prototype.hasOwnProperty.call(source, key)) {\n        target[key] = source[key];\n      }\n    }\n  }\n\n  return target;\n};\n\nvar connect = function connect() {\n  var mapStateToProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n  var mapDispatchToProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n  var mergeProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n  return function (component) {\n    return function (ownProps) {\n      var _storeKey$options = _extends({\n        storeKey: 'store'\n      }, options),\n          storeKey = _storeKey$options.storeKey;\n\n      var store = ownProps[storeKey];\n      var update = function update(state) {\n        var stateProps = mapStateToProps ? mapStateToProps(state, ownProps) : null;\n        var dispatchProps = mapDispatchToProps ? mapDispatchToProps(store.dispatch, ownProps) : null;\n        return component(mergeProps ? mergeProps(stateProps, dispatchProps, ownProps) : _extends({}, stateProps, dispatchProps, ownProps));\n      };\n      return litHtml.directive(function (part) {\n        store.subscribe(function () {\n          return part.setValue(update(store.getState()));\n        });\n        return update(store.getState());\n      });\n    };\n  };\n};\n\nexports.connect = connect;\n"]}