@js-joda/timezone 2.15.0 → 2.16.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.
Files changed (31) hide show
  1. package/dist/js-joda-timezone-10-year-range.esm.js +25 -118
  2. package/dist/js-joda-timezone-10-year-range.esm.js.map +1 -1
  3. package/dist/js-joda-timezone-10-year-range.js +25 -118
  4. package/dist/js-joda-timezone-10-year-range.js.map +1 -1
  5. package/dist/js-joda-timezone-10-year-range.min.js +2 -2
  6. package/dist/js-joda-timezone-1970-2030.esm.js +31 -124
  7. package/dist/js-joda-timezone-1970-2030.esm.js.map +1 -1
  8. package/dist/js-joda-timezone-1970-2030.js +31 -124
  9. package/dist/js-joda-timezone-1970-2030.js.map +1 -1
  10. package/dist/js-joda-timezone-1970-2030.min.js +2 -2
  11. package/dist/js-joda-timezone-2012-2022.esm.js +24 -117
  12. package/dist/js-joda-timezone-2012-2022.esm.js.map +1 -1
  13. package/dist/js-joda-timezone-2012-2022.js +24 -117
  14. package/dist/js-joda-timezone-2012-2022.js.map +1 -1
  15. package/dist/js-joda-timezone-2012-2022.min.js +2 -2
  16. package/dist/js-joda-timezone-2017-2027.esm.js +25 -118
  17. package/dist/js-joda-timezone-2017-2027.esm.js.map +1 -1
  18. package/dist/js-joda-timezone-2017-2027.js +25 -118
  19. package/dist/js-joda-timezone-2017-2027.js.map +1 -1
  20. package/dist/js-joda-timezone-2017-2027.min.js +2 -2
  21. package/dist/js-joda-timezone-empty.esm.js +17 -110
  22. package/dist/js-joda-timezone-empty.esm.js.map +1 -1
  23. package/dist/js-joda-timezone-empty.js +17 -110
  24. package/dist/js-joda-timezone-empty.js.map +1 -1
  25. package/dist/js-joda-timezone-empty.min.js +2 -2
  26. package/dist/js-joda-timezone.esm.js +228 -321
  27. package/dist/js-joda-timezone.esm.js.map +1 -1
  28. package/dist/js-joda-timezone.js +228 -321
  29. package/dist/js-joda-timezone.js.map +1 -1
  30. package/dist/js-joda-timezone.min.js +2 -2
  31. package/package.json +4 -5
