@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)
@@ -70,23 +70,17 @@ function messageForDateTimeParseException(message, text, index, cause) {
70
70
  };
71
71
  }
72
72
 
73
- function _inheritsLoose(subClass, superClass) {
74
- subClass.prototype = Object.create(superClass.prototype);
75
- subClass.prototype.constructor = subClass;
76
- _setPrototypeOf(subClass, superClass);
73
+ function _assertThisInitialized(e) {
74
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
75
+ return e;
77
76
  }
78
- function _setPrototypeOf(o, p) {
79
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
80
- o.__proto__ = p;
81
- return o;
82
- };
83
- return _setPrototypeOf(o, p);
77
+ function _inheritsLoose(t, o) {
78
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
84
79
  }
85
- function _assertThisInitialized(self) {
86
- if (self === void 0) {
87
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
88
- }
89
- return self;
80
+ function _setPrototypeOf(t, e) {
81
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
82
+ return t.__proto__ = e, t;
83
+ }, _setPrototypeOf(t, e);
90
84
  }
91
85
 
92
86
  /**
@@ -205,18 +199,10 @@ var MathUtil = function () {
205
199
  }
206
200
  return r;
207
201
  };
208
- MathUtil.parseInt = function (_parseInt) {
209
- function parseInt(_x) {
210
- return _parseInt.apply(this, arguments);
211
- }
212
- parseInt.toString = function () {
213
- return _parseInt.toString();
214
- };
215
- return parseInt;
216
- }(function (value) {
202
+ MathUtil.parseInt = function (value) {
217
203
  var r = parseInt(value);
218
204
  return MathUtil.safeToInt(r);
219
- });
205
+ };
220
206
  MathUtil.safeToInt = function safeToInt(value) {
221
207
  MathUtil.verifyInt(value);
222
208
  return MathUtil.safeZero(value);
@@ -363,7 +349,6 @@ var TemporalUnit = function () {
363
349
  }();
364
350
 
365
351
  var Duration = function (_TemporalAmount) {
366
- _inheritsLoose(Duration, _TemporalAmount);
367
352
  function Duration(seconds, nanos) {
368
353
  var _this;
369
354
  _this = _TemporalAmount.call(this) || this;
@@ -371,6 +356,7 @@ var Duration = function (_TemporalAmount) {
371
356
  _this._nanos = MathUtil.safeToInt(nanos);
372
357
  return _this;
373
358
  }
359
+ _inheritsLoose(Duration, _TemporalAmount);
374
360
  Duration.ofDays = function ofDays(days) {
375
361
  return Duration._create(MathUtil.safeMultiply(days, LocalTime.SECONDS_PER_DAY), 0);
376
362
  };
@@ -819,7 +805,6 @@ function _init$m() {
819
805
  }
820
806
 
821
807
  var ChronoUnit = function (_TemporalUnit) {
822
- _inheritsLoose(ChronoUnit, _TemporalUnit);
823
808
  function ChronoUnit(name, estimatedDuration) {
824
809
  var _this;
825
810
  _this = _TemporalUnit.call(this) || this;
@@ -827,6 +812,7 @@ var ChronoUnit = function (_TemporalUnit) {
827
812
  _this._duration = estimatedDuration;
828
813
  return _this;
829
814
  }
815
+ _inheritsLoose(ChronoUnit, _TemporalUnit);
830
816
  var _proto = ChronoUnit.prototype;
831
817
  _proto.duration = function duration() {
832
818
  return this._duration;
@@ -1028,6 +1014,15 @@ var ValueRange = function () {
1028
1014
  }();
1029
1015
 
1030
1016
  var ChronoField = function (_TemporalField) {
1017
+ function ChronoField(name, baseUnit, rangeUnit, range) {
1018
+ var _this;
1019
+ _this = _TemporalField.call(this) || this;
1020
+ _this._name = name;
1021
+ _this._baseUnit = baseUnit;
1022
+ _this._rangeUnit = rangeUnit;
1023
+ _this._range = range;
1024
+ return _this;
1025
+ }
1031
1026
  _inheritsLoose(ChronoField, _TemporalField);
1032
1027
  ChronoField.byName = function byName(fieldName) {
1033
1028
  for (var prop in ChronoField) {
@@ -1038,15 +1033,6 @@ var ChronoField = function (_TemporalField) {
1038
1033
  }
1039
1034
  }
1040
1035
  };
1041
- function ChronoField(name, baseUnit, rangeUnit, range) {
1042
- var _this;
1043
- _this = _TemporalField.call(this) || this;
1044
- _this._name = name;
1045
- _this._baseUnit = baseUnit;
1046
- _this._rangeUnit = rangeUnit;
1047
- _this._range = range;
1048
- return _this;
1049
- }
1050
1036
  var _proto = ChronoField.prototype;
1051
1037
  _proto.name = function name() {
1052
1038
  return this._name;
@@ -1197,10 +1183,10 @@ var TemporalAccessor = function () {
1197
1183
  }();
1198
1184
 
1199
1185
  var TemporalQuery = function (_Enum) {
1200
- _inheritsLoose(TemporalQuery, _Enum);
1201
1186
  function TemporalQuery() {
1202
1187
  return _Enum.apply(this, arguments) || this;
1203
1188
  }
1189
+ _inheritsLoose(TemporalQuery, _Enum);
1204
1190
  var _proto = TemporalQuery.prototype;
1205
1191
  _proto.queryFrom = function queryFrom(temporal) {
1206
1192
  abstractMethodFail('queryFrom');
@@ -1209,10 +1195,10 @@ var TemporalQuery = function (_Enum) {
1209
1195
  }(Enum);
1210
1196
  function createTemporalQuery(name, queryFromFunction) {
1211
1197
  var ExtendedTemporalQuery = function (_TemporalQuery) {
1212
- _inheritsLoose(ExtendedTemporalQuery, _TemporalQuery);
1213
1198
  function ExtendedTemporalQuery() {
1214
1199
  return _TemporalQuery.apply(this, arguments) || this;
1215
1200
  }
1201
+ _inheritsLoose(ExtendedTemporalQuery, _TemporalQuery);
1216
1202
  return ExtendedTemporalQuery;
1217
1203
  }(TemporalQuery);
1218
1204
  ExtendedTemporalQuery.prototype.queryFrom = queryFromFunction;
@@ -1220,7 +1206,6 @@ function createTemporalQuery(name, queryFromFunction) {
1220
1206
  }
1221
1207
 
1222
1208
  var DayOfWeek = function (_TemporalAccessor) {
1223
- _inheritsLoose(DayOfWeek, _TemporalAccessor);
1224
1209
  function DayOfWeek(ordinal, name) {
1225
1210
  var _this;
1226
1211
  _this = _TemporalAccessor.call(this) || this;
@@ -1228,6 +1213,7 @@ var DayOfWeek = function (_TemporalAccessor) {
1228
1213
  _this._name = name;
1229
1214
  return _this;
1230
1215
  }
1216
+ _inheritsLoose(DayOfWeek, _TemporalAccessor);
1231
1217
  var _proto = DayOfWeek.prototype;
1232
1218
  _proto.ordinal = function ordinal() {
1233
1219
  return this._ordinal;
@@ -1354,7 +1340,6 @@ function _init$j() {
1354
1340
  }
1355
1341
 
1356
1342
  var Month = function (_TemporalAccessor) {
1357
- _inheritsLoose(Month, _TemporalAccessor);
1358
1343
  function Month(value, name) {
1359
1344
  var _this;
1360
1345
  _this = _TemporalAccessor.call(this) || this;
@@ -1362,6 +1347,7 @@ var Month = function (_TemporalAccessor) {
1362
1347
  _this._name = name;
1363
1348
  return _this;
1364
1349
  }
1350
+ _inheritsLoose(Month, _TemporalAccessor);
1365
1351
  var _proto = Month.prototype;
1366
1352
  _proto.value = function value() {
1367
1353
  return this._value;
@@ -1599,7 +1585,6 @@ function _init$i() {
1599
1585
 
1600
1586
  var PATTERN = /([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/;
1601
1587
  var Period = function (_TemporalAmount) {
1602
- _inheritsLoose(Period, _TemporalAmount);
1603
1588
  function Period(years, months, days) {
1604
1589
  var _this;
1605
1590
  _this = _TemporalAmount.call(this) || this;
@@ -1611,7 +1596,7 @@ var Period = function (_TemporalAmount) {
1611
1596
  _this._years = _years;
1612
1597
  _this._months = _months;
1613
1598
  _this._days = _days;
1614
- Period.ZERO = _assertThisInitialized(_this);
1599
+ Period.ZERO = _this;
1615
1600
  }
1616
1601
  return Period.ZERO || _assertThisInitialized(_this);
1617
1602
  }
@@ -1620,6 +1605,7 @@ var Period = function (_TemporalAmount) {
1620
1605
  _this._days = _days;
1621
1606
  return _this;
1622
1607
  }
1608
+ _inheritsLoose(Period, _TemporalAmount);
1623
1609
  Period.ofYears = function ofYears(years) {
1624
1610
  return Period.create(years, 0, 0);
1625
1611
  };
@@ -1963,10 +1949,10 @@ function _init$h() {
1963
1949
  }();
1964
1950
 
1965
1951
  var ResolverStyle = function (_Enum) {
1966
- _inheritsLoose(ResolverStyle, _Enum);
1967
1952
  function ResolverStyle() {
1968
1953
  return _Enum.apply(this, arguments) || this;
1969
1954
  }
1955
+ _inheritsLoose(ResolverStyle, _Enum);
1970
1956
  return ResolverStyle;
1971
1957
  }(Enum);
1972
1958
  ResolverStyle.STRICT = new ResolverStyle('STRICT');
@@ -1974,10 +1960,10 @@ ResolverStyle.SMART = new ResolverStyle('SMART');
1974
1960
  ResolverStyle.LENIENT = new ResolverStyle('LENIENT');
1975
1961
 
1976
1962
  var Temporal = function (_TemporalAccessor) {
1977
- _inheritsLoose(Temporal, _TemporalAccessor);
1978
1963
  function Temporal() {
1979
1964
  return _TemporalAccessor.apply(this, arguments) || this;
1980
1965
  }
1966
+ _inheritsLoose(Temporal, _TemporalAccessor);
1981
1967
  var _proto = Temporal.prototype;
1982
1968
  _proto.isSupported = function isSupported(fieldOrUnit) {
1983
1969
  abstractMethodFail('isSupported');
@@ -2045,10 +2031,10 @@ if (typeof Symbol !== 'undefined' && Symbol.toPrimitive) {
2045
2031
  }
2046
2032
 
2047
2033
  var ChronoLocalDate = function (_Temporal) {
2048
- _inheritsLoose(ChronoLocalDate, _Temporal);
2049
2034
  function ChronoLocalDate() {
2050
2035
  return _Temporal.apply(this, arguments) || this;
2051
2036
  }
2037
+ _inheritsLoose(ChronoLocalDate, _Temporal);
2052
2038
  var _proto = ChronoLocalDate.prototype;
2053
2039
  _proto.isSupported = function isSupported(fieldOrUnit) {
2054
2040
  if (fieldOrUnit instanceof ChronoField) {
@@ -2230,13 +2216,13 @@ var ZoneRules = function () {
2230
2216
  return ZoneRules;
2231
2217
  }();
2232
2218
  var Fixed = function (_ZoneRules) {
2233
- _inheritsLoose(Fixed, _ZoneRules);
2234
2219
  function Fixed(offset) {
2235
2220
  var _this;
2236
2221
  _this = _ZoneRules.call(this) || this;
2237
2222
  _this._offset = offset;
2238
2223
  return _this;
2239
2224
  }
2225
+ _inheritsLoose(Fixed, _ZoneRules);
2240
2226
  var _proto2 = Fixed.prototype;
2241
2227
  _proto2.isFixedOffset = function isFixedOffset() {
2242
2228
  return true;
@@ -2298,16 +2284,16 @@ var Fixed = function (_ZoneRules) {
2298
2284
  var SECONDS_CACHE = {};
2299
2285
  var ID_CACHE = {};
2300
2286
  var ZoneOffset = function (_ZoneId) {
2301
- _inheritsLoose(ZoneOffset, _ZoneId);
2302
2287
  function ZoneOffset(totalSeconds) {
2303
2288
  var _this;
2304
2289
  _this = _ZoneId.call(this) || this;
2305
2290
  ZoneOffset._validateTotalSeconds(totalSeconds);
2306
2291
  _this._totalSeconds = MathUtil.safeToInt(totalSeconds);
2307
- _this._rules = ZoneRules.of(_assertThisInitialized(_this));
2292
+ _this._rules = ZoneRules.of(_this);
2308
2293
  _this._id = ZoneOffset._buildId(totalSeconds);
2309
2294
  return _this;
2310
2295
  }
2296
+ _inheritsLoose(ZoneOffset, _ZoneId);
2311
2297
  var _proto = ZoneOffset.prototype;
2312
2298
  _proto.totalSeconds = function totalSeconds() {
2313
2299
  return this._totalSeconds;
@@ -2503,12 +2489,6 @@ function _init$g() {
2503
2489
  }
2504
2490
 
2505
2491
  var DateTimeBuilder = function (_TemporalAccessor) {
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
- };
2512
2492
  function DateTimeBuilder() {
2513
2493
  var _this;
2514
2494
  _this = _TemporalAccessor.call(this) || this;
@@ -2521,6 +2501,12 @@ var DateTimeBuilder = function (_TemporalAccessor) {
2521
2501
  _this.excessDays = null;
2522
2502
  return _this;
2523
2503
  }
2504
+ _inheritsLoose(DateTimeBuilder, _TemporalAccessor);
2505
+ DateTimeBuilder.create = function create(field, value) {
2506
+ var dtb = new DateTimeBuilder();
2507
+ dtb._addFieldValue(field, value);
2508
+ return dtb;
2509
+ };
2524
2510
  var _proto = DateTimeBuilder.prototype;
2525
2511
  _proto.getFieldValue0 = function getFieldValue0(field) {
2526
2512
  return this.fieldValues.get(field);
@@ -2958,7 +2944,6 @@ var DateTimeParseContext = function () {
2958
2944
  return DateTimeParseContext;
2959
2945
  }();
2960
2946
  var Parsed = function (_Temporal) {
2961
- _inheritsLoose(Parsed, _Temporal);
2962
2947
  function Parsed(dateTimeParseContext) {
2963
2948
  var _this;
2964
2949
  _this = _Temporal.call(this) || this;
@@ -2969,6 +2954,7 @@ var Parsed = function (_Temporal) {
2969
2954
  _this.dateTimeParseContext = dateTimeParseContext;
2970
2955
  return _this;
2971
2956
  }
2957
+ _inheritsLoose(Parsed, _Temporal);
2972
2958
  var _proto2 = Parsed.prototype;
2973
2959
  _proto2.copy = function copy() {
2974
2960
  var cloned = new Parsed();
@@ -3082,10 +3068,10 @@ var DateTimePrintContext = function () {
3082
3068
  var IsoFields = {};
3083
3069
  var QUARTER_DAYS = [0, 90, 181, 273, 0, 91, 182, 274];
3084
3070
  var Field = function (_TemporalField) {
3085
- _inheritsLoose(Field, _TemporalField);
3086
3071
  function Field() {
3087
3072
  return _TemporalField.apply(this, arguments) || this;
3088
3073
  }
3074
+ _inheritsLoose(Field, _TemporalField);
3089
3075
  var _proto = Field.prototype;
3090
3076
  _proto.isDateBased = function isDateBased() {
3091
3077
  return true;
@@ -3157,10 +3143,10 @@ var Field = function (_TemporalField) {
3157
3143
  return Field;
3158
3144
  }(TemporalField);
3159
3145
  var DAY_OF_QUARTER_FIELD = function (_Field) {
3160
- _inheritsLoose(DAY_OF_QUARTER_FIELD, _Field);
3161
3146
  function DAY_OF_QUARTER_FIELD() {
3162
3147
  return _Field.apply(this, arguments) || this;
3163
3148
  }
3149
+ _inheritsLoose(DAY_OF_QUARTER_FIELD, _Field);
3164
3150
  var _proto2 = DAY_OF_QUARTER_FIELD.prototype;
3165
3151
  _proto2.toString = function toString() {
3166
3152
  return 'DayOfQuarter';
@@ -3243,10 +3229,10 @@ var DAY_OF_QUARTER_FIELD = function (_Field) {
3243
3229
  return DAY_OF_QUARTER_FIELD;
3244
3230
  }(Field);
3245
3231
  var QUARTER_OF_YEAR_FIELD = function (_Field2) {
3246
- _inheritsLoose(QUARTER_OF_YEAR_FIELD, _Field2);
3247
3232
  function QUARTER_OF_YEAR_FIELD() {
3248
3233
  return _Field2.apply(this, arguments) || this;
3249
3234
  }
3235
+ _inheritsLoose(QUARTER_OF_YEAR_FIELD, _Field2);
3250
3236
  var _proto3 = QUARTER_OF_YEAR_FIELD.prototype;
3251
3237
  _proto3.toString = function toString() {
3252
3238
  return 'QuarterOfYear';
@@ -3281,10 +3267,10 @@ var QUARTER_OF_YEAR_FIELD = function (_Field2) {
3281
3267
  return QUARTER_OF_YEAR_FIELD;
3282
3268
  }(Field);
3283
3269
  var WEEK_OF_WEEK_BASED_YEAR_FIELD = function (_Field3) {
3284
- _inheritsLoose(WEEK_OF_WEEK_BASED_YEAR_FIELD, _Field3);
3285
3270
  function WEEK_OF_WEEK_BASED_YEAR_FIELD() {
3286
3271
  return _Field3.apply(this, arguments) || this;
3287
3272
  }
3273
+ _inheritsLoose(WEEK_OF_WEEK_BASED_YEAR_FIELD, _Field3);
3288
3274
  var _proto4 = WEEK_OF_WEEK_BASED_YEAR_FIELD.prototype;
3289
3275
  _proto4.toString = function toString() {
3290
3276
  return 'WeekOfWeekBasedYear';
@@ -3359,10 +3345,10 @@ var WEEK_OF_WEEK_BASED_YEAR_FIELD = function (_Field3) {
3359
3345
  return WEEK_OF_WEEK_BASED_YEAR_FIELD;
3360
3346
  }(Field);
3361
3347
  var WEEK_BASED_YEAR_FIELD = function (_Field4) {
3362
- _inheritsLoose(WEEK_BASED_YEAR_FIELD, _Field4);
3363
3348
  function WEEK_BASED_YEAR_FIELD() {
3364
3349
  return _Field4.apply(this, arguments) || this;
3365
3350
  }
3351
+ _inheritsLoose(WEEK_BASED_YEAR_FIELD, _Field4);
3366
3352
  var _proto5 = WEEK_BASED_YEAR_FIELD.prototype;
3367
3353
  _proto5.toString = function toString() {
3368
3354
  return 'WeekBasedYear';
@@ -3407,7 +3393,6 @@ var WEEK_BASED_YEAR_FIELD = function (_Field4) {
3407
3393
  return WEEK_BASED_YEAR_FIELD;
3408
3394
  }(Field);
3409
3395
  var Unit = function (_TemporalUnit) {
3410
- _inheritsLoose(Unit, _TemporalUnit);
3411
3396
  function Unit(name, estimatedDuration) {
3412
3397
  var _this;
3413
3398
  _this = _TemporalUnit.call(this) || this;
@@ -3415,6 +3400,7 @@ var Unit = function (_TemporalUnit) {
3415
3400
  _this._duration = estimatedDuration;
3416
3401
  return _this;
3417
3402
  }
3403
+ _inheritsLoose(Unit, _TemporalUnit);
3418
3404
  var _proto6 = Unit.prototype;
3419
3405
  _proto6.duration = function duration() {
3420
3406
  return this._duration;
@@ -3578,10 +3564,10 @@ var DecimalStyle = function () {
3578
3564
  DecimalStyle.STANDARD = new DecimalStyle('0', '+', '-', '.');
3579
3565
 
3580
3566
  var SignStyle = function (_Enum) {
3581
- _inheritsLoose(SignStyle, _Enum);
3582
3567
  function SignStyle() {
3583
3568
  return _Enum.apply(this, arguments) || this;
3584
3569
  }
3570
+ _inheritsLoose(SignStyle, _Enum);
3585
3571
  var _proto = SignStyle.prototype;
3586
3572
  _proto.parse = function parse(positive, strict, fixedWidth) {
3587
3573
  switch (this) {
@@ -3603,10 +3589,10 @@ SignStyle.EXCEEDS_PAD = new SignStyle('EXCEEDS_PAD');
3603
3589
  SignStyle.NOT_NEGATIVE = new SignStyle('NOT_NEGATIVE');
3604
3590
 
3605
3591
  var TextStyle = function (_Enum) {
3606
- _inheritsLoose(TextStyle, _Enum);
3607
3592
  function TextStyle() {
3608
3593
  return _Enum.apply(this, arguments) || this;
3609
3594
  }
3595
+ _inheritsLoose(TextStyle, _Enum);
3610
3596
  var _proto = TextStyle.prototype;
3611
3597
  _proto.isStandalone = function isStandalone() {
3612
3598
  switch (this) {
@@ -4067,7 +4053,6 @@ var NumberPrinterParser = function () {
4067
4053
  return NumberPrinterParser;
4068
4054
  }();
4069
4055
  var ReducedPrinterParser = function (_NumberPrinterParser) {
4070
- _inheritsLoose(ReducedPrinterParser, _NumberPrinterParser);
4071
4056
  function ReducedPrinterParser(field, width, maxWidth, baseValue, baseDate) {
4072
4057
  var _this;
4073
4058
  _this = _NumberPrinterParser.call(this, field, width, maxWidth, SignStyle.NOT_NEGATIVE) || this;
@@ -4092,6 +4077,7 @@ var ReducedPrinterParser = function (_NumberPrinterParser) {
4092
4077
  _this._baseDate = baseDate;
4093
4078
  return _this;
4094
4079
  }
4080
+ _inheritsLoose(ReducedPrinterParser, _NumberPrinterParser);
4095
4081
  var _proto2 = ReducedPrinterParser.prototype;
4096
4082
  _proto2._getValue = function _getValue(context, value) {
4097
4083
  var absValue = Math.abs(value);
@@ -4328,10 +4314,10 @@ var PadPrinterParserDecorator = function () {
4328
4314
  }();
4329
4315
 
4330
4316
  var SettingsParser = function (_Enum) {
4331
- _inheritsLoose(SettingsParser, _Enum);
4332
4317
  function SettingsParser() {
4333
4318
  return _Enum.apply(this, arguments) || this;
4334
4319
  }
4320
+ _inheritsLoose(SettingsParser, _Enum);
4335
4321
  var _proto = SettingsParser.prototype;
4336
4322
  _proto.print = function print() {
4337
4323
  return true;
@@ -4420,11 +4406,6 @@ var ZoneRulesProvider = function () {
4420
4406
  }();
4421
4407
 
4422
4408
  var ZoneRegion = function (_ZoneId) {
4423
- _inheritsLoose(ZoneRegion, _ZoneId);
4424
- ZoneRegion.ofId = function ofId(zoneId) {
4425
- var rules = ZoneRulesProvider.getRules(zoneId);
4426
- return new ZoneRegion(zoneId, rules);
4427
- };
4428
4409
  function ZoneRegion(id, rules) {
4429
4410
  var _this;
4430
4411
  _this = _ZoneId.call(this) || this;
@@ -4432,6 +4413,11 @@ var ZoneRegion = function (_ZoneId) {
4432
4413
  _this._rules = rules;
4433
4414
  return _this;
4434
4415
  }
4416
+ _inheritsLoose(ZoneRegion, _ZoneId);
4417
+ ZoneRegion.ofId = function ofId(zoneId) {
4418
+ var rules = ZoneRulesProvider.getRules(zoneId);
4419
+ return new ZoneRegion(zoneId, rules);
4420
+ };
4435
4421
  var _proto = ZoneRegion.prototype;
4436
4422
  _proto.id = function id() {
4437
4423
  return this._id;
@@ -4545,6 +4531,10 @@ var ZoneIdPrinterParser = function () {
4545
4531
  return ZoneIdPrinterParser;
4546
4532
  }();
4547
4533
  var ZoneIdTree = function () {
4534
+ function ZoneIdTree(size, treeMap) {
4535
+ this.size = size;
4536
+ this.treeMap = treeMap;
4537
+ }
4548
4538
  ZoneIdTree.createTreeMap = function createTreeMap(availableZoneIds) {
4549
4539
  var sortedZoneIds = availableZoneIds.sort(function (a, b) {
4550
4540
  return a.length - b.length;
@@ -4555,10 +4545,6 @@ var ZoneIdTree = function () {
4555
4545
  }
4556
4546
  return new ZoneIdTree(sortedZoneIds.length, treeMap);
4557
4547
  };
4558
- function ZoneIdTree(size, treeMap) {
4559
- this.size = size;
4560
- this.treeMap = treeMap;
4561
- }
4562
4548
  return ZoneIdTree;
4563
4549
  }();
4564
4550
  var ZoneIdTreeMap = function () {
@@ -5359,15 +5345,6 @@ function _init$e() {
5359
5345
  */
5360
5346
 
5361
5347
  var DateTimeFormatter = function () {
5362
- DateTimeFormatter.parsedExcessDays = function parsedExcessDays() {
5363
- return DateTimeFormatter.PARSED_EXCESS_DAYS;
5364
- };
5365
- DateTimeFormatter.parsedLeapSecond = function parsedLeapSecond() {
5366
- return DateTimeFormatter.PARSED_LEAP_SECOND;
5367
- };
5368
- DateTimeFormatter.ofPattern = function ofPattern(pattern) {
5369
- return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter();
5370
- };
5371
5348
  function DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, chrono, zone) {
5372
5349
  if (chrono === void 0) {
5373
5350
  chrono = IsoChronology.INSTANCE;
@@ -5383,6 +5360,15 @@ var DateTimeFormatter = function () {
5383
5360
  this._chrono = chrono;
5384
5361
  this._zone = zone;
5385
5362
  }
5363
+ DateTimeFormatter.parsedExcessDays = function parsedExcessDays() {
5364
+ return DateTimeFormatter.PARSED_EXCESS_DAYS;
5365
+ };
5366
+ DateTimeFormatter.parsedLeapSecond = function parsedLeapSecond() {
5367
+ return DateTimeFormatter.PARSED_LEAP_SECOND;
5368
+ };
5369
+ DateTimeFormatter.ofPattern = function ofPattern(pattern) {
5370
+ return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter();
5371
+ };
5386
5372
  var _proto = DateTimeFormatter.prototype;
5387
5373
  _proto.locale = function locale() {
5388
5374
  return this._locale;
@@ -5537,6 +5523,13 @@ function _init$d() {
5537
5523
  }
5538
5524
 
5539
5525
  var MonthDay = function (_TemporalAccessor) {
5526
+ function MonthDay(month, dayOfMonth) {
5527
+ var _this;
5528
+ _this = _TemporalAccessor.call(this) || this;
5529
+ _this._month = MathUtil.safeToInt(month);
5530
+ _this._day = MathUtil.safeToInt(dayOfMonth);
5531
+ return _this;
5532
+ }
5540
5533
  _inheritsLoose(MonthDay, _TemporalAccessor);
5541
5534
  MonthDay.now = function now(zoneIdOrClock) {
5542
5535
  if (arguments.length === 0) {
@@ -5607,13 +5600,6 @@ var MonthDay = function (_TemporalAccessor) {
5607
5600
  requireInstance(formatter, DateTimeFormatter, 'formatter');
5608
5601
  return formatter.parse(text, MonthDay.FROM);
5609
5602
  };
5610
- function MonthDay(month, dayOfMonth) {
5611
- var _this;
5612
- _this = _TemporalAccessor.call(this) || this;
5613
- _this._month = MathUtil.safeToInt(month);
5614
- _this._day = MathUtil.safeToInt(dayOfMonth);
5615
- return _this;
5616
- }
5617
5603
  var _proto = MonthDay.prototype;
5618
5604
  _proto.monthValue = function monthValue() {
5619
5605
  return this._month;
@@ -5741,6 +5727,13 @@ function _init$c() {
5741
5727
  }
5742
5728
 
5743
5729
  var YearMonth = function (_Temporal) {
5730
+ function YearMonth(year, month) {
5731
+ var _this;
5732
+ _this = _Temporal.call(this) || this;
5733
+ _this._year = MathUtil.safeToInt(year);
5734
+ _this._month = MathUtil.safeToInt(month);
5735
+ return _this;
5736
+ }
5744
5737
  _inheritsLoose(YearMonth, _Temporal);
5745
5738
  YearMonth.now = function now(zoneIdOrClock) {
5746
5739
  if (arguments.length === 0) {
@@ -5805,13 +5798,6 @@ var YearMonth = function (_Temporal) {
5805
5798
  requireNonNull(formatter, 'formatter');
5806
5799
  return formatter.parse(text, YearMonth.FROM);
5807
5800
  };
5808
- function YearMonth(year, month) {
5809
- var _this;
5810
- _this = _Temporal.call(this) || this;
5811
- _this._year = MathUtil.safeToInt(year);
5812
- _this._month = MathUtil.safeToInt(month);
5813
- return _this;
5814
- }
5815
5801
  var _proto = YearMonth.prototype;
5816
5802
  _proto.isSupported = function isSupported(fieldOrUnit) {
5817
5803
  if (arguments.length === 1 && fieldOrUnit instanceof TemporalField) {
@@ -6065,13 +6051,13 @@ function _init$b() {
6065
6051
  }
6066
6052
 
6067
6053
  var Year = function (_Temporal) {
6068
- _inheritsLoose(Year, _Temporal);
6069
6054
  function Year(value) {
6070
6055
  var _this;
6071
6056
  _this = _Temporal.call(this) || this;
6072
6057
  _this._year = MathUtil.safeToInt(value);
6073
6058
  return _this;
6074
6059
  }
6060
+ _inheritsLoose(Year, _Temporal);
6075
6061
  var _proto = Year.prototype;
6076
6062
  _proto.value = function value() {
6077
6063
  return this._year;
@@ -6412,13 +6398,13 @@ var TemporalAdjusters = function () {
6412
6398
  return TemporalAdjusters;
6413
6399
  }();
6414
6400
  var Impl = function (_TemporalAdjuster) {
6415
- _inheritsLoose(Impl, _TemporalAdjuster);
6416
6401
  function Impl(ordinal) {
6417
6402
  var _this;
6418
6403
  _this = _TemporalAdjuster.call(this) || this;
6419
6404
  _this._ordinal = ordinal;
6420
6405
  return _this;
6421
6406
  }
6407
+ _inheritsLoose(Impl, _TemporalAdjuster);
6422
6408
  var _proto = Impl.prototype;
6423
6409
  _proto.adjustInto = function adjustInto(temporal) {
6424
6410
  switch (this._ordinal) {
@@ -6446,7 +6432,6 @@ Impl.FIRST_DAY_OF_YEAR = new Impl(3);
6446
6432
  Impl.LAST_DAY_OF_YEAR = new Impl(4);
6447
6433
  Impl.FIRST_DAY_OF_NEXT_YEAR = new Impl(5);
6448
6434
  var DayOfWeekInMonth = function (_TemporalAdjuster2) {
6449
- _inheritsLoose(DayOfWeekInMonth, _TemporalAdjuster2);
6450
6435
  function DayOfWeekInMonth(ordinal, dow) {
6451
6436
  var _this2;
6452
6437
  _this2 = _TemporalAdjuster2.call(this) || this;
@@ -6454,6 +6439,7 @@ var DayOfWeekInMonth = function (_TemporalAdjuster2) {
6454
6439
  _this2._dowValue = dow.value();
6455
6440
  return _this2;
6456
6441
  }
6442
+ _inheritsLoose(DayOfWeekInMonth, _TemporalAdjuster2);
6457
6443
  var _proto2 = DayOfWeekInMonth.prototype;
6458
6444
  _proto2.adjustInto = function adjustInto(temporal) {
6459
6445
  if (this._ordinal >= 0) {
@@ -6474,7 +6460,6 @@ var DayOfWeekInMonth = function (_TemporalAdjuster2) {
6474
6460
  return DayOfWeekInMonth;
6475
6461
  }(TemporalAdjuster);
6476
6462
  var RelativeDayOfWeek = function (_TemporalAdjuster3) {
6477
- _inheritsLoose(RelativeDayOfWeek, _TemporalAdjuster3);
6478
6463
  function RelativeDayOfWeek(relative, dayOfWeek) {
6479
6464
  var _this3;
6480
6465
  _this3 = _TemporalAdjuster3.call(this) || this;
@@ -6483,6 +6468,7 @@ var RelativeDayOfWeek = function (_TemporalAdjuster3) {
6483
6468
  _this3._dowValue = dayOfWeek.value();
6484
6469
  return _this3;
6485
6470
  }
6471
+ _inheritsLoose(RelativeDayOfWeek, _TemporalAdjuster3);
6486
6472
  var _proto3 = RelativeDayOfWeek.prototype;
6487
6473
  _proto3.adjustInto = function adjustInto(temporal) {
6488
6474
  var calDow = temporal.get(ChronoField.DAY_OF_WEEK);
@@ -6501,10 +6487,10 @@ var RelativeDayOfWeek = function (_TemporalAdjuster3) {
6501
6487
  }(TemporalAdjuster);
6502
6488
 
6503
6489
  var IsoChronology = function (_Enum) {
6504
- _inheritsLoose(IsoChronology, _Enum);
6505
6490
  function IsoChronology() {
6506
6491
  return _Enum.apply(this, arguments) || this;
6507
6492
  }
6493
+ _inheritsLoose(IsoChronology, _Enum);
6508
6494
  IsoChronology.isLeapYear = function isLeapYear(prolepticYear) {
6509
6495
  return (prolepticYear & 3) === 0 && (prolepticYear % 100 !== 0 || prolepticYear % 400 === 0);
6510
6496
  };
@@ -6634,6 +6620,17 @@ function _init$9() {
6634
6620
  }
6635
6621
 
6636
6622
  var OffsetTime = function (_Temporal) {
6623
+ function OffsetTime(time, offset) {
6624
+ var _this;
6625
+ _this = _Temporal.call(this) || this;
6626
+ requireNonNull(time, 'time');
6627
+ requireInstance(time, LocalTime, 'time');
6628
+ requireNonNull(offset, 'offset');
6629
+ requireInstance(offset, ZoneOffset, 'offset');
6630
+ _this._time = time;
6631
+ _this._offset = offset;
6632
+ return _this;
6633
+ }
6637
6634
  _inheritsLoose(OffsetTime, _Temporal);
6638
6635
  OffsetTime.from = function from(temporal) {
6639
6636
  requireNonNull(temporal, 'temporal');
@@ -6700,17 +6697,6 @@ var OffsetTime = function (_Temporal) {
6700
6697
  requireNonNull(formatter, 'formatter');
6701
6698
  return formatter.parse(text, OffsetTime.FROM);
6702
6699
  };
6703
- function OffsetTime(time, offset) {
6704
- var _this;
6705
- _this = _Temporal.call(this) || this;
6706
- requireNonNull(time, 'time');
6707
- requireInstance(time, LocalTime, 'time');
6708
- requireNonNull(offset, 'offset');
6709
- requireInstance(offset, ZoneOffset, 'offset');
6710
- _this._time = time;
6711
- _this._offset = offset;
6712
- return _this;
6713
- }
6714
6700
  var _proto = OffsetTime.prototype;
6715
6701
  _proto.adjustInto = function adjustInto(temporal) {
6716
6702
  return temporal.with(ChronoField.NANO_OF_DAY, this._time.toNanoOfDay()).with(ChronoField.OFFSET_SECONDS, this.offset().totalSeconds());
@@ -6961,10 +6947,10 @@ function _init$8() {
6961
6947
  }
6962
6948
 
6963
6949
  var ChronoZonedDateTime = function (_Temporal) {
6964
- _inheritsLoose(ChronoZonedDateTime, _Temporal);
6965
6950
  function ChronoZonedDateTime() {
6966
6951
  return _Temporal.apply(this, arguments) || this;
6967
6952
  }
6953
+ _inheritsLoose(ChronoZonedDateTime, _Temporal);
6968
6954
  var _proto = ChronoZonedDateTime.prototype;
6969
6955
  _proto.query = function query(_query) {
6970
6956
  if (_query === TemporalQueries.zoneId() || _query === TemporalQueries.zone()) {
@@ -7047,6 +7033,17 @@ function strcmp(a, b) {
7047
7033
  }
7048
7034
 
7049
7035
  var ZonedDateTime = function (_ChronoZonedDateTime) {
7036
+ function ZonedDateTime(dateTime, offset, zone) {
7037
+ var _this;
7038
+ requireNonNull(dateTime, 'dateTime');
7039
+ requireNonNull(offset, 'offset');
7040
+ requireNonNull(zone, 'zone');
7041
+ _this = _ChronoZonedDateTime.call(this) || this;
7042
+ _this._dateTime = dateTime;
7043
+ _this._offset = offset;
7044
+ _this._zone = zone;
7045
+ return _this;
7046
+ }
7050
7047
  _inheritsLoose(ZonedDateTime, _ChronoZonedDateTime);
7051
7048
  ZonedDateTime.now = function now(clockOrZone) {
7052
7049
  var clock;
@@ -7182,17 +7179,6 @@ var ZonedDateTime = function (_ChronoZonedDateTime) {
7182
7179
  requireNonNull(formatter, 'formatter');
7183
7180
  return formatter.parse(text, ZonedDateTime.FROM);
7184
7181
  };
7185
- function ZonedDateTime(dateTime, offset, zone) {
7186
- var _this;
7187
- requireNonNull(dateTime, 'dateTime');
7188
- requireNonNull(offset, 'offset');
7189
- requireNonNull(zone, 'zone');
7190
- _this = _ChronoZonedDateTime.call(this) || this;
7191
- _this._dateTime = dateTime;
7192
- _this._offset = offset;
7193
- _this._zone = zone;
7194
- return _this;
7195
- }
7196
7182
  var _proto = ZonedDateTime.prototype;
7197
7183
  _proto._resolveLocal = function _resolveLocal(newDateTime) {
7198
7184
  requireNonNull(newDateTime, 'newDateTime');
@@ -7493,6 +7479,17 @@ function _init$7() {
7493
7479
  }
7494
7480
 
7495
7481
  var OffsetDateTime = function (_Temporal) {
7482
+ function OffsetDateTime(dateTime, offset) {
7483
+ var _this;
7484
+ _this = _Temporal.call(this) || this;
7485
+ requireNonNull(dateTime, 'dateTime');
7486
+ requireInstance(dateTime, LocalDateTime, 'dateTime');
7487
+ requireNonNull(offset, 'offset');
7488
+ requireInstance(offset, ZoneOffset, 'offset');
7489
+ _this._dateTime = dateTime;
7490
+ _this._offset = offset;
7491
+ return _this;
7492
+ }
7496
7493
  _inheritsLoose(OffsetDateTime, _Temporal);
7497
7494
  OffsetDateTime.from = function from(temporal) {
7498
7495
  requireNonNull(temporal, 'temporal');
@@ -7520,8 +7517,8 @@ var OffsetDateTime = function (_Temporal) {
7520
7517
  if (clockOrZone instanceof ZoneId) {
7521
7518
  return OffsetDateTime.now(Clock.system(clockOrZone));
7522
7519
  } else if (clockOrZone instanceof Clock) {
7523
- var now = clockOrZone.instant();
7524
- return OffsetDateTime.ofInstant(now, clockOrZone.zone().rules().offset(now));
7520
+ var _now = clockOrZone.instant();
7521
+ return OffsetDateTime.ofInstant(_now, clockOrZone.zone().rules().offset(_now));
7525
7522
  } else {
7526
7523
  throw new IllegalArgumentException('clockOrZone must be an instance of ZoneId or Clock');
7527
7524
  }
@@ -7574,17 +7571,6 @@ var OffsetDateTime = function (_Temporal) {
7574
7571
  requireNonNull(formatter, 'formatter');
7575
7572
  return formatter.parse(text, OffsetDateTime.FROM);
7576
7573
  };
7577
- function OffsetDateTime(dateTime, offset) {
7578
- var _this;
7579
- _this = _Temporal.call(this) || this;
7580
- requireNonNull(dateTime, 'dateTime');
7581
- requireInstance(dateTime, LocalDateTime, 'dateTime');
7582
- requireNonNull(offset, 'offset');
7583
- requireInstance(offset, ZoneOffset, 'offset');
7584
- _this._dateTime = dateTime;
7585
- _this._offset = offset;
7586
- return _this;
7587
- }
7588
7574
  var _proto = OffsetDateTime.prototype;
7589
7575
  _proto.adjustInto = function adjustInto(temporal) {
7590
7576
  return temporal.with(ChronoField.EPOCH_DAY, this.toLocalDate().toEpochDay()).with(ChronoField.NANO_OF_DAY, this.toLocalTime().toNanoOfDay()).with(ChronoField.OFFSET_SECONDS, this.offset().totalSeconds());
@@ -7922,6 +7908,21 @@ function _init$6() {
7922
7908
  var DAYS_PER_CYCLE = 146097;
7923
7909
  var DAYS_0000_TO_1970 = DAYS_PER_CYCLE * 5 - (30 * 365 + 7);
7924
7910
  var LocalDate = function (_ChronoLocalDate) {
7911
+ function LocalDate(year, month, dayOfMonth) {
7912
+ var _this;
7913
+ _this = _ChronoLocalDate.call(this) || this;
7914
+ requireNonNull(year, 'year');
7915
+ requireNonNull(month, 'month');
7916
+ requireNonNull(dayOfMonth, 'dayOfMonth');
7917
+ if (month instanceof Month) {
7918
+ month = month.value();
7919
+ }
7920
+ _this._year = MathUtil.safeToInt(year);
7921
+ _this._month = MathUtil.safeToInt(month);
7922
+ _this._day = MathUtil.safeToInt(dayOfMonth);
7923
+ LocalDate._validate(_this._year, _this._month, _this._day);
7924
+ return _this;
7925
+ }
7925
7926
  _inheritsLoose(LocalDate, _ChronoLocalDate);
7926
7927
  LocalDate.now = function now(clockOrZone) {
7927
7928
  var clock;
@@ -8018,21 +8019,6 @@ var LocalDate = function (_ChronoLocalDate) {
8018
8019
  }
8019
8020
  return LocalDate.of(year, month, day);
8020
8021
  };
8021
- function LocalDate(year, month, dayOfMonth) {
8022
- var _this;
8023
- _this = _ChronoLocalDate.call(this) || this;
8024
- requireNonNull(year, 'year');
8025
- requireNonNull(month, 'month');
8026
- requireNonNull(dayOfMonth, 'dayOfMonth');
8027
- if (month instanceof Month) {
8028
- month = month.value();
8029
- }
8030
- _this._year = MathUtil.safeToInt(year);
8031
- _this._month = MathUtil.safeToInt(month);
8032
- _this._day = MathUtil.safeToInt(dayOfMonth);
8033
- LocalDate._validate(_this._year, _this._month, _this._day);
8034
- return _this;
8035
- }
8036
8022
  LocalDate._validate = function _validate(year, month, dayOfMonth) {
8037
8023
  var dom;
8038
8024
  ChronoField.YEAR.checkValidValue(year);
@@ -8531,10 +8517,10 @@ function _init$5() {
8531
8517
  }
8532
8518
 
8533
8519
  var ChronoLocalDateTime = function (_Temporal) {
8534
- _inheritsLoose(ChronoLocalDateTime, _Temporal);
8535
8520
  function ChronoLocalDateTime() {
8536
8521
  return _Temporal.apply(this, arguments) || this;
8537
8522
  }
8523
+ _inheritsLoose(ChronoLocalDateTime, _Temporal);
8538
8524
  var _proto = ChronoLocalDateTime.prototype;
8539
8525
  _proto.chronology = function chronology() {
8540
8526
  return this.toLocalDate().chronology();
@@ -8571,6 +8557,15 @@ var ChronoLocalDateTime = function (_Temporal) {
8571
8557
  }(Temporal);
8572
8558
 
8573
8559
  var LocalDateTime = function (_ChronoLocalDateTime) {
8560
+ function LocalDateTime(date, time) {
8561
+ var _this;
8562
+ _this = _ChronoLocalDateTime.call(this) || this;
8563
+ requireInstance(date, LocalDate, 'date');
8564
+ requireInstance(time, LocalTime, 'time');
8565
+ _this._date = date;
8566
+ _this._time = time;
8567
+ return _this;
8568
+ }
8574
8569
  _inheritsLoose(LocalDateTime, _ChronoLocalDateTime);
8575
8570
  LocalDateTime.now = function now(clockOrZone) {
8576
8571
  if (clockOrZone == null) {
@@ -8674,15 +8669,6 @@ var LocalDateTime = function (_ChronoLocalDateTime) {
8674
8669
  requireNonNull(formatter, 'formatter');
8675
8670
  return formatter.parse(text, LocalDateTime.FROM);
8676
8671
  };
8677
- function LocalDateTime(date, time) {
8678
- var _this;
8679
- _this = _ChronoLocalDateTime.call(this) || this;
8680
- requireInstance(date, LocalDate, 'date');
8681
- requireInstance(time, LocalTime, 'time');
8682
- _this._date = date;
8683
- _this._time = time;
8684
- return _this;
8685
- }
8686
8672
  var _proto = LocalDateTime.prototype;
8687
8673
  _proto._withDateTime = function _withDateTime(newDate, newTime) {
8688
8674
  if (this._date.equals(newDate) && this._time.equals(newTime)) {
@@ -9021,6 +9007,42 @@ function _init$4() {
9021
9007
  }
9022
9008
 
9023
9009
  var LocalTime = function (_Temporal) {
9010
+ function LocalTime(hour, minute, second, nanoOfSecond) {
9011
+ var _this;
9012
+ if (hour === void 0) {
9013
+ hour = 0;
9014
+ }
9015
+ if (minute === void 0) {
9016
+ minute = 0;
9017
+ }
9018
+ if (second === void 0) {
9019
+ second = 0;
9020
+ }
9021
+ if (nanoOfSecond === void 0) {
9022
+ nanoOfSecond = 0;
9023
+ }
9024
+ _this = _Temporal.call(this) || this;
9025
+ var _hour = MathUtil.safeToInt(hour);
9026
+ var _minute = MathUtil.safeToInt(minute);
9027
+ var _second = MathUtil.safeToInt(second);
9028
+ var _nanoOfSecond = MathUtil.safeToInt(nanoOfSecond);
9029
+ LocalTime._validate(_hour, _minute, _second, _nanoOfSecond);
9030
+ if (_minute === 0 && _second === 0 && _nanoOfSecond === 0) {
9031
+ if (!LocalTime.HOURS[_hour]) {
9032
+ _this._hour = _hour;
9033
+ _this._minute = _minute;
9034
+ _this._second = _second;
9035
+ _this._nano = _nanoOfSecond;
9036
+ LocalTime.HOURS[_hour] = _this;
9037
+ }
9038
+ return LocalTime.HOURS[_hour] || _assertThisInitialized(_this);
9039
+ }
9040
+ _this._hour = _hour;
9041
+ _this._minute = _minute;
9042
+ _this._second = _second;
9043
+ _this._nano = _nanoOfSecond;
9044
+ return _this;
9045
+ }
9024
9046
  _inheritsLoose(LocalTime, _Temporal);
9025
9047
  LocalTime.now = function now(clockOrZone) {
9026
9048
  if (clockOrZone == null) {
@@ -9096,42 +9118,6 @@ var LocalTime = function (_Temporal) {
9096
9118
  requireNonNull(formatter, 'formatter');
9097
9119
  return formatter.parse(text, LocalTime.FROM);
9098
9120
  };
9099
- function LocalTime(hour, minute, second, nanoOfSecond) {
9100
- var _this;
9101
- if (hour === void 0) {
9102
- hour = 0;
9103
- }
9104
- if (minute === void 0) {
9105
- minute = 0;
9106
- }
9107
- if (second === void 0) {
9108
- second = 0;
9109
- }
9110
- if (nanoOfSecond === void 0) {
9111
- nanoOfSecond = 0;
9112
- }
9113
- _this = _Temporal.call(this) || this;
9114
- var _hour = MathUtil.safeToInt(hour);
9115
- var _minute = MathUtil.safeToInt(minute);
9116
- var _second = MathUtil.safeToInt(second);
9117
- var _nanoOfSecond = MathUtil.safeToInt(nanoOfSecond);
9118
- LocalTime._validate(_hour, _minute, _second, _nanoOfSecond);
9119
- if (_minute === 0 && _second === 0 && _nanoOfSecond === 0) {
9120
- if (!LocalTime.HOURS[_hour]) {
9121
- _this._hour = _hour;
9122
- _this._minute = _minute;
9123
- _this._second = _second;
9124
- _this._nano = _nanoOfSecond;
9125
- LocalTime.HOURS[_hour] = _assertThisInitialized(_this);
9126
- }
9127
- return LocalTime.HOURS[_hour] || _assertThisInitialized(_this);
9128
- }
9129
- _this._hour = _hour;
9130
- _this._minute = _minute;
9131
- _this._second = _second;
9132
- _this._nano = _nanoOfSecond;
9133
- return _this;
9134
- }
9135
9121
  LocalTime._validate = function _validate(hour, minute, second, nanoOfSecond) {
9136
9122
  ChronoField.HOUR_OF_DAY.checkValidValue(hour);
9137
9123
  ChronoField.MINUTE_OF_HOUR.checkValidValue(minute);
@@ -9556,6 +9542,14 @@ LocalTime.NANOS_PER_DAY = LocalTime.NANOS_PER_HOUR * LocalTime.HOURS_PER_DAY;
9556
9542
 
9557
9543
  var NANOS_PER_MILLI = 1000000;
9558
9544
  var Instant = function (_Temporal) {
9545
+ function Instant(seconds, nanoOfSecond) {
9546
+ var _this;
9547
+ _this = _Temporal.call(this) || this;
9548
+ Instant._validate(seconds, nanoOfSecond);
9549
+ _this._seconds = MathUtil.safeToInt(seconds);
9550
+ _this._nanos = MathUtil.safeToInt(nanoOfSecond);
9551
+ return _this;
9552
+ }
9559
9553
  _inheritsLoose(Instant, _Temporal);
9560
9554
  Instant.now = function now(clock) {
9561
9555
  if (clock === void 0) {
@@ -9607,14 +9601,6 @@ var Instant = function (_Temporal) {
9607
9601
  throw new DateTimeException('Instant exceeds minimum or maximum instant');
9608
9602
  }
9609
9603
  };
9610
- function Instant(seconds, nanoOfSecond) {
9611
- var _this;
9612
- _this = _Temporal.call(this) || this;
9613
- Instant._validate(seconds, nanoOfSecond);
9614
- _this._seconds = MathUtil.safeToInt(seconds);
9615
- _this._nanos = MathUtil.safeToInt(nanoOfSecond);
9616
- return _this;
9617
- }
9618
9604
  var _proto = Instant.prototype;
9619
9605
  _proto.isSupported = function isSupported(fieldOrUnit) {
9620
9606
  if (fieldOrUnit instanceof ChronoField) {
@@ -9907,7 +9893,6 @@ var Clock = function () {
9907
9893
  return Clock;
9908
9894
  }();
9909
9895
  var SystemClock = function (_Clock) {
9910
- _inheritsLoose(SystemClock, _Clock);
9911
9896
  function SystemClock(zone) {
9912
9897
  var _this;
9913
9898
  requireNonNull(zone, 'zone');
@@ -9915,6 +9900,7 @@ var SystemClock = function (_Clock) {
9915
9900
  _this._zone = zone;
9916
9901
  return _this;
9917
9902
  }
9903
+ _inheritsLoose(SystemClock, _Clock);
9918
9904
  var _proto2 = SystemClock.prototype;
9919
9905
  _proto2.zone = function zone() {
9920
9906
  return this._zone;
@@ -9943,7 +9929,6 @@ var SystemClock = function (_Clock) {
9943
9929
  return SystemClock;
9944
9930
  }(Clock);
9945
9931
  var FixedClock = function (_Clock2) {
9946
- _inheritsLoose(FixedClock, _Clock2);
9947
9932
  function FixedClock(fixedInstant, zoneId) {
9948
9933
  var _this2;
9949
9934
  _this2 = _Clock2.call(this) || this;
@@ -9951,6 +9936,7 @@ var FixedClock = function (_Clock2) {
9951
9936
  _this2._zoneId = zoneId;
9952
9937
  return _this2;
9953
9938
  }
9939
+ _inheritsLoose(FixedClock, _Clock2);
9954
9940
  var _proto3 = FixedClock.prototype;
9955
9941
  _proto3.instant = function instant() {
9956
9942
  return this._instant;
@@ -9979,7 +9965,6 @@ var FixedClock = function (_Clock2) {
9979
9965
  return FixedClock;
9980
9966
  }(Clock);
9981
9967
  var OffsetClock = function (_Clock3) {
9982
- _inheritsLoose(OffsetClock, _Clock3);
9983
9968
  function OffsetClock(baseClock, offset) {
9984
9969
  var _this3;
9985
9970
  _this3 = _Clock3.call(this) || this;
@@ -9987,6 +9972,7 @@ var OffsetClock = function (_Clock3) {
9987
9972
  _this3._offset = offset;
9988
9973
  return _this3;
9989
9974
  }
9975
+ _inheritsLoose(OffsetClock, _Clock3);
9990
9976
  var _proto4 = OffsetClock.prototype;
9991
9977
  _proto4.zone = function zone() {
9992
9978
  return this._baseClock.zone();
@@ -10022,9 +10008,6 @@ var OffsetClock = function (_Clock3) {
10022
10008
  */
10023
10009
 
10024
10010
  var ZoneOffsetTransition = function () {
10025
- ZoneOffsetTransition.of = function of(transition, offsetBefore, offsetAfter) {
10026
- return new ZoneOffsetTransition(transition, offsetBefore, offsetAfter);
10027
- };
10028
10011
  function ZoneOffsetTransition(transition, offsetBefore, offsetAfter) {
10029
10012
  requireNonNull(transition, 'transition');
10030
10013
  requireNonNull(offsetBefore, 'offsetBefore');
@@ -10043,6 +10026,9 @@ var ZoneOffsetTransition = function () {
10043
10026
  this._offsetBefore = offsetBefore;
10044
10027
  this._offsetAfter = offsetAfter;
10045
10028
  }
10029
+ ZoneOffsetTransition.of = function of(transition, offsetBefore, offsetAfter) {
10030
+ return new ZoneOffsetTransition(transition, offsetBefore, offsetAfter);
10031
+ };
10046
10032
  var _proto = ZoneOffsetTransition.prototype;
10047
10033
  _proto.instant = function instant() {
10048
10034
  return this._transition.toInstant(this._offsetBefore);
@@ -10147,10 +10133,10 @@ function _init$1() {
10147
10133
  }
10148
10134
 
10149
10135
  var SystemDefaultZoneRules = function (_ZoneRules) {
10150
- _inheritsLoose(SystemDefaultZoneRules, _ZoneRules);
10151
10136
  function SystemDefaultZoneRules() {
10152
10137
  return _ZoneRules.apply(this, arguments) || this;
10153
10138
  }
10139
+ _inheritsLoose(SystemDefaultZoneRules, _ZoneRules);
10154
10140
  var _proto = SystemDefaultZoneRules.prototype;
10155
10141
  _proto.isFixedOffset = function isFixedOffset() {
10156
10142
  return false;
@@ -10217,13 +10203,13 @@ var SystemDefaultZoneRules = function (_ZoneRules) {
10217
10203
  }(ZoneRules);
10218
10204
 
10219
10205
  var SystemDefaultZoneId = function (_ZoneId) {
10220
- _inheritsLoose(SystemDefaultZoneId, _ZoneId);
10221
10206
  function SystemDefaultZoneId() {
10222
10207
  var _this;
10223
10208
  _this = _ZoneId.call(this) || this;
10224
10209
  _this._rules = new SystemDefaultZoneRules();
10225
10210
  return _this;
10226
10211
  }
10212
+ _inheritsLoose(SystemDefaultZoneId, _ZoneId);
10227
10213
  var _proto = SystemDefaultZoneId.prototype;
10228
10214
  _proto.rules = function rules() {
10229
10215
  return this._rules;