index.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. var __extends = this && this.t || function() {
  2. var extendStatics = function(n, t) {
  3. extendStatics = Object.setPrototypeOf || {
  4. __proto__: []
  5. } instanceof Array && function(n, t) {
  6. n.__proto__ = t;
  7. } || function(n, t) {
  8. for (var r in t) if (Object.prototype.hasOwnProperty.call(t, r)) n[r] = t[r];
  9. };
  10. return extendStatics(n, t);
  11. };
  12. return function(n, t) {
  13. if (typeof t !== "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
  14. extendStatics(n, t);
  15. function __() {
  16. this.constructor = n;
  17. }
  18. n.prototype = t === null ? Object.create(t) : (__.prototype = t.prototype, new __);
  19. };
  20. }();
  21. var ContainerIterator = function() {
  22. function ContainerIterator(n) {
  23. if (n === void 0) {
  24. n = 0;
  25. }
  26. this.iteratorType = n;
  27. }
  28. return ContainerIterator;
  29. }();
  30. export { ContainerIterator };
  31. var Base = function() {
  32. function Base() {
  33. this.o = 0;
  34. }
  35. Base.prototype.size = function() {
  36. return this.o;
  37. };
  38. Base.prototype.empty = function() {
  39. return this.o === 0;
  40. };
  41. return Base;
  42. }();
  43. export { Base };
  44. var Container = function(n) {
  45. __extends(Container, n);
  46. function Container() {
  47. return n !== null && n.apply(this, arguments) || this;
  48. }
  49. return Container;
  50. }(Base);
  51. export { Container };