@js-joda/core 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- //! @version @js-joda/core - 6.0.0
1
+ //! @version @js-joda/core - 6.0.1
2
2
  //! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
3
3
  //! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4
4
  //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
@@ -72,23 +72,17 @@ function messageForDateTimeParseException(message, text, index, cause) {
72
72
  };
73
73
  }
74
74
 
75
- function _inheritsLoose(subClass, superClass) {
76
- subClass.prototype = Object.create(superClass.prototype);
77
- subClass.prototype.constructor = subClass;
78
- _setPrototypeOf(subClass, superClass);
75
+ function _assertThisInitialized(e) {
76
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
77
+ return e;
79
78
  }
80
- function _setPrototypeOf(o, p) {
81
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
82
- o.__proto__ = p;
83
- return o;
84
- };
85
- return _setPrototypeOf(o, p);
79
+ function _inheritsLoose(t, o) {
80
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
86
81
  }
87
- function _assertThisInitialized(self) {
88
- if (self === void 0) {
89
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
90
- }
91
- return self;
82
+ function _setPrototypeOf(t, e) {
83
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
84
+ return t.__proto__ = e, t;
85
+ }, _setPrototypeOf(t, e);
92
86
  }
93
87
 
94
88
  /**
@@ -207,18 +201,10 @@ var MathUtil = function () {
207
201
  }
208
202
  return r;
209
203
  };
210
- MathUtil.parseInt = function (_parseInt) {
211
- function parseInt(_x) {
212
- return _parseInt.apply(this, arguments);
213
- }
214
- parseInt.toString = function () {
215
- return _parseInt.toString();
216
- };
217
- return parseInt;
218
- }(function (value) {
204
+ MathUtil.parseInt = function (value) {
219
205
  var r = parseInt(value);
220
206
  return MathUtil.safeToInt(r);
221
- });
207
+ };
222
208
  MathUtil.safeToInt = function safeToInt(value) {
223
209
  MathUtil.verifyInt(value);
224
210
  return MathUtil.safeZero(value);
@@ -365,7 +351,6 @@ var TemporalUnit = function () {
365
351
  }();
366
352
 
367
353
  var Duration = function (_TemporalAmount) {
368
- _inheritsLoose(Duration, _TemporalAmount);
369
354
  function Duration(seconds, nanos) {
370
355
  var _this;
371
356
  _this = _TemporalAmount.call(this) || this;
@@ -373,6 +358,7 @@ var Duration = function (_TemporalAmount) {
373
358
  _this._nanos = MathUtil.safeToInt(nanos);
374
359
  return _this;
375
360
  }
361
+ _inheritsLoose(Duration, _TemporalAmount);
376
362
  Duration.ofDays = function ofDays(days) {
377
363
  return Duration._create(MathUtil.safeMultiply(days, LocalTime.SECONDS_PER_DAY), 0);
378
364
  };
@@ -821,7 +807,6 @@ function _init$m() {
821
807
  }
822
808
 
823
809
  var ChronoUnit = function (_TemporalUnit) {
824
- _inheritsLoose(ChronoUnit, _TemporalUnit);
825
810
  function ChronoUnit(name, estimatedDuration) {
826
811
  var _this;
827
812
  _this = _TemporalUnit.call(this) || this;
@@ -829,6 +814,7 @@ var ChronoUnit = function (_TemporalUnit) {
829
814
  _this._duration = estimatedDuration;
830
815
  return _this;
831
816
  }
817
+ _inheritsLoose(ChronoUnit, _TemporalUnit);
832
818
  var _proto = ChronoUnit.prototype;
833
819
  _proto.duration = function duration() {
834
820
  return this._duration;
@@ -1030,6 +1016,15 @@ var ValueRange = function () {
1030
1016
  }();
1031
1017
 
1032
1018
  var ChronoField = function (_TemporalField) {
1019
+ function ChronoField(name, baseUnit, rangeUnit, range) {
1020
+ var _this;
1021
+ _this = _TemporalField.call(this) || this;
1022
+ _this._name = name;
1023
+ _this._baseUnit = baseUnit;
1024
+ _this._rangeUnit = rangeUnit;
1025
+ _this._range = range;
1026
+ return _this;
1027
+ }
1033
1028
  _inheritsLoose(ChronoField, _TemporalField);
1034
1029
  ChronoField.byName = function byName(fieldName) {
1035
1030
  for (var prop in ChronoField) {
@@ -1040,15 +1035,6 @@ var ChronoField = function (_TemporalField) {
1040
1035
  }
1041
1036
  }
1042
1037
  };
1043
- function ChronoField(name, baseUnit, rangeUnit, range) {
1044
- var _this;
1045
- _this = _TemporalField.call(this) || this;
1046
- _this._name = name;
1047
- _this._baseUnit = baseUnit;
1048
- _this._rangeUnit = rangeUnit;
1049
- _this._range = range;
1050
- return _this;
1051
- }
1052
1038
  var _proto = ChronoField.prototype;
1053
1039
  _proto.name = function name() {
1054
1040
  return this._name;
@@ -1199,10 +1185,10 @@ var TemporalAccessor = function () {
1199
1185
  }();
1200
1186
 
1201
1187
  var TemporalQuery = function (_Enum) {
1202
- _inheritsLoose(TemporalQuery, _Enum);
1203
1188
  function TemporalQuery() {
1204
1189
  return _Enum.apply(this, arguments) || this;
1205
1190
  }
1191
+ _inheritsLoose(TemporalQuery, _Enum);
1206
1192
  var _proto = TemporalQuery.prototype;
1207
1193
  _proto.queryFrom = function queryFrom(temporal) {
1208
1194
  abstractMethodFail('queryFrom');
@@ -1211,10 +1197,10 @@ var TemporalQuery = function (_Enum) {
1211
1197
  }(Enum);
1212
1198
  function createTemporalQuery(name, queryFromFunction) {
1213
1199
  var ExtendedTemporalQuery = function (_TemporalQuery) {
1214
- _inheritsLoose(ExtendedTemporalQuery, _TemporalQuery);
1215
1200
  function ExtendedTemporalQuery() {
1216
1201
  return _TemporalQuery.apply(this, arguments) || this;
1217
1202
  }
1203
+ _inheritsLoose(ExtendedTemporalQuery, _TemporalQuery);
1218
1204
  return ExtendedTemporalQuery;
1219
1205
  }(TemporalQuery);
1220
1206
  ExtendedTemporalQuery.prototype.queryFrom = queryFromFunction;
@@ -1222,7 +1208,6 @@ function createTemporalQuery(name, queryFromFunction) {
1222
1208
  }
1223
1209
 
1224
1210
  var DayOfWeek = function (_TemporalAccessor) {
1225
- _inheritsLoose(DayOfWeek, _TemporalAccessor);
1226
1211
  function DayOfWeek(ordinal, name) {
1227
1212
  var _this;
1228
1213
  _this = _TemporalAccessor.call(this) || this;
@@ -1230,6 +1215,7 @@ var DayOfWeek = function (_TemporalAccessor) {
1230
1215
  _this._name = name;
1231
1216
  return _this;
1232
1217
  }
1218
+ _inheritsLoose(DayOfWeek, _TemporalAccessor);
1233
1219
  var _proto = DayOfWeek.prototype;
1234
1220
  _proto.ordinal = function ordinal() {
1235
1221
  return this._ordinal;
@@ -1356,7 +1342,6 @@ function _init$j() {
1356
1342
  }
1357
1343
 
1358
1344
  var Month = function (_TemporalAccessor) {
1359
- _inheritsLoose(Month, _TemporalAccessor);
1360
1345
  function Month(value, name) {
1361
1346
  var _this;
1362
1347
  _this = _TemporalAccessor.call(this) || this;
@@ -1364,6 +1349,7 @@ var Month = function (_TemporalAccessor) {
1364
1349
  _this._name = name;
1365
1350
  return _this;
1366
1351
  }
1352
+ _inheritsLoose(Month, _TemporalAccessor);
1367
1353
  var _proto = Month.prototype;
1368
1354
  _proto.value = function value() {
1369
1355
  return this._value;
@@ -1601,7 +1587,6 @@ function _init$i() {
1601
1587
 
1602
1588
  var PATTERN = /([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/;
1603
1589
  var Period = function (_TemporalAmount) {
1604
- _inheritsLoose(Period, _TemporalAmount);
1605
1590
  function Period(years, months, days) {
1606
1591
  var _this;
1607
1592
  _this = _TemporalAmount.call(this) || this;
@@ -1613,7 +1598,7 @@ var Period = function (_TemporalAmount) {
1613
1598
  _this._years = _years;
1614
1599
  _this._months = _months;
1615
1600
  _this._days = _days;
1616
- Period.ZERO = _assertThisInitialized(_this);
1601
+ Period.ZERO = _this;
1617
1602
  }
1618
1603
  return Period.ZERO || _assertThisInitialized(_this);
1619
1604
  }
@@ -1622,6 +1607,7 @@ var Period = function (_TemporalAmount) {
1622
1607
  _this._days = _days;
1623
1608
  return _this;
1624
1609
  }
1610
+ _inheritsLoose(Period, _TemporalAmount);
1625
1611
  Period.ofYears = function ofYears(years) {
1626
1612
  return Period.create(years, 0, 0);
1627
1613
  };
@@ -1965,10 +1951,10 @@ function _init$h() {
1965
1951
  }();
1966
1952
 
1967
1953
  var ResolverStyle = function (_Enum) {
1968
- _inheritsLoose(ResolverStyle, _Enum);
1969
1954
  function ResolverStyle() {
1970
1955
  return _Enum.apply(this, arguments) || this;
1971
1956
  }
1957
+ _inheritsLoose(ResolverStyle, _Enum);
1972
1958
  return ResolverStyle;
1973
1959
  }(Enum);
1974
1960
  ResolverStyle.STRICT = new ResolverStyle('STRICT');
@@ -1976,10 +1962,10 @@ ResolverStyle.SMART = new ResolverStyle('SMART');
1976
1962
  ResolverStyle.LENIENT = new ResolverStyle('LENIENT');
1977
1963
 
1978
1964
  var Temporal = function (_TemporalAccessor) {
1979
- _inheritsLoose(Temporal, _TemporalAccessor);
1980
1965
  function Temporal() {
1981
1966
  return _TemporalAccessor.apply(this, arguments) || this;
1982
1967
  }
1968
+ _inheritsLoose(Temporal, _TemporalAccessor);
1983
1969
  var _proto = Temporal.prototype;
1984
1970
  _proto.isSupported = function isSupported(fieldOrUnit) {
1985
1971
  abstractMethodFail('isSupported');
@@ -2047,10 +2033,10 @@ if (typeof Symbol !== 'undefined' && Symbol.toPrimitive) {
2047
2033
  }
2048
2034
 
2049
2035
  var ChronoLocalDate = function (_Temporal) {
2050
- _inheritsLoose(ChronoLocalDate, _Temporal);
2051
2036
  function ChronoLocalDate() {
2052
2037
  return _Temporal.apply(this, arguments) || this;
2053
2038
  }
2039
+ _inheritsLoose(ChronoLocalDate, _Temporal);
2054
2040
  var _proto = ChronoLocalDate.prototype;
2055
2041
  _proto.isSupported = function isSupported(fieldOrUnit) {
2056
2042
  if (fieldOrUnit instanceof ChronoField) {
@@ -2232,13 +2218,13 @@ var ZoneRules = function () {
2232
2218
  return ZoneRules;
2233
2219
  }();
2234
2220
  var Fixed = function (_ZoneRules) {
2235
- _inheritsLoose(Fixed, _ZoneRules);
2236
2221
  function Fixed(offset) {
2237
2222
  var _this;
2238
2223
  _this = _ZoneRules.call(this) || this;
2239
2224
  _this._offset = offset;
2240
2225
  return _this;
2241
2226
  }
2227
+ _inheritsLoose(Fixed, _ZoneRules);
2242
2228
  var _proto2 = Fixed.prototype;
2243
2229
  _proto2.isFixedOffset = function isFixedOffset() {
2244
2230
  return true;
@@ -2300,16 +2286,16 @@ var Fixed = function (_ZoneRules) {
2300
2286
  var SECONDS_CACHE = {};
2301
2287
  var ID_CACHE = {};
2302
2288
  var ZoneOffset = function (_ZoneId) {
2303
- _inheritsLoose(ZoneOffset, _ZoneId);
2304
2289
  function ZoneOffset(totalSeconds) {
2305
2290
  var _this;
2306
2291
  _this = _ZoneId.call(this) || this;
2307
2292
  ZoneOffset._validateTotalSeconds(totalSeconds);
2308
2293
  _this._totalSeconds = MathUtil.safeToInt(totalSeconds);
2309
- _this._rules = ZoneRules.of(_assertThisInitialized(_this));
2294
+ _this._rules = ZoneRules.of(_this);
2310
2295
  _this._id = ZoneOffset._buildId(totalSeconds);
2311
2296
  return _this;
2312
2297
  }
2298
+ _inheritsLoose(ZoneOffset, _ZoneId);
2313
2299
  var _proto = ZoneOffset.prototype;
2314
2300
  _proto.totalSeconds = function totalSeconds() {
2315
2301
  return this._totalSeconds;
@@ -2505,12 +2491,6 @@ function _init$g() {
2505
2491
  }
2506
2492
 
2507
2493
  var DateTimeBuilder = function (_TemporalAccessor) {
2508
- _inheritsLoose(DateTimeBuilder, _TemporalAccessor);
2509
- DateTimeBuilder.create = function create(field, value) {
2510
- var dtb = new DateTimeBuilder();
2511
- dtb._addFieldValue(field, value);
2512
- return dtb;
2513
- };
2514
2494
  function DateTimeBuilder() {
2515
2495
  var _this;
2516
2496
  _this = _TemporalAccessor.call(this) || this;
@@ -2523,6 +2503,12 @@ var DateTimeBuilder = function (_TemporalAccessor) {
2523
2503
  _this.excessDays = null;
2524
2504
  return _this;
2525
2505
  }
2506
+ _inheritsLoose(DateTimeBuilder, _TemporalAccessor);
2507
+ DateTimeBuilder.create = function create(field, value) {
2508
+ var dtb = new DateTimeBuilder();
2509
+ dtb._addFieldValue(field, value);
2510
+ return dtb;
2511
+ };
2526
2512
  var _proto = DateTimeBuilder.prototype;
2527
2513
  _proto.getFieldValue0 = function getFieldValue0(field) {
2528
2514
  return this.fieldValues.get(field);
@@ -2960,7 +2946,6 @@ var DateTimeParseContext = function () {
2960
2946
  return DateTimeParseContext;
2961
2947
  }();
2962
2948
  var Parsed = function (_Temporal) {
2963
- _inheritsLoose(Parsed, _Temporal);
2964
2949
  function Parsed(dateTimeParseContext) {
2965
2950
  var _this;
2966
2951
  _this = _Temporal.call(this) || this;
@@ -2971,6 +2956,7 @@ var Parsed = function (_Temporal) {
2971
2956
  _this.dateTimeParseContext = dateTimeParseContext;
2972
2957
  return _this;
2973
2958
  }
2959
+ _inheritsLoose(Parsed, _Temporal);
2974
2960
  var _proto2 = Parsed.prototype;
2975
2961
  _proto2.copy = function copy() {
2976
2962
  var cloned = new Parsed();
@@ -3084,10 +3070,10 @@ var DateTimePrintContext = function () {
3084
3070
  var IsoFields = {};
3085
3071
  var QUARTER_DAYS = [0, 90, 181, 273, 0, 91, 182, 274];
3086
3072
  var Field = function (_TemporalField) {
3087
- _inheritsLoose(Field, _TemporalField);
3088
3073
  function Field() {
3089
3074
  return _TemporalField.apply(this, arguments) || this;
3090
3075
  }
3076
+ _inheritsLoose(Field, _TemporalField);
3091
3077
  var _proto = Field.prototype;
3092
3078
  _proto.isDateBased = function isDateBased() {
3093
3079
  return true;
@@ -3159,10 +3145,10 @@ var Field = function (_TemporalField) {
3159
3145
  return Field;
3160
3146
  }(TemporalField);
3161
3147
  var DAY_OF_QUARTER_FIELD = function (_Field) {
3162
- _inheritsLoose(DAY_OF_QUARTER_FIELD, _Field);
3163
3148
  function DAY_OF_QUARTER_FIELD() {
3164
3149
  return _Field.apply(this, arguments) || this;
3165
3150
  }
3151
+ _inheritsLoose(DAY_OF_QUARTER_FIELD, _Field);
3166
3152
  var _proto2 = DAY_OF_QUARTER_FIELD.prototype;
3167
3153
  _proto2.toString = function toString() {
3168
3154
  return 'DayOfQuarter';
@@ -3245,10 +3231,10 @@ var DAY_OF_QUARTER_FIELD = function (_Field) {
3245
3231
  return DAY_OF_QUARTER_FIELD;
3246
3232
  }(Field);
3247
3233
  var QUARTER_OF_YEAR_FIELD = function (_Field2) {
3248
- _inheritsLoose(QUARTER_OF_YEAR_FIELD, _Field2);
3249
3234
  function QUARTER_OF_YEAR_FIELD() {
3250
3235
  return _Field2.apply(this, arguments) || this;
3251
3236
  }
3237
+ _inheritsLoose(QUARTER_OF_YEAR_FIELD, _Field2);
3252
3238
  var _proto3 = QUARTER_OF_YEAR_FIELD.prototype;
3253
3239
  _proto3.toString = function toString() {
3254
3240
  return 'QuarterOfYear';
@@ -3283,10 +3269,10 @@ var QUARTER_OF_YEAR_FIELD = function (_Field2) {
3283
3269
  return QUARTER_OF_YEAR_FIELD;
3284
3270
  }(Field);
3285
3271
  var WEEK_OF_WEEK_BASED_YEAR_FIELD = function (_Field3) {
3286
- _inheritsLoose(WEEK_OF_WEEK_BASED_YEAR_FIELD, _Field3);
3287
3272
  function WEEK_OF_WEEK_BASED_YEAR_FIELD() {
3288
3273
  return _Field3.apply(this, arguments) || this;
3289
3274
  }
3275
+ _inheritsLoose(WEEK_OF_WEEK_BASED_YEAR_FIELD, _Field3);
3290
3276
  var _proto4 = WEEK_OF_WEEK_BASED_YEAR_FIELD.prototype;
3291
3277
  _proto4.toString = function toString() {
3292
3278
  return 'WeekOfWeekBasedYear';
@@ -3361,10 +3347,10 @@ var WEEK_OF_WEEK_BASED_YEAR_FIELD = function (_Field3) {
3361
3347
  return WEEK_OF_WEEK_BASED_YEAR_FIELD;
3362
3348
  }(Field);
3363
3349
  var WEEK_BASED_YEAR_FIELD = function (_Field4) {
3364
- _inheritsLoose(WEEK_BASED_YEAR_FIELD, _Field4);
3365
3350
  function WEEK_BASED_YEAR_FIELD() {
3366
3351
  return _Field4.apply(this, arguments) || this;
3367
3352
  }
3353
+ _inheritsLoose(WEEK_BASED_YEAR_FIELD, _Field4);
3368
3354
  var _proto5 = WEEK_BASED_YEAR_FIELD.prototype;
3369
3355
  _proto5.toString = function toString() {
3370
3356
  return 'WeekBasedYear';
@@ -3409,7 +3395,6 @@ var WEEK_BASED_YEAR_FIELD = function (_Field4) {
3409
3395
  return WEEK_BASED_YEAR_FIELD;
3410
3396
  }(Field);
3411
3397
  var Unit = function (_TemporalUnit) {
3412
- _inheritsLoose(Unit, _TemporalUnit);
3413
3398
  function Unit(name, estimatedDuration) {
3414
3399
  var _this;
3415
3400
  _this = _TemporalUnit.call(this) || this;
@@ -3417,6 +3402,7 @@ var Unit = function (_TemporalUnit) {
3417
3402
  _this._duration = estimatedDuration;
3418
3403
  return _this;
3419
3404
  }
3405
+ _inheritsLoose(Unit, _TemporalUnit);
3420
3406
  var _proto6 = Unit.prototype;
3421
3407
  _proto6.duration = function duration() {
3422
3408
  return this._duration;
@@ -3580,10 +3566,10 @@ var DecimalStyle = function () {
3580
3566
  DecimalStyle.STANDARD = new DecimalStyle('0', '+', '-', '.');
3581
3567
 
3582
3568
  var SignStyle = function (_Enum) {
3583
- _inheritsLoose(SignStyle, _Enum);
3584
3569
  function SignStyle() {
3585
3570
  return _Enum.apply(this, arguments) || this;
3586
3571
  }
3572
+ _inheritsLoose(SignStyle, _Enum);
3587
3573
  var _proto = SignStyle.prototype;
3588
3574
  _proto.parse = function parse(positive, strict, fixedWidth) {
3589
3575
  switch (this) {
@@ -3605,10 +3591,10 @@ SignStyle.EXCEEDS_PAD = new SignStyle('EXCEEDS_PAD');
3605
3591
  SignStyle.NOT_NEGATIVE = new SignStyle('NOT_NEGATIVE');
3606
3592
 
3607
3593
  var TextStyle = function (_Enum) {
3608
- _inheritsLoose(TextStyle, _Enum);
3609
3594
  function TextStyle() {
3610
3595
  return _Enum.apply(this, arguments) || this;
3611
3596
  }
3597
+ _inheritsLoose(TextStyle, _Enum);
3612
3598
  var _proto = TextStyle.prototype;
3613
3599
  _proto.isStandalone = function isStandalone() {
3614
3600
  switch (this) {
@@ -4069,7 +4055,6 @@ var NumberPrinterParser = function () {
4069
4055
  return NumberPrinterParser;
4070
4056
  }();
4071
4057
  var ReducedPrinterParser = function (_NumberPrinterParser) {
4072
- _inheritsLoose(ReducedPrinterParser, _NumberPrinterParser);
4073
4058
  function ReducedPrinterParser(field, width, maxWidth, baseValue, baseDate) {
4074
4059
  var _this;
4075
4060
  _this = _NumberPrinterParser.call(this, field, width, maxWidth, SignStyle.NOT_NEGATIVE) || this;
@@ -4094,6 +4079,7 @@ var ReducedPrinterParser = function (_NumberPrinterParser) {
4094
4079
  _this._baseDate = baseDate;
4095
4080
  return _this;
4096
4081
  }
4082
+ _inheritsLoose(ReducedPrinterParser, _NumberPrinterParser);
4097
4083
  var _proto2 = ReducedPrinterParser.prototype;
4098
4084
  _proto2._getValue = function _getValue(context, value) {
4099
4085
  var absValue = Math.abs(value);
@@ -4330,10 +4316,10 @@ var PadPrinterParserDecorator = function () {
4330
4316
  }();
4331
4317
 
4332
4318
  var SettingsParser = function (_Enum) {
4333
- _inheritsLoose(SettingsParser, _Enum);
4334
4319
  function SettingsParser() {
4335
4320
  return _Enum.apply(this, arguments) || this;
4336
4321
  }
4322
+ _inheritsLoose(SettingsParser, _Enum);
4337
4323
  var _proto = SettingsParser.prototype;
4338
4324
  _proto.print = function print() {
4339
4325
  return true;
@@ -4422,11 +4408,6 @@ var ZoneRulesProvider = function () {
4422
4408
  }();
4423
4409
 
4424
4410
  var ZoneRegion = function (_ZoneId) {
4425
- _inheritsLoose(ZoneRegion, _ZoneId);
4426
- ZoneRegion.ofId = function ofId(zoneId) {
4427
- var rules = ZoneRulesProvider.getRules(zoneId);
4428
- return new ZoneRegion(zoneId, rules);
4429
- };
4430
4411
  function ZoneRegion(id, rules) {
4431
4412
  var _this;
4432
4413
  _this = _ZoneId.call(this) || this;
@@ -4434,6 +4415,11 @@ var ZoneRegion = function (_ZoneId) {
4434
4415
  _this._rules = rules;
4435
4416
  return _this;
4436
4417
  }
4418
+ _inheritsLoose(ZoneRegion, _ZoneId);
4419
+ ZoneRegion.ofId = function ofId(zoneId) {
4420
+ var rules = ZoneRulesProvider.getRules(zoneId);
4421
+ return new ZoneRegion(zoneId, rules);
4422
+ };
4437
4423
  var _proto = ZoneRegion.prototype;
4438
4424
  _proto.id = function id() {
4439
4425
  return this._id;
@@ -4547,6 +4533,10 @@ var ZoneIdPrinterParser = function () {
4547
4533
  return ZoneIdPrinterParser;
4548
4534
  }();
4549
4535
  var ZoneIdTree = function () {
4536
+ function ZoneIdTree(size, treeMap) {
4537
+ this.size = size;
4538
+ this.treeMap = treeMap;
4539
+ }
4550
4540
  ZoneIdTree.createTreeMap = function createTreeMap(availableZoneIds) {
4551
4541
  var sortedZoneIds = availableZoneIds.sort(function (a, b) {
4552
4542
  return a.length - b.length;
@@ -4557,10 +4547,6 @@ var ZoneIdTree = function () {
4557
4547
  }
4558
4548
  return new ZoneIdTree(sortedZoneIds.length, treeMap);
4559
4549
  };
4560
- function ZoneIdTree(size, treeMap) {
4561
- this.size = size;
4562
- this.treeMap = treeMap;
4563
- }
4564
4550
  return ZoneIdTree;
4565
4551
  }();
4566
4552
  var ZoneIdTreeMap = function () {
@@ -5361,15 +5347,6 @@ function _init$e() {
5361
5347
  */
5362
5348
 
5363
5349
  var DateTimeFormatter = function () {
5364
- DateTimeFormatter.parsedExcessDays = function parsedExcessDays() {
5365
- return DateTimeFormatter.PARSED_EXCESS_DAYS;
5366
- };
5367
- DateTimeFormatter.parsedLeapSecond = function parsedLeapSecond() {
5368
- return DateTimeFormatter.PARSED_LEAP_SECOND;
5369
- };
5370
- DateTimeFormatter.ofPattern = function ofPattern(pattern) {
5371
- return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter();
5372
- };
5373
5350
  function DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, chrono, zone) {
5374
5351
  if (chrono === void 0) {
5375
5352
  chrono = IsoChronology.INSTANCE;
@@ -5385,6 +5362,15 @@ var DateTimeFormatter = function () {
5385
5362
  this._chrono = chrono;
5386
5363
  this._zone = zone;
5387
5364
  }
5365
+ DateTimeFormatter.parsedExcessDays = function parsedExcessDays() {
5366
+ return DateTimeFormatter.PARSED_EXCESS_DAYS;
5367
+ };
5368
+ DateTimeFormatter.parsedLeapSecond = function parsedLeapSecond() {
5369
+ return DateTimeFormatter.PARSED_LEAP_SECOND;
5370
+ };
5371
+ DateTimeFormatter.ofPattern = function ofPattern(pattern) {
5372
+ return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter();
5373
+ };
5388
5374
  var _proto = DateTimeFormatter.prototype;
5389
5375
  _proto.locale = function locale() {
5390
5376
  return this._locale;
@@ -5539,6 +5525,13 @@ function _init$d() {
5539
5525
  }
5540
5526
 
5541
5527
  var MonthDay = function (_TemporalAccessor) {
5528
+ function MonthDay(month, dayOfMonth) {
5529
+ var _this;
5530
+ _this = _TemporalAccessor.call(this) || this;
5531
+ _this._month = MathUtil.safeToInt(month);
5532
+ _this._day = MathUtil.safeToInt(dayOfMonth);
5533
+ return _this;
5534
+ }
5542
5535
  _inheritsLoose(MonthDay, _TemporalAccessor);
5543
5536
  MonthDay.now = function now(zoneIdOrClock) {
5544
5537
  if (arguments.length === 0) {
@@ -5609,13 +5602,6 @@ var MonthDay = function (_TemporalAccessor) {
5609
5602
  requireInstance(formatter, DateTimeFormatter, 'formatter');
5610
5603
  return formatter.parse(text, MonthDay.FROM);
5611
5604
  };
5612
- function MonthDay(month, dayOfMonth) {
5613
- var _this;
5614
- _this = _TemporalAccessor.call(this) || this;
5615
- _this._month = MathUtil.safeToInt(month);
5616
- _this._day = MathUtil.safeToInt(dayOfMonth);
5617
- return _this;
5618
- }
5619
5605
  var _proto = MonthDay.prototype;
5620
5606
  _proto.monthValue = function monthValue() {
5621
5607
  return this._month;
@@ -5743,6 +5729,13 @@ function _init$c() {
5743
5729
  }
5744
5730
 
5745
5731
  var YearMonth = function (_Temporal) {
5732
+ function YearMonth(year, month) {
5733
+ var _this;
5734
+ _this = _Temporal.call(this) || this;
5735
+ _this._year = MathUtil.safeToInt(year);
5736
+ _this._month = MathUtil.safeToInt(month);
5737
+ return _this;
5738
+ }
5746
5739
  _inheritsLoose(YearMonth, _Temporal);
5747
5740
  YearMonth.now = function now(zoneIdOrClock) {
5748
5741
  if (arguments.length === 0) {
@@ -5807,13 +5800,6 @@ var YearMonth = function (_Temporal) {
5807
5800
  requireNonNull(formatter, 'formatter');
5808
5801
  return formatter.parse(text, YearMonth.FROM);
5809
5802
  };
5810
- function YearMonth(year, month) {
5811
- var _this;
5812
- _this = _Temporal.call(this) || this;
5813
- _this._year = MathUtil.safeToInt(year);
5814
- _this._month = MathUtil.safeToInt(month);
5815
- return _this;
5816
- }
5817
5803
  var _proto = YearMonth.prototype;
5818
5804
  _proto.isSupported = function isSupported(fieldOrUnit) {
5819
5805
  if (arguments.length === 1 && fieldOrUnit instanceof TemporalField) {
@@ -6067,13 +6053,13 @@ function _init$b() {
6067
6053
  }
6068
6054
 
6069
6055
  var Year = function (_Temporal) {
6070
- _inheritsLoose(Year, _Temporal);
6071
6056
  function Year(value) {
6072
6057
  var _this;
6073
6058
  _this = _Temporal.call(this) || this;
6074
6059
  _this._year = MathUtil.safeToInt(value);
6075
6060
  return _this;
6076
6061
  }
6062
+ _inheritsLoose(Year, _Temporal);
6077
6063
  var _proto = Year.prototype;
6078
6064
  _proto.value = function value() {
6079
6065
  return this._year;
@@ -6414,13 +6400,13 @@ var TemporalAdjusters = function () {
6414
6400
  return TemporalAdjusters;
6415
6401
  }();
6416
6402
  var Impl = function (_TemporalAdjuster) {
6417
- _inheritsLoose(Impl, _TemporalAdjuster);
6418
6403
  function Impl(ordinal) {
6419
6404
  var _this;
6420
6405
  _this = _TemporalAdjuster.call(this) || this;
6421
6406
  _this._ordinal = ordinal;
6422
6407
  return _this;
6423
6408
  }
6409
+ _inheritsLoose(Impl, _TemporalAdjuster);
6424
6410
  var _proto = Impl.prototype;
6425
6411
  _proto.adjustInto = function adjustInto(temporal) {
6426
6412
  switch (this._ordinal) {
@@ -6448,7 +6434,6 @@ Impl.FIRST_DAY_OF_YEAR = new Impl(3);
6448
6434
  Impl.LAST_DAY_OF_YEAR = new Impl(4);
6449
6435
  Impl.FIRST_DAY_OF_NEXT_YEAR = new Impl(5);
6450
6436
  var DayOfWeekInMonth = function (_TemporalAdjuster2) {
6451
- _inheritsLoose(DayOfWeekInMonth, _TemporalAdjuster2);
6452
6437
  function DayOfWeekInMonth(ordinal, dow) {
6453
6438
  var _this2;
6454
6439
  _this2 = _TemporalAdjuster2.call(this) || this;
@@ -6456,6 +6441,7 @@ var DayOfWeekInMonth = function (_TemporalAdjuster2) {
6456
6441
  _this2._dowValue = dow.value();
6457
6442
  return _this2;
6458
6443
  }
6444
+ _inheritsLoose(DayOfWeekInMonth, _TemporalAdjuster2);
6459
6445
  var _proto2 = DayOfWeekInMonth.prototype;
6460
6446
  _proto2.adjustInto = function adjustInto(temporal) {
6461
6447
  if (this._ordinal >= 0) {
@@ -6476,7 +6462,6 @@ var DayOfWeekInMonth = function (_TemporalAdjuster2) {
6476
6462
  return DayOfWeekInMonth;
6477
6463
  }(TemporalAdjuster);
6478
6464
  var RelativeDayOfWeek = function (_TemporalAdjuster3) {
6479
- _inheritsLoose(RelativeDayOfWeek, _TemporalAdjuster3);
6480
6465
  function RelativeDayOfWeek(relative, dayOfWeek) {
6481
6466
  var _this3;
6482
6467
  _this3 = _TemporalAdjuster3.call(this) || this;
@@ -6485,6 +6470,7 @@ var RelativeDayOfWeek = function (_TemporalAdjuster3) {
6485
6470
  _this3._dowValue = dayOfWeek.value();
6486
6471
  return _this3;
6487
6472
  }
6473
+ _inheritsLoose(RelativeDayOfWeek, _TemporalAdjuster3);
6488
6474
  var _proto3 = RelativeDayOfWeek.prototype;
6489
6475
  _proto3.adjustInto = function adjustInto(temporal) {
6490
6476
  var calDow = temporal.get(ChronoField.DAY_OF_WEEK);
@@ -6503,10 +6489,10 @@ var RelativeDayOfWeek = function (_TemporalAdjuster3) {
6503
6489
  }(TemporalAdjuster);
6504
6490
 
6505
6491
  var IsoChronology = function (_Enum) {
6506
- _inheritsLoose(IsoChronology, _Enum);
6507
6492
  function IsoChronology() {
6508
6493
  return _Enum.apply(this, arguments) || this;
6509
6494
  }
6495
+ _inheritsLoose(IsoChronology, _Enum);
6510
6496
  IsoChronology.isLeapYear = function isLeapYear(prolepticYear) {
6511
6497
  return (prolepticYear & 3) === 0 && (prolepticYear % 100 !== 0 || prolepticYear % 400 === 0);
6512
6498
  };
@@ -6636,6 +6622,17 @@ function _init$9() {
6636
6622
  }
6637
6623
 
6638
6624
  var OffsetTime = function (_Temporal) {
6625
+ function OffsetTime(time, offset) {
6626
+ var _this;
6627
+ _this = _Temporal.call(this) || this;
6628
+ requireNonNull(time, 'time');
6629
+ requireInstance(time, LocalTime, 'time');
6630
+ requireNonNull(offset, 'offset');
6631
+ requireInstance(offset, ZoneOffset, 'offset');
6632
+ _this._time = time;
6633
+ _this._offset = offset;
6634
+ return _this;
6635
+ }
6639
6636
  _inheritsLoose(OffsetTime, _Temporal);
6640
6637
  OffsetTime.from = function from(temporal) {
6641
6638
  requireNonNull(temporal, 'temporal');
@@ -6702,17 +6699,6 @@ var OffsetTime = function (_Temporal) {
6702
6699
  requireNonNull(formatter, 'formatter');
6703
6700
  return formatter.parse(text, OffsetTime.FROM);
6704
6701
  };
6705
- function OffsetTime(time, offset) {
6706
- var _this;
6707
- _this = _Temporal.call(this) || this;
6708
- requireNonNull(time, 'time');
6709
- requireInstance(time, LocalTime, 'time');
6710
- requireNonNull(offset, 'offset');
6711
- requireInstance(offset, ZoneOffset, 'offset');
6712
- _this._time = time;
6713
- _this._offset = offset;
6714
- return _this;
6715
- }
6716
6702
  var _proto = OffsetTime.prototype;
6717
6703
  _proto.adjustInto = function adjustInto(temporal) {
6718
6704
  return temporal.with(ChronoField.NANO_OF_DAY, this._time.toNanoOfDay()).with(ChronoField.OFFSET_SECONDS, this.offset().totalSeconds());
@@ -6963,10 +6949,10 @@ function _init$8() {
6963
6949
  }
6964
6950
 
6965
6951
  var ChronoZonedDateTime = function (_Temporal) {
6966
- _inheritsLoose(ChronoZonedDateTime, _Temporal);
6967
6952
  function ChronoZonedDateTime() {
6968
6953
  return _Temporal.apply(this, arguments) || this;
6969
6954
  }
6955
+ _inheritsLoose(ChronoZonedDateTime, _Temporal);
6970
6956
  var _proto = ChronoZonedDateTime.prototype;
6971
6957
  _proto.query = function query(_query) {
6972
6958
  if (_query === TemporalQueries.zoneId() || _query === TemporalQueries.zone()) {
@@ -7049,6 +7035,17 @@ function strcmp(a, b) {
7049
7035
  }
7050
7036
 
7051
7037
  var ZonedDateTime = function (_ChronoZonedDateTime) {
7038
+ function ZonedDateTime(dateTime, offset, zone) {
7039
+ var _this;
7040
+ requireNonNull(dateTime, 'dateTime');
7041
+ requireNonNull(offset, 'offset');
7042
+ requireNonNull(zone, 'zone');
7043
+ _this = _ChronoZonedDateTime.call(this) || this;
7044
+ _this._dateTime = dateTime;
7045
+ _this._offset = offset;
7046
+ _this._zone = zone;
7047
+ return _this;
7048
+ }
7052
7049
  _inheritsLoose(ZonedDateTime, _ChronoZonedDateTime);
7053
7050
  ZonedDateTime.now = function now(clockOrZone) {
7054
7051
  var clock;
@@ -7184,17 +7181,6 @@ var ZonedDateTime = function (_ChronoZonedDateTime) {
7184
7181
  requireNonNull(formatter, 'formatter');
7185
7182
  return formatter.parse(text, ZonedDateTime.FROM);
7186
7183
  };
7187
- function ZonedDateTime(dateTime, offset, zone) {
7188
- var _this;
7189
- requireNonNull(dateTime, 'dateTime');
7190
- requireNonNull(offset, 'offset');
7191
- requireNonNull(zone, 'zone');
7192
- _this = _ChronoZonedDateTime.call(this) || this;
7193
- _this._dateTime = dateTime;
7194
- _this._offset = offset;
7195
- _this._zone = zone;
7196
- return _this;
7197
- }
7198
7184
  var _proto = ZonedDateTime.prototype;
7199
7185
  _proto._resolveLocal = function _resolveLocal(newDateTime) {
7200
7186
  requireNonNull(newDateTime, 'newDateTime');
@@ -7495,6 +7481,17 @@ function _init$7() {
7495
7481
  }
7496
7482
 
7497
7483
  var OffsetDateTime = function (_Temporal) {
7484
+ function OffsetDateTime(dateTime, offset) {
7485
+ var _this;
7486
+ _this = _Temporal.call(this) || this;
7487
+ requireNonNull(dateTime, 'dateTime');
7488
+ requireInstance(dateTime, LocalDateTime, 'dateTime');
7489
+ requireNonNull(offset, 'offset');
7490
+ requireInstance(offset, ZoneOffset, 'offset');
7491
+ _this._dateTime = dateTime;
7492
+ _this._offset = offset;
7493
+ return _this;
7494
+ }
7498
7495
  _inheritsLoose(OffsetDateTime, _Temporal);
7499
7496
  OffsetDateTime.from = function from(temporal) {
7500
7497
  requireNonNull(temporal, 'temporal');
@@ -7522,8 +7519,8 @@ var OffsetDateTime = function (_Temporal) {
7522
7519
  if (clockOrZone instanceof ZoneId) {
7523
7520
  return OffsetDateTime.now(Clock.system(clockOrZone));
7524
7521
  } else if (clockOrZone instanceof Clock) {
7525
- var now = clockOrZone.instant();
7526
- return OffsetDateTime.ofInstant(now, clockOrZone.zone().rules().offset(now));
7522
+ var _now = clockOrZone.instant();
7523
+ return OffsetDateTime.ofInstant(_now, clockOrZone.zone().rules().offset(_now));
7527
7524
  } else {
7528
7525
  throw new IllegalArgumentException('clockOrZone must be an instance of ZoneId or Clock');
7529
7526
  }
@@ -7576,17 +7573,6 @@ var OffsetDateTime = function (_Temporal) {
7576
7573
  requireNonNull(formatter, 'formatter');
7577
7574
  return formatter.parse(text, OffsetDateTime.FROM);
7578
7575
  };
7579
- function OffsetDateTime(dateTime, offset) {
7580
- var _this;
7581
- _this = _Temporal.call(this) || this;
7582
- requireNonNull(dateTime, 'dateTime');
7583
- requireInstance(dateTime, LocalDateTime, 'dateTime');
7584
- requireNonNull(offset, 'offset');
7585
- requireInstance(offset, ZoneOffset, 'offset');
7586
- _this._dateTime = dateTime;
7587
- _this._offset = offset;
7588
- return _this;
7589
- }
7590
7576
  var _proto = OffsetDateTime.prototype;
7591
7577
  _proto.adjustInto = function adjustInto(temporal) {
7592
7578
  return temporal.with(ChronoField.EPOCH_DAY, this.toLocalDate().toEpochDay()).with(ChronoField.NANO_OF_DAY, this.toLocalTime().toNanoOfDay()).with(ChronoField.OFFSET_SECONDS, this.offset().totalSeconds());
@@ -7924,6 +7910,21 @@ function _init$6() {
7924
7910
  var DAYS_PER_CYCLE = 146097;
7925
7911
  var DAYS_0000_TO_1970 = DAYS_PER_CYCLE * 5 - (30 * 365 + 7);
7926
7912
  var LocalDate = function (_ChronoLocalDate) {
7913
+ function LocalDate(year, month, dayOfMonth) {
7914
+ var _this;
7915
+ _this = _ChronoLocalDate.call(this) || this;
7916
+ requireNonNull(year, 'year');
7917
+ requireNonNull(month, 'month');
7918
+ requireNonNull(dayOfMonth, 'dayOfMonth');
7919
+ if (month instanceof Month) {
7920
+ month = month.value();
7921
+ }
7922
+ _this._year = MathUtil.safeToInt(year);
7923
+ _this._month = MathUtil.safeToInt(month);
7924
+ _this._day = MathUtil.safeToInt(dayOfMonth);
7925
+ LocalDate._validate(_this._year, _this._month, _this._day);
7926
+ return _this;
7927
+ }
7927
7928
  _inheritsLoose(LocalDate, _ChronoLocalDate);
7928
7929
  LocalDate.now = function now(clockOrZone) {
7929
7930
  var clock;
@@ -8020,21 +8021,6 @@ var LocalDate = function (_ChronoLocalDate) {
8020
8021
  }
8021
8022
  return LocalDate.of(year, month, day);
8022
8023
  };
8023
- function LocalDate(year, month, dayOfMonth) {
8024
- var _this;
8025
- _this = _ChronoLocalDate.call(this) || this;
8026
- requireNonNull(year, 'year');
8027
- requireNonNull(month, 'month');
8028
- requireNonNull(dayOfMonth, 'dayOfMonth');
8029
- if (month instanceof Month) {
8030
- month = month.value();
8031
- }
8032
- _this._year = MathUtil.safeToInt(year);
8033
- _this._month = MathUtil.safeToInt(month);
8034
- _this._day = MathUtil.safeToInt(dayOfMonth);
8035
- LocalDate._validate(_this._year, _this._month, _this._day);
8036
- return _this;
8037
- }
8038
8024
  LocalDate._validate = function _validate(year, month, dayOfMonth) {
8039
8025
  var dom;
8040
8026
  ChronoField.YEAR.checkValidValue(year);
@@ -8533,10 +8519,10 @@ function _init$5() {
8533
8519
  }
8534
8520
 
8535
8521
  var ChronoLocalDateTime = function (_Temporal) {
8536
- _inheritsLoose(ChronoLocalDateTime, _Temporal);
8537
8522
  function ChronoLocalDateTime() {
8538
8523
  return _Temporal.apply(this, arguments) || this;
8539
8524
  }
8525
+ _inheritsLoose(ChronoLocalDateTime, _Temporal);
8540
8526
  var _proto = ChronoLocalDateTime.prototype;
8541
8527
  _proto.chronology = function chronology() {
8542
8528
  return this.toLocalDate().chronology();
@@ -8573,6 +8559,15 @@ var ChronoLocalDateTime = function (_Temporal) {
8573
8559
  }(Temporal);
8574
8560
 
8575
8561
  var LocalDateTime = function (_ChronoLocalDateTime) {
8562
+ function LocalDateTime(date, time) {
8563
+ var _this;
8564
+ _this = _ChronoLocalDateTime.call(this) || this;
8565
+ requireInstance(date, LocalDate, 'date');
8566
+ requireInstance(time, LocalTime, 'time');
8567
+ _this._date = date;
8568
+ _this._time = time;
8569
+ return _this;
8570
+ }
8576
8571
  _inheritsLoose(LocalDateTime, _ChronoLocalDateTime);
8577
8572
  LocalDateTime.now = function now(clockOrZone) {
8578
8573
  if (clockOrZone == null) {
@@ -8676,15 +8671,6 @@ var LocalDateTime = function (_ChronoLocalDateTime) {
8676
8671
  requireNonNull(formatter, 'formatter');
8677
8672
  return formatter.parse(text, LocalDateTime.FROM);
8678
8673
  };
8679
- function LocalDateTime(date, time) {
8680
- var _this;
8681
- _this = _ChronoLocalDateTime.call(this) || this;
8682
- requireInstance(date, LocalDate, 'date');
8683
- requireInstance(time, LocalTime, 'time');
8684
- _this._date = date;
8685
- _this._time = time;
8686
- return _this;
8687
- }
8688
8674
  var _proto = LocalDateTime.prototype;
8689
8675
  _proto._withDateTime = function _withDateTime(newDate, newTime) {
8690
8676
  if (this._date.equals(newDate) && this._time.equals(newTime)) {
@@ -9023,6 +9009,42 @@ function _init$4() {
9023
9009
  }
9024
9010
 
9025
9011
  var LocalTime = function (_Temporal) {
9012
+ function LocalTime(hour, minute, second, nanoOfSecond) {
9013
+ var _this;
9014
+ if (hour === void 0) {
9015
+ hour = 0;
9016
+ }
9017
+ if (minute === void 0) {
9018
+ minute = 0;
9019
+ }
9020
+ if (second === void 0) {
9021
+ second = 0;
9022
+ }
9023
+ if (nanoOfSecond === void 0) {
9024
+ nanoOfSecond = 0;
9025
+ }
9026
+ _this = _Temporal.call(this) || this;
9027
+ var _hour = MathUtil.safeToInt(hour);
9028
+ var _minute = MathUtil.safeToInt(minute);
9029
+ var _second = MathUtil.safeToInt(second);
9030
+ var _nanoOfSecond = MathUtil.safeToInt(nanoOfSecond);
9031
+ LocalTime._validate(_hour, _minute, _second, _nanoOfSecond);
9032
+ if (_minute === 0 && _second === 0 && _nanoOfSecond === 0) {
9033
+ if (!LocalTime.HOURS[_hour]) {
9034
+ _this._hour = _hour;
9035
+ _this._minute = _minute;
9036
+ _this._second = _second;
9037
+ _this._nano = _nanoOfSecond;
9038
+ LocalTime.HOURS[_hour] = _this;
9039
+ }
9040
+ return LocalTime.HOURS[_hour] || _assertThisInitialized(_this);
9041
+ }
9042
+ _this._hour = _hour;
9043
+ _this._minute = _minute;
9044
+ _this._second = _second;
9045
+ _this._nano = _nanoOfSecond;
9046
+ return _this;
9047
+ }
9026
9048
  _inheritsLoose(LocalTime, _Temporal);
9027
9049
  LocalTime.now = function now(clockOrZone) {
9028
9050
  if (clockOrZone == null) {
@@ -9098,42 +9120,6 @@ var LocalTime = function (_Temporal) {
9098
9120
  requireNonNull(formatter, 'formatter');
9099
9121
  return formatter.parse(text, LocalTime.FROM);
9100
9122
  };
9101
- function LocalTime(hour, minute, second, nanoOfSecond) {
9102
- var _this;
9103
- if (hour === void 0) {
9104
- hour = 0;
9105
- }
9106
- if (minute === void 0) {
9107
- minute = 0;
9108
- }
9109
- if (second === void 0) {
9110
- second = 0;
9111
- }
9112
- if (nanoOfSecond === void 0) {
9113
- nanoOfSecond = 0;
9114
- }
9115
- _this = _Temporal.call(this) || this;
9116
- var _hour = MathUtil.safeToInt(hour);
9117
- var _minute = MathUtil.safeToInt(minute);
9118
- var _second = MathUtil.safeToInt(second);
9119
- var _nanoOfSecond = MathUtil.safeToInt(nanoOfSecond);
9120
- LocalTime._validate(_hour, _minute, _second, _nanoOfSecond);
9121
- if (_minute === 0 && _second === 0 && _nanoOfSecond === 0) {
9122
- if (!LocalTime.HOURS[_hour]) {
9123
- _this._hour = _hour;
9124
- _this._minute = _minute;
9125
- _this._second = _second;
9126
- _this._nano = _nanoOfSecond;
9127
- LocalTime.HOURS[_hour] = _assertThisInitialized(_this);
9128
- }
9129
- return LocalTime.HOURS[_hour] || _assertThisInitialized(_this);
9130
- }
9131
- _this._hour = _hour;
9132
- _this._minute = _minute;
9133
- _this._second = _second;
9134
- _this._nano = _nanoOfSecond;
9135
- return _this;
9136
- }
9137
9123
  LocalTime._validate = function _validate(hour, minute, second, nanoOfSecond) {
9138
9124
  ChronoField.HOUR_OF_DAY.checkValidValue(hour);
9139
9125
  ChronoField.MINUTE_OF_HOUR.checkValidValue(minute);
@@ -9558,6 +9544,14 @@ LocalTime.NANOS_PER_DAY = LocalTime.NANOS_PER_HOUR * LocalTime.HOURS_PER_DAY;
9558
9544
 
9559
9545
  var NANOS_PER_MILLI = 1000000;
9560
9546
  var Instant = function (_Temporal) {
9547
+ function Instant(seconds, nanoOfSecond) {
9548
+ var _this;
9549
+ _this = _Temporal.call(this) || this;
9550
+ Instant._validate(seconds, nanoOfSecond);
9551
+ _this._seconds = MathUtil.safeToInt(seconds);
9552
+ _this._nanos = MathUtil.safeToInt(nanoOfSecond);
9553
+ return _this;
9554
+ }
9561
9555
  _inheritsLoose(Instant, _Temporal);
9562
9556
  Instant.now = function now(clock) {
9563
9557
  if (clock === void 0) {
@@ -9609,14 +9603,6 @@ var Instant = function (_Temporal) {
9609
9603
  throw new DateTimeException('Instant exceeds minimum or maximum instant');
9610
9604
  }
9611
9605
  };
9612
- function Instant(seconds, nanoOfSecond) {
9613
- var _this;
9614
- _this = _Temporal.call(this) || this;
9615
- Instant._validate(seconds, nanoOfSecond);
9616
- _this._seconds = MathUtil.safeToInt(seconds);
9617
- _this._nanos = MathUtil.safeToInt(nanoOfSecond);
9618
- return _this;
9619
- }
9620
9606
  var _proto = Instant.prototype;
9621
9607
  _proto.isSupported = function isSupported(fieldOrUnit) {
9622
9608
  if (fieldOrUnit instanceof ChronoField) {
@@ -9909,7 +9895,6 @@ var Clock = function () {
9909
9895
  return Clock;
9910
9896
  }();
9911
9897
  var SystemClock = function (_Clock) {
9912
- _inheritsLoose(SystemClock, _Clock);
9913
9898
  function SystemClock(zone) {
9914
9899
  var _this;
9915
9900
  requireNonNull(zone, 'zone');
@@ -9917,6 +9902,7 @@ var SystemClock = function (_Clock) {
9917
9902
  _this._zone = zone;
9918
9903
  return _this;
9919
9904
  }
9905
+ _inheritsLoose(SystemClock, _Clock);
9920
9906
  var _proto2 = SystemClock.prototype;
9921
9907
  _proto2.zone = function zone() {
9922
9908
  return this._zone;
@@ -9945,7 +9931,6 @@ var SystemClock = function (_Clock) {
9945
9931
  return SystemClock;
9946
9932
  }(Clock);
9947
9933
  var FixedClock = function (_Clock2) {
9948
- _inheritsLoose(FixedClock, _Clock2);
9949
9934
  function FixedClock(fixedInstant, zoneId) {
9950
9935
  var _this2;
9951
9936
  _this2 = _Clock2.call(this) || this;
@@ -9953,6 +9938,7 @@ var FixedClock = function (_Clock2) {
9953
9938
  _this2._zoneId = zoneId;
9954
9939
  return _this2;
9955
9940
  }
9941
+ _inheritsLoose(FixedClock, _Clock2);
9956
9942
  var _proto3 = FixedClock.prototype;
9957
9943
  _proto3.instant = function instant() {
9958
9944
  return this._instant;
@@ -9981,7 +9967,6 @@ var FixedClock = function (_Clock2) {
9981
9967
  return FixedClock;
9982
9968
  }(Clock);
9983
9969
  var OffsetClock = function (_Clock3) {
9984
- _inheritsLoose(OffsetClock, _Clock3);
9985
9970
  function OffsetClock(baseClock, offset) {
9986
9971
  var _this3;
9987
9972
  _this3 = _Clock3.call(this) || this;
@@ -9989,6 +9974,7 @@ var OffsetClock = function (_Clock3) {
9989
9974
  _this3._offset = offset;
9990
9975
  return _this3;
9991
9976
  }
9977
+ _inheritsLoose(OffsetClock, _Clock3);
9992
9978
  var _proto4 = OffsetClock.prototype;
9993
9979
  _proto4.zone = function zone() {
9994
9980
  return this._baseClock.zone();
@@ -10024,9 +10010,6 @@ var OffsetClock = function (_Clock3) {
10024
10010
  */
10025
10011
 
10026
10012
  var ZoneOffsetTransition = function () {
10027
- ZoneOffsetTransition.of = function of(transition, offsetBefore, offsetAfter) {
10028
- return new ZoneOffsetTransition(transition, offsetBefore, offsetAfter);
10029
- };
10030
10013
  function ZoneOffsetTransition(transition, offsetBefore, offsetAfter) {
10031
10014
  requireNonNull(transition, 'transition');
10032
10015
  requireNonNull(offsetBefore, 'offsetBefore');
@@ -10045,6 +10028,9 @@ var ZoneOffsetTransition = function () {
10045
10028
  this._offsetBefore = offsetBefore;
10046
10029
  this._offsetAfter = offsetAfter;
10047
10030
  }
10031
+ ZoneOffsetTransition.of = function of(transition, offsetBefore, offsetAfter) {
10032
+ return new ZoneOffsetTransition(transition, offsetBefore, offsetAfter);
10033
+ };
10048
10034
  var _proto = ZoneOffsetTransition.prototype;
10049
10035
  _proto.instant = function instant() {
10050
10036
  return this._transition.toInstant(this._offsetBefore);
@@ -10149,10 +10135,10 @@ function _init$1() {
10149
10135
  }
10150
10136
 
10151
10137
  var SystemDefaultZoneRules = function (_ZoneRules) {
10152
- _inheritsLoose(SystemDefaultZoneRules, _ZoneRules);
10153
10138
  function SystemDefaultZoneRules() {
10154
10139
  return _ZoneRules.apply(this, arguments) || this;
10155
10140
  }
10141
+ _inheritsLoose(SystemDefaultZoneRules, _ZoneRules);
10156
10142
  var _proto = SystemDefaultZoneRules.prototype;
10157
10143
  _proto.isFixedOffset = function isFixedOffset() {
10158
10144
  return false;
@@ -10219,13 +10205,13 @@ var SystemDefaultZoneRules = function (_ZoneRules) {
10219
10205
  }(ZoneRules);
10220
10206
 
10221
10207
  var SystemDefaultZoneId = function (_ZoneId) {
10222
- _inheritsLoose(SystemDefaultZoneId, _ZoneId);
10223
10208
  function SystemDefaultZoneId() {
10224
10209
  var _this;
10225
10210
  _this = _ZoneId.call(this) || this;
10226
10211
  _this._rules = new SystemDefaultZoneRules();
10227
10212
  return _this;
10228
10213
  }
10214
+ _inheritsLoose(SystemDefaultZoneId, _ZoneId);
10229
10215
  var _proto = SystemDefaultZoneId.prototype;
10230
10216
  _proto.rules = function rules() {
10231
10217
  return this._rules;