@js-joda/core 1.12.0 → 3.2.0

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.
package/dist/js-joda.js CHANGED
@@ -1,4 +1,4 @@
1
- //! @version @js-joda/core - 1.12.0
1
+ //! @version @js-joda/core - 3.2.0
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)
@@ -7,7 +7,7 @@
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
8
8
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
9
9
  (global = global || self, factory(global.JSJoda = {}));
10
- }(this, function (exports) { 'use strict';
10
+ }(this, (function (exports) { 'use strict';
11
11
 
12
12
  /**
13
13
  * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
@@ -18,7 +18,7 @@
18
18
  superErrorClass = Error;
19
19
  }
20
20
 
21
- function E(message) {
21
+ function JsJodaException(message) {
22
22
  if (!Error.captureStackTrace) {
23
23
  this.stack = new Error().stack;
24
24
  } else {
@@ -33,10 +33,10 @@
33
33
  };
34
34
  }
35
35
 
36
- E.prototype = new superErrorClass();
37
- E.prototype.name = name;
38
- E.prototype.constructor = E;
39
- return E;
36
+ JsJodaException.prototype = Object.create(superErrorClass.prototype);
37
+ JsJodaException.prototype.name = name;
38
+ JsJodaException.prototype.constructor = JsJodaException;
39
+ return JsJodaException;
40
40
  }
41
41
 
42
42
  var DateTimeException = createErrorType('DateTimeException', messageWithCause);
@@ -138,6 +138,7 @@
138
138
  }
139
139
 
140
140
  var assert$1 = /*#__PURE__*/Object.freeze({
141
+ __proto__: null,
141
142
  assert: assert,
142
143
  requireNonNull: requireNonNull,
143
144
  requireInstance: requireInstance,
@@ -622,7 +623,7 @@
622
623
  nanoAdjustment = 0;
623
624
  }
624
625
 
625
- if ((seconds | nanoAdjustment) === 0) {
626
+ if (seconds === 0 && nanoAdjustment === 0) {
626
627
  return Duration.ZERO;
627
628
  }
628
629
 
@@ -646,7 +647,7 @@
646
647
  };
647
648
 
648
649
  _proto.isZero = function isZero() {
649
- return (this._seconds | this._nanos) === 0;
650
+ return this._seconds === 0 && this._nanos === 0;
650
651
  };
651
652
 
652
653
  _proto.isNegative = function isNegative() {
@@ -751,7 +752,7 @@
751
752
  requireNonNull(secondsToAdd, 'secondsToAdd');
752
753
  requireNonNull(nanosToAdd, 'nanosToAdd');
753
754
 
754
- if ((secondsToAdd | nanosToAdd) === 0) {
755
+ if (secondsToAdd === 0 && nanosToAdd === 0) {
755
756
  return this;
756
757
  }
757
758
 
@@ -1092,7 +1093,62 @@
1092
1093
  * @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
1093
1094
  * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
1094
1095
  */
1095
- var TemporalField = function TemporalField() {};
1096
+
1097
+ var TemporalField = function () {
1098
+ function TemporalField() {}
1099
+
1100
+ var _proto = TemporalField.prototype;
1101
+
1102
+ _proto.isDateBased = function isDateBased() {
1103
+ abstractMethodFail('isDateBased');
1104
+ };
1105
+
1106
+ _proto.isTimeBased = function isTimeBased() {
1107
+ abstractMethodFail('isTimeBased');
1108
+ };
1109
+
1110
+ _proto.baseUnit = function baseUnit() {
1111
+ abstractMethodFail('baseUnit');
1112
+ };
1113
+
1114
+ _proto.rangeUnit = function rangeUnit() {
1115
+ abstractMethodFail('rangeUnit');
1116
+ };
1117
+
1118
+ _proto.range = function range() {
1119
+ abstractMethodFail('range');
1120
+ };
1121
+
1122
+ _proto.rangeRefinedBy = function rangeRefinedBy(temporal) {
1123
+ abstractMethodFail('rangeRefinedBy');
1124
+ };
1125
+
1126
+ _proto.getFrom = function getFrom(temporal) {
1127
+ abstractMethodFail('getFrom');
1128
+ };
1129
+
1130
+ _proto.adjustInto = function adjustInto(temporal, newValue) {
1131
+ abstractMethodFail('adjustInto');
1132
+ };
1133
+
1134
+ _proto.isSupportedBy = function isSupportedBy(temporal) {
1135
+ abstractMethodFail('isSupportedBy');
1136
+ };
1137
+
1138
+ _proto.displayName = function displayName() {
1139
+ abstractMethodFail('displayName');
1140
+ };
1141
+
1142
+ _proto.equals = function equals(other) {
1143
+ abstractMethodFail('equals');
1144
+ };
1145
+
1146
+ _proto.name = function name() {
1147
+ abstractMethodFail('name');
1148
+ };
1149
+
1150
+ return TemporalField;
1151
+ }();
1096
1152
 
1097
1153
  /**
1098
1154
  * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
@@ -1148,6 +1204,8 @@
1148
1204
 
1149
1205
  return assert(false, msg, DateTimeException);
1150
1206
  }
1207
+
1208
+ return value;
1151
1209
  };
1152
1210
 
1153
1211
  _proto.checkValidIntValue = function checkValidIntValue(value, field) {
@@ -1251,7 +1309,11 @@
1251
1309
  };
1252
1310
 
1253
1311
  _proto.checkValidValue = function checkValidValue(value) {
1254
- return this.range().checkValidValue(value, this.name());
1312
+ return this.range().checkValidValue(value, this);
1313
+ };
1314
+
1315
+ _proto.checkValidIntValue = function checkValidIntValue(value) {
1316
+ return this.range().checkValidIntValue(value, this);
1255
1317
  };
1256
1318
 
1257
1319
  _proto.isDateBased = function isDateBased() {
@@ -1268,10 +1330,6 @@
1268
1330
  return temporal.range(this);
1269
1331
  };
1270
1332
 
1271
- _proto.checkValidIntValue = function checkValidIntValue(value) {
1272
- return this.range().checkValidIntValue(value, this);
1273
- };
1274
-
1275
1333
  _proto.getFrom = function getFrom(temporal) {
1276
1334
  return temporal.getLong(this);
1277
1335
  };
@@ -1284,6 +1342,14 @@
1284
1342
  return this === other;
1285
1343
  };
1286
1344
 
1345
+ _proto.adjustInto = function adjustInto(temporal, newValue) {
1346
+ return temporal.with(this, newValue);
1347
+ };
1348
+
1349
+ _proto.isSupportedBy = function isSupportedBy(temporal) {
1350
+ return temporal.isSupported(this);
1351
+ };
1352
+
1287
1353
  return ChronoField;
1288
1354
  }(TemporalField);
1289
1355
  function _init$3() {
@@ -1395,16 +1461,6 @@
1395
1461
  return TemporalAccessor;
1396
1462
  }();
1397
1463
 
1398
- var Temporal = function (_TemporalAccessor) {
1399
- _inheritsLoose(Temporal, _TemporalAccessor);
1400
-
1401
- function Temporal() {
1402
- return _TemporalAccessor.apply(this, arguments) || this;
1403
- }
1404
-
1405
- return Temporal;
1406
- }(TemporalAccessor);
1407
-
1408
1464
  var TemporalQuery = function (_Enum) {
1409
1465
  _inheritsLoose(TemporalQuery, _Enum);
1410
1466
 
@@ -1435,13 +1491,13 @@
1435
1491
  return new ExtendedTemporalQuery(name);
1436
1492
  }
1437
1493
 
1438
- var DayOfWeek = function (_Temporal) {
1439
- _inheritsLoose(DayOfWeek, _Temporal);
1494
+ var DayOfWeek = function (_TemporalAccessor) {
1495
+ _inheritsLoose(DayOfWeek, _TemporalAccessor);
1440
1496
 
1441
1497
  function DayOfWeek(ordinal, name) {
1442
1498
  var _this;
1443
1499
 
1444
- _this = _Temporal.call(this) || this;
1500
+ _this = _TemporalAccessor.call(this) || this;
1445
1501
  _this._ordinal = ordinal;
1446
1502
  _this._name = name;
1447
1503
  return _this;
@@ -1503,7 +1559,7 @@
1503
1559
  return this._ordinal + 1;
1504
1560
  };
1505
1561
 
1506
- _proto.getDisplayName = function getDisplayName(style, locale) {
1562
+ _proto.displayName = function displayName(style, locale) {
1507
1563
  throw new IllegalArgumentException('Pattern using (localized) text not implemented yet!');
1508
1564
  };
1509
1565
 
@@ -1587,7 +1643,7 @@
1587
1643
  };
1588
1644
 
1589
1645
  return DayOfWeek;
1590
- }(Temporal);
1646
+ }(TemporalAccessor);
1591
1647
  var ENUMS;
1592
1648
  function _init$4() {
1593
1649
  DayOfWeek.MONDAY = new DayOfWeek(0, 'MONDAY');
@@ -1603,13 +1659,13 @@
1603
1659
  ENUMS = [DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY];
1604
1660
  }
1605
1661
 
1606
- var Month = function (_Temporal) {
1607
- _inheritsLoose(Month, _Temporal);
1662
+ var Month = function (_TemporalAccessor) {
1663
+ _inheritsLoose(Month, _TemporalAccessor);
1608
1664
 
1609
1665
  function Month(value, name) {
1610
1666
  var _this;
1611
1667
 
1612
- _this = _Temporal.call(this) || this;
1668
+ _this = _TemporalAccessor.call(this) || this;
1613
1669
  _this._value = MathUtil.safeToInt(value);
1614
1670
  _this._name = name;
1615
1671
  return _this;
@@ -1629,7 +1685,7 @@
1629
1685
  return this._name;
1630
1686
  };
1631
1687
 
1632
- _proto.getDisplayName = function getDisplayName(style, locale) {
1688
+ _proto.displayName = function displayName(style, locale) {
1633
1689
  throw new IllegalArgumentException('Pattern using (localized) text not implemented yet!');
1634
1690
  };
1635
1691
 
@@ -1799,7 +1855,7 @@
1799
1855
  return ChronoUnit.MONTHS;
1800
1856
  }
1801
1857
 
1802
- return _Temporal.prototype.query.call(this, _query);
1858
+ return _TemporalAccessor.prototype.query.call(this, _query);
1803
1859
  };
1804
1860
 
1805
1861
  _proto.toString = function toString() {
@@ -1900,7 +1956,7 @@
1900
1956
  };
1901
1957
 
1902
1958
  return Month;
1903
- }(Temporal);
1959
+ }(TemporalAccessor);
1904
1960
  var MONTHS;
1905
1961
  function _init$5() {
1906
1962
  Month.JANUARY = new Month(1, 'JANUARY');
@@ -1933,7 +1989,7 @@
1933
1989
 
1934
1990
  var _days = MathUtil.safeToInt(days);
1935
1991
 
1936
- if ((_years | _months | _days) === 0) {
1992
+ if (_years === 0 && _months === 0 && _days === 0) {
1937
1993
  if (!Period.ZERO) {
1938
1994
  _this._years = _years;
1939
1995
  _this._months = _months;
@@ -2405,13 +2461,135 @@
2405
2461
  ResolverStyle.SMART = new ResolverStyle('SMART');
2406
2462
  ResolverStyle.LENIENT = new ResolverStyle('LENIENT');
2407
2463
 
2408
- var ChronoLocalDate = function (_Temporal) {
2409
- _inheritsLoose(ChronoLocalDate, _Temporal);
2464
+ /*
2465
+ * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
2466
+ * @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
2467
+ * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
2468
+ */
2469
+ var TemporalAdjuster = function () {
2470
+ function TemporalAdjuster() {}
2471
+
2472
+ var _proto = TemporalAdjuster.prototype;
2410
2473
 
2411
- function ChronoLocalDate() {
2474
+ _proto.adjustInto = function adjustInto(temporal) {
2475
+ abstractMethodFail('adjustInto');
2476
+ };
2477
+
2478
+ return TemporalAdjuster;
2479
+ }();
2480
+
2481
+ var Temporal = function (_TemporalAccessor) {
2482
+ _inheritsLoose(Temporal, _TemporalAccessor);
2483
+
2484
+ function Temporal() {
2485
+ return _TemporalAccessor.apply(this, arguments) || this;
2486
+ }
2487
+
2488
+ var _proto = Temporal.prototype;
2489
+
2490
+ _proto.isSupported = function isSupported(unit) {
2491
+ abstractMethodFail('isSupported');
2492
+ };
2493
+
2494
+ _proto.minus = function minus(p1, p2) {
2495
+ if (arguments.length < 2) {
2496
+ return this.minusAmount(p1);
2497
+ } else {
2498
+ return this.minusAmountUnit(p1, p2);
2499
+ }
2500
+ };
2501
+
2502
+ _proto.minusAmount = function minusAmount(amount) {
2503
+ abstractMethodFail('minusAmount');
2504
+ };
2505
+
2506
+ _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
2507
+ abstractMethodFail('minusAmountUnit');
2508
+ };
2509
+
2510
+ _proto.plus = function plus(p1, p2) {
2511
+ if (arguments.length < 2) {
2512
+ return this.plusAmount(p1);
2513
+ } else {
2514
+ return this.plusAmountUnit(p1, p2);
2515
+ }
2516
+ };
2517
+
2518
+ _proto.plusAmount = function plusAmount(amount) {
2519
+ abstractMethodFail('plusAmount');
2520
+ };
2521
+
2522
+ _proto.plusAmountUnit = function plusAmountUnit(amountToAdd, unit) {
2523
+ abstractMethodFail('plusAmountUnit');
2524
+ };
2525
+
2526
+ _proto.until = function until(endTemporal, unit) {
2527
+ abstractMethodFail('until');
2528
+ };
2529
+
2530
+ _proto.with = function _with(p1, p2) {
2531
+ if (arguments.length < 2) {
2532
+ return this.withAdjuster(p1);
2533
+ } else {
2534
+ return this.withFieldValue(p1, p2);
2535
+ }
2536
+ };
2537
+
2538
+ _proto.withAdjuster = function withAdjuster(adjuster) {
2539
+ abstractMethodFail('withAdjuster');
2540
+ };
2541
+
2542
+ _proto.withFieldValue = function withFieldValue(field, newValue) {
2543
+ abstractMethodFail('withFieldValue');
2544
+ };
2545
+
2546
+ return Temporal;
2547
+ }(TemporalAccessor);
2548
+
2549
+ var DefaultInterfaceTemporal = function (_Temporal) {
2550
+ _inheritsLoose(DefaultInterfaceTemporal, _Temporal);
2551
+
2552
+ function DefaultInterfaceTemporal() {
2412
2553
  return _Temporal.apply(this, arguments) || this;
2413
2554
  }
2414
2555
 
2556
+ var _proto = DefaultInterfaceTemporal.prototype;
2557
+
2558
+ _proto.withAdjuster = function withAdjuster(adjuster) {
2559
+ requireNonNull(adjuster, 'adjuster');
2560
+ requireInstance(adjuster, TemporalAdjuster, 'adjuster');
2561
+ return adjuster.adjustInto(this);
2562
+ };
2563
+
2564
+ _proto.plusAmount = function plusAmount(amount) {
2565
+ requireNonNull(amount, 'amount');
2566
+ requireInstance(amount, TemporalAmount, 'amount');
2567
+ return amount.addTo(this);
2568
+ };
2569
+
2570
+ _proto.minusAmount = function minusAmount(amount) {
2571
+ requireNonNull(amount, 'amount');
2572
+ requireInstance(amount, TemporalAmount, 'amount');
2573
+ return amount.subtractFrom(this);
2574
+ };
2575
+
2576
+ _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
2577
+ requireNonNull(amountToSubtract, 'amountToSubtract');
2578
+ requireNonNull(unit, 'unit');
2579
+ requireInstance(unit, TemporalUnit, 'unit');
2580
+ return amountToSubtract === MIN_SAFE_INTEGER ? this.plusAmountUnit(MAX_SAFE_INTEGER, unit).plusAmountUnit(1, unit) : this.plusAmount(-amountToSubtract, unit);
2581
+ };
2582
+
2583
+ return DefaultInterfaceTemporal;
2584
+ }(Temporal);
2585
+
2586
+ var ChronoLocalDate = function (_DefaultInterfaceTemp) {
2587
+ _inheritsLoose(ChronoLocalDate, _DefaultInterfaceTemp);
2588
+
2589
+ function ChronoLocalDate() {
2590
+ return _DefaultInterfaceTemp.apply(this, arguments) || this;
2591
+ }
2592
+
2415
2593
  var _proto = ChronoLocalDate.prototype;
2416
2594
 
2417
2595
  _proto.isSupported = function isSupported(fieldOrUnit) {
@@ -2435,7 +2613,7 @@
2435
2613
  return null;
2436
2614
  }
2437
2615
 
2438
- return _Temporal.prototype.query.call(this, _query);
2616
+ return _DefaultInterfaceTemp.prototype.query.call(this, _query);
2439
2617
  };
2440
2618
 
2441
2619
  _proto.adjustInto = function adjustInto(temporal) {
@@ -2449,7 +2627,7 @@
2449
2627
  };
2450
2628
 
2451
2629
  return ChronoLocalDate;
2452
- }(Temporal);
2630
+ }(DefaultInterfaceTemporal);
2453
2631
 
2454
2632
  /*
2455
2633
  * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
@@ -2994,8 +3172,8 @@
2994
3172
  ZoneOffset.MAX = ZoneOffset.ofTotalSeconds(ZoneOffset.MAX_SECONDS);
2995
3173
  }
2996
3174
 
2997
- var DateTimeBuilder = function (_Temporal) {
2998
- _inheritsLoose(DateTimeBuilder, _Temporal);
3175
+ var DateTimeBuilder = function (_TemporalAccessor) {
3176
+ _inheritsLoose(DateTimeBuilder, _TemporalAccessor);
2999
3177
 
3000
3178
  DateTimeBuilder.create = function create(field, value) {
3001
3179
  var dtb = new DateTimeBuilder();
@@ -3008,7 +3186,7 @@
3008
3186
  function DateTimeBuilder() {
3009
3187
  var _this;
3010
3188
 
3011
- _this = _Temporal.call(this) || this;
3189
+ _this = _TemporalAccessor.call(this) || this;
3012
3190
  _this.fieldValues = new EnumMap();
3013
3191
  _this.chrono = null;
3014
3192
  _this.zone = null;
@@ -3423,7 +3601,7 @@
3423
3601
  };
3424
3602
 
3425
3603
  return DateTimeBuilder;
3426
- }(Temporal);
3604
+ }(TemporalAccessor);
3427
3605
 
3428
3606
  var DateTimeParseContext = function () {
3429
3607
  function DateTimeParseContext() {
@@ -3742,7 +3920,7 @@
3742
3920
  return DateTimePrintContext;
3743
3921
  }();
3744
3922
 
3745
- var IsoFields = function IsoFields() {};
3923
+ var IsoFields = {};
3746
3924
  var QUARTER_DAYS = [0, 90, 181, 273, 0, 91, 182, 274];
3747
3925
 
3748
3926
  var Field = function (_TemporalField) {
@@ -3832,7 +4010,7 @@
3832
4010
  return year;
3833
4011
  };
3834
4012
 
3835
- _proto.getDisplayName = function getDisplayName() {
4013
+ _proto.displayName = function displayName() {
3836
4014
  return this.toString();
3837
4015
  };
3838
4016
 
@@ -4106,7 +4284,7 @@
4106
4284
  return date;
4107
4285
  };
4108
4286
 
4109
- _proto4.getDisplayName = function getDisplayName() {
4287
+ _proto4.displayName = function displayName() {
4110
4288
  return 'Week';
4111
4289
  };
4112
4290
 
@@ -6860,8 +7038,8 @@
6860
7038
  });
6861
7039
  }
6862
7040
 
6863
- var MonthDay = function (_Temporal) {
6864
- _inheritsLoose(MonthDay, _Temporal);
7041
+ var MonthDay = function (_TemporalAccessor) {
7042
+ _inheritsLoose(MonthDay, _TemporalAccessor);
6865
7043
 
6866
7044
  MonthDay.now = function now(zoneIdOrClock) {
6867
7045
  if (arguments.length === 0) {
@@ -6950,7 +7128,7 @@
6950
7128
  function MonthDay(month, dayOfMonth) {
6951
7129
  var _this;
6952
7130
 
6953
- _this = _Temporal.call(this) || this;
7131
+ _this = _TemporalAccessor.call(this) || this;
6954
7132
  _this._month = MathUtil.safeToInt(month);
6955
7133
  _this._day = MathUtil.safeToInt(dayOfMonth);
6956
7134
  return _this;
@@ -6985,7 +7163,7 @@
6985
7163
  return ValueRange.of(1, this.month().minLength(), this.month().maxLength());
6986
7164
  }
6987
7165
 
6988
- return _Temporal.prototype.range.call(this, field);
7166
+ return _TemporalAccessor.prototype.range.call(this, field);
6989
7167
  };
6990
7168
 
6991
7169
  _proto.get = function get(field) {
@@ -7045,7 +7223,7 @@
7045
7223
  return IsoChronology.INSTANCE;
7046
7224
  }
7047
7225
 
7048
- return _Temporal.prototype.query.call(this, _query);
7226
+ return _TemporalAccessor.prototype.query.call(this, _query);
7049
7227
  };
7050
7228
 
7051
7229
  _proto.adjustInto = function adjustInto(temporal) {
@@ -7110,7 +7288,7 @@
7110
7288
  };
7111
7289
 
7112
7290
  return MonthDay;
7113
- }(Temporal);
7291
+ }(TemporalAccessor);
7114
7292
  var PARSER;
7115
7293
  function _init$b() {
7116
7294
  PARSER = new DateTimeFormatterBuilder().appendLiteral('--').appendValue(ChronoField.MONTH_OF_YEAR, 2).appendLiteral('-').appendValue(ChronoField.DAY_OF_MONTH, 2).toFormatter();
@@ -7307,25 +7485,12 @@
7307
7485
  return this.isLeapYear() ? 366 : 365;
7308
7486
  };
7309
7487
 
7310
- _proto.with = function _with(adjusterOrFieldOrNumber, value) {
7488
+ _proto.with = function _with(adjusterOrField, value) {
7311
7489
  if (arguments.length === 1) {
7312
- return this.withAdjuster(adjusterOrFieldOrNumber);
7313
- } else if (arguments.length === 2 && adjusterOrFieldOrNumber instanceof TemporalField) {
7314
- return this.withFieldValue(adjusterOrFieldOrNumber, value);
7490
+ return this.withAdjuster(adjusterOrField);
7315
7491
  } else {
7316
- return this.withYearMonth(adjusterOrFieldOrNumber, value);
7317
- }
7318
- };
7319
-
7320
- _proto.withYearMonth = function withYearMonth(newYear, newMonth) {
7321
- requireNonNull(newYear);
7322
- requireNonNull(newMonth);
7323
-
7324
- if (this._year === newYear && this._month === newMonth) {
7325
- return this;
7492
+ return this.withFieldValue(adjusterOrField, value);
7326
7493
  }
7327
-
7328
- return new YearMonth(newYear, newMonth);
7329
7494
  };
7330
7495
 
7331
7496
  _proto.withAdjuster = function withAdjuster(adjuster) {
@@ -7366,20 +7531,12 @@
7366
7531
 
7367
7532
  _proto.withYear = function withYear(year) {
7368
7533
  ChronoField.YEAR.checkValidValue(year);
7369
- return this.withYearMonth(year, this._month);
7534
+ return new YearMonth(year, this._month);
7370
7535
  };
7371
7536
 
7372
7537
  _proto.withMonth = function withMonth(month) {
7373
7538
  ChronoField.MONTH_OF_YEAR.checkValidValue(month);
7374
- return this.withYearMonth(this._year, month);
7375
- };
7376
-
7377
- _proto.plus = function plus(amountOrNumber, unit) {
7378
- if (arguments.length === 1) {
7379
- return this.plusAmount(amountOrNumber);
7380
- } else {
7381
- return this.plusAmountUnit(amountOrNumber, unit);
7382
- }
7539
+ return new YearMonth(this._year, month);
7383
7540
  };
7384
7541
 
7385
7542
  _proto.plusAmount = function plusAmount(amount) {
@@ -7425,7 +7582,7 @@
7425
7582
  }
7426
7583
 
7427
7584
  var newYear = ChronoField.YEAR.checkValidIntValue(this._year + yearsToAdd);
7428
- return this.withYearMonth(newYear, this._month);
7585
+ return this.withYear(newYear);
7429
7586
  };
7430
7587
 
7431
7588
  _proto.plusMonths = function plusMonths(monthsToAdd) {
@@ -7437,15 +7594,7 @@
7437
7594
  var calcMonths = monthCount + monthsToAdd;
7438
7595
  var newYear = ChronoField.YEAR.checkValidIntValue(MathUtil.floorDiv(calcMonths, 12));
7439
7596
  var newMonth = MathUtil.floorMod(calcMonths, 12) + 1;
7440
- return this.withYearMonth(newYear, newMonth);
7441
- };
7442
-
7443
- _proto.minus = function minus(amountOrNumber, unit) {
7444
- if (arguments.length === 1) {
7445
- return this.minusAmount(amountOrNumber);
7446
- } else {
7447
- return this.minusAmountUnit(amountOrNumber, unit);
7448
- }
7597
+ return new YearMonth(newYear, newMonth);
7449
7598
  };
7450
7599
 
7451
7600
  _proto.minusAmount = function minusAmount(amount) {
@@ -7746,14 +7895,6 @@
7746
7895
  return Year.isLeap(this._year);
7747
7896
  };
7748
7897
 
7749
- _proto.with = function _with(adjusterOrFieldOrNumber, value) {
7750
- if (arguments.length === 2 && adjusterOrFieldOrNumber instanceof TemporalField) {
7751
- return this.withFieldValue(adjusterOrFieldOrNumber, value);
7752
- } else {
7753
- return this.withAdjuster(adjusterOrFieldOrNumber);
7754
- }
7755
- };
7756
-
7757
7898
  _proto.withAdjuster = function withAdjuster(adjuster) {
7758
7899
  requireNonNull(adjuster, 'adjuster');
7759
7900
  return adjuster.adjustInto(this);
@@ -7783,21 +7924,13 @@
7783
7924
  return field.adjustInto(this, newValue);
7784
7925
  };
7785
7926
 
7786
- _proto.plus = function plus(amountOrNumber, unit) {
7787
- if (arguments.length === 1) {
7788
- return this.plusAmount(amountOrNumber);
7789
- } else {
7790
- return this.plusAmountToAddUnit(amountOrNumber, unit);
7791
- }
7792
- };
7793
-
7794
7927
  _proto.plusAmount = function plusAmount(amount) {
7795
7928
  requireNonNull(amount, 'amount');
7796
7929
  requireInstance(amount, TemporalAmount, 'amount');
7797
7930
  return amount.addTo(this);
7798
7931
  };
7799
7932
 
7800
- _proto.plusAmountToAddUnit = function plusAmountToAddUnit(amountToAdd, unit) {
7933
+ _proto.plusAmountUnit = function plusAmountUnit(amountToAdd, unit) {
7801
7934
  requireNonNull(amountToAdd, 'amountToAdd');
7802
7935
  requireNonNull(unit, 'unit');
7803
7936
  requireInstance(unit, TemporalUnit, 'unit');
@@ -7834,21 +7967,13 @@
7834
7967
  return Year.of(ChronoField.YEAR.checkValidIntValue(MathUtil.safeAdd(this._year, yearsToAdd)));
7835
7968
  };
7836
7969
 
7837
- _proto.minus = function minus(amountOrNumber, unit) {
7838
- if (arguments.length === 1) {
7839
- return this.minusAmount(amountOrNumber);
7840
- } else {
7841
- return this.minusAmountToSubtractUnit(amountOrNumber, unit);
7842
- }
7843
- };
7844
-
7845
7970
  _proto.minusAmount = function minusAmount(amount) {
7846
7971
  requireNonNull(amount, 'amount');
7847
7972
  requireInstance(amount, TemporalAmount, 'amount');
7848
7973
  return amount.subtractFrom(this);
7849
7974
  };
7850
7975
 
7851
- _proto.minusAmountToSubtractUnit = function minusAmountToSubtractUnit(amountToSubtract, unit) {
7976
+ _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
7852
7977
  requireNonNull(amountToSubtract, 'amountToSubtract');
7853
7978
  requireNonNull(unit, 'unit');
7854
7979
  requireInstance(unit, TemporalUnit, 'unit');
@@ -7960,6 +8085,35 @@
7960
8085
  return this.toString();
7961
8086
  };
7962
8087
 
8088
+ _proto.until = function until(endExclusive, unit) {
8089
+ var end = Year.from(endExclusive);
8090
+
8091
+ if (unit instanceof ChronoUnit) {
8092
+ var yearsUntil = end.value() - this.value();
8093
+
8094
+ switch (unit) {
8095
+ case ChronoUnit.YEARS:
8096
+ return yearsUntil;
8097
+
8098
+ case ChronoUnit.DECADES:
8099
+ return MathUtil.intDiv(yearsUntil, 10);
8100
+
8101
+ case ChronoUnit.CENTURIES:
8102
+ return MathUtil.intDiv(yearsUntil, 100);
8103
+
8104
+ case ChronoUnit.MILLENNIA:
8105
+ return MathUtil.intDiv(yearsUntil, 1000);
8106
+
8107
+ case ChronoUnit.ERAS:
8108
+ return end.getLong(ChronoField.ERA) - this.getLong(ChronoField.ERA);
8109
+ }
8110
+
8111
+ throw new UnsupportedTemporalTypeException('Unsupported unit: ' + unit);
8112
+ }
8113
+
8114
+ return unit.between(this, end);
8115
+ };
8116
+
7963
8117
  return Year;
7964
8118
  }(Temporal);
7965
8119
  var PARSER$2;
@@ -7972,25 +8126,8 @@
7972
8126
  });
7973
8127
  }
7974
8128
 
7975
- /*
7976
- * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
7977
- * @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
7978
- * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
7979
- */
7980
- var TemporalAdjuster = function () {
7981
- function TemporalAdjuster() {}
7982
-
7983
- var _proto = TemporalAdjuster.prototype;
7984
-
7985
- _proto.adjustInto = function adjustInto(temporal) {
7986
- abstractMethodFail('adjustInto');
7987
- };
7988
-
7989
- return TemporalAdjuster;
7990
- }();
7991
-
7992
- var TemporalAdjusters = function () {
7993
- function TemporalAdjusters() {}
8129
+ var TemporalAdjusters = function () {
8130
+ function TemporalAdjusters() {}
7994
8131
 
7995
8132
  TemporalAdjusters.firstDayOfMonth = function firstDayOfMonth() {
7996
8133
  return Impl.FIRST_DAY_OF_MONTH;
@@ -8344,341 +8481,1298 @@
8344
8481
  IsoChronology.INSTANCE = new IsoChronology('IsoChronology');
8345
8482
  }
8346
8483
 
8347
- var ChronoZonedDateTime = function (_Temporal) {
8348
- _inheritsLoose(ChronoZonedDateTime, _Temporal);
8484
+ var OffsetTime = function (_DefaultInterfaceTemp) {
8485
+ _inheritsLoose(OffsetTime, _DefaultInterfaceTemp);
8349
8486
 
8350
- function ChronoZonedDateTime() {
8351
- return _Temporal.apply(this, arguments) || this;
8352
- }
8487
+ OffsetTime.from = function from(temporal) {
8488
+ requireNonNull(temporal, 'temporal');
8353
8489
 
8354
- var _proto = ChronoZonedDateTime.prototype;
8490
+ if (temporal instanceof OffsetTime) {
8491
+ return temporal;
8492
+ } else if (temporal instanceof OffsetDateTime) {
8493
+ return temporal.toOffsetTime();
8494
+ }
8355
8495
 
8356
- _proto.query = function query(_query) {
8357
- if (_query === TemporalQueries.zoneId() || _query === TemporalQueries.zone()) {
8358
- return this.zone();
8359
- } else if (_query === TemporalQueries.chronology()) {
8360
- return this.toLocalDate().chronology();
8361
- } else if (_query === TemporalQueries.precision()) {
8362
- return ChronoUnit.NANOS;
8363
- } else if (_query === TemporalQueries.offset()) {
8364
- return this.offset();
8365
- } else if (_query === TemporalQueries.localDate()) {
8366
- return LocalDate.ofEpochDay(this.toLocalDate().toEpochDay());
8367
- } else if (_query === TemporalQueries.localTime()) {
8368
- return this.toLocalTime();
8496
+ try {
8497
+ var time = LocalTime.from(temporal);
8498
+ var offset = ZoneOffset.from(temporal);
8499
+ return new OffsetTime(time, offset);
8500
+ } catch (ex) {
8501
+ throw new DateTimeException("Unable to obtain OffsetTime TemporalAccessor: " + temporal + ", type " + (temporal.constructor != null ? temporal.constructor.name : ''));
8369
8502
  }
8503
+ };
8370
8504
 
8371
- return _Temporal.prototype.query.call(this, _query);
8505
+ OffsetTime.now = function now(clockOrZone) {
8506
+ if (arguments.length === 0) {
8507
+ return OffsetTime._now(Clock.systemDefaultZone());
8508
+ } else if (clockOrZone instanceof Clock) {
8509
+ return OffsetTime._now(clockOrZone);
8510
+ } else {
8511
+ return OffsetTime._now(Clock.system(clockOrZone));
8512
+ }
8372
8513
  };
8373
8514
 
8374
- _proto.format = function format(formatter) {
8375
- requireNonNull(formatter, 'formatter');
8376
- return formatter.format(this);
8515
+ OffsetTime._now = function _now(clock) {
8516
+ requireNonNull(clock, 'clock');
8517
+ var now = clock.instant();
8518
+ return OffsetTime.ofInstant(now, clock.zone().rules().offset(now));
8377
8519
  };
8378
8520
 
8379
- _proto.toInstant = function toInstant() {
8380
- return Instant.ofEpochSecond(this.toEpochSecond(), this.toLocalTime().nano());
8521
+ OffsetTime.of = function of() {
8522
+ if (arguments.length <= 2) {
8523
+ return OffsetTime.ofTimeAndOffset.apply(this, arguments);
8524
+ } else {
8525
+ return OffsetTime.ofNumbers.apply(this, arguments);
8526
+ }
8381
8527
  };
8382
8528
 
8383
- _proto.toEpochSecond = function toEpochSecond() {
8384
- var epochDay = this.toLocalDate().toEpochDay();
8385
- var secs = epochDay * 86400 + this.toLocalTime().toSecondOfDay();
8386
- secs -= this.offset().totalSeconds();
8387
- return secs;
8529
+ OffsetTime.ofNumbers = function ofNumbers(hour, minute, second, nanoOfSecond, offset) {
8530
+ var time = LocalTime.of(hour, minute, second, nanoOfSecond);
8531
+ return new OffsetTime(time, offset);
8388
8532
  };
8389
8533
 
8390
- _proto.compareTo = function compareTo(other) {
8391
- requireNonNull(other, 'other');
8392
- var cmp = MathUtil.compareNumbers(this.toEpochSecond(), other.toEpochSecond());
8534
+ OffsetTime.ofTimeAndOffset = function ofTimeAndOffset(time, offset) {
8535
+ return new OffsetTime(time, offset);
8536
+ };
8393
8537
 
8394
- if (cmp === 0) {
8395
- cmp = this.toLocalTime().nano() - other.toLocalTime().nano();
8538
+ OffsetTime.ofInstant = function ofInstant(instant, zone) {
8539
+ requireNonNull(instant, 'instant');
8540
+ requireInstance(instant, Instant, 'instant');
8541
+ requireNonNull(zone, 'zone');
8542
+ requireInstance(zone, ZoneId, 'zone');
8543
+ var rules = zone.rules();
8544
+ var offset = rules.offset(instant);
8545
+ var secsOfDay = instant.epochSecond() % LocalTime.SECONDS_PER_DAY;
8546
+ secsOfDay = (secsOfDay + offset.totalSeconds()) % LocalTime.SECONDS_PER_DAY;
8396
8547
 
8397
- if (cmp === 0) {
8398
- cmp = this.toLocalDateTime().compareTo(other.toLocalDateTime());
8548
+ if (secsOfDay < 0) {
8549
+ secsOfDay += LocalTime.SECONDS_PER_DAY;
8550
+ }
8399
8551
 
8400
- if (cmp === 0) {
8401
- cmp = strcmp(this.zone().id(), other.zone().id());
8402
- }
8552
+ var time = LocalTime.ofSecondOfDay(secsOfDay, instant.nano());
8553
+ return new OffsetTime(time, offset);
8554
+ };
8555
+
8556
+ OffsetTime.parse = function parse(text, formatter) {
8557
+ if (formatter === void 0) {
8558
+ formatter = DateTimeFormatter.ISO_OFFSET_TIME;
8559
+ }
8560
+
8561
+ requireNonNull(formatter, 'formatter');
8562
+ return formatter.parse(text, OffsetTime.FROM);
8563
+ };
8564
+
8565
+ function OffsetTime(time, offset) {
8566
+ var _this;
8567
+
8568
+ _this = _DefaultInterfaceTemp.call(this) || this;
8569
+ requireNonNull(time, 'time');
8570
+ requireInstance(time, LocalTime, 'time');
8571
+ requireNonNull(offset, 'offset');
8572
+ requireInstance(offset, ZoneOffset, 'offset');
8573
+ _this._time = time;
8574
+ _this._offset = offset;
8575
+ return _this;
8576
+ }
8577
+
8578
+ var _proto = OffsetTime.prototype;
8579
+
8580
+ _proto.adjustInto = function adjustInto(temporal) {
8581
+ return temporal.with(ChronoField.NANO_OF_DAY, this._time.toNanoOfDay()).with(ChronoField.OFFSET_SECONDS, this.offset().totalSeconds());
8582
+ };
8583
+
8584
+ _proto.atDate = function atDate(date) {
8585
+ return OffsetDateTime.of(date, this._time, this._offset);
8586
+ };
8587
+
8588
+ _proto.format = function format(formatter) {
8589
+ requireNonNull(formatter, 'formatter');
8590
+ return formatter.format(this, OffsetTime.FROM);
8591
+ };
8592
+
8593
+ _proto.get = function get(field) {
8594
+ return _DefaultInterfaceTemp.prototype.get.call(this, field);
8595
+ };
8596
+
8597
+ _proto.getLong = function getLong(field) {
8598
+ if (field instanceof ChronoField) {
8599
+ if (field === ChronoField.OFFSET_SECONDS) {
8600
+ return this._offset.totalSeconds();
8403
8601
  }
8602
+
8603
+ return this._time.getLong(field);
8404
8604
  }
8405
8605
 
8406
- return cmp;
8606
+ return field.getFrom(this);
8607
+ };
8608
+
8609
+ _proto.hour = function hour() {
8610
+ return this._time.hour();
8611
+ };
8612
+
8613
+ _proto.minute = function minute() {
8614
+ return this._time.minute();
8615
+ };
8616
+
8617
+ _proto.second = function second() {
8618
+ return this._time.second();
8619
+ };
8620
+
8621
+ _proto.nano = function nano() {
8622
+ return this._time.nano();
8623
+ };
8624
+
8625
+ _proto.offset = function offset() {
8626
+ return this._offset;
8407
8627
  };
8408
8628
 
8409
8629
  _proto.isAfter = function isAfter(other) {
8410
8630
  requireNonNull(other, 'other');
8411
- var thisEpochSec = this.toEpochSecond();
8412
- var otherEpochSec = other.toEpochSecond();
8413
- return thisEpochSec > otherEpochSec || thisEpochSec === otherEpochSec && this.toLocalTime().nano() > other.toLocalTime().nano();
8631
+ return this._toEpochNano() > other._toEpochNano();
8414
8632
  };
8415
8633
 
8416
8634
  _proto.isBefore = function isBefore(other) {
8417
8635
  requireNonNull(other, 'other');
8418
- var thisEpochSec = this.toEpochSecond();
8419
- var otherEpochSec = other.toEpochSecond();
8420
- return thisEpochSec < otherEpochSec || thisEpochSec === otherEpochSec && this.toLocalTime().nano() < other.toLocalTime().nano();
8636
+ return this._toEpochNano() < other._toEpochNano();
8421
8637
  };
8422
8638
 
8423
8639
  _proto.isEqual = function isEqual(other) {
8424
8640
  requireNonNull(other, 'other');
8425
- return this.toEpochSecond() === other.toEpochSecond() && this.toLocalTime().nano() === other.toLocalTime().nano();
8641
+ return this._toEpochNano() === other._toEpochNano();
8426
8642
  };
8427
8643
 
8428
- _proto.equals = function equals(other) {
8429
- if (this === other) {
8430
- return true;
8644
+ _proto.isSupported = function isSupported(fieldOrUnit) {
8645
+ if (fieldOrUnit instanceof ChronoField) {
8646
+ return fieldOrUnit.isTimeBased() || fieldOrUnit === ChronoField.OFFSET_SECONDS;
8647
+ } else if (fieldOrUnit instanceof ChronoUnit) {
8648
+ return fieldOrUnit.isTimeBased();
8431
8649
  }
8432
8650
 
8433
- if (other instanceof ChronoZonedDateTime) {
8434
- return this.compareTo(other) === 0;
8435
- }
8651
+ return fieldOrUnit != null && fieldOrUnit.isSupportedBy(this);
8652
+ };
8436
8653
 
8437
- return false;
8654
+ _proto.minusHours = function minusHours(hours) {
8655
+ return this._withLocalTimeOffset(this._time.minusHours(hours), this._offset);
8438
8656
  };
8439
8657
 
8440
- return ChronoZonedDateTime;
8441
- }(Temporal);
8658
+ _proto.minusMinutes = function minusMinutes(minutes) {
8659
+ return this._withLocalTimeOffset(this._time.minusMinutes(minutes), this._offset);
8660
+ };
8442
8661
 
8443
- function strcmp(a, b) {
8444
- if (a < b) {
8445
- return -1;
8446
- }
8662
+ _proto.minusSeconds = function minusSeconds(seconds) {
8663
+ return this._withLocalTimeOffset(this._time.minusSeconds(seconds), this._offset);
8664
+ };
8447
8665
 
8448
- if (a > b) {
8449
- return 1;
8450
- }
8666
+ _proto.minusNanos = function minusNanos(nanos) {
8667
+ return this._withLocalTimeOffset(this._time.minusNanos(nanos), this._offset);
8668
+ };
8451
8669
 
8452
- return 0;
8453
- }
8670
+ _proto.minusAmount = function minusAmount(amount) {
8671
+ requireNonNull(amount);
8672
+ return amount.subtractFrom(this);
8673
+ };
8454
8674
 
8455
- var ZonedDateTime = function (_ChronoZonedDateTime) {
8456
- _inheritsLoose(ZonedDateTime, _ChronoZonedDateTime);
8675
+ _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
8676
+ return this.plus(-1 * amountToSubtract, unit);
8677
+ };
8457
8678
 
8458
- ZonedDateTime.now = function now(clockOrZone) {
8459
- var clock;
8679
+ _proto.plusAmount = function plusAmount(amount) {
8680
+ requireNonNull(amount);
8681
+ return amount.addTo(this);
8682
+ };
8460
8683
 
8461
- if (clockOrZone instanceof ZoneId) {
8462
- clock = Clock.system(clockOrZone);
8463
- } else {
8464
- clock = clockOrZone == null ? Clock.systemDefaultZone() : clockOrZone;
8684
+ _proto.plusAmountUnit = function plusAmountUnit(amountToAdd, unit) {
8685
+ if (unit instanceof ChronoUnit) {
8686
+ return this._withLocalTimeOffset(this._time.plus(amountToAdd, unit), this._offset);
8465
8687
  }
8466
8688
 
8467
- return ZonedDateTime.ofInstant(clock.instant(), clock.zone());
8689
+ return unit.addTo(this, amountToAdd);
8468
8690
  };
8469
8691
 
8470
- ZonedDateTime.of = function of() {
8471
- if (arguments.length <= 2) {
8472
- return ZonedDateTime.of2.apply(this, arguments);
8473
- } else if (arguments.length === 3 && arguments[0] instanceof LocalDate) {
8474
- return ZonedDateTime.of3.apply(this, arguments);
8475
- } else {
8476
- return ZonedDateTime.of8.apply(this, arguments);
8477
- }
8692
+ _proto.plusHours = function plusHours(hours) {
8693
+ return this._withLocalTimeOffset(this._time.plusHours(hours), this._offset);
8478
8694
  };
8479
8695
 
8480
- ZonedDateTime.of3 = function of3(date, time, zone) {
8481
- return ZonedDateTime.of2(LocalDateTime.of(date, time), zone);
8696
+ _proto.plusMinutes = function plusMinutes(minutes) {
8697
+ return this._withLocalTimeOffset(this._time.plusMinutes(minutes), this._offset);
8482
8698
  };
8483
8699
 
8484
- ZonedDateTime.of2 = function of2(localDateTime, zone) {
8485
- return ZonedDateTime.ofLocal(localDateTime, zone, null);
8700
+ _proto.plusSeconds = function plusSeconds(seconds) {
8701
+ return this._withLocalTimeOffset(this._time.plusSeconds(seconds), this._offset);
8486
8702
  };
8487
8703
 
8488
- ZonedDateTime.of8 = function of8(year, month, dayOfMonth, hour, minute, second, nanoOfSecond, zone) {
8489
- var dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond);
8490
- return ZonedDateTime.ofLocal(dt, zone, null);
8704
+ _proto.plusNanos = function plusNanos(nanos) {
8705
+ return this._withLocalTimeOffset(this._time.plusNanos(nanos), this._offset);
8491
8706
  };
8492
8707
 
8493
- ZonedDateTime.ofLocal = function ofLocal(localDateTime, zone, preferredOffset) {
8494
- requireNonNull(localDateTime, 'localDateTime');
8495
- requireNonNull(zone, 'zone');
8708
+ _proto.query = function query(_query) {
8709
+ requireNonNull(_query, 'query');
8496
8710
 
8497
- if (zone instanceof ZoneOffset) {
8498
- return new ZonedDateTime(localDateTime, zone, zone);
8711
+ if (_query === TemporalQueries.precision()) {
8712
+ return ChronoUnit.NANOS;
8713
+ } else if (_query === TemporalQueries.offset() || _query === TemporalQueries.zone()) {
8714
+ return this.offset();
8715
+ } else if (_query === TemporalQueries.localTime()) {
8716
+ return this._time;
8717
+ } else if (_query === TemporalQueries.chronology() || _query === TemporalQueries.localDate() || _query === TemporalQueries.zoneId()) {
8718
+ return null;
8499
8719
  }
8500
8720
 
8501
- var offset = null;
8502
- var rules = zone.rules();
8503
- var validOffsets = rules.validOffsets(localDateTime);
8721
+ return _DefaultInterfaceTemp.prototype.query.call(this, _query);
8722
+ };
8504
8723
 
8505
- if (validOffsets.length === 1) {
8506
- offset = validOffsets[0];
8507
- } else if (validOffsets.length === 0) {
8508
- var trans = rules.transition(localDateTime);
8509
- localDateTime = localDateTime.plusSeconds(trans.duration().seconds());
8510
- offset = trans.offsetAfter();
8511
- } else {
8512
- if (preferredOffset != null && validOffsets.some(function (validOffset) {
8513
- return validOffset.equals(preferredOffset);
8514
- })) {
8515
- offset = preferredOffset;
8516
- } else {
8517
- offset = requireNonNull(validOffsets[0], 'offset');
8724
+ _proto.range = function range(field) {
8725
+ if (field instanceof ChronoField) {
8726
+ if (field === ChronoField.OFFSET_SECONDS) {
8727
+ return field.range();
8518
8728
  }
8729
+
8730
+ return this._time.range(field);
8519
8731
  }
8520
8732
 
8521
- return new ZonedDateTime(localDateTime, offset, zone);
8733
+ return field.rangeRefinedBy(this);
8522
8734
  };
8523
8735
 
8524
- ZonedDateTime.ofInstant = function ofInstant() {
8525
- if (arguments.length === 2) {
8526
- return ZonedDateTime.ofInstant2.apply(this, arguments);
8527
- } else {
8528
- return ZonedDateTime.ofInstant3.apply(this, arguments);
8529
- }
8736
+ _proto.toLocalTime = function toLocalTime() {
8737
+ return this._time;
8530
8738
  };
8531
8739
 
8532
- ZonedDateTime.ofInstant2 = function ofInstant2(instant, zone) {
8533
- requireNonNull(instant, 'instant');
8534
- requireNonNull(zone, 'zone');
8535
- return ZonedDateTime._create(instant.epochSecond(), instant.nano(), zone);
8740
+ _proto.truncatedTo = function truncatedTo(unit) {
8741
+ return this._withLocalTimeOffset(this._time.truncatedTo(unit), this._offset);
8536
8742
  };
8537
8743
 
8538
- ZonedDateTime.ofInstant3 = function ofInstant3(localDateTime, offset, zone) {
8539
- requireNonNull(localDateTime, 'localDateTime');
8744
+ _proto.until = function until(endExclusive, unit) {
8745
+ requireNonNull(endExclusive, 'endExclusive');
8746
+ requireNonNull(unit, 'unit');
8747
+ var end = OffsetTime.from(endExclusive);
8748
+
8749
+ if (unit instanceof ChronoUnit) {
8750
+ var nanosUntil = end._toEpochNano() - this._toEpochNano();
8751
+
8752
+ switch (unit) {
8753
+ case ChronoUnit.NANOS:
8754
+ return nanosUntil;
8755
+
8756
+ case ChronoUnit.MICROS:
8757
+ return Math.floor(nanosUntil / 1000);
8758
+
8759
+ case ChronoUnit.MILLIS:
8760
+ return Math.floor(nanosUntil / 1000000);
8761
+
8762
+ case ChronoUnit.SECONDS:
8763
+ return Math.floor(nanosUntil / LocalTime.NANOS_PER_SECOND);
8764
+
8765
+ case ChronoUnit.MINUTES:
8766
+ return Math.floor(nanosUntil / LocalTime.NANOS_PER_MINUTE);
8767
+
8768
+ case ChronoUnit.HOURS:
8769
+ return Math.floor(nanosUntil / LocalTime.NANOS_PER_HOUR);
8770
+
8771
+ case ChronoUnit.HALF_DAYS:
8772
+ return Math.floor(nanosUntil / (12 * LocalTime.NANOS_PER_HOUR));
8773
+ }
8774
+
8775
+ throw new UnsupportedTemporalTypeException('Unsupported unit: ' + unit);
8776
+ }
8777
+
8778
+ return unit.between(this, end);
8779
+ };
8780
+
8781
+ _proto.withHour = function withHour(hour) {
8782
+ return this._withLocalTimeOffset(this._time.withHour(hour), this._offset);
8783
+ };
8784
+
8785
+ _proto.withMinute = function withMinute(minute) {
8786
+ return this._withLocalTimeOffset(this._time.withMinute(minute), this._offset);
8787
+ };
8788
+
8789
+ _proto.withSecond = function withSecond(second) {
8790
+ return this._withLocalTimeOffset(this._time.withSecond(second), this._offset);
8791
+ };
8792
+
8793
+ _proto.withNano = function withNano(nano) {
8794
+ return this._withLocalTimeOffset(this._time.withNano(nano), this._offset);
8795
+ };
8796
+
8797
+ _proto.withOffsetSameInstant = function withOffsetSameInstant(offset) {
8540
8798
  requireNonNull(offset, 'offset');
8541
- requireNonNull(zone, 'zone');
8542
- return ZonedDateTime._create(localDateTime.toEpochSecond(offset), localDateTime.nano(), zone);
8799
+
8800
+ if (offset.equals(this._offset)) {
8801
+ return this;
8802
+ }
8803
+
8804
+ var difference = offset.totalSeconds() - this._offset.totalSeconds();
8805
+
8806
+ var adjusted = this._time.plusSeconds(difference);
8807
+
8808
+ return new OffsetTime(adjusted, offset);
8543
8809
  };
8544
8810
 
8545
- ZonedDateTime._create = function _create(epochSecond, nanoOfSecond, zone) {
8546
- var rules = zone.rules();
8547
- var instant = Instant.ofEpochSecond(epochSecond, nanoOfSecond);
8548
- var offset = rules.offset(instant);
8549
- var ldt = LocalDateTime.ofEpochSecond(epochSecond, nanoOfSecond, offset);
8550
- return new ZonedDateTime(ldt, offset, zone);
8811
+ _proto.withOffsetSameLocal = function withOffsetSameLocal(offset) {
8812
+ return offset != null && offset.equals(this._offset) ? this : new OffsetTime(this._time, offset);
8813
+ };
8814
+
8815
+ _proto._toEpochNano = function _toEpochNano() {
8816
+ var nod = this._time.toNanoOfDay();
8817
+
8818
+ var offsetNanos = this._offset.totalSeconds() * LocalTime.NANOS_PER_SECOND;
8819
+ return nod - offsetNanos;
8820
+ };
8821
+
8822
+ _proto.withAdjuster = function withAdjuster(adjuster) {
8823
+ requireNonNull(adjuster, 'adjuster');
8824
+
8825
+ if (adjuster instanceof LocalTime) {
8826
+ return this._withLocalTimeOffset(adjuster, this._offset);
8827
+ } else if (adjuster instanceof ZoneOffset) {
8828
+ return this._withLocalTimeOffset(this._time, adjuster);
8829
+ } else if (adjuster instanceof OffsetTime) {
8830
+ return adjuster;
8831
+ }
8832
+
8833
+ return adjuster.adjustInto(this);
8834
+ };
8835
+
8836
+ _proto.withFieldValue = function withFieldValue(field, newValue) {
8837
+ requireNonNull(field, 'field');
8838
+
8839
+ if (field instanceof ChronoField) {
8840
+ if (field === ChronoField.OFFSET_SECONDS) {
8841
+ return this._withLocalTimeOffset(this._time, ZoneOffset.ofTotalSeconds(field.checkValidIntValue(newValue)));
8842
+ }
8843
+
8844
+ return this._withLocalTimeOffset(this._time.with(field, newValue), this._offset);
8845
+ }
8846
+
8847
+ return field.adjustInto(this, newValue);
8848
+ };
8849
+
8850
+ _proto._withLocalTimeOffset = function _withLocalTimeOffset(time, offset) {
8851
+ if (this._time === time && this._offset.equals(offset)) {
8852
+ return this;
8853
+ }
8854
+
8855
+ return new OffsetTime(time, offset);
8856
+ };
8857
+
8858
+ _proto.compareTo = function compareTo(other) {
8859
+ requireNonNull(other, 'other');
8860
+ requireInstance(other, OffsetTime, 'other');
8861
+
8862
+ if (this._offset.equals(other._offset)) {
8863
+ return this._time.compareTo(other._time);
8864
+ }
8865
+
8866
+ var compare = MathUtil.compareNumbers(this._toEpochNano(), other._toEpochNano());
8867
+
8868
+ if (compare === 0) {
8869
+ return this._time.compareTo(other._time);
8870
+ }
8871
+
8872
+ return compare;
8873
+ };
8874
+
8875
+ _proto.equals = function equals(other) {
8876
+ if (this === other) {
8877
+ return true;
8878
+ }
8879
+
8880
+ if (other instanceof OffsetTime) {
8881
+ return this._time.equals(other._time) && this._offset.equals(other._offset);
8882
+ }
8883
+
8884
+ return false;
8885
+ };
8886
+
8887
+ _proto.hashCode = function hashCode() {
8888
+ return this._time.hashCode() ^ this._offset.hashCode();
8889
+ };
8890
+
8891
+ _proto.toString = function toString() {
8892
+ return this._time.toString() + this._offset.toString();
8893
+ };
8894
+
8895
+ _proto.toJSON = function toJSON() {
8896
+ return this.toString();
8897
+ };
8898
+
8899
+ return OffsetTime;
8900
+ }(DefaultInterfaceTemporal);
8901
+ function _init$f() {
8902
+ OffsetTime.MIN = OffsetTime.ofNumbers(0, 0, 0, 0, ZoneOffset.MAX);
8903
+ OffsetTime.MAX = OffsetTime.ofNumbers(23, 59, 59, 999999999, ZoneOffset.MIN);
8904
+ OffsetTime.FROM = createTemporalQuery('OffsetTime.FROM', function (temporal) {
8905
+ return OffsetTime.from(temporal);
8906
+ });
8907
+ }
8908
+
8909
+ var ChronoZonedDateTime = function (_DefaultInterfaceTemp) {
8910
+ _inheritsLoose(ChronoZonedDateTime, _DefaultInterfaceTemp);
8911
+
8912
+ function ChronoZonedDateTime() {
8913
+ return _DefaultInterfaceTemp.apply(this, arguments) || this;
8914
+ }
8915
+
8916
+ var _proto = ChronoZonedDateTime.prototype;
8917
+
8918
+ _proto.query = function query(_query) {
8919
+ if (_query === TemporalQueries.zoneId() || _query === TemporalQueries.zone()) {
8920
+ return this.zone();
8921
+ } else if (_query === TemporalQueries.chronology()) {
8922
+ return this.toLocalDate().chronology();
8923
+ } else if (_query === TemporalQueries.precision()) {
8924
+ return ChronoUnit.NANOS;
8925
+ } else if (_query === TemporalQueries.offset()) {
8926
+ return this.offset();
8927
+ } else if (_query === TemporalQueries.localDate()) {
8928
+ return LocalDate.ofEpochDay(this.toLocalDate().toEpochDay());
8929
+ } else if (_query === TemporalQueries.localTime()) {
8930
+ return this.toLocalTime();
8931
+ }
8932
+
8933
+ return _DefaultInterfaceTemp.prototype.query.call(this, _query);
8934
+ };
8935
+
8936
+ _proto.format = function format(formatter) {
8937
+ requireNonNull(formatter, 'formatter');
8938
+ return formatter.format(this);
8939
+ };
8940
+
8941
+ _proto.toInstant = function toInstant() {
8942
+ return Instant.ofEpochSecond(this.toEpochSecond(), this.toLocalTime().nano());
8943
+ };
8944
+
8945
+ _proto.toEpochSecond = function toEpochSecond() {
8946
+ var epochDay = this.toLocalDate().toEpochDay();
8947
+ var secs = epochDay * 86400 + this.toLocalTime().toSecondOfDay();
8948
+ secs -= this.offset().totalSeconds();
8949
+ return secs;
8950
+ };
8951
+
8952
+ _proto.compareTo = function compareTo(other) {
8953
+ requireNonNull(other, 'other');
8954
+ var cmp = MathUtil.compareNumbers(this.toEpochSecond(), other.toEpochSecond());
8955
+
8956
+ if (cmp === 0) {
8957
+ cmp = this.toLocalTime().nano() - other.toLocalTime().nano();
8958
+
8959
+ if (cmp === 0) {
8960
+ cmp = this.toLocalDateTime().compareTo(other.toLocalDateTime());
8961
+
8962
+ if (cmp === 0) {
8963
+ cmp = strcmp(this.zone().id(), other.zone().id());
8964
+ }
8965
+ }
8966
+ }
8967
+
8968
+ return cmp;
8969
+ };
8970
+
8971
+ _proto.isAfter = function isAfter(other) {
8972
+ requireNonNull(other, 'other');
8973
+ var thisEpochSec = this.toEpochSecond();
8974
+ var otherEpochSec = other.toEpochSecond();
8975
+ return thisEpochSec > otherEpochSec || thisEpochSec === otherEpochSec && this.toLocalTime().nano() > other.toLocalTime().nano();
8976
+ };
8977
+
8978
+ _proto.isBefore = function isBefore(other) {
8979
+ requireNonNull(other, 'other');
8980
+ var thisEpochSec = this.toEpochSecond();
8981
+ var otherEpochSec = other.toEpochSecond();
8982
+ return thisEpochSec < otherEpochSec || thisEpochSec === otherEpochSec && this.toLocalTime().nano() < other.toLocalTime().nano();
8983
+ };
8984
+
8985
+ _proto.isEqual = function isEqual(other) {
8986
+ requireNonNull(other, 'other');
8987
+ return this.toEpochSecond() === other.toEpochSecond() && this.toLocalTime().nano() === other.toLocalTime().nano();
8988
+ };
8989
+
8990
+ _proto.equals = function equals(other) {
8991
+ if (this === other) {
8992
+ return true;
8993
+ }
8994
+
8995
+ if (other instanceof ChronoZonedDateTime) {
8996
+ return this.compareTo(other) === 0;
8997
+ }
8998
+
8999
+ return false;
9000
+ };
9001
+
9002
+ return ChronoZonedDateTime;
9003
+ }(DefaultInterfaceTemporal);
9004
+
9005
+ function strcmp(a, b) {
9006
+ if (a < b) {
9007
+ return -1;
9008
+ }
9009
+
9010
+ if (a > b) {
9011
+ return 1;
9012
+ }
9013
+
9014
+ return 0;
9015
+ }
9016
+
9017
+ var ZonedDateTime = function (_ChronoZonedDateTime) {
9018
+ _inheritsLoose(ZonedDateTime, _ChronoZonedDateTime);
9019
+
9020
+ ZonedDateTime.now = function now(clockOrZone) {
9021
+ var clock;
9022
+
9023
+ if (clockOrZone instanceof ZoneId) {
9024
+ clock = Clock.system(clockOrZone);
9025
+ } else {
9026
+ clock = clockOrZone == null ? Clock.systemDefaultZone() : clockOrZone;
9027
+ }
9028
+
9029
+ return ZonedDateTime.ofInstant(clock.instant(), clock.zone());
9030
+ };
9031
+
9032
+ ZonedDateTime.of = function of() {
9033
+ if (arguments.length <= 2) {
9034
+ return ZonedDateTime.of2.apply(this, arguments);
9035
+ } else if (arguments.length === 3 && arguments[0] instanceof LocalDate) {
9036
+ return ZonedDateTime.of3.apply(this, arguments);
9037
+ } else {
9038
+ return ZonedDateTime.of8.apply(this, arguments);
9039
+ }
9040
+ };
9041
+
9042
+ ZonedDateTime.of3 = function of3(date, time, zone) {
9043
+ return ZonedDateTime.of2(LocalDateTime.of(date, time), zone);
9044
+ };
9045
+
9046
+ ZonedDateTime.of2 = function of2(localDateTime, zone) {
9047
+ return ZonedDateTime.ofLocal(localDateTime, zone, null);
9048
+ };
9049
+
9050
+ ZonedDateTime.of8 = function of8(year, month, dayOfMonth, hour, minute, second, nanoOfSecond, zone) {
9051
+ var dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond);
9052
+ return ZonedDateTime.ofLocal(dt, zone, null);
9053
+ };
9054
+
9055
+ ZonedDateTime.ofLocal = function ofLocal(localDateTime, zone, preferredOffset) {
9056
+ requireNonNull(localDateTime, 'localDateTime');
9057
+ requireNonNull(zone, 'zone');
9058
+
9059
+ if (zone instanceof ZoneOffset) {
9060
+ return new ZonedDateTime(localDateTime, zone, zone);
9061
+ }
9062
+
9063
+ var offset = null;
9064
+ var rules = zone.rules();
9065
+ var validOffsets = rules.validOffsets(localDateTime);
9066
+
9067
+ if (validOffsets.length === 1) {
9068
+ offset = validOffsets[0];
9069
+ } else if (validOffsets.length === 0) {
9070
+ var trans = rules.transition(localDateTime);
9071
+ localDateTime = localDateTime.plusSeconds(trans.duration().seconds());
9072
+ offset = trans.offsetAfter();
9073
+ } else {
9074
+ if (preferredOffset != null && validOffsets.some(function (validOffset) {
9075
+ return validOffset.equals(preferredOffset);
9076
+ })) {
9077
+ offset = preferredOffset;
9078
+ } else {
9079
+ offset = requireNonNull(validOffsets[0], 'offset');
9080
+ }
9081
+ }
9082
+
9083
+ return new ZonedDateTime(localDateTime, offset, zone);
9084
+ };
9085
+
9086
+ ZonedDateTime.ofInstant = function ofInstant() {
9087
+ if (arguments.length === 2) {
9088
+ return ZonedDateTime.ofInstant2.apply(this, arguments);
9089
+ } else {
9090
+ return ZonedDateTime.ofInstant3.apply(this, arguments);
9091
+ }
9092
+ };
9093
+
9094
+ ZonedDateTime.ofInstant2 = function ofInstant2(instant, zone) {
9095
+ requireNonNull(instant, 'instant');
9096
+ requireNonNull(zone, 'zone');
9097
+ return ZonedDateTime._create(instant.epochSecond(), instant.nano(), zone);
9098
+ };
9099
+
9100
+ ZonedDateTime.ofInstant3 = function ofInstant3(localDateTime, offset, zone) {
9101
+ requireNonNull(localDateTime, 'localDateTime');
9102
+ requireNonNull(offset, 'offset');
9103
+ requireNonNull(zone, 'zone');
9104
+ return ZonedDateTime._create(localDateTime.toEpochSecond(offset), localDateTime.nano(), zone);
9105
+ };
9106
+
9107
+ ZonedDateTime._create = function _create(epochSecond, nanoOfSecond, zone) {
9108
+ var rules = zone.rules();
9109
+ var instant = Instant.ofEpochSecond(epochSecond, nanoOfSecond);
9110
+ var offset = rules.offset(instant);
9111
+ var ldt = LocalDateTime.ofEpochSecond(epochSecond, nanoOfSecond, offset);
9112
+ return new ZonedDateTime(ldt, offset, zone);
9113
+ };
9114
+
9115
+ ZonedDateTime.ofStrict = function ofStrict(localDateTime, offset, zone) {
9116
+ requireNonNull(localDateTime, 'localDateTime');
9117
+ requireNonNull(offset, 'offset');
9118
+ requireNonNull(zone, 'zone');
9119
+ var rules = zone.rules();
9120
+
9121
+ if (rules.isValidOffset(localDateTime, offset) === false) {
9122
+ var trans = rules.transition(localDateTime);
9123
+
9124
+ if (trans != null && trans.isGap()) {
9125
+ throw new DateTimeException('LocalDateTime ' + localDateTime + ' does not exist in zone ' + zone + ' due to a gap in the local time-line, typically caused by daylight savings');
9126
+ }
9127
+
9128
+ throw new DateTimeException('ZoneOffset "' + offset + '" is not valid for LocalDateTime "' + localDateTime + '" in zone "' + zone + '"');
9129
+ }
9130
+
9131
+ return new ZonedDateTime(localDateTime, offset, zone);
9132
+ };
9133
+
9134
+ ZonedDateTime.ofLenient = function ofLenient(localDateTime, offset, zone) {
9135
+ requireNonNull(localDateTime, 'localDateTime');
9136
+ requireNonNull(offset, 'offset');
9137
+ requireNonNull(zone, 'zone');
9138
+
9139
+ if (zone instanceof ZoneOffset && offset.equals(zone) === false) {
9140
+ throw new IllegalArgumentException('ZoneId must match ZoneOffset');
9141
+ }
9142
+
9143
+ return new ZonedDateTime(localDateTime, offset, zone);
9144
+ };
9145
+
9146
+ ZonedDateTime.from = function from(temporal) {
9147
+ requireNonNull(temporal, 'temporal');
9148
+
9149
+ if (temporal instanceof ZonedDateTime) {
9150
+ return temporal;
9151
+ }
9152
+
9153
+ var zone = ZoneId.from(temporal);
9154
+
9155
+ if (temporal.isSupported(ChronoField.INSTANT_SECONDS)) {
9156
+ var zdt = ZonedDateTime._from(temporal, zone);
9157
+
9158
+ if (zdt != null) return zdt;
9159
+ }
9160
+
9161
+ var ldt = LocalDateTime.from(temporal);
9162
+ return ZonedDateTime.of2(ldt, zone);
9163
+ };
9164
+
9165
+ ZonedDateTime._from = function _from(temporal, zone) {
9166
+ try {
9167
+ return ZonedDateTime.__from(temporal, zone);
9168
+ } catch (ex) {
9169
+ if (!(ex instanceof DateTimeException)) throw ex;
9170
+ }
9171
+ };
9172
+
9173
+ ZonedDateTime.__from = function __from(temporal, zone) {
9174
+ var epochSecond = temporal.getLong(ChronoField.INSTANT_SECONDS);
9175
+ var nanoOfSecond = temporal.get(ChronoField.NANO_OF_SECOND);
9176
+ return ZonedDateTime._create(epochSecond, nanoOfSecond, zone);
9177
+ };
9178
+
9179
+ ZonedDateTime.parse = function parse(text, formatter) {
9180
+ if (formatter === void 0) {
9181
+ formatter = DateTimeFormatter.ISO_ZONED_DATE_TIME;
9182
+ }
9183
+
9184
+ requireNonNull(formatter, 'formatter');
9185
+ return formatter.parse(text, ZonedDateTime.FROM);
9186
+ };
9187
+
9188
+ function ZonedDateTime(dateTime, offset, zone) {
9189
+ var _this;
9190
+
9191
+ requireNonNull(dateTime, 'dateTime');
9192
+ requireNonNull(offset, 'offset');
9193
+ requireNonNull(zone, 'zone');
9194
+ _this = _ChronoZonedDateTime.call(this) || this;
9195
+ _this._dateTime = dateTime;
9196
+ _this._offset = offset;
9197
+ _this._zone = zone;
9198
+ return _this;
9199
+ }
9200
+
9201
+ var _proto = ZonedDateTime.prototype;
9202
+
9203
+ _proto._resolveLocal = function _resolveLocal(newDateTime) {
9204
+ requireNonNull(newDateTime, 'newDateTime');
9205
+ return ZonedDateTime.ofLocal(newDateTime, this._zone, this._offset);
9206
+ };
9207
+
9208
+ _proto._resolveInstant = function _resolveInstant(newDateTime) {
9209
+ return ZonedDateTime.ofInstant3(newDateTime, this._offset, this._zone);
9210
+ };
9211
+
9212
+ _proto._resolveOffset = function _resolveOffset(offset) {
9213
+ if (offset.equals(this._offset) === false && this._zone.rules().isValidOffset(this._dateTime, offset)) {
9214
+ return new ZonedDateTime(this._dateTime, offset, this._zone);
9215
+ }
9216
+
9217
+ return this;
9218
+ };
9219
+
9220
+ _proto.isSupported = function isSupported(fieldOrUnit) {
9221
+ if (fieldOrUnit instanceof ChronoField) {
9222
+ return true;
9223
+ } else if (fieldOrUnit instanceof ChronoUnit) {
9224
+ return fieldOrUnit.isDateBased() || fieldOrUnit.isTimeBased();
9225
+ }
9226
+
9227
+ return fieldOrUnit != null && fieldOrUnit.isSupportedBy(this);
9228
+ };
9229
+
9230
+ _proto.range = function range(field) {
9231
+ if (field instanceof ChronoField) {
9232
+ if (field === ChronoField.INSTANT_SECONDS || field === ChronoField.OFFSET_SECONDS) {
9233
+ return field.range();
9234
+ }
9235
+
9236
+ return this._dateTime.range(field);
9237
+ }
9238
+
9239
+ return field.rangeRefinedBy(this);
9240
+ };
9241
+
9242
+ _proto.get = function get(field) {
9243
+ return this.getLong(field);
9244
+ };
9245
+
9246
+ _proto.getLong = function getLong(field) {
9247
+ if (field instanceof ChronoField) {
9248
+ switch (field) {
9249
+ case ChronoField.INSTANT_SECONDS:
9250
+ return this.toEpochSecond();
9251
+
9252
+ case ChronoField.OFFSET_SECONDS:
9253
+ return this._offset.totalSeconds();
9254
+ }
9255
+
9256
+ return this._dateTime.getLong(field);
9257
+ }
9258
+
9259
+ requireNonNull(field, 'field');
9260
+ return field.getFrom(this);
9261
+ };
9262
+
9263
+ _proto.offset = function offset() {
9264
+ return this._offset;
9265
+ };
9266
+
9267
+ _proto.withEarlierOffsetAtOverlap = function withEarlierOffsetAtOverlap() {
9268
+ var trans = this._zone.rules().transition(this._dateTime);
9269
+
9270
+ if (trans != null && trans.isOverlap()) {
9271
+ var earlierOffset = trans.offsetBefore();
9272
+
9273
+ if (earlierOffset.equals(this._offset) === false) {
9274
+ return new ZonedDateTime(this._dateTime, earlierOffset, this._zone);
9275
+ }
9276
+ }
9277
+
9278
+ return this;
9279
+ };
9280
+
9281
+ _proto.withLaterOffsetAtOverlap = function withLaterOffsetAtOverlap() {
9282
+ var trans = this._zone.rules().transition(this.toLocalDateTime());
9283
+
9284
+ if (trans != null) {
9285
+ var laterOffset = trans.offsetAfter();
9286
+
9287
+ if (laterOffset.equals(this._offset) === false) {
9288
+ return new ZonedDateTime(this._dateTime, laterOffset, this._zone);
9289
+ }
9290
+ }
9291
+
9292
+ return this;
9293
+ };
9294
+
9295
+ _proto.zone = function zone() {
9296
+ return this._zone;
9297
+ };
9298
+
9299
+ _proto.withZoneSameLocal = function withZoneSameLocal(zone) {
9300
+ requireNonNull(zone, 'zone');
9301
+ return this._zone.equals(zone) ? this : ZonedDateTime.ofLocal(this._dateTime, zone, this._offset);
9302
+ };
9303
+
9304
+ _proto.withZoneSameInstant = function withZoneSameInstant(zone) {
9305
+ requireNonNull(zone, 'zone');
9306
+ return this._zone.equals(zone) ? this : ZonedDateTime._create(this._dateTime.toEpochSecond(this._offset), this._dateTime.nano(), zone);
9307
+ };
9308
+
9309
+ _proto.withFixedOffsetZone = function withFixedOffsetZone() {
9310
+ return this._zone.equals(this._offset) ? this : new ZonedDateTime(this._dateTime, this._offset, this._offset);
9311
+ };
9312
+
9313
+ _proto.year = function year() {
9314
+ return this._dateTime.year();
9315
+ };
9316
+
9317
+ _proto.monthValue = function monthValue() {
9318
+ return this._dateTime.monthValue();
9319
+ };
9320
+
9321
+ _proto.month = function month() {
9322
+ return this._dateTime.month();
9323
+ };
9324
+
9325
+ _proto.dayOfMonth = function dayOfMonth() {
9326
+ return this._dateTime.dayOfMonth();
9327
+ };
9328
+
9329
+ _proto.dayOfYear = function dayOfYear() {
9330
+ return this._dateTime.dayOfYear();
9331
+ };
9332
+
9333
+ _proto.dayOfWeek = function dayOfWeek() {
9334
+ return this._dateTime.dayOfWeek();
9335
+ };
9336
+
9337
+ _proto.hour = function hour() {
9338
+ return this._dateTime.hour();
9339
+ };
9340
+
9341
+ _proto.minute = function minute() {
9342
+ return this._dateTime.minute();
9343
+ };
9344
+
9345
+ _proto.second = function second() {
9346
+ return this._dateTime.second();
9347
+ };
9348
+
9349
+ _proto.nano = function nano() {
9350
+ return this._dateTime.nano();
9351
+ };
9352
+
9353
+ _proto.withAdjuster = function withAdjuster(adjuster) {
9354
+ if (adjuster instanceof LocalDate) {
9355
+ return this._resolveLocal(LocalDateTime.of(adjuster, this._dateTime.toLocalTime()));
9356
+ } else if (adjuster instanceof LocalTime) {
9357
+ return this._resolveLocal(LocalDateTime.of(this._dateTime.toLocalDate(), adjuster));
9358
+ } else if (adjuster instanceof LocalDateTime) {
9359
+ return this._resolveLocal(adjuster);
9360
+ } else if (adjuster instanceof Instant) {
9361
+ var instant = adjuster;
9362
+ return ZonedDateTime._create(instant.epochSecond(), instant.nano(), this._zone);
9363
+ } else if (adjuster instanceof ZoneOffset) {
9364
+ return this._resolveOffset(adjuster);
9365
+ }
9366
+
9367
+ requireNonNull(adjuster, 'adjuster');
9368
+ return adjuster.adjustInto(this);
9369
+ };
9370
+
9371
+ _proto.withFieldValue = function withFieldValue(field, newValue) {
9372
+ if (field instanceof ChronoField) {
9373
+ switch (field) {
9374
+ case ChronoField.INSTANT_SECONDS:
9375
+ return ZonedDateTime._create(newValue, this.nano(), this._zone);
9376
+
9377
+ case ChronoField.OFFSET_SECONDS:
9378
+ {
9379
+ var offset = ZoneOffset.ofTotalSeconds(field.checkValidIntValue(newValue));
9380
+ return this._resolveOffset(offset);
9381
+ }
9382
+ }
9383
+
9384
+ return this._resolveLocal(this._dateTime.with(field, newValue));
9385
+ }
9386
+
9387
+ return field.adjustInto(this, newValue);
9388
+ };
9389
+
9390
+ _proto.withYear = function withYear(year) {
9391
+ return this._resolveLocal(this._dateTime.withYear(year));
9392
+ };
9393
+
9394
+ _proto.withMonth = function withMonth(month) {
9395
+ return this._resolveLocal(this._dateTime.withMonth(month));
9396
+ };
9397
+
9398
+ _proto.withDayOfMonth = function withDayOfMonth(dayOfMonth) {
9399
+ return this._resolveLocal(this._dateTime.withDayOfMonth(dayOfMonth));
9400
+ };
9401
+
9402
+ _proto.withDayOfYear = function withDayOfYear(dayOfYear) {
9403
+ return this._resolveLocal(this._dateTime.withDayOfYear(dayOfYear));
9404
+ };
9405
+
9406
+ _proto.withHour = function withHour(hour) {
9407
+ return this._resolveLocal(this._dateTime.withHour(hour));
9408
+ };
9409
+
9410
+ _proto.withMinute = function withMinute(minute) {
9411
+ return this._resolveLocal(this._dateTime.withMinute(minute));
9412
+ };
9413
+
9414
+ _proto.withSecond = function withSecond(second) {
9415
+ return this._resolveLocal(this._dateTime.withSecond(second));
9416
+ };
9417
+
9418
+ _proto.withNano = function withNano(nanoOfSecond) {
9419
+ return this._resolveLocal(this._dateTime.withNano(nanoOfSecond));
9420
+ };
9421
+
9422
+ _proto.truncatedTo = function truncatedTo(unit) {
9423
+ return this._resolveLocal(this._dateTime.truncatedTo(unit));
9424
+ };
9425
+
9426
+ _proto.plusAmount = function plusAmount(amount) {
9427
+ requireNonNull(amount);
9428
+ return amount.addTo(this);
9429
+ };
9430
+
9431
+ _proto.plusAmountUnit = function plusAmountUnit(amountToAdd, unit) {
9432
+ if (unit instanceof ChronoUnit) {
9433
+ if (unit.isDateBased()) {
9434
+ return this._resolveLocal(this._dateTime.plus(amountToAdd, unit));
9435
+ } else {
9436
+ return this._resolveInstant(this._dateTime.plus(amountToAdd, unit));
9437
+ }
9438
+ }
9439
+
9440
+ requireNonNull(unit, 'unit');
9441
+ return unit.addTo(this, amountToAdd);
9442
+ };
9443
+
9444
+ _proto.plusYears = function plusYears(years) {
9445
+ return this._resolveLocal(this._dateTime.plusYears(years));
9446
+ };
9447
+
9448
+ _proto.plusMonths = function plusMonths(months) {
9449
+ return this._resolveLocal(this._dateTime.plusMonths(months));
9450
+ };
9451
+
9452
+ _proto.plusWeeks = function plusWeeks(weeks) {
9453
+ return this._resolveLocal(this._dateTime.plusWeeks(weeks));
9454
+ };
9455
+
9456
+ _proto.plusDays = function plusDays(days) {
9457
+ return this._resolveLocal(this._dateTime.plusDays(days));
9458
+ };
9459
+
9460
+ _proto.plusHours = function plusHours(hours) {
9461
+ return this._resolveInstant(this._dateTime.plusHours(hours));
9462
+ };
9463
+
9464
+ _proto.plusMinutes = function plusMinutes(minutes) {
9465
+ return this._resolveInstant(this._dateTime.plusMinutes(minutes));
9466
+ };
9467
+
9468
+ _proto.plusSeconds = function plusSeconds(seconds) {
9469
+ return this._resolveInstant(this._dateTime.plusSeconds(seconds));
9470
+ };
9471
+
9472
+ _proto.plusNanos = function plusNanos(nanos) {
9473
+ return this._resolveInstant(this._dateTime.plusNanos(nanos));
9474
+ };
9475
+
9476
+ _proto.minusAmount = function minusAmount(amount) {
9477
+ requireNonNull(amount, 'amount');
9478
+ return amount.subtractFrom(this);
9479
+ };
9480
+
9481
+ _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
9482
+ return this.plusAmountUnit(-1 * amountToSubtract, unit);
9483
+ };
9484
+
9485
+ _proto.minusYears = function minusYears(years) {
9486
+ return this.plusYears(-1 * years);
9487
+ };
9488
+
9489
+ _proto.minusMonths = function minusMonths(months) {
9490
+ return this.plusMonths(-1 * months);
9491
+ };
9492
+
9493
+ _proto.minusWeeks = function minusWeeks(weeks) {
9494
+ return this.plusWeeks(-1 * weeks);
9495
+ };
9496
+
9497
+ _proto.minusDays = function minusDays(days) {
9498
+ return this.plusDays(-1 * days);
9499
+ };
9500
+
9501
+ _proto.minusHours = function minusHours(hours) {
9502
+ return this.plusHours(-1 * hours);
9503
+ };
9504
+
9505
+ _proto.minusMinutes = function minusMinutes(minutes) {
9506
+ return this.plusMinutes(-1 * minutes);
9507
+ };
9508
+
9509
+ _proto.minusSeconds = function minusSeconds(seconds) {
9510
+ return this.plusSeconds(-1 * seconds);
9511
+ };
9512
+
9513
+ _proto.minusNanos = function minusNanos(nanos) {
9514
+ return this.plusNanos(-1 * nanos);
9515
+ };
9516
+
9517
+ _proto.query = function query(_query) {
9518
+ if (_query === TemporalQueries.localDate()) {
9519
+ return this.toLocalDate();
9520
+ }
9521
+
9522
+ requireNonNull(_query, 'query');
9523
+ return _ChronoZonedDateTime.prototype.query.call(this, _query);
9524
+ };
9525
+
9526
+ _proto.until = function until(endExclusive, unit) {
9527
+ var end = ZonedDateTime.from(endExclusive);
9528
+
9529
+ if (unit instanceof ChronoUnit) {
9530
+ end = end.withZoneSameInstant(this._zone);
9531
+
9532
+ if (unit.isDateBased()) {
9533
+ return this._dateTime.until(end._dateTime, unit);
9534
+ } else {
9535
+ var difference = this._offset.totalSeconds() - end._offset.totalSeconds();
9536
+
9537
+ var adjustedEnd = end._dateTime.plusSeconds(difference);
9538
+
9539
+ return this._dateTime.until(adjustedEnd, unit);
9540
+ }
9541
+ }
9542
+
9543
+ return unit.between(this, end);
9544
+ };
9545
+
9546
+ _proto.toLocalDateTime = function toLocalDateTime() {
9547
+ return this._dateTime;
9548
+ };
9549
+
9550
+ _proto.toLocalDate = function toLocalDate() {
9551
+ return this._dateTime.toLocalDate();
9552
+ };
9553
+
9554
+ _proto.toLocalTime = function toLocalTime() {
9555
+ return this._dateTime.toLocalTime();
9556
+ };
9557
+
9558
+ _proto.toOffsetDateTime = function toOffsetDateTime() {
9559
+ return OffsetDateTime.of(this._dateTime, this._offset);
9560
+ };
9561
+
9562
+ _proto.equals = function equals(other) {
9563
+ if (this === other) {
9564
+ return true;
9565
+ }
9566
+
9567
+ if (other instanceof ZonedDateTime) {
9568
+ return this._dateTime.equals(other._dateTime) && this._offset.equals(other._offset) && this._zone.equals(other._zone);
9569
+ }
9570
+
9571
+ return false;
9572
+ };
9573
+
9574
+ _proto.hashCode = function hashCode() {
9575
+ return MathUtil.hashCode(this._dateTime.hashCode(), this._offset.hashCode(), this._zone.hashCode());
9576
+ };
9577
+
9578
+ _proto.toString = function toString() {
9579
+ var str = this._dateTime.toString() + this._offset.toString();
9580
+
9581
+ if (this._offset !== this._zone) {
9582
+ str += '[' + this._zone.toString() + ']';
9583
+ }
9584
+
9585
+ return str;
9586
+ };
9587
+
9588
+ _proto.toJSON = function toJSON() {
9589
+ return this.toString();
9590
+ };
9591
+
9592
+ _proto.format = function format(formatter) {
9593
+ return _ChronoZonedDateTime.prototype.format.call(this, formatter);
8551
9594
  };
8552
9595
 
8553
- ZonedDateTime.ofStrict = function ofStrict(localDateTime, offset, zone) {
8554
- requireNonNull(localDateTime, 'localDateTime');
8555
- requireNonNull(offset, 'offset');
8556
- requireNonNull(zone, 'zone');
8557
- var rules = zone.rules();
9596
+ return ZonedDateTime;
9597
+ }(ChronoZonedDateTime);
9598
+ function _init$g() {
9599
+ ZonedDateTime.FROM = createTemporalQuery('ZonedDateTime.FROM', function (temporal) {
9600
+ return ZonedDateTime.from(temporal);
9601
+ });
9602
+ }
8558
9603
 
8559
- if (rules.isValidOffset(localDateTime, offset) === false) {
8560
- var trans = rules.transition(localDateTime);
9604
+ var OffsetDateTime = function (_DefaultInterfaceTemp) {
9605
+ _inheritsLoose(OffsetDateTime, _DefaultInterfaceTemp);
8561
9606
 
8562
- if (trans != null && trans.isGap()) {
8563
- throw new DateTimeException('LocalDateTime ' + localDateTime + ' does not exist in zone ' + zone + ' due to a gap in the local time-line, typically caused by daylight savings');
8564
- }
9607
+ OffsetDateTime.from = function from(temporal) {
9608
+ requireNonNull(temporal, 'temporal');
8565
9609
 
8566
- throw new DateTimeException('ZoneOffset "' + offset + '" is not valid for LocalDateTime "' + localDateTime + '" in zone "' + zone + '"');
9610
+ if (temporal instanceof OffsetDateTime) {
9611
+ return temporal;
8567
9612
  }
8568
9613
 
8569
- return new ZonedDateTime(localDateTime, offset, zone);
9614
+ try {
9615
+ var offset = ZoneOffset.from(temporal);
9616
+
9617
+ try {
9618
+ var ldt = LocalDateTime.from(temporal);
9619
+ return OffsetDateTime.of(ldt, offset);
9620
+ } catch (_) {
9621
+ var instant = Instant.from(temporal);
9622
+ return OffsetDateTime.ofInstant(instant, offset);
9623
+ }
9624
+ } catch (ex) {
9625
+ throw new DateTimeException("Unable to obtain OffsetDateTime TemporalAccessor: " + temporal + ", type " + (temporal.constructor != null ? temporal.constructor.name : ''));
9626
+ }
8570
9627
  };
8571
9628
 
8572
- ZonedDateTime.ofLenient = function ofLenient(localDateTime, offset, zone) {
8573
- requireNonNull(localDateTime, 'localDateTime');
8574
- requireNonNull(offset, 'offset');
8575
- requireNonNull(zone, 'zone');
9629
+ OffsetDateTime.now = function now(clockOrZone) {
9630
+ if (arguments.length === 0) {
9631
+ return OffsetDateTime.now(Clock.systemDefaultZone());
9632
+ } else {
9633
+ requireNonNull(clockOrZone, 'clockOrZone');
8576
9634
 
8577
- if (zone instanceof ZoneOffset && offset.equals(zone) === false) {
8578
- throw new IllegalArgumentException('ZoneId must match ZoneOffset');
9635
+ if (clockOrZone instanceof ZoneId) {
9636
+ return OffsetDateTime.now(Clock.system(clockOrZone));
9637
+ } else if (clockOrZone instanceof Clock) {
9638
+ var now = clockOrZone.instant();
9639
+ return OffsetDateTime.ofInstant(now, clockOrZone.zone().rules().offset(now));
9640
+ } else {
9641
+ throw new IllegalArgumentException('clockOrZone must be an instance of ZoneId or Clock');
9642
+ }
8579
9643
  }
8580
-
8581
- return new ZonedDateTime(localDateTime, offset, zone);
8582
9644
  };
8583
9645
 
8584
- ZonedDateTime.from = function from(temporal) {
8585
- requireNonNull(temporal, 'temporal');
8586
-
8587
- if (temporal instanceof ZonedDateTime) {
8588
- return temporal;
9646
+ OffsetDateTime.of = function of() {
9647
+ if (arguments.length <= 2) {
9648
+ return OffsetDateTime.ofDateTime.apply(this, arguments);
9649
+ } else if (arguments.length === 3) {
9650
+ return OffsetDateTime.ofDateAndTime.apply(this, arguments);
9651
+ } else {
9652
+ return OffsetDateTime.ofNumbers.apply(this, arguments);
8589
9653
  }
9654
+ };
8590
9655
 
8591
- var zone = ZoneId.from(temporal);
9656
+ OffsetDateTime.ofDateTime = function ofDateTime(dateTime, offset) {
9657
+ return new OffsetDateTime(dateTime, offset);
9658
+ };
8592
9659
 
8593
- if (temporal.isSupported(ChronoField.INSTANT_SECONDS)) {
8594
- var zdt = ZonedDateTime._from(temporal, zone);
9660
+ OffsetDateTime.ofDateAndTime = function ofDateAndTime(date, time, offset) {
9661
+ var dt = LocalDateTime.of(date, time);
9662
+ return new OffsetDateTime(dt, offset);
9663
+ };
8595
9664
 
8596
- if (zdt != null) return zdt;
9665
+ OffsetDateTime.ofNumbers = function ofNumbers(year, month, dayOfMonth, hour, minute, second, nanoOfSecond, offset) {
9666
+ if (hour === void 0) {
9667
+ hour = 0;
8597
9668
  }
8598
9669
 
8599
- var ldt = LocalDateTime.from(temporal);
8600
- return ZonedDateTime.of2(ldt, zone);
8601
- };
9670
+ if (minute === void 0) {
9671
+ minute = 0;
9672
+ }
8602
9673
 
8603
- ZonedDateTime._from = function _from(temporal, zone) {
8604
- try {
8605
- return ZonedDateTime.__from(temporal, zone);
8606
- } catch (ex) {
8607
- if (!(ex instanceof DateTimeException)) throw ex;
9674
+ if (second === void 0) {
9675
+ second = 0;
9676
+ }
9677
+
9678
+ if (nanoOfSecond === void 0) {
9679
+ nanoOfSecond = 0;
8608
9680
  }
9681
+
9682
+ var dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond);
9683
+ return new OffsetDateTime(dt, offset);
8609
9684
  };
8610
9685
 
8611
- ZonedDateTime.__from = function __from(temporal, zone) {
8612
- var epochSecond = temporal.getLong(ChronoField.INSTANT_SECONDS);
8613
- var nanoOfSecond = temporal.get(ChronoField.NANO_OF_SECOND);
8614
- return ZonedDateTime._create(epochSecond, nanoOfSecond, zone);
9686
+ OffsetDateTime.ofInstant = function ofInstant(instant, zone) {
9687
+ requireNonNull(instant, 'instant');
9688
+ requireNonNull(zone, 'zone');
9689
+ var rules = zone.rules();
9690
+ var offset = rules.offset(instant);
9691
+ var ldt = LocalDateTime.ofEpochSecond(instant.epochSecond(), instant.nano(), offset);
9692
+ return new OffsetDateTime(ldt, offset);
8615
9693
  };
8616
9694
 
8617
- ZonedDateTime.parse = function parse(text, formatter) {
9695
+ OffsetDateTime.parse = function parse(text, formatter) {
8618
9696
  if (formatter === void 0) {
8619
- formatter = DateTimeFormatter.ISO_ZONED_DATE_TIME;
9697
+ formatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
8620
9698
  }
8621
9699
 
8622
9700
  requireNonNull(formatter, 'formatter');
8623
- return formatter.parse(text, ZonedDateTime.FROM);
9701
+ return formatter.parse(text, OffsetDateTime.FROM);
8624
9702
  };
8625
9703
 
8626
- function ZonedDateTime(dateTime, offset, zone) {
9704
+ function OffsetDateTime(dateTime, offset) {
8627
9705
  var _this;
8628
9706
 
9707
+ _this = _DefaultInterfaceTemp.call(this) || this;
8629
9708
  requireNonNull(dateTime, 'dateTime');
9709
+ requireInstance(dateTime, LocalDateTime, 'dateTime');
8630
9710
  requireNonNull(offset, 'offset');
8631
- requireNonNull(zone, 'zone');
8632
- _this = _ChronoZonedDateTime.call(this) || this;
9711
+ requireInstance(offset, ZoneOffset, 'offset');
8633
9712
  _this._dateTime = dateTime;
8634
9713
  _this._offset = offset;
8635
- _this._zone = zone;
8636
9714
  return _this;
8637
9715
  }
8638
9716
 
8639
- var _proto = ZonedDateTime.prototype;
9717
+ var _proto = OffsetDateTime.prototype;
8640
9718
 
8641
- _proto._resolveLocal = function _resolveLocal(newDateTime) {
8642
- requireNonNull(newDateTime, 'newDateTime');
8643
- return ZonedDateTime.ofLocal(newDateTime, this._zone, this._offset);
9719
+ _proto.adjustInto = function adjustInto(temporal) {
9720
+ return temporal.with(ChronoField.EPOCH_DAY, this.toLocalDate().toEpochDay()).with(ChronoField.NANO_OF_DAY, this.toLocalTime().toNanoOfDay()).with(ChronoField.OFFSET_SECONDS, this.offset().totalSeconds());
8644
9721
  };
8645
9722
 
8646
- _proto._resolveInstant = function _resolveInstant(newDateTime) {
8647
- return ZonedDateTime.ofInstant3(newDateTime, this._offset, this._zone);
8648
- };
9723
+ _proto.until = function until(endExclusive, unit) {
9724
+ var end = OffsetDateTime.from(endExclusive);
8649
9725
 
8650
- _proto._resolveOffset = function _resolveOffset(offset) {
8651
- if (offset.equals(this._offset) === false && this._zone.rules().isValidOffset(this._dateTime, offset)) {
8652
- return new ZonedDateTime(this._dateTime, offset, this._zone);
9726
+ if (unit instanceof ChronoUnit) {
9727
+ end = end.withOffsetSameInstant(this._offset);
9728
+ return this._dateTime.until(end._dateTime, unit);
8653
9729
  }
8654
9730
 
8655
- return this;
9731
+ return unit.between(this, end);
8656
9732
  };
8657
9733
 
8658
- _proto.isSupported = function isSupported(fieldOrUnit) {
8659
- if (fieldOrUnit instanceof ChronoField) {
8660
- return true;
8661
- } else if (fieldOrUnit instanceof ChronoUnit) {
8662
- return fieldOrUnit.isDateBased() || fieldOrUnit.isTimeBased();
8663
- }
9734
+ _proto.atZoneSameInstant = function atZoneSameInstant(zone) {
9735
+ return ZonedDateTime.ofInstant(this._dateTime, this._offset, zone);
9736
+ };
8664
9737
 
8665
- return fieldOrUnit != null && fieldOrUnit.isSupportedBy(this);
9738
+ _proto.atZoneSimilarLocal = function atZoneSimilarLocal(zone) {
9739
+ return ZonedDateTime.ofLocal(this._dateTime, zone, this._offset);
8666
9740
  };
8667
9741
 
8668
- _proto.range = function range(field) {
8669
- if (field instanceof ChronoField) {
8670
- if (field === ChronoField.INSTANT_SECONDS || field === ChronoField.OFFSET_SECONDS) {
8671
- return field.range();
8672
- }
9742
+ _proto.query = function query(_query) {
9743
+ requireNonNull(_query, 'query');
8673
9744
 
8674
- return this._dateTime.range(field);
9745
+ if (_query === TemporalQueries.chronology()) {
9746
+ return IsoChronology.INSTANCE;
9747
+ } else if (_query === TemporalQueries.precision()) {
9748
+ return ChronoUnit.NANOS;
9749
+ } else if (_query === TemporalQueries.offset() || _query === TemporalQueries.zone()) {
9750
+ return this.offset();
9751
+ } else if (_query === TemporalQueries.localDate()) {
9752
+ return this.toLocalDate();
9753
+ } else if (_query === TemporalQueries.localTime()) {
9754
+ return this.toLocalTime();
9755
+ } else if (_query === TemporalQueries.zoneId()) {
9756
+ return null;
8675
9757
  }
8676
9758
 
8677
- return field.rangeRefinedBy(this);
9759
+ return _DefaultInterfaceTemp.prototype.query.call(this, _query);
8678
9760
  };
8679
9761
 
8680
9762
  _proto.get = function get(field) {
8681
- return this.getLong(field);
9763
+ if (field instanceof ChronoField) {
9764
+ switch (field) {
9765
+ case ChronoField.INSTANT_SECONDS:
9766
+ throw new DateTimeException('Field too large for an int: ' + field);
9767
+
9768
+ case ChronoField.OFFSET_SECONDS:
9769
+ return this.offset().totalSeconds();
9770
+ }
9771
+
9772
+ return this._dateTime.get(field);
9773
+ }
9774
+
9775
+ return _DefaultInterfaceTemp.prototype.get.call(this, field);
8682
9776
  };
8683
9777
 
8684
9778
  _proto.getLong = function getLong(field) {
@@ -8688,13 +9782,12 @@
8688
9782
  return this.toEpochSecond();
8689
9783
 
8690
9784
  case ChronoField.OFFSET_SECONDS:
8691
- return this._offset.totalSeconds();
9785
+ return this.offset().totalSeconds();
8692
9786
  }
8693
9787
 
8694
9788
  return this._dateTime.getLong(field);
8695
9789
  }
8696
9790
 
8697
- requireNonNull(field, 'field');
8698
9791
  return field.getFrom(this);
8699
9792
  };
8700
9793
 
@@ -8702,52 +9795,6 @@
8702
9795
  return this._offset;
8703
9796
  };
8704
9797
 
8705
- _proto.withEarlierOffsetAtOverlap = function withEarlierOffsetAtOverlap() {
8706
- var trans = this._zone.rules().transition(this._dateTime);
8707
-
8708
- if (trans != null && trans.isOverlap()) {
8709
- var earlierOffset = trans.offsetBefore();
8710
-
8711
- if (earlierOffset.equals(this._offset) === false) {
8712
- return new ZonedDateTime(this._dateTime, earlierOffset, this._zone);
8713
- }
8714
- }
8715
-
8716
- return this;
8717
- };
8718
-
8719
- _proto.withLaterOffsetAtOverlap = function withLaterOffsetAtOverlap() {
8720
- var trans = this._zone.rules().transition(this.toLocalDateTime());
8721
-
8722
- if (trans != null) {
8723
- var laterOffset = trans.offsetAfter();
8724
-
8725
- if (laterOffset.equals(this._offset) === false) {
8726
- return new ZonedDateTime(this._dateTime, laterOffset, this._zone);
8727
- }
8728
- }
8729
-
8730
- return this;
8731
- };
8732
-
8733
- _proto.zone = function zone() {
8734
- return this._zone;
8735
- };
8736
-
8737
- _proto.withZoneSameLocal = function withZoneSameLocal(zone) {
8738
- requireNonNull(zone, 'zone');
8739
- return this._zone.equals(zone) ? this : ZonedDateTime.ofLocal(this._dateTime, zone, this._offset);
8740
- };
8741
-
8742
- _proto.withZoneSameInstant = function withZoneSameInstant(zone) {
8743
- requireNonNull(zone, 'zone');
8744
- return this._zone.equals(zone) ? this : ZonedDateTime._create(this._dateTime.toEpochSecond(this._offset), this._dateTime.nano(), zone);
8745
- };
8746
-
8747
- _proto.withFixedOffsetZone = function withFixedOffsetZone() {
8748
- return this._zone.equals(this._offset) ? this : new ZonedDateTime(this._dateTime, this._offset, this._offset);
8749
- };
8750
-
8751
9798
  _proto.year = function year() {
8752
9799
  return this._dateTime.year();
8753
9800
  };
@@ -8788,233 +9835,283 @@
8788
9835
  return this._dateTime.nano();
8789
9836
  };
8790
9837
 
8791
- _proto.with = function _with() {
8792
- if (arguments.length === 1) {
8793
- return this.withTemporalAdjuster.apply(this, arguments);
8794
- } else {
8795
- return this.with2.apply(this, arguments);
9838
+ _proto.toLocalDateTime = function toLocalDateTime() {
9839
+ return this._dateTime;
9840
+ };
9841
+
9842
+ _proto.toLocalDate = function toLocalDate() {
9843
+ return this._dateTime.toLocalDate();
9844
+ };
9845
+
9846
+ _proto.toLocalTime = function toLocalTime() {
9847
+ return this._dateTime.toLocalTime();
9848
+ };
9849
+
9850
+ _proto.toOffsetTime = function toOffsetTime() {
9851
+ return OffsetTime.of(this._dateTime.toLocalTime(), this._offset);
9852
+ };
9853
+
9854
+ _proto.toZonedDateTime = function toZonedDateTime() {
9855
+ return ZonedDateTime.of(this._dateTime, this._offset);
9856
+ };
9857
+
9858
+ _proto.toInstant = function toInstant() {
9859
+ return this._dateTime.toInstant(this._offset);
9860
+ };
9861
+
9862
+ _proto.toEpochSecond = function toEpochSecond() {
9863
+ return this._dateTime.toEpochSecond(this._offset);
9864
+ };
9865
+
9866
+ _proto.isSupported = function isSupported(fieldOrUnit) {
9867
+ if (fieldOrUnit instanceof ChronoField) {
9868
+ return fieldOrUnit.isDateBased() || fieldOrUnit.isTimeBased();
9869
+ }
9870
+
9871
+ if (fieldOrUnit instanceof ChronoUnit) {
9872
+ return fieldOrUnit.isDateBased() || fieldOrUnit.isTimeBased();
8796
9873
  }
9874
+
9875
+ return fieldOrUnit != null && fieldOrUnit.isSupportedBy(this);
8797
9876
  };
8798
9877
 
8799
- _proto.withTemporalAdjuster = function withTemporalAdjuster(adjuster) {
8800
- if (adjuster instanceof LocalDate) {
8801
- return this._resolveLocal(LocalDateTime.of(adjuster, this._dateTime.toLocalTime()));
8802
- } else if (adjuster instanceof LocalTime) {
8803
- return this._resolveLocal(LocalDateTime.of(this._dateTime.toLocalDate(), adjuster));
8804
- } else if (adjuster instanceof LocalDateTime) {
8805
- return this._resolveLocal(adjuster);
9878
+ _proto.range = function range(field) {
9879
+ if (field instanceof ChronoField) {
9880
+ if (field === ChronoField.INSTANT_SECONDS || field === ChronoField.OFFSET_SECONDS) {
9881
+ return field.range();
9882
+ }
9883
+
9884
+ return this._dateTime.range(field);
9885
+ }
9886
+
9887
+ return field.rangeRefinedBy(this);
9888
+ };
9889
+
9890
+ _proto.withAdjuster = function withAdjuster(adjuster) {
9891
+ requireNonNull(adjuster);
9892
+
9893
+ if (adjuster instanceof LocalDate || adjuster instanceof LocalTime || adjuster instanceof LocalDateTime) {
9894
+ return this._withDateTimeOffset(this._dateTime.with(adjuster), this._offset);
8806
9895
  } else if (adjuster instanceof Instant) {
8807
- var instant = adjuster;
8808
- return ZonedDateTime._create(instant.epochSecond(), instant.nano(), this._zone);
9896
+ return OffsetDateTime.ofInstant(adjuster, this._offset);
8809
9897
  } else if (adjuster instanceof ZoneOffset) {
8810
- return this._resolveOffset(adjuster);
9898
+ return this._withDateTimeOffset(this._dateTime, adjuster);
9899
+ } else if (adjuster instanceof OffsetDateTime) {
9900
+ return adjuster;
8811
9901
  }
8812
9902
 
8813
- requireNonNull(adjuster, 'adjuster');
8814
9903
  return adjuster.adjustInto(this);
8815
9904
  };
8816
9905
 
8817
- _proto.with2 = function with2(field, newValue) {
9906
+ _proto.withFieldValue = function withFieldValue(field, newValue) {
9907
+ requireNonNull(field);
9908
+
8818
9909
  if (field instanceof ChronoField) {
8819
- switch (field) {
9910
+ var f = field;
9911
+
9912
+ switch (f) {
8820
9913
  case ChronoField.INSTANT_SECONDS:
8821
- return ZonedDateTime._create(newValue, this.nano(), this._zone);
9914
+ return OffsetDateTime.ofInstant(Instant.ofEpochSecond(newValue, this.nano()), this._offset);
8822
9915
 
8823
9916
  case ChronoField.OFFSET_SECONDS:
8824
9917
  {
8825
- var offset = ZoneOffset.ofTotalSeconds(field.checkValidIntValue(newValue));
8826
- return this._resolveOffset(offset);
9918
+ return this._withDateTimeOffset(this._dateTime, ZoneOffset.ofTotalSeconds(f.checkValidIntValue(newValue)));
8827
9919
  }
8828
9920
  }
8829
9921
 
8830
- return this._resolveLocal(this._dateTime.with(field, newValue));
9922
+ return this._withDateTimeOffset(this._dateTime.with(field, newValue), this._offset);
8831
9923
  }
8832
9924
 
8833
9925
  return field.adjustInto(this, newValue);
8834
9926
  };
8835
9927
 
9928
+ _proto._withDateTimeOffset = function _withDateTimeOffset(dateTime, offset) {
9929
+ if (this._dateTime === dateTime && this._offset.equals(offset)) {
9930
+ return this;
9931
+ }
9932
+
9933
+ return new OffsetDateTime(dateTime, offset);
9934
+ };
9935
+
8836
9936
  _proto.withYear = function withYear(year) {
8837
- return this._resolveLocal(this._dateTime.withYear(year));
9937
+ return this._withDateTimeOffset(this._dateTime.withYear(year), this._offset);
8838
9938
  };
8839
9939
 
8840
9940
  _proto.withMonth = function withMonth(month) {
8841
- return this._resolveLocal(this._dateTime.withMonth(month));
9941
+ return this._withDateTimeOffset(this._dateTime.withMonth(month), this._offset);
8842
9942
  };
8843
9943
 
8844
9944
  _proto.withDayOfMonth = function withDayOfMonth(dayOfMonth) {
8845
- return this._resolveLocal(this._dateTime.withDayOfMonth(dayOfMonth));
9945
+ return this._withDateTimeOffset(this._dateTime.withDayOfMonth(dayOfMonth), this._offset);
8846
9946
  };
8847
9947
 
8848
9948
  _proto.withDayOfYear = function withDayOfYear(dayOfYear) {
8849
- return this._resolveLocal(this._dateTime.withDayOfYear(dayOfYear));
9949
+ return this._withDateTimeOffset(this._dateTime.withDayOfYear(dayOfYear), this._offset);
8850
9950
  };
8851
9951
 
8852
9952
  _proto.withHour = function withHour(hour) {
8853
- return this._resolveLocal(this._dateTime.withHour(hour));
9953
+ return this._withDateTimeOffset(this._dateTime.withHour(hour), this._offset);
8854
9954
  };
8855
9955
 
8856
9956
  _proto.withMinute = function withMinute(minute) {
8857
- return this._resolveLocal(this._dateTime.withMinute(minute));
9957
+ return this._withDateTimeOffset(this._dateTime.withMinute(minute), this._offset);
8858
9958
  };
8859
9959
 
8860
9960
  _proto.withSecond = function withSecond(second) {
8861
- return this._resolveLocal(this._dateTime.withSecond(second));
9961
+ return this._withDateTimeOffset(this._dateTime.withSecond(second), this._offset);
8862
9962
  };
8863
9963
 
8864
9964
  _proto.withNano = function withNano(nanoOfSecond) {
8865
- return this._resolveLocal(this._dateTime.withNano(nanoOfSecond));
9965
+ return this._withDateTimeOffset(this._dateTime.withNano(nanoOfSecond), this._offset);
8866
9966
  };
8867
9967
 
8868
- _proto.truncatedTo = function truncatedTo(unit) {
8869
- return this._resolveLocal(this._dateTime.truncatedTo(unit));
9968
+ _proto.withOffsetSameLocal = function withOffsetSameLocal(offset) {
9969
+ requireNonNull(offset, 'offset');
9970
+ return this._withDateTimeOffset(this._dateTime, offset);
8870
9971
  };
8871
9972
 
8872
- _proto.plus = function plus() {
8873
- if (arguments.length === 1) {
8874
- return this.plusTemporalAmount.apply(this, arguments);
8875
- } else {
8876
- return this.plus2.apply(this, arguments);
9973
+ _proto.withOffsetSameInstant = function withOffsetSameInstant(offset) {
9974
+ requireNonNull(offset, 'offset');
9975
+
9976
+ if (offset.equals(this._offset)) {
9977
+ return this;
8877
9978
  }
9979
+
9980
+ var difference = offset.totalSeconds() - this._offset.totalSeconds();
9981
+
9982
+ var adjusted = this._dateTime.plusSeconds(difference);
9983
+
9984
+ return new OffsetDateTime(adjusted, offset);
8878
9985
  };
8879
9986
 
8880
- _proto.plusTemporalAmount = function plusTemporalAmount(amount) {
8881
- requireNonNull(amount);
9987
+ _proto.truncatedTo = function truncatedTo(unit) {
9988
+ return this._withDateTimeOffset(this._dateTime.truncatedTo(unit), this._offset);
9989
+ };
9990
+
9991
+ _proto.plusAmount = function plusAmount(amount) {
9992
+ requireNonNull(amount, 'amount');
8882
9993
  return amount.addTo(this);
8883
9994
  };
8884
9995
 
8885
- _proto.plus2 = function plus2(amountToAdd, unit) {
9996
+ _proto.plusAmountUnit = function plusAmountUnit(amountToAdd, unit) {
8886
9997
  if (unit instanceof ChronoUnit) {
8887
- if (unit.isDateBased()) {
8888
- return this._resolveLocal(this._dateTime.plus(amountToAdd, unit));
8889
- } else {
8890
- return this._resolveInstant(this._dateTime.plus(amountToAdd, unit));
8891
- }
9998
+ return this._withDateTimeOffset(this._dateTime.plus(amountToAdd, unit), this._offset);
8892
9999
  }
8893
10000
 
8894
- requireNonNull(unit, 'unit');
8895
10001
  return unit.addTo(this, amountToAdd);
8896
10002
  };
8897
10003
 
8898
10004
  _proto.plusYears = function plusYears(years) {
8899
- return this._resolveLocal(this._dateTime.plusYears(years));
10005
+ return this._withDateTimeOffset(this._dateTime.plusYears(years), this._offset);
8900
10006
  };
8901
10007
 
8902
10008
  _proto.plusMonths = function plusMonths(months) {
8903
- return this._resolveLocal(this._dateTime.plusMonths(months));
10009
+ return this._withDateTimeOffset(this._dateTime.plusMonths(months), this._offset);
8904
10010
  };
8905
10011
 
8906
10012
  _proto.plusWeeks = function plusWeeks(weeks) {
8907
- return this._resolveLocal(this._dateTime.plusWeeks(weeks));
10013
+ return this._withDateTimeOffset(this._dateTime.plusWeeks(weeks), this._offset);
8908
10014
  };
8909
10015
 
8910
10016
  _proto.plusDays = function plusDays(days) {
8911
- return this._resolveLocal(this._dateTime.plusDays(days));
10017
+ return this._withDateTimeOffset(this._dateTime.plusDays(days), this._offset);
8912
10018
  };
8913
10019
 
8914
10020
  _proto.plusHours = function plusHours(hours) {
8915
- return this._resolveInstant(this._dateTime.plusHours(hours));
10021
+ return this._withDateTimeOffset(this._dateTime.plusHours(hours), this._offset);
8916
10022
  };
8917
10023
 
8918
10024
  _proto.plusMinutes = function plusMinutes(minutes) {
8919
- return this._resolveInstant(this._dateTime.plusMinutes(minutes));
10025
+ return this._withDateTimeOffset(this._dateTime.plusMinutes(minutes), this._offset);
8920
10026
  };
8921
10027
 
8922
10028
  _proto.plusSeconds = function plusSeconds(seconds) {
8923
- return this._resolveInstant(this._dateTime.plusSeconds(seconds));
10029
+ return this._withDateTimeOffset(this._dateTime.plusSeconds(seconds), this._offset);
8924
10030
  };
8925
10031
 
8926
10032
  _proto.plusNanos = function plusNanos(nanos) {
8927
- return this._resolveInstant(this._dateTime.plusNanos(nanos));
10033
+ return this._withDateTimeOffset(this._dateTime.plusNanos(nanos), this._offset);
8928
10034
  };
8929
10035
 
8930
- _proto.minus = function minus() {
8931
- if (arguments.length === 1) {
8932
- return this.minusTemporalAmount.apply(this, arguments);
8933
- } else {
8934
- return this.minus2.apply(this, arguments);
8935
- }
8936
- };
8937
-
8938
- _proto.minusTemporalAmount = function minusTemporalAmount(amount) {
8939
- requireNonNull(amount, 'amount');
10036
+ _proto.minusAmount = function minusAmount(amount) {
10037
+ requireNonNull(amount);
8940
10038
  return amount.subtractFrom(this);
8941
10039
  };
8942
10040
 
8943
- _proto.minus2 = function minus2(amountToSubtract, unit) {
8944
- return this.plus2(-1 * amountToSubtract, unit);
10041
+ _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
10042
+ return this.plus(-1 * amountToSubtract, unit);
8945
10043
  };
8946
10044
 
8947
10045
  _proto.minusYears = function minusYears(years) {
8948
- return this.plusYears(-1 * years);
10046
+ return this._withDateTimeOffset(this._dateTime.minusYears(years), this._offset);
8949
10047
  };
8950
10048
 
8951
10049
  _proto.minusMonths = function minusMonths(months) {
8952
- return this.plusMonths(-1 * months);
10050
+ return this._withDateTimeOffset(this._dateTime.minusMonths(months), this._offset);
8953
10051
  };
8954
10052
 
8955
10053
  _proto.minusWeeks = function minusWeeks(weeks) {
8956
- return this.plusWeeks(-1 * weeks);
10054
+ return this._withDateTimeOffset(this._dateTime.minusWeeks(weeks), this._offset);
8957
10055
  };
8958
10056
 
8959
10057
  _proto.minusDays = function minusDays(days) {
8960
- return this.plusDays(-1 * days);
10058
+ return this._withDateTimeOffset(this._dateTime.minusDays(days), this._offset);
8961
10059
  };
8962
10060
 
8963
10061
  _proto.minusHours = function minusHours(hours) {
8964
- return this.plusHours(-1 * hours);
10062
+ return this._withDateTimeOffset(this._dateTime.minusHours(hours), this._offset);
8965
10063
  };
8966
10064
 
8967
10065
  _proto.minusMinutes = function minusMinutes(minutes) {
8968
- return this.plusMinutes(-1 * minutes);
10066
+ return this._withDateTimeOffset(this._dateTime.minusMinutes(minutes), this._offset);
8969
10067
  };
8970
10068
 
8971
10069
  _proto.minusSeconds = function minusSeconds(seconds) {
8972
- return this.plusSeconds(-1 * seconds);
10070
+ return this._withDateTimeOffset(this._dateTime.minusSeconds(seconds), this._offset);
8973
10071
  };
8974
10072
 
8975
10073
  _proto.minusNanos = function minusNanos(nanos) {
8976
- return this.plusNanos(-1 * nanos);
8977
- };
8978
-
8979
- _proto.query = function query(_query) {
8980
- if (_query === TemporalQueries.localDate()) {
8981
- return this.toLocalDate();
8982
- }
8983
-
8984
- requireNonNull(_query, 'query');
8985
- return _ChronoZonedDateTime.prototype.query.call(this, _query);
10074
+ return this._withDateTimeOffset(this._dateTime.minusNanos(nanos), this._offset);
8986
10075
  };
8987
10076
 
8988
- _proto.until = function until(endExclusive, unit) {
8989
- var end = ZonedDateTime.from(endExclusive);
10077
+ _proto.compareTo = function compareTo(other) {
10078
+ requireNonNull(other, 'other');
10079
+ requireInstance(other, OffsetDateTime, 'other');
8990
10080
 
8991
- if (unit instanceof ChronoUnit) {
8992
- end = end.withZoneSameInstant(this._zone);
10081
+ if (this.offset().equals(other.offset())) {
10082
+ return this.toLocalDateTime().compareTo(other.toLocalDateTime());
10083
+ }
8993
10084
 
8994
- if (unit.isDateBased()) {
8995
- return this._dateTime.until(end._dateTime, unit);
8996
- } else {
8997
- var difference = this._offset.totalSeconds() - end._offset.totalSeconds();
10085
+ var cmp = MathUtil.compareNumbers(this.toEpochSecond(), other.toEpochSecond());
8998
10086
 
8999
- var adjustedEnd = end._dateTime.plusSeconds(difference);
10087
+ if (cmp === 0) {
10088
+ cmp = this.toLocalTime().nano() - other.toLocalTime().nano();
9000
10089
 
9001
- return this._dateTime.until(adjustedEnd, unit);
10090
+ if (cmp === 0) {
10091
+ cmp = this.toLocalDateTime().compareTo(other.toLocalDateTime());
9002
10092
  }
9003
10093
  }
9004
10094
 
9005
- return unit.between(this, end);
10095
+ return cmp;
9006
10096
  };
9007
10097
 
9008
- _proto.toLocalDateTime = function toLocalDateTime() {
9009
- return this._dateTime;
10098
+ _proto.isAfter = function isAfter(other) {
10099
+ requireNonNull(other, 'other');
10100
+ var thisEpochSec = this.toEpochSecond();
10101
+ var otherEpochSec = other.toEpochSecond();
10102
+ return thisEpochSec > otherEpochSec || thisEpochSec === otherEpochSec && this.toLocalTime().nano() > other.toLocalTime().nano();
9010
10103
  };
9011
10104
 
9012
- _proto.toLocalDate = function toLocalDate() {
9013
- return this._dateTime.toLocalDate();
10105
+ _proto.isBefore = function isBefore(other) {
10106
+ requireNonNull(other, 'other');
10107
+ var thisEpochSec = this.toEpochSecond();
10108
+ var otherEpochSec = other.toEpochSecond();
10109
+ return thisEpochSec < otherEpochSec || thisEpochSec === otherEpochSec && this.toLocalTime().nano() < other.toLocalTime().nano();
9014
10110
  };
9015
10111
 
9016
- _proto.toLocalTime = function toLocalTime() {
9017
- return this._dateTime.toLocalTime();
10112
+ _proto.isEqual = function isEqual(other) {
10113
+ requireNonNull(other, 'other');
10114
+ return this.toEpochSecond() === other.toEpochSecond() && this.toLocalTime().nano() === other.toLocalTime().nano();
9018
10115
  };
9019
10116
 
9020
10117
  _proto.equals = function equals(other) {
@@ -9022,25 +10119,19 @@
9022
10119
  return true;
9023
10120
  }
9024
10121
 
9025
- if (other instanceof ZonedDateTime) {
9026
- return this._dateTime.equals(other._dateTime) && this._offset.equals(other._offset) && this._zone.equals(other._zone);
10122
+ if (other instanceof OffsetDateTime) {
10123
+ return this._dateTime.equals(other._dateTime) && this._offset.equals(other._offset);
9027
10124
  }
9028
10125
 
9029
10126
  return false;
9030
10127
  };
9031
10128
 
9032
10129
  _proto.hashCode = function hashCode() {
9033
- return MathUtil.hashCode(this._dateTime.hashCode(), this._offset.hashCode(), this._zone.hashCode());
10130
+ return this._dateTime.hashCode() ^ this._offset.hashCode();
9034
10131
  };
9035
10132
 
9036
10133
  _proto.toString = function toString() {
9037
- var str = this._dateTime.toString() + this._offset.toString();
9038
-
9039
- if (this._offset !== this._zone) {
9040
- str += '[' + this._zone.toString() + ']';
9041
- }
9042
-
9043
- return str;
10134
+ return this._dateTime.toString() + this._offset.toString();
9044
10135
  };
9045
10136
 
9046
10137
  _proto.toJSON = function toJSON() {
@@ -9048,14 +10139,17 @@
9048
10139
  };
9049
10140
 
9050
10141
  _proto.format = function format(formatter) {
9051
- return _ChronoZonedDateTime.prototype.format.call(this, formatter);
10142
+ requireNonNull(formatter, 'formatter');
10143
+ return formatter.format(this);
9052
10144
  };
9053
10145
 
9054
- return ZonedDateTime;
9055
- }(ChronoZonedDateTime);
9056
- function _init$f() {
9057
- ZonedDateTime.FROM = createTemporalQuery('ZonedDateTime.FROM', function (temporal) {
9058
- return ZonedDateTime.from(temporal);
10146
+ return OffsetDateTime;
10147
+ }(DefaultInterfaceTemporal);
10148
+ function _init$h() {
10149
+ OffsetDateTime.MIN = LocalDateTime.MIN.atOffset(ZoneOffset.MAX);
10150
+ OffsetDateTime.MAX = LocalDateTime.MAX.atOffset(ZoneOffset.MIN);
10151
+ OffsetDateTime.FROM = createTemporalQuery('OffsetDateTime.FROM', function (temporal) {
10152
+ return OffsetDateTime.from(temporal);
9059
10153
  });
9060
10154
  }
9061
10155
 
@@ -9188,6 +10282,9 @@
9188
10282
  var _this;
9189
10283
 
9190
10284
  _this = _ChronoLocalDate.call(this) || this;
10285
+ requireNonNull(year, 'year');
10286
+ requireNonNull(month, 'month');
10287
+ requireNonNull(dayOfMonth, 'dayOfMonth');
9191
10288
 
9192
10289
  if (month instanceof Month) {
9193
10290
  month = month.value();
@@ -9381,15 +10478,7 @@
9381
10478
  return this.isLeapYear() ? 366 : 365;
9382
10479
  };
9383
10480
 
9384
- _proto.with = function _with(fieldOrAdjuster, newValue) {
9385
- if (arguments.length < 2) {
9386
- return this.withTemporalAdjuster(fieldOrAdjuster);
9387
- } else {
9388
- return this.withFieldAndValue(fieldOrAdjuster, newValue);
9389
- }
9390
- };
9391
-
9392
- _proto.withTemporalAdjuster = function withTemporalAdjuster(adjuster) {
10481
+ _proto.withAdjuster = function withAdjuster(adjuster) {
9393
10482
  requireNonNull(adjuster, 'adjuster');
9394
10483
 
9395
10484
  if (adjuster instanceof LocalDate) {
@@ -9400,7 +10489,7 @@
9400
10489
  return adjuster.adjustInto(this);
9401
10490
  };
9402
10491
 
9403
- _proto.withFieldAndValue = function withFieldAndValue(field, newValue) {
10492
+ _proto.withFieldValue = function withFieldValue(field, newValue) {
9404
10493
  assert(field != null, 'field', NullPointerException);
9405
10494
 
9406
10495
  if (field instanceof ChronoField) {
@@ -9490,20 +10579,12 @@
9490
10579
  return LocalDate.ofYearDay(this._year, dayOfYear);
9491
10580
  };
9492
10581
 
9493
- _proto.plus = function plus(p1, p2) {
9494
- if (arguments.length < 2) {
9495
- return this.plus1(p1);
9496
- } else {
9497
- return this.plus2(p1, p2);
9498
- }
9499
- };
9500
-
9501
- _proto.plus1 = function plus1(amount) {
10582
+ _proto.plusAmount = function plusAmount(amount) {
9502
10583
  requireNonNull(amount, 'amount');
9503
10584
  return amount.addTo(this);
9504
10585
  };
9505
10586
 
9506
- _proto.plus2 = function plus2(amountToAdd, unit) {
10587
+ _proto.plusAmountUnit = function plusAmountUnit(amountToAdd, unit) {
9507
10588
  requireNonNull(amountToAdd, 'amountToAdd');
9508
10589
  requireNonNull(unit, 'unit');
9509
10590
 
@@ -9574,23 +10655,15 @@
9574
10655
  return LocalDate.ofEpochDay(mjDay);
9575
10656
  };
9576
10657
 
9577
- _proto.minus = function minus(p1, p2) {
9578
- if (arguments.length < 2) {
9579
- return this.minus1(p1);
9580
- } else {
9581
- return this.minus2(p1, p2);
9582
- }
9583
- };
9584
-
9585
- _proto.minus1 = function minus1(amount) {
10658
+ _proto.minusAmount = function minusAmount(amount) {
9586
10659
  requireNonNull(amount, 'amount');
9587
10660
  return amount.subtractFrom(this);
9588
10661
  };
9589
10662
 
9590
- _proto.minus2 = function minus2(amountToSubtract, unit) {
10663
+ _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
9591
10664
  requireNonNull(amountToSubtract, 'amountToSubtract');
9592
10665
  requireNonNull(unit, 'unit');
9593
- return this.plus2(-1 * amountToSubtract, unit);
10666
+ return this.plusAmountUnit(-1 * amountToSubtract, unit);
9594
10667
  };
9595
10668
 
9596
10669
  _proto.minusYears = function minusYears(yearsToSubtract) {
@@ -9707,7 +10780,15 @@
9707
10780
  };
9708
10781
 
9709
10782
  _proto.atTime1 = function atTime1(time) {
9710
- return LocalDateTime.of(this, time);
10783
+ requireNonNull(time, 'time');
10784
+
10785
+ if (time instanceof LocalTime) {
10786
+ return LocalDateTime.of(this, time);
10787
+ } else if (time instanceof OffsetTime) {
10788
+ return this._atTimeOffsetTime(time);
10789
+ } else {
10790
+ throw new IllegalArgumentException('time must be an instance of LocalTime or OffsetTime' + (time && time.constructor && time.constructor.name ? ', but is ' + time.constructor.name : ''));
10791
+ }
9711
10792
  };
9712
10793
 
9713
10794
  _proto.atTime4 = function atTime4(hour, minute, second, nanoOfSecond) {
@@ -9722,6 +10803,10 @@
9722
10803
  return this.atTime1(LocalTime.of(hour, minute, second, nanoOfSecond));
9723
10804
  };
9724
10805
 
10806
+ _proto._atTimeOffsetTime = function _atTimeOffsetTime(time) {
10807
+ return OffsetDateTime.of(LocalDateTime.of(this, time.toLocalTime()), time.offset());
10808
+ };
10809
+
9725
10810
  _proto.atStartOfDay = function atStartOfDay(zone) {
9726
10811
  if (zone != null) {
9727
10812
  return this.atStartOfDayWithZone(zone);
@@ -9870,7 +10955,7 @@
9870
10955
 
9871
10956
  return LocalDate;
9872
10957
  }(ChronoLocalDate);
9873
- function _init$g() {
10958
+ function _init$i() {
9874
10959
  LocalDate.MIN = LocalDate.of(YearConstants.MIN_VALUE, 1, 1);
9875
10960
  LocalDate.MAX = LocalDate.of(YearConstants.MAX_VALUE, 12, 31);
9876
10961
  LocalDate.EPOCH_0 = LocalDate.ofEpochDay(0);
@@ -9879,11 +10964,11 @@
9879
10964
  });
9880
10965
  }
9881
10966
 
9882
- var ChronoLocalDateTime = function (_Temporal) {
9883
- _inheritsLoose(ChronoLocalDateTime, _Temporal);
10967
+ var ChronoLocalDateTime = function (_DefaultInterfaceTemp) {
10968
+ _inheritsLoose(ChronoLocalDateTime, _DefaultInterfaceTemp);
9884
10969
 
9885
10970
  function ChronoLocalDateTime() {
9886
- return _Temporal.apply(this, arguments) || this;
10971
+ return _DefaultInterfaceTemp.apply(this, arguments) || this;
9887
10972
  }
9888
10973
 
9889
10974
  var _proto = ChronoLocalDateTime.prototype;
@@ -9905,7 +10990,7 @@
9905
10990
  return null;
9906
10991
  }
9907
10992
 
9908
- return _Temporal.prototype.query.call(this, _query);
10993
+ return _DefaultInterfaceTemp.prototype.query.call(this, _query);
9909
10994
  };
9910
10995
 
9911
10996
  _proto.adjustInto = function adjustInto(temporal) {
@@ -9926,7 +11011,7 @@
9926
11011
  };
9927
11012
 
9928
11013
  return ChronoLocalDateTime;
9929
- }(Temporal);
11014
+ }(DefaultInterfaceTemporal);
9930
11015
 
9931
11016
  var LocalDateTime = function (_ChronoLocalDateTime) {
9932
11017
  _inheritsLoose(LocalDateTime, _ChronoLocalDateTime);
@@ -10068,7 +11153,7 @@
10068
11153
  var _proto = LocalDateTime.prototype;
10069
11154
 
10070
11155
  _proto._withDateTime = function _withDateTime(newDate, newTime) {
10071
- if (this._date === newDate && this._time === newTime) {
11156
+ if (this._date.equals(newDate) && this._time.equals(newTime)) {
10072
11157
  return this;
10073
11158
  }
10074
11159
 
@@ -10151,15 +11236,7 @@
10151
11236
  return this._time.nano();
10152
11237
  };
10153
11238
 
10154
- _proto.with = function _with(adjusterOrField, newValue) {
10155
- if (arguments.length === 1) {
10156
- return this.withTemporalAdjuster(adjusterOrField);
10157
- } else {
10158
- return this.with2(adjusterOrField, newValue);
10159
- }
10160
- };
10161
-
10162
- _proto.withTemporalAdjuster = function withTemporalAdjuster(adjuster) {
11239
+ _proto.withAdjuster = function withAdjuster(adjuster) {
10163
11240
  requireNonNull(adjuster, 'adjuster');
10164
11241
 
10165
11242
  if (adjuster instanceof LocalDate) {
@@ -10174,7 +11251,7 @@
10174
11251
  return adjuster.adjustInto(this);
10175
11252
  };
10176
11253
 
10177
- _proto.with2 = function with2(field, newValue) {
11254
+ _proto.withFieldValue = function withFieldValue(field, newValue) {
10178
11255
  requireNonNull(field, 'field');
10179
11256
 
10180
11257
  if (field instanceof ChronoField) {
@@ -10232,20 +11309,12 @@
10232
11309
  return this._withDateTime(this._date, this._time.truncatedTo(unit));
10233
11310
  };
10234
11311
 
10235
- _proto.plus = function plus(amount, unit) {
10236
- if (arguments.length === 1) {
10237
- return this.plusTemporalAmount(amount);
10238
- } else {
10239
- return this.plus2(amount, unit);
10240
- }
10241
- };
10242
-
10243
- _proto.plusTemporalAmount = function plusTemporalAmount(amount) {
11312
+ _proto.plusAmount = function plusAmount(amount) {
10244
11313
  requireNonNull(amount, 'amount');
10245
11314
  return amount.addTo(this);
10246
11315
  };
10247
11316
 
10248
- _proto.plus2 = function plus2(amountToAdd, unit) {
11317
+ _proto.plusAmountUnit = function plusAmountUnit(amountToAdd, unit) {
10249
11318
  requireNonNull(unit, 'unit');
10250
11319
 
10251
11320
  if (unit instanceof ChronoUnit) {
@@ -10318,22 +11387,14 @@
10318
11387
  return this._plusWithOverflow(this._date, 0, 0, 0, nanos, 1);
10319
11388
  };
10320
11389
 
10321
- _proto.minus = function minus(amount, unit) {
10322
- if (arguments.length === 1) {
10323
- return this.minusTemporalAmount(amount);
10324
- } else {
10325
- return this.minus2(amount, unit);
10326
- }
10327
- };
10328
-
10329
- _proto.minusTemporalAmount = function minusTemporalAmount(amount) {
11390
+ _proto.minusAmount = function minusAmount(amount) {
10330
11391
  requireNonNull(amount, 'amount');
10331
11392
  return amount.subtractFrom(this);
10332
11393
  };
10333
11394
 
10334
- _proto.minus2 = function minus2(amountToSubtract, unit) {
11395
+ _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
10335
11396
  requireNonNull(unit, 'unit');
10336
- return this.plus2(-1 * amountToSubtract, unit);
11397
+ return this.plusAmountUnit(-1 * amountToSubtract, unit);
10337
11398
  };
10338
11399
 
10339
11400
  _proto.minusYears = function minusYears(years) {
@@ -10369,7 +11430,7 @@
10369
11430
  };
10370
11431
 
10371
11432
  _proto._plusWithOverflow = function _plusWithOverflow(newDate, hours, minutes, seconds, nanos, sign) {
10372
- if ((hours | minutes | seconds | nanos) === 0) {
11433
+ if (hours === 0 && minutes === 0 && seconds === 0 && nanos === 0) {
10373
11434
  return this._withDateTime(newDate, this._time);
10374
11435
  }
10375
11436
 
@@ -10469,6 +11530,10 @@
10469
11530
  return unit.between(this, end);
10470
11531
  };
10471
11532
 
11533
+ _proto.atOffset = function atOffset(offset) {
11534
+ return OffsetDateTime.of(this, offset);
11535
+ };
11536
+
10472
11537
  _proto.atZone = function atZone(zone) {
10473
11538
  return ZonedDateTime.of(this, zone);
10474
11539
  };
@@ -10540,7 +11605,7 @@
10540
11605
 
10541
11606
  return LocalDateTime;
10542
11607
  }(ChronoLocalDateTime);
10543
- function _init$h() {
11608
+ function _init$j() {
10544
11609
  LocalDateTime.MIN = LocalDateTime.of(LocalDate.MIN, LocalTime.MIN);
10545
11610
  LocalDateTime.MAX = LocalDateTime.of(LocalDate.MAX, LocalTime.MAX);
10546
11611
  LocalDateTime.FROM = createTemporalQuery('LocalDateTime.FROM', function (temporal) {
@@ -10674,7 +11739,7 @@
10674
11739
 
10675
11740
  LocalTime._validate(_hour, _minute, _second, _nanoOfSecond);
10676
11741
 
10677
- if ((_minute | _second | _nanoOfSecond) === 0) {
11742
+ if (_minute === 0 && _second === 0 && _nanoOfSecond === 0) {
10678
11743
  if (!LocalTime.HOURS[_hour]) {
10679
11744
  _this._hour = _hour;
10680
11745
  _this._minute = _minute;
@@ -10801,15 +11866,7 @@
10801
11866
  return this._nano;
10802
11867
  };
10803
11868
 
10804
- _proto.with = function _with(adjusterOrField, newValue) {
10805
- if (arguments.length < 2) {
10806
- return this.withTemporalAdjuster(adjusterOrField);
10807
- } else {
10808
- return this.with2(adjusterOrField, newValue);
10809
- }
10810
- };
10811
-
10812
- _proto.withTemporalAdjuster = function withTemporalAdjuster(adjuster) {
11869
+ _proto.withAdjuster = function withAdjuster(adjuster) {
10813
11870
  requireNonNull(adjuster, 'adjuster');
10814
11871
 
10815
11872
  if (adjuster instanceof LocalTime) {
@@ -10820,7 +11877,7 @@
10820
11877
  return adjuster.adjustInto(this);
10821
11878
  };
10822
11879
 
10823
- _proto.with2 = function with2(field, newValue) {
11880
+ _proto.withFieldValue = function withFieldValue(field, newValue) {
10824
11881
  requireNonNull(field, 'field');
10825
11882
  requireInstance(field, TemporalField, 'field');
10826
11883
 
@@ -10951,20 +12008,12 @@
10951
12008
  return LocalTime.ofNanoOfDay(MathUtil.intDiv(nod, dur) * dur);
10952
12009
  };
10953
12010
 
10954
- _proto.plus = function plus(amount, unit) {
10955
- if (arguments.length < 2) {
10956
- return this.plus1(amount);
10957
- } else {
10958
- return this.plus2(amount, unit);
10959
- }
10960
- };
10961
-
10962
- _proto.plus1 = function plus1(amount) {
12011
+ _proto.plusAmount = function plusAmount(amount) {
10963
12012
  requireNonNull(amount, 'amount');
10964
12013
  return amount.addTo(this);
10965
12014
  };
10966
12015
 
10967
- _proto.plus2 = function plus2(amountToAdd, unit) {
12016
+ _proto.plusAmountUnit = function plusAmountUnit(amountToAdd, unit) {
10968
12017
  requireNonNull(unit, 'unit');
10969
12018
 
10970
12019
  if (unit instanceof ChronoUnit) {
@@ -11060,22 +12109,14 @@
11060
12109
  return new LocalTime(newHour, newMinute, newSecond, newNano);
11061
12110
  };
11062
12111
 
11063
- _proto.minus = function minus(amount, unit) {
11064
- if (arguments.length < 2) {
11065
- return this.minus1(amount);
11066
- } else {
11067
- return this.minus2(amount, unit);
11068
- }
11069
- };
11070
-
11071
- _proto.minus1 = function minus1(amount) {
12112
+ _proto.minusAmount = function minusAmount(amount) {
11072
12113
  requireNonNull(amount, 'amount');
11073
12114
  return amount.subtractFrom(this);
11074
12115
  };
11075
12116
 
11076
- _proto.minus2 = function minus2(amountToSubtract, unit) {
12117
+ _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
11077
12118
  requireNonNull(unit, 'unit');
11078
- return this.plus2(-1 * amountToSubtract, unit);
12119
+ return this.plusAmountUnit(-1 * amountToSubtract, unit);
11079
12120
  };
11080
12121
 
11081
12122
  _proto.minusHours = function minusHours(hoursToSubtract) {
@@ -11257,7 +12298,7 @@
11257
12298
 
11258
12299
  return LocalTime;
11259
12300
  }(Temporal);
11260
- function _init$i() {
12301
+ function _init$k() {
11261
12302
  LocalTime.HOURS = [];
11262
12303
 
11263
12304
  for (var hour = 0; hour < 24; hour++) {
@@ -11409,20 +12450,12 @@
11409
12450
  return this._nanos;
11410
12451
  };
11411
12452
 
11412
- _proto.with = function _with(adjusterOrField, newValue) {
11413
- if (arguments.length === 1) {
11414
- return this.withTemporalAdjuster(adjusterOrField);
11415
- } else {
11416
- return this.with2(adjusterOrField, newValue);
11417
- }
11418
- };
11419
-
11420
- _proto.withTemporalAdjuster = function withTemporalAdjuster(adjuster) {
12453
+ _proto.withAdjuster = function withAdjuster(adjuster) {
11421
12454
  requireNonNull(adjuster, 'adjuster');
11422
12455
  return adjuster.adjustInto(this);
11423
12456
  };
11424
12457
 
11425
- _proto.with2 = function with2(field, newValue) {
12458
+ _proto.withFieldValue = function withFieldValue(field, newValue) {
11426
12459
  requireNonNull(field, 'field');
11427
12460
 
11428
12461
  if (field instanceof ChronoField) {
@@ -11480,20 +12513,12 @@
11480
12513
  return this.plusNanos(result - nod);
11481
12514
  };
11482
12515
 
11483
- _proto.plus = function plus(amount, unit) {
11484
- if (arguments.length === 1) {
11485
- return this.plus1(amount);
11486
- } else {
11487
- return this.plus2(amount, unit);
11488
- }
11489
- };
11490
-
11491
- _proto.plus1 = function plus1(amount) {
12516
+ _proto.plusAmount = function plusAmount(amount) {
11492
12517
  requireNonNull(amount, 'amount');
11493
12518
  return amount.addTo(this);
11494
12519
  };
11495
12520
 
11496
- _proto.plus2 = function plus2(amountToAdd, unit) {
12521
+ _proto.plusAmountUnit = function plusAmountUnit(amountToAdd, unit) {
11497
12522
  requireNonNull(amountToAdd, 'amountToAdd');
11498
12523
  requireNonNull(unit, 'unit');
11499
12524
  requireInstance(unit, TemporalUnit);
@@ -11544,7 +12569,7 @@
11544
12569
  };
11545
12570
 
11546
12571
  _proto._plus = function _plus(secondsToAdd, nanosToAdd) {
11547
- if ((secondsToAdd | nanosToAdd) === 0) {
12572
+ if (secondsToAdd === 0 && nanosToAdd === 0) {
11548
12573
  return this;
11549
12574
  }
11550
12575
 
@@ -11554,21 +12579,13 @@
11554
12579
  return Instant.ofEpochSecond(epochSec, nanoAdjustment);
11555
12580
  };
11556
12581
 
11557
- _proto.minus = function minus(amount, unit) {
11558
- if (arguments.length === 1) {
11559
- return this.minus1(amount);
11560
- } else {
11561
- return this.minus2(amount, unit);
11562
- }
11563
- };
11564
-
11565
- _proto.minus1 = function minus1(amount) {
12582
+ _proto.minusAmount = function minusAmount(amount) {
11566
12583
  requireNonNull(amount, 'amount');
11567
12584
  return amount.subtractFrom(this);
11568
12585
  };
11569
12586
 
11570
- _proto.minus2 = function minus2(amountToSubtract, unit) {
11571
- return this.plus2(-1 * amountToSubtract, unit);
12587
+ _proto.minusAmountUnit = function minusAmountUnit(amountToSubtract, unit) {
12588
+ return this.plusAmountUnit(-1 * amountToSubtract, unit);
11572
12589
  };
11573
12590
 
11574
12591
  _proto.minusSeconds = function minusSeconds(secondsToSubtract) {
@@ -11659,6 +12676,10 @@
11659
12676
  return secsDiff;
11660
12677
  };
11661
12678
 
12679
+ _proto.atOffset = function atOffset(offset) {
12680
+ return OffsetDateTime.ofInstant(this, offset);
12681
+ };
12682
+
11662
12683
  _proto.atZone = function atZone(zone) {
11663
12684
  return ZonedDateTime.ofInstant(this, zone);
11664
12685
  };
@@ -11714,7 +12735,7 @@
11714
12735
 
11715
12736
  return Instant;
11716
12737
  }(Temporal);
11717
- function _init$j() {
12738
+ function _init$l() {
11718
12739
  Instant.MIN_SECONDS = -31619119219200;
11719
12740
  Instant.MAX_SECONDS = 31494816403199;
11720
12741
  Instant.EPOCH = new Instant(0, 0);
@@ -12036,7 +13057,7 @@
12036
13057
  * @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
12037
13058
  * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
12038
13059
  */
12039
- function _init$k() {
13060
+ function _init$m() {
12040
13061
  TemporalQueries.ZONE_ID = createTemporalQuery('ZONE_ID', function (temporal) {
12041
13062
  return temporal.query(TemporalQueries.ZONE_ID);
12042
13063
  });
@@ -12290,7 +13311,7 @@
12290
13311
  return ZoneIdFactory;
12291
13312
  }();
12292
13313
  var SYSTEM_DEFAULT_ZONE_ID_INSTANCE = null;
12293
- function _init$l() {
13314
+ function _init$n() {
12294
13315
  SYSTEM_DEFAULT_ZONE_ID_INSTANCE = new SystemDefaultZoneId();
12295
13316
  ZoneId.systemDefault = ZoneIdFactory.systemDefault;
12296
13317
  ZoneId.getAvailableZoneIds = ZoneIdFactory.getAvailableZoneIds;
@@ -12318,24 +13339,26 @@
12318
13339
  _init();
12319
13340
  _init$2();
12320
13341
  _init$3();
12321
- _init$i();
12322
- _init$8();
12323
13342
  _init$k();
13343
+ _init$8();
13344
+ _init$m();
12324
13345
  _init$4();
13346
+ _init$l();
13347
+ _init$i();
12325
13348
  _init$j();
12326
- _init$g();
12327
- _init$h();
12328
13349
  _init$d();
12329
13350
  _init$5();
12330
13351
  _init$c();
12331
13352
  _init$b();
12332
13353
  _init$6();
12333
13354
  _init$7();
12334
- _init$f();
12335
- _init$l();
13355
+ _init$g();
13356
+ _init$n();
12336
13357
  _init$e();
12337
13358
  _init$a();
12338
13359
  _init$9();
13360
+ _init$h();
13361
+ _init$f();
12339
13362
  }
12340
13363
 
12341
13364
  init();
@@ -12502,6 +13525,8 @@
12502
13525
  LocalDate: LocalDate,
12503
13526
  LocalTime: LocalTime,
12504
13527
  LocalDateTime: LocalDateTime,
13528
+ OffsetTime: OffsetTime,
13529
+ OffsetDateTime: OffsetDateTime,
12505
13530
  Month: Month,
12506
13531
  MonthDay: MonthDay,
12507
13532
  Period: Period,
@@ -12567,6 +13592,8 @@
12567
13592
  exports.Month = Month;
12568
13593
  exports.MonthDay = MonthDay;
12569
13594
  exports.NullPointerException = NullPointerException;
13595
+ exports.OffsetDateTime = OffsetDateTime;
13596
+ exports.OffsetTime = OffsetTime;
12570
13597
  exports.Period = Period;
12571
13598
  exports.ResolverStyle = ResolverStyle;
12572
13599
  exports.SignStyle = SignStyle;
@@ -12599,5 +13626,5 @@
12599
13626
 
12600
13627
  Object.defineProperty(exports, '__esModule', { value: true });
12601
13628
 
12602
- }));
13629
+ })));
12603
13630
  //# sourceMappingURL=js-joda.js.map