import u from "./index-classCallCheck.js";
import p from "./index-createClass.js";
import o from "./index-assertThisInitialized.js";
import c from "./index-inherits.js";
import f from "./index-createSuper.js";
import s from "./index-defineProperty.js";
import { Parser as l } from "./index-Parser4.js";
import { numericPatterns as h } from "./index-constants4.js";
import { parseNDigits as v, parseNumericPattern as P } from "./index-utils12.js";
var w = /* @__PURE__ */ (function(m) {
  c(a, m);
  var n = f(a);
  function a() {
    var i;
    u(this, a);
    for (var r = arguments.length, t = new Array(r), e = 0; e < r; e++)
      t[e] = arguments[e];
    return i = n.call.apply(n, [this].concat(t)), s(o(i), "priority", 60), s(o(i), "incompatibleTokens", ["t", "T"]), i;
  }
  return p(a, [{
    key: "parse",
    value: function(r, t, e) {
      switch (t) {
        case "m":
          return P(h.minute, r);
        case "mo":
          return e.ordinalNumber(r, {
            unit: "minute"
          });
        default:
          return v(t.length, r);
      }
    }
  }, {
    key: "validate",
    value: function(r, t) {
      return t >= 0 && t <= 59;
    }
  }, {
    key: "set",
    value: function(r, t, e) {
      return r.setUTCMinutes(e, 0, 0), r;
    }
  }]), a;
})(l);
export {
  w as MinuteParser
};
