MSI11.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. 'use strict';
  2. import _MSI3 from './MSI.js'
  3. import _checksums from './checksums.js'
  4. function _classCallCheck(instance, Constructor) {
  5. if (!(instance instanceof Constructor)) {
  6. throw new TypeError("Cannot call a class as a function");
  7. }
  8. }
  9. function _possibleConstructorReturn(self, call) {
  10. if (!self) {
  11. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  12. }
  13. return call && (typeof call === "object" || typeof call === "function") ? call : self;
  14. }
  15. function _inherits(subClass, superClass) {
  16. if (typeof superClass !== "function" && superClass !== null) {
  17. throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
  18. }
  19. subClass.prototype = Object.create(superClass && superClass.prototype, {
  20. constructor: {
  21. value: subClass,
  22. enumerable: false,
  23. writable: true,
  24. configurable: true
  25. }
  26. });
  27. if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ =
  28. superClass;
  29. }
  30. var MSI11 = function(_MSI) {
  31. _inherits(MSI11, _MSI);
  32. function MSI11(data, options) {
  33. _classCallCheck(this, MSI11);
  34. return _possibleConstructorReturn(this, (MSI11.__proto__ || Object.getPrototypeOf(MSI11)).call(this, data +
  35. (0, _checksums.mod11)(data), options));
  36. }
  37. return MSI11;
  38. }(_MSI3);
  39. export default MSI11;