@@ -1,4 +1,4 @@
1
- //! @version @js-joda/timezone - 2.15.0-2022e-2017-2027
1
+ //! @version @js-joda/timezone - 2.16.0-2022f-2017-2027
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)
@@ -9,7 +9,7 @@
9
9
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.JSJoda));
10
10
  })(this, (function (core) { 'use strict';
11
11
 
12
- var version = "2022e";
12
+ var version = "2022f";
13
13
  var zones$1 = [
14
14
  "Africa/Abidjan|GMT|0|0||48e5",
15
15
  "Africa/Nairobi|EAT|-30|0||47e5",
@@ -30,14 +30,14 @@
30
30
  "America/Fortaleza|-03|30|0||34e5",
31
31
  "America/Asuncion|-03 -04|30 40|01010101010101010101010|1T0r0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0|28e5",
32
32
  "America/Panama|EST|50|0||15e5",
33
- "America/Mexico_City|CST CDT|60 50|01010101010101010101010|1T3k0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0|20e6",
33
+ "America/Mexico_City|CST CDT|60 50|0101010101010|1T3k0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|20e6",
34
34
  "America/Managua|CST|60|0||22e5",
35
35
  "America/Caracas|-04|40|0||29e5",
36
36
  "America/Lima|-05|50|0||11e6",
37
37
  "America/Denver|MST MDT|70 60|01010101010101010101010|1SSV0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0|26e5",
38
38
  "America/Campo_Grande|-03 -04|30 40|010101|1SKr0 1zd0 On0 1HB0 FX0|77e4",
39
39
  "America/Chicago|CST CDT|60 50|01010101010101010101010|1SSU0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0|92e5",
40
- "America/Chihuahua|MST MDT|70 60|01010101010101010101010|1T3l0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0|81e4",
40
+ "America/Chihuahua|MST MDT CST|70 60 60|0101010101012|1T3l0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|81e4",
41
41
  "America/Phoenix|MST|70|0||42e5",
42
42
  "America/Whitehorse|PST PDT MST|80 70 70|010101012|1SSW0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3",
43
43
  "America/New_York|EST EDT|50 40|01010101010101010101010|1SST0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0|21e6",
@@ -46,9 +46,11 @@
46
46
  "America/Godthab|-03 -02|30 20|01010101010101010101010|1T0p0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0|17e3",
47
47
  "America/Grand_Turk|AST EDT EST|40 40 50|012121212121212121212|1Vkv0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0|37e2",
48
48
  "America/Havana|CST CDT|50 40|01010101010101010101010|1SSR0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0|21e5",
49
+ "America/Mazatlan|MST MDT|70 60|0101010101010|1T3l0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|44e4",
49
50
  "America/Metlakatla|AKST AKDT PST|90 80 80|010120101010101010101010|1SSX0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0|14e2",
50
51
  "America/Miquelon|-03 -02|30 20|01010101010101010101010|1SSR0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0|61e2",
51
52
  "America/Noronha|-02|20|0||30e2",
53
+ "America/Ojinaga|MST MDT CST|70 60 60|0101010101012|1SSV0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0|23e3",
52
54
  "America/Santiago|-03 -04|30 40|01010101010101010101010|1Tk30 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|62e5",
53
55
  "America/Sao_Paulo|-02 -03|20 30|010101|1SKq0 1zd0 On0 1HB0 FX0|20e6",
54
56
  "Atlantic/Azores|-01 +00|10 0|01010101010101010101010|1T0p0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0|25e4",
@@ -121,7 +123,7 @@
121
123
  "MET|MET MEST|-10 -20|01010101010101010101010|1T0p0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0|",
122
124
  "Pacific/Chatham|+1345 +1245|-dJ -cJ|01010101010101010101010|1T320 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00|600",
123
125
  "Pacific/Apia|+14 +13|-e0 -d0|0101010101|1T320 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3",
124
- "Pacific/Fiji|+13 +12|-d0 -c0|010101010101010101010|1Swe0 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0|88e4",
126
+ "Pacific/Fiji|+13 +12|-d0 -c0|0101010101|1Swe0 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0|88e4",
125
127
  "Pacific/Guam|ChST|-a0|0||17e4",
126
128
  "Pacific/Marquesas|-0930|9u|0||86e2",
127
129
  "Pacific/Pago_Pago|SST|b0|0||37e2",
@@ -221,13 +223,10 @@
221
223
  "America/Chicago|Canada/Central",
222
224
  "America/Chicago|US/Central",
223
225
  "America/Chicago|US/Indiana-Starke",
224
- "America/Chihuahua|America/Mazatlan",
225
- "America/Chihuahua|Mexico/BajaSur",
226
226
  "America/Denver|America/Boise",
227
227
  "America/Denver|America/Cambridge_Bay",
228
228
  "America/Denver|America/Edmonton",
229
229
  "America/Denver|America/Inuvik",
230
- "America/Denver|America/Ojinaga",
231
230
  "America/Denver|America/Shiprock",
232
231
  "America/Denver|America/Yellowknife",
233
232
  "America/Denver|Canada/Mountain",
@@ -298,6 +297,7 @@
298
297
  "America/Managua|America/Swift_Current",
299
298
  "America/Managua|America/Tegucigalpa",
300
299
  "America/Managua|Canada/Saskatchewan",
300
+ "America/Mazatlan|Mexico/BajaSur",
301
301
  "America/Mexico_City|America/Bahia_Banderas",
302
302
  "America/Mexico_City|America/Merida",
303
303
  "America/Mexico_City|America/Monterrey",
@@ -646,7 +646,7 @@
646
646
  "BW|Africa/Maputo Africa/Gaborone",
647
647
  "BY|Europe/Minsk",
648
648
  "BZ|America/Belize",
649
- "CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver America/Panama America/Puerto_Rico America/Phoenix America/Blanc-Sablon America/Atikokan America/Creston",
649
+ "CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Toronto America/Iqaluit America/Pangnirtung America/Winnipeg America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver America/Panama America/Puerto_Rico America/Phoenix America/Blanc-Sablon America/Atikokan America/Creston",
650
650
  "CC|Asia/Yangon Indian/Cocos",
651
651
  "CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi",
652
652
  "CF|Africa/Lagos Africa/Bangui",
@@ -868,19 +868,15 @@
868
868
  function _inheritsLoose(subClass, superClass) {
869
869
  subClass.prototype = Object.create(superClass.prototype);
870
870
  subClass.prototype.constructor = subClass;
871
-
872
871
  _setPrototypeOf(subClass, superClass);
873
872
  }
874
-
875
873
  function _setPrototypeOf(o, p) {
876
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
874
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
877
875
  o.__proto__ = p;
878
876
  return o;
879
877
  };
880
-
881
878
  return _setPrototypeOf(o, p);
882
879
  }
883
-
884
880
  function _unsupportedIterableToArray(o, minLen) {
885
881
  if (!o) return;
886
882
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -889,19 +885,14 @@
889
885
  if (n === "Map" || n === "Set") return Array.from(o);
890
886
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
891
887
  }
892
-
893
888
  function _arrayLikeToArray(arr, len) {
894
889
  if (len == null || len > arr.length) len = arr.length;
895
-
896
890
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
897
-
898
891
  return arr2;
899
892
  }
900
-
901
893
  function _createForOfIteratorHelperLoose(o, allowArrayLike) {
902
894
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
903
895
  if (it) return (it = it.call(o)).next.bind(it);
904
-
905
896
  if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
906
897
  if (it) o = it;
907
898
  var i = 0;
@@ -915,147 +906,110 @@
915
906
  };
916
907
  };
917
908
  }
918
-
919
909
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
920
910
  }
921
911
 
922
912
  var MomentZoneRules = function (_ZoneRules) {
923
913
  _inheritsLoose(MomentZoneRules, _ZoneRules);
924
-
925
914
  function MomentZoneRules(tzdbInfo) {
926
915
  var _this;
927
-
928
916
  _this = _ZoneRules.call(this) || this;
929
917
  _this._tzdbInfo = tzdbInfo;
930
918
  _this._ldtUntils = new LDTUntils(_this._tzdbInfo.untils, _this._tzdbInfo.offsets);
931
919
  return _this;
932
920
  }
933
-
934
921
  var _proto = MomentZoneRules.prototype;
935
-
936
922
  _proto.isFixedOffset = function isFixedOffset() {
937
923
  return this._tzdbInfo.offsets.length === 1;
938
924
  };
939
-
940
925
  _proto.offsetOfInstant = function offsetOfInstant(instant) {
941
926
  var epochMilli = instant.toEpochMilli();
942
927
  return this.offsetOfEpochMilli(epochMilli);
943
928
  };
944
-
945
929
  _proto.offsetOfEpochMilli = function offsetOfEpochMilli(epochMilli) {
946
930
  var index = binarySearch(this._tzdbInfo.untils, epochMilli);
947
931
  return core.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(index));
948
932
  };
949
-
950
933
  _proto.offsetOfLocalDateTime = function offsetOfLocalDateTime(localDateTime) {
951
934
  var info = this._offsetInfo(localDateTime);
952
-
953
935
  if (info instanceof core.ZoneOffsetTransition) {
954
936
  return info.offsetBefore();
955
937
  }
956
-
957
938
  return info;
958
939
  };
959
-
960
940
  _proto._offsetInfo = function _offsetInfo(localDateTime) {
961
941
  var index = ldtBinarySearch(this._ldtUntils, localDateTime);
962
942
  var offsetIndex = index >> 1;
963
-
964
943
  if (index % 2 === 1) {
965
944
  var ldtBefore = this._ldtUntils.get(Math.max(index - 1, 0));
966
-
967
945
  var ldtAfter = this._ldtUntils.get(Math.min(index, this._ldtUntils.size - 1));
968
-
969
946
  var offsetBefore = core.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(offsetIndex));
970
947
  var offsetAfter = core.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(Math.min(offsetIndex + 1, this._tzdbInfo.offsets.length - 1)));
971
-
972
948
  if (offsetBefore.compareTo(offsetAfter) > 0) {
973
949
  return core.ZoneOffsetTransition.of(ldtBefore, offsetBefore, offsetAfter);
974
950
  } else {
975
951
  return core.ZoneOffsetTransition.of(ldtAfter, offsetBefore, offsetAfter);
976
952
  }
977
953
  }
978
-
979
954
  return core.ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(offsetIndex));
980
955
  };
981
-
982
956
  _proto._offsetByIndexInSeconds = function _offsetByIndexInSeconds(index) {
983
957
  return -offsetInSeconds(this._tzdbInfo.offsets[index]);
984
958
  };
985
-
986
959
  _proto.validOffsets = function validOffsets(localDateTime) {
987
960
  var info = this._offsetInfo(localDateTime);
988
-
989
961
  if (info instanceof core.ZoneOffsetTransition) {
990
962
  return info.validOffsets();
991
963
  }
992
-
993
964
  return [info];
994
965
  };
995
-
996
966
  _proto.transition = function transition(localDateTime) {
997
967
  var info = this._offsetInfo(localDateTime);
998
-
999
968
  if (info instanceof core.ZoneOffsetTransition) {
1000
969
  return info;
1001
970
  }
1002
-
1003
971
  return null;
1004
972
  };
1005
-
1006
973
  _proto.standardOffset = function standardOffset(instant) {
1007
974
  notSupported('ZoneRules.standardOffset');
1008
975
  };
1009
-
1010
976
  _proto.daylightSavings = function daylightSavings(instant) {
1011
977
  notSupported('ZoneRules.daylightSavings');
1012
978
  };
1013
-
1014
979
  _proto.isDaylightSavings = function isDaylightSavings(instant) {
1015
980
  notSupported('ZoneRules.isDaylightSavings');
1016
981
  };
1017
-
1018
982
  _proto.isValidOffset = function isValidOffset(localDateTime, offset) {
1019
983
  return this.validOffsets(localDateTime).some(function (o) {
1020
984
  return o.equals(offset);
1021
985
  });
1022
986
  };
1023
-
1024
987
  _proto.nextTransition = function nextTransition(instant) {
1025
988
  notSupported('ZoneRules.nextTransition');
1026
989
  };
1027
-
1028
990
  _proto.previousTransition = function previousTransition(instant) {
1029
991
  notSupported('ZoneRules.previousTransition');
1030
992
  };
1031
-
1032
993
  _proto.transitions = function transitions() {
1033
994
  notSupported('ZoneRules.transitions');
1034
995
  };
1035
-
1036
996
  _proto.transitionRules = function transitionRules() {
1037
997
  notSupported('ZoneRules.transitionRules');
1038
998
  };
1039
-
1040
999
  _proto.equals = function equals(other) {
1041
1000
  if (this === other) {
1042
1001
  return true;
1043
1002
  }
1044
-
1045
1003
  if (other instanceof MomentZoneRules) {
1046
1004
  return this._tzdbInfo === other._tzdbInfo;
1047
1005
  }
1048
-
1049
1006
  return false;
1050
1007
  };
1051
-
1052
1008
  _proto.toString = function toString() {
1053
1009
  return this._tzdbInfo.name;
1054
1010
  };
1055
-
1056
1011
  return MomentZoneRules;
1057
1012
  }(core.ZoneRules);
1058
-
1059
1013
  var LDTUntils = function () {
1060
1014
  function LDTUntils(_tzdbUntils, tzdbOffsets) {
1061
1015
  this._tzdbUntils = _tzdbUntils;
@@ -1063,16 +1017,12 @@
1063
1017
  this._ldtUntils = [];
1064
1018
  this.size = this._tzdbUntils.length * 2;
1065
1019
  }
1066
-
1067
1020
  var _proto2 = LDTUntils.prototype;
1068
-
1069
1021
  _proto2._generateTupple = function _generateTupple(index) {
1070
1022
  var epochMillis = this._tzdbUntils[index];
1071
-
1072
1023
  if (epochMillis === Infinity) {
1073
1024
  return [core.LocalDateTime.MAX, core.LocalDateTime.MAX];
1074
1025
  }
1075
-
1076
1026
  var instant = core.Instant.ofEpochMilli(epochMillis);
1077
1027
  var offset1 = offsetInSeconds(this._tzdbOffsets[index]);
1078
1028
  var zone1 = core.ZoneOffset.ofTotalSeconds(-offset1);
@@ -1081,36 +1031,28 @@
1081
1031
  var offset2 = offsetInSeconds(this._tzdbOffsets[nextIndex]);
1082
1032
  var zone2 = core.ZoneOffset.ofTotalSeconds(-offset2);
1083
1033
  var ldt2 = core.LocalDateTime.ofInstant(instant, zone2);
1084
-
1085
1034
  if (offset1 > offset2) {
1086
1035
  return [ldt1, ldt2];
1087
1036
  } else {
1088
1037
  return [ldt2, ldt1];
1089
1038
  }
1090
1039
  };
1091
-
1092
1040
  _proto2._getTupple = function _getTupple(index) {
1093
1041
  if (this._ldtUntils[index] == null) {
1094
1042
  this._ldtUntils[index] = this._generateTupple(index);
1095
1043
  }
1096
-
1097
1044
  return this._ldtUntils[index];
1098
1045
  };
1099
-
1100
1046
  _proto2.get = function get(index) {
1101
1047
  var ldtTupple = this._getTupple(index >> 1);
1102
-
1103
1048
  return ldtTupple[index % 2];
1104
1049
  };
1105
-
1106
1050
  return LDTUntils;
1107
1051
  }();
1108
-
1109
1052
  function ldtBinarySearch(array, value) {
1110
1053
  var hi = array.size - 1,
1111
- lo = -1,
1112
- mid;
1113
-
1054
+ lo = -1,
1055
+ mid;
1114
1056
  while (hi - lo > 1) {
1115
1057
  if (!value.isBefore(array.get(mid = hi + lo >> 1))) {
1116
1058
  lo = mid;
@@ -1118,14 +1060,11 @@
1118
1060
  hi = mid;
1119
1061
  }
1120
1062
  }
1121
-
1122
1063
  return hi;
1123
1064
  }
1124
-
1125
1065
  function offsetInSeconds(tzdbOffset) {
1126
1066
  return roundDown(+tzdbOffset * 60);
1127
1067
  }
1128
-
1129
1068
  function roundDown(r) {
1130
1069
  if (r < 0) {
1131
1070
  return Math.ceil(r);
@@ -1133,12 +1072,10 @@
1133
1072
  return Math.floor(r);
1134
1073
  }
1135
1074
  }
1136
-
1137
1075
  function binarySearch(array, value) {
1138
1076
  var hi = array.length - 1,
1139
- lo = -1,
1140
- mid;
1141
-
1077
+ lo = -1,
1078
+ mid;
1142
1079
  while (hi - lo > 1) {
1143
1080
  if (array[mid = hi + lo >> 1] <= value) {
1144
1081
  lo = mid;
@@ -1146,10 +1083,8 @@
1146
1083
  hi = mid;
1147
1084
  }
1148
1085
  }
1149
-
1150
1086
  return hi;
1151
1087
  }
1152
-
1153
1088
  function notSupported(msg) {
1154
1089
  throw new Error("not supported: " + msg);
1155
1090
  }
@@ -1160,69 +1095,56 @@
1160
1095
  } else if (charCode > 64) {
1161
1096
  return charCode - 29;
1162
1097
  }
1163
-
1164
1098
  return charCode - 48;
1165
1099
  }
1166
-
1167
1100
  function unpackBase60(string) {
1168
1101
  var i = 0,
1169
- parts = string.split('.'),
1170
- whole = parts[0],
1171
- fractional = parts[1] || '',
1172
- multiplier = 1,
1173
- num,
1174
- out = 0,
1175
- sign = 1;
1176
-
1102
+ parts = string.split('.'),
1103
+ whole = parts[0],
1104
+ fractional = parts[1] || '',
1105
+ multiplier = 1,
1106
+ num,
1107
+ out = 0,
1108
+ sign = 1;
1177
1109
  if (string.charCodeAt(0) === 45) {
1178
1110
  i = 1;
1179
1111
  sign = -1;
1180
1112
  }
1181
-
1182
1113
  for (i; i < whole.length; i++) {
1183
1114
  num = charCodeToInt(whole.charCodeAt(i));
1184
1115
  out = 60 * out + num;
1185
1116
  }
1186
-
1187
1117
  for (i = 0; i < fractional.length; i++) {
1188
1118
  multiplier = multiplier / 60;
1189
1119
  num = charCodeToInt(fractional.charCodeAt(i));
1190
1120
  out += num * multiplier;
1191
1121
  }
1192
-
1193
1122
  return out * sign;
1194
1123
  }
1195
-
1196
1124
  function arrayToInt(array) {
1197
1125
  for (var i = 0; i < array.length; i++) {
1198
1126
  array[i] = unpackBase60(array[i]);
1199
1127
  }
1200
1128
  }
1201
-
1202
1129
  function intToUntil(array, length) {
1203
1130
  for (var i = 0; i < length; i++) {
1204
1131
  array[i] = Math.round((array[i - 1] || 0) + array[i] * 60000);
1205
1132
  }
1206
-
1207
1133
  array[length - 1] = Infinity;
1208
1134
  }
1209
-
1210
1135
  function mapIndices(source, indices) {
1211
1136
  var out = [],
1212
- i;
1213
-
1137
+ i;
1214
1138
  for (i = 0; i < indices.length; i++) {
1215
1139
  out[i] = source[indices[i]];
1216
1140
  }
1217
-
1218
1141
  return out;
1219
1142
  }
1220
-
1221
1143
  function unpack(string) {
1222
1144
  var data = string.split('|'),
1223
- offsets = data[2].split(' '),
1224
- indices = data[3].split(''),
1225
- untils = data[4].split(' ');
1145
+ offsets = data[2].split(' '),
1146
+ indices = data[3].split(''),
1147
+ untils = data[4].split(' ');
1226
1148
  arrayToInt(offsets);
1227
1149
  arrayToInt(indices);
1228
1150
  arrayToInt(untils);
@@ -1243,37 +1165,28 @@
1243
1165
  var links = {};
1244
1166
  var MomentZoneRulesProvider = function (_ZoneRulesProvider) {
1245
1167
  _inheritsLoose(MomentZoneRulesProvider, _ZoneRulesProvider);
1246
-
1247
1168
  function MomentZoneRulesProvider() {
1248
1169
  return _ZoneRulesProvider.apply(this, arguments) || this;
1249
1170
  }
1250
-
1251
1171
  MomentZoneRulesProvider.getRules = function getRules(zoneId) {
1252
1172
  var tzdbZoneInfo = zones[links[zoneId]];
1253
-
1254
1173
  if (tzdbZoneInfo == null) {
1255
1174
  throw new core.DateTimeException("Unknown time-zone ID: " + zoneId);
1256
1175
  }
1257
-
1258
1176
  return new MomentZoneRules(tzdbZoneInfo);
1259
1177
  };
1260
-
1261
1178
  MomentZoneRulesProvider.getAvailableZoneIds = function getAvailableZoneIds() {
1262
1179
  return AVAILABLE_ZONE_IDS;
1263
1180
  };
1264
-
1265
1181
  MomentZoneRulesProvider.getVersion = function getVersion() {
1266
1182
  return TZDB_VERSION;
1267
1183
  };
1268
-
1269
1184
  MomentZoneRulesProvider.getTzdbData = function getTzdbData() {
1270
1185
  return TZDB_DATA;
1271
1186
  };
1272
-
1273
1187
  MomentZoneRulesProvider.loadTzdbData = function loadTzdbData(packedJson) {
1274
1188
  TZDB_DATA = packedJson;
1275
1189
  TZDB_VERSION = packedJson.version;
1276
-
1277
1190
  for (var _iterator = _createForOfIteratorHelperLoose(packedJson.zones), _step; !(_step = _iterator()).done;) {
1278
1191
  var packedZoneInfo = _step.value;
1279
1192
  var tzdbZoneInfo = unpack(packedZoneInfo);
@@ -1281,7 +1194,6 @@
1281
1194
  zones[tzdbZoneInfo.name] = tzdbZoneInfo;
1282
1195
  links[tzdbZoneInfo.name] = tzdbZoneInfo.name;
1283
1196
  }
1284
-
1285
1197
  for (var _iterator2 = _createForOfIteratorHelperLoose(packedJson.links), _step2; !(_step2 = _iterator2()).done;) {
1286
1198
  var packedLink = _step2.value;
1287
1199
  var link = packedLink.split('|');
@@ -1289,7 +1201,6 @@
1289
1201
  links[link[1]] = link[0];
1290
1202
  }
1291
1203
  };
1292
-
1293
1204
  return MomentZoneRulesProvider;
1294
1205
  }(core.ZoneRulesProvider);
1295
1206
 
@@ -1298,17 +1209,13 @@
1298
1209
  var resolvedTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
1299
1210
  return ZoneId.of(resolvedTimeZone);
1300
1211
  } catch (err) {}
1301
-
1302
1212
  return null;
1303
1213
  }
1304
-
1305
1214
  function extendSystemDefaultZoneId(ZoneId) {
1306
1215
  var resolvedZoneId = getResolvedZoneId(ZoneId);
1307
-
1308
1216
  if (resolvedZoneId == null) {
1309
1217
  return;
1310
1218
  }
1311
-
1312
1219
  ZoneId.systemDefault = function () {
1313
1220
  return resolvedZoneId;
1314
1221
  };