@nocobase/plugin-backup-restore 2.2.20 → 2.2.22

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 (195) hide show
  1. package/dist/externalVersion.js +5 -5
  2. package/dist/node_modules/@hapi/topo/package.json +1 -1
  3. package/dist/node_modules/@xhmikosr/decompress/package.json +1 -1
  4. package/dist/node_modules/archiver/package.json +1 -1
  5. package/dist/node_modules/fs-extra/package.json +1 -1
  6. package/dist/node_modules/moment/LICENSE +1 -1
  7. package/dist/node_modules/moment/dist/locale/am-et.js +62 -0
  8. package/dist/node_modules/moment/dist/locale/ar-dz.js +8 -8
  9. package/dist/node_modules/moment/dist/locale/ar-ly.js +8 -8
  10. package/dist/node_modules/moment/dist/locale/ar-ps.js +112 -0
  11. package/dist/node_modules/moment/dist/locale/ar.js +8 -8
  12. package/dist/node_modules/moment/dist/locale/be.js +2 -2
  13. package/dist/node_modules/moment/dist/locale/bs.js +14 -4
  14. package/dist/node_modules/moment/dist/locale/ca.js +7 -7
  15. package/dist/node_modules/moment/dist/locale/cs.js +5 -4
  16. package/dist/node_modules/moment/dist/locale/cv.js +2 -2
  17. package/dist/node_modules/moment/dist/locale/de-at.js +29 -1
  18. package/dist/node_modules/moment/dist/locale/de-ch.js +29 -1
  19. package/dist/node_modules/moment/dist/locale/de.js +29 -1
  20. package/dist/node_modules/moment/dist/locale/en-au.js +6 -6
  21. package/dist/node_modules/moment/dist/locale/en-ca.js +6 -6
  22. package/dist/node_modules/moment/dist/locale/en-gb.js +6 -6
  23. package/dist/node_modules/moment/dist/locale/en-ie.js +6 -6
  24. package/dist/node_modules/moment/dist/locale/en-il.js +6 -6
  25. package/dist/node_modules/moment/dist/locale/en-in.js +6 -6
  26. package/dist/node_modules/moment/dist/locale/en-nz.js +6 -6
  27. package/dist/node_modules/moment/dist/locale/en-sg.js +6 -6
  28. package/dist/node_modules/moment/dist/locale/hu.js +3 -3
  29. package/dist/node_modules/moment/dist/locale/id.js +12 -1
  30. package/dist/node_modules/moment/dist/locale/it.js +4 -4
  31. package/dist/node_modules/moment/dist/locale/ka.js +1 -1
  32. package/dist/node_modules/moment/dist/locale/ku-kmr.js +121 -0
  33. package/dist/node_modules/moment/dist/locale/lt.js +2 -2
  34. package/dist/node_modules/moment/dist/locale/me.js +2 -2
  35. package/dist/node_modules/moment/dist/locale/nb.js +4 -4
  36. package/dist/node_modules/moment/dist/locale/nl-be.js +2 -2
  37. package/dist/node_modules/moment/dist/locale/nl.js +1 -1
  38. package/dist/node_modules/moment/dist/locale/oc-lnc.js +6 -6
  39. package/dist/node_modules/moment/dist/locale/pl.js +1 -1
  40. package/dist/node_modules/moment/dist/locale/ps.js +177 -0
  41. package/dist/node_modules/moment/dist/locale/pt-br.js +14 -6
  42. package/dist/node_modules/moment/dist/locale/ru.js +2 -2
  43. package/dist/node_modules/moment/dist/locale/sv.js +7 -7
  44. package/dist/node_modules/moment/dist/locale/sw.js +56 -14
  45. package/dist/node_modules/moment/dist/locale/tet.js +6 -6
  46. package/dist/node_modules/moment/dist/locale/tlh.js +8 -8
  47. package/dist/node_modules/moment/dist/locale/tzl.js +2 -2
  48. package/dist/node_modules/moment/dist/locale/uk.js +9 -8
  49. package/dist/node_modules/moment/dist/locale/uz-latn.js +1 -1
  50. package/dist/node_modules/moment/dist/locale/uz.js +1 -1
  51. package/dist/node_modules/moment/dist/locale/x-pseudo.js +6 -6
  52. package/dist/node_modules/moment/dist/moment.js +1274 -1042
  53. package/dist/node_modules/moment/dojo.profile.js +11 -0
  54. package/dist/node_modules/moment/ender.js +1 -1
  55. package/dist/node_modules/moment/locale/am-et.js +73 -0
  56. package/dist/node_modules/moment/locale/ar-dz.js +8 -8
  57. package/dist/node_modules/moment/locale/ar-ly.js +8 -8
  58. package/dist/node_modules/moment/locale/ar-ps.js +123 -0
  59. package/dist/node_modules/moment/locale/ar.js +8 -8
  60. package/dist/node_modules/moment/locale/be.js +2 -2
  61. package/dist/node_modules/moment/locale/bm.js +2 -0
  62. package/dist/node_modules/moment/locale/bs.js +14 -4
  63. package/dist/node_modules/moment/locale/ca.js +7 -7
  64. package/dist/node_modules/moment/locale/cs.js +5 -4
  65. package/dist/node_modules/moment/locale/cv.js +2 -2
  66. package/dist/node_modules/moment/locale/de-at.js +29 -1
  67. package/dist/node_modules/moment/locale/de-ch.js +29 -1
  68. package/dist/node_modules/moment/locale/de.js +29 -1
  69. package/dist/node_modules/moment/locale/en-au.js +6 -6
  70. package/dist/node_modules/moment/locale/en-ca.js +6 -6
  71. package/dist/node_modules/moment/locale/en-gb.js +6 -6
  72. package/dist/node_modules/moment/locale/en-ie.js +6 -6
  73. package/dist/node_modules/moment/locale/en-il.js +6 -6
  74. package/dist/node_modules/moment/locale/en-in.js +6 -6
  75. package/dist/node_modules/moment/locale/en-nz.js +6 -6
  76. package/dist/node_modules/moment/locale/en-sg.js +6 -6
  77. package/dist/node_modules/moment/locale/hu.js +3 -3
  78. package/dist/node_modules/moment/locale/id.js +12 -1
  79. package/dist/node_modules/moment/locale/it.js +4 -4
  80. package/dist/node_modules/moment/locale/ka.js +1 -1
  81. package/dist/node_modules/moment/locale/ku-kmr.js +125 -0
  82. package/dist/node_modules/moment/locale/lt.js +2 -2
  83. package/dist/node_modules/moment/locale/me.js +2 -2
  84. package/dist/node_modules/moment/locale/mk.js +0 -1
  85. package/dist/node_modules/moment/locale/nb.js +4 -4
  86. package/dist/node_modules/moment/locale/nl-be.js +2 -2
  87. package/dist/node_modules/moment/locale/nl.js +1 -1
  88. package/dist/node_modules/moment/locale/oc-lnc.js +6 -6
  89. package/dist/node_modules/moment/locale/pl.js +1 -1
  90. package/dist/node_modules/moment/locale/ps.js +188 -0
  91. package/dist/node_modules/moment/locale/pt-br.js +14 -6
  92. package/dist/node_modules/moment/locale/ru.js +2 -2
  93. package/dist/node_modules/moment/locale/sv.js +7 -7
  94. package/dist/node_modules/moment/locale/sw.js +56 -14
  95. package/dist/node_modules/moment/locale/tet.js +6 -6
  96. package/dist/node_modules/moment/locale/tlh.js +8 -8
  97. package/dist/node_modules/moment/locale/tzl.js +2 -2
  98. package/dist/node_modules/moment/locale/uk.js +9 -8
  99. package/dist/node_modules/moment/locale/uz-latn.js +1 -1
  100. package/dist/node_modules/moment/locale/uz.js +1 -1
  101. package/dist/node_modules/moment/locale/x-pseudo.js +6 -6
  102. package/dist/node_modules/moment/min/locales.js +1380 -771
  103. package/dist/node_modules/moment/min/locales.min.js +211 -1
  104. package/dist/node_modules/moment/min/moment-with-locales.js +2705 -1858
  105. package/dist/node_modules/moment/min/moment-with-locales.min.js +216 -1
  106. package/dist/node_modules/moment/min/moment.min.js +8 -1
  107. package/dist/node_modules/moment/moment.d.ts +2 -0
  108. package/dist/node_modules/moment/moment.js +3 -3
  109. package/dist/node_modules/moment/package.json +1 -1
  110. package/dist/node_modules/moment/src/lib/create/check-overflow.js +15 -15
  111. package/dist/node_modules/moment/src/lib/create/from-array.js +77 -10
  112. package/dist/node_modules/moment/src/lib/create/from-string-and-array.js +2 -0
  113. package/dist/node_modules/moment/src/lib/create/parsing-flags.js +1 -0
  114. package/dist/node_modules/moment/src/lib/create/valid.js +25 -24
  115. package/dist/node_modules/moment/src/lib/duration/as.js +3 -15
  116. package/dist/node_modules/moment/src/lib/duration/bubble.js +4 -6
  117. package/dist/node_modules/moment/src/lib/duration/humanize.js +14 -3
  118. package/dist/node_modules/moment/src/lib/format/format.js +7 -4
  119. package/dist/node_modules/moment/src/lib/locale/en.js +6 -6
  120. package/dist/node_modules/moment/src/lib/locale/formats.js +19 -3
  121. package/dist/node_modules/moment/src/lib/locale/locales.js +33 -13
  122. package/dist/node_modules/moment/src/lib/locale/relative.js +25 -2
  123. package/dist/node_modules/moment/src/lib/locale/set.js +4 -0
  124. package/dist/node_modules/moment/src/lib/moment/calendar.js +10 -10
  125. package/dist/node_modules/moment/src/lib/moment/get-set.js +66 -22
  126. package/dist/node_modules/moment/src/lib/moment/min-max.js +15 -3
  127. package/dist/node_modules/moment/src/lib/parse/regex.js +4 -0
  128. package/dist/node_modules/moment/src/lib/units/aliases.js +50 -6
  129. package/dist/node_modules/moment/src/lib/units/day-of-month.js +7 -11
  130. package/dist/node_modules/moment/src/lib/units/day-of-week.js +52 -21
  131. package/dist/node_modules/moment/src/lib/units/day-of-year.js +0 -9
  132. package/dist/node_modules/moment/src/lib/units/era.js +13 -7
  133. package/dist/node_modules/moment/src/lib/units/hour.js +5 -12
  134. package/dist/node_modules/moment/src/lib/units/millisecond.js +0 -10
  135. package/dist/node_modules/moment/src/lib/units/minute.js +7 -12
  136. package/dist/node_modules/moment/src/lib/units/month.js +38 -28
  137. package/dist/node_modules/moment/src/lib/units/offset.js +13 -1
  138. package/dist/node_modules/moment/src/lib/units/priorities.js +18 -5
  139. package/dist/node_modules/moment/src/lib/units/quarter.js +0 -10
  140. package/dist/node_modules/moment/src/lib/units/second.js +7 -12
  141. package/dist/node_modules/moment/src/lib/units/week-calendar-utils.js +22 -8
  142. package/dist/node_modules/moment/src/lib/units/week-year.js +1 -11
  143. package/dist/node_modules/moment/src/lib/units/week.js +8 -15
  144. package/dist/node_modules/moment/src/lib/units/year.js +0 -10
  145. package/dist/node_modules/moment/src/lib/utils/deprecate.js +1 -1
  146. package/dist/node_modules/moment/src/locale/am-et.js +62 -0
  147. package/dist/node_modules/moment/src/locale/ar-dz.js +8 -8
  148. package/dist/node_modules/moment/src/locale/ar-ly.js +8 -8
  149. package/dist/node_modules/moment/src/locale/ar-ps.js +112 -0
  150. package/dist/node_modules/moment/src/locale/ar.js +8 -8
  151. package/dist/node_modules/moment/src/locale/be.js +2 -2
  152. package/dist/node_modules/moment/src/locale/bs.js +14 -4
  153. package/dist/node_modules/moment/src/locale/ca.js +7 -7
  154. package/dist/node_modules/moment/src/locale/cs.js +5 -4
  155. package/dist/node_modules/moment/src/locale/cv.js +2 -2
  156. package/dist/node_modules/moment/src/locale/de-at.js +29 -1
  157. package/dist/node_modules/moment/src/locale/de-ch.js +29 -1
  158. package/dist/node_modules/moment/src/locale/de.js +29 -1
  159. package/dist/node_modules/moment/src/locale/en-au.js +6 -6
  160. package/dist/node_modules/moment/src/locale/en-ca.js +6 -6
  161. package/dist/node_modules/moment/src/locale/en-gb.js +6 -6
  162. package/dist/node_modules/moment/src/locale/en-ie.js +6 -6
  163. package/dist/node_modules/moment/src/locale/en-il.js +6 -6
  164. package/dist/node_modules/moment/src/locale/en-in.js +6 -6
  165. package/dist/node_modules/moment/src/locale/en-nz.js +6 -6
  166. package/dist/node_modules/moment/src/locale/en-sg.js +6 -6
  167. package/dist/node_modules/moment/src/locale/hu.js +3 -3
  168. package/dist/node_modules/moment/src/locale/id.js +12 -1
  169. package/dist/node_modules/moment/src/locale/it.js +4 -4
  170. package/dist/node_modules/moment/src/locale/ka.js +1 -1
  171. package/dist/node_modules/moment/src/locale/ku-kmr.js +121 -0
  172. package/dist/node_modules/moment/src/locale/lt.js +2 -2
  173. package/dist/node_modules/moment/src/locale/me.js +2 -2
  174. package/dist/node_modules/moment/src/locale/nb.js +4 -4
  175. package/dist/node_modules/moment/src/locale/nl-be.js +2 -2
  176. package/dist/node_modules/moment/src/locale/nl.js +1 -1
  177. package/dist/node_modules/moment/src/locale/oc-lnc.js +6 -6
  178. package/dist/node_modules/moment/src/locale/pl.js +1 -1
  179. package/dist/node_modules/moment/src/locale/ps.js +177 -0
  180. package/dist/node_modules/moment/src/locale/pt-br.js +14 -6
  181. package/dist/node_modules/moment/src/locale/ru.js +2 -2
  182. package/dist/node_modules/moment/src/locale/sv.js +7 -7
  183. package/dist/node_modules/moment/src/locale/sw.js +56 -14
  184. package/dist/node_modules/moment/src/locale/tet.js +6 -6
  185. package/dist/node_modules/moment/src/locale/tlh.js +8 -8
  186. package/dist/node_modules/moment/src/locale/tzl.js +2 -2
  187. package/dist/node_modules/moment/src/locale/uk.js +9 -8
  188. package/dist/node_modules/moment/src/locale/uz-latn.js +1 -1
  189. package/dist/node_modules/moment/src/locale/uz.js +1 -1
  190. package/dist/node_modules/moment/src/locale/x-pseudo.js +6 -6
  191. package/dist/node_modules/moment/src/moment.js +2 -2
  192. package/dist/node_modules/moment/ts3.1-typings/moment.d.ts +258 -78
  193. package/dist/node_modules/semver/package.json +1 -1
  194. package/package.json +2 -2
  195. package/dist/node_modules/moment/package.js +0 -11
@@ -0,0 +1,177 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Pashto [ps]
3
+ //! author : Hanif Hefaz : https://github.com/hanifhefaz
4
+
5
+ import moment from '../moment';
6
+
7
+ var symbolMap = {
8
+ 1: '۱',
9
+ 2: '۲',
10
+ 3: '۳',
11
+ 4: '۴',
12
+ 5: '۵',
13
+ 6: '۶',
14
+ 7: '۷',
15
+ 8: '۸',
16
+ 9: '۹',
17
+ 0: '۰',
18
+ },
19
+ numberMap = {
20
+ '۱': '1',
21
+ '۲': '2',
22
+ '۳': '3',
23
+ '۴': '4',
24
+ '۵': '5',
25
+ '۶': '6',
26
+ '۷': '7',
27
+ '۸': '8',
28
+ '۹': '9',
29
+ '۰': '0',
30
+ },
31
+ months = {
32
+ format: 'جنوري_فبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سېپتمبر_اکتوبر_نومبر_دسمبر'.split(
33
+ '_'
34
+ ),
35
+ standalone:
36
+ 'جنوري_فېبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سپتمبر_اکتوبر_نومبر_دسمبر'.split(
37
+ '_'
38
+ ),
39
+ isFormat: /D[oD]?(\[[^\[\]]*\]|\s|,)+MMMM?/,
40
+ },
41
+ monthsShort = {
42
+ format: 'جنوري_فبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سېپتمبر_اکتوبر_نومبر_دسمبر'.split(
43
+ '_'
44
+ ),
45
+ standalone:
46
+ 'جنوري_فبروري_مارچ_اپریل_مۍ_جون_جولای_اګست_سپتمبر_اکتوبر_نومبر_دسمبر'.split(
47
+ '_'
48
+ ),
49
+ },
50
+ monthsParse = [
51
+ /^جنوري$/i,
52
+ /^(فبروري|فېبروري)$/i,
53
+ /^مارچ$/i,
54
+ /^اپریل$/i,
55
+ /^مۍ$/i,
56
+ /^جون$/i,
57
+ /^جولای$/i,
58
+ /^اګست$/i,
59
+ /^(سپتمبر|سېپتمبر)$/i,
60
+ /^اکتوبر$/i,
61
+ /^نومبر$/i,
62
+ /^دسمبر$/i,
63
+ ],
64
+ monthsRegex =
65
+ /^(جنوري|فبروري|فېبروري|مارچ|اپریل|مۍ|جون|جولای|اګست|سپتمبر|سېپتمبر|اکتوبر|نومبر|دسمبر)/i;
66
+
67
+ function relativeTime(number, withoutSuffix, key, isFuture) {
68
+ var format =
69
+ isFuture && !withoutSuffix
70
+ ? {
71
+ s: 'څو ثانيو',
72
+ ss: '%d ثانيو',
73
+ m: 'يوه دقيقه',
74
+ mm: '%d دقيقو',
75
+ h: 'يو ساعت',
76
+ hh: '%d ساعتو',
77
+ d: 'يوه ورځ',
78
+ dd: '%d ورځو',
79
+ M: 'يوه مياشت',
80
+ MM: '%d مياشتو',
81
+ y: 'يو کال',
82
+ yy: '%d کالونو',
83
+ }
84
+ : {
85
+ s: 'څو ثانيې',
86
+ ss: '%d ثانيې',
87
+ m: 'يوه دقيقه',
88
+ mm: '%d دقيقې',
89
+ h: 'يو ساعت',
90
+ hh: '%d ساعتونه',
91
+ d: 'يوه ورځ',
92
+ dd: '%d ورځې',
93
+ M: 'يوه مياشت',
94
+ MM: '%d مياشتې',
95
+ y: 'يو کال',
96
+ yy: '%d کاله',
97
+ };
98
+
99
+ return format[key].replace('%d', number);
100
+ }
101
+
102
+ export default moment.defineLocale('ps', {
103
+ months: months,
104
+ monthsShort: monthsShort,
105
+ monthsParse: monthsParse,
106
+ longMonthsParse: monthsParse,
107
+ shortMonthsParse: monthsParse,
108
+ monthsRegex: monthsRegex,
109
+ monthsShortRegex: monthsRegex,
110
+ monthsStrictRegex: monthsRegex,
111
+ monthsShortStrictRegex: monthsRegex,
112
+ weekdays: 'یکشنبه_دوشنبه_سه شنبه_چهارشنبه_پنج شنبه_جمعه_شنبه'.split('_'),
113
+ weekdaysShort: 'یکشنبه_دوشنبه_سه شنبه_چهارشنبه_پنج شنبه_جمعه_شنبه'.split(
114
+ '_'
115
+ ),
116
+ weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
117
+ weekdaysParseExact: true,
118
+ longDateFormat: {
119
+ LT: 'H:mm',
120
+ LTS: 'H:mm:ss',
121
+ L: 'YYYY/M/D',
122
+ LL: 'D MMMM YYYY',
123
+ LLL: 'D MMMM YYYY H:mm',
124
+ LLLL: 'dddd D, MMMM, YYYY [په] H:mm',
125
+ },
126
+ meridiemParse: /غ\.م|غ\.و\./,
127
+ isPM: function (input) {
128
+ return input === 'غ.و.';
129
+ },
130
+ meridiem: function (hour) {
131
+ return hour < 12 ? 'غ.م' : 'غ.و.';
132
+ },
133
+ calendar: {
134
+ sameDay: '[نن په] LT',
135
+ nextDay: '[سبا په] LT',
136
+ nextWeek: 'dddd [په] LT',
137
+ lastDay: '[پرون په] LT',
138
+ lastWeek: 'dddd [په] LT',
139
+ sameElse: 'L',
140
+ },
141
+ relativeTime: {
142
+ future: 'په %s کې',
143
+ past: '%s مخکې',
144
+ s: relativeTime,
145
+ ss: relativeTime,
146
+ m: relativeTime,
147
+ mm: relativeTime,
148
+ h: relativeTime,
149
+ hh: relativeTime,
150
+ d: relativeTime,
151
+ dd: relativeTime,
152
+ M: relativeTime,
153
+ MM: relativeTime,
154
+ y: relativeTime,
155
+ yy: relativeTime,
156
+ },
157
+ preparse: function (string) {
158
+ return string
159
+ .replace(/[۰-۹]/g, function (match) {
160
+ return numberMap[match];
161
+ })
162
+ .replace(/،/g, ',');
163
+ },
164
+ postformat: function (string) {
165
+ return string
166
+ .replace(/\d/g, function (match) {
167
+ return symbolMap[match];
168
+ })
169
+ .replace(/,/g, '،');
170
+ },
171
+ dayOfMonthOrdinalParse: /\d{1,2}/,
172
+ ordinal: '%d',
173
+ week: {
174
+ dow: 6, // Saturday is the first day of the week.
175
+ doy: 12, // The week that contains Jan 12th is the first week of the year.
176
+ },
177
+ });
@@ -25,14 +25,22 @@ export default moment.defineLocale('pt-br', {
25
25
  LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
26
26
  },
27
27
  calendar: {
28
- sameDay: '[Hoje às] LT',
29
- nextDay: '[Amanhã às] LT',
30
- nextWeek: 'dddd [às] LT',
31
- lastDay: '[Ontem às] LT',
28
+ sameDay: function () {
29
+ return '[Hoje ' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
30
+ },
31
+ nextDay: function () {
32
+ return '[Amanhã ' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
33
+ },
34
+ nextWeek: function () {
35
+ return 'dddd [' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
36
+ },
37
+ lastDay: function () {
38
+ return '[Ontem ' + (this.hours() >= 2 ? 'às' : 'à') + '] LT';
39
+ },
32
40
  lastWeek: function () {
33
41
  return this.day() === 0 || this.day() === 6
34
- ? '[Último] dddd [às] LT' // Saturday + Sunday
35
- : '[Última] dddd [às] LT'; // Monday - Friday
42
+ ? '[Último] dddd [' + (this.hours() >= 2 ? 'às' : 'à') + '] LT' // Saturday + Sunday
43
+ : '[Última] dddd [' + (this.hours() >= 2 ? 'às' : 'à') + '] LT'; // Monday - Friday
36
44
  },
37
45
  sameElse: 'L',
38
46
  },
@@ -11,8 +11,8 @@ function plural(word, num) {
11
11
  return num % 10 === 1 && num % 100 !== 11
12
12
  ? forms[0]
13
13
  : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
14
- ? forms[1]
15
- : forms[2];
14
+ ? forms[1]
15
+ : forms[2];
16
16
  }
17
17
  function relativeTimeWithPlural(number, withoutSuffix, key) {
18
18
  var format = {
@@ -10,7 +10,7 @@ export default moment.defineLocale('sv', {
10
10
  ),
11
11
  monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
12
12
  weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
13
- weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
13
+ weekdaysShort: 'sön_mån_tis_ons_tors_fre_lör'.split('_'),
14
14
  weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
15
15
  longDateFormat: {
16
16
  LT: 'HH:mm',
@@ -53,12 +53,12 @@ export default moment.defineLocale('sv', {
53
53
  ~~((number % 100) / 10) === 1
54
54
  ? ':e'
55
55
  : b === 1
56
- ? ':a'
57
- : b === 2
58
- ? ':a'
59
- : b === 3
60
- ? ':e'
61
- : ':e';
56
+ ? ':a'
57
+ : b === 2
58
+ ? ':a'
59
+ : b === 3
60
+ ? ':e'
61
+ : ':e';
62
62
  return number + output;
63
63
  },
64
64
  week: {
@@ -4,6 +4,46 @@
4
4
 
5
5
  import moment from '../moment';
6
6
 
7
+ var relativeTime = {
8
+ ss: 'sekunde %d',
9
+ m: 'dakika moja',
10
+ mm: 'dakika %d',
11
+ h: 'saa moja',
12
+ hh: 'saa %d',
13
+ d: 'siku moja',
14
+ dd: 'siku %d',
15
+ M: 'mwezi mmoja',
16
+ MM: 'miezi %d',
17
+ y: 'mwaka mmoja',
18
+ yy: 'miaka %d',
19
+ };
20
+
21
+ function relativeTimeWithSuffix(number, withoutSuffix, key, isFuture) {
22
+ var output = relativeTime[key].replace(/%d/i, number);
23
+
24
+ if (withoutSuffix || isFuture) {
25
+ return output;
26
+ }
27
+
28
+ switch (key) {
29
+ case 'ss':
30
+ case 'mm':
31
+ case 'hh':
32
+ case 'dd':
33
+ return output + (number === 1 ? ' iliyopita' : ' zilizopita');
34
+ case 'm':
35
+ case 'h':
36
+ case 'd':
37
+ return output + ' iliyopita';
38
+ case 'M':
39
+ case 'y':
40
+ return output + ' uliopita';
41
+ case 'MM':
42
+ case 'yy':
43
+ return output + ' iliyopita';
44
+ }
45
+ }
46
+
7
47
  export default moment.defineLocale('sw', {
8
48
  months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
9
49
  '_'
@@ -27,26 +67,28 @@ export default moment.defineLocale('sw', {
27
67
  calendar: {
28
68
  sameDay: '[leo saa] LT',
29
69
  nextDay: '[kesho saa] LT',
30
- nextWeek: '[wiki ijayo] dddd [saat] LT',
70
+ nextWeek: 'dddd [ijayo saa] LT',
31
71
  lastDay: '[jana] LT',
32
- lastWeek: '[wiki iliyopita] dddd [saat] LT',
72
+ lastWeek: 'dddd [iliyopita saa] LT',
33
73
  sameElse: 'L',
34
74
  },
35
75
  relativeTime: {
36
76
  future: '%s baadaye',
37
- past: 'tokea %s',
77
+ past: function (output) {
78
+ return output === 'hivi punde' ? 'tokea ' + output : output;
79
+ },
38
80
  s: 'hivi punde',
39
- ss: 'sekunde %d',
40
- m: 'dakika moja',
41
- mm: 'dakika %d',
42
- h: 'saa limoja',
43
- hh: 'masaa %d',
44
- d: 'siku moja',
45
- dd: 'siku %d',
46
- M: 'mwezi mmoja',
47
- MM: 'miezi %d',
48
- y: 'mwaka mmoja',
49
- yy: 'miaka %d',
81
+ ss: relativeTimeWithSuffix,
82
+ m: relativeTimeWithSuffix,
83
+ mm: relativeTimeWithSuffix,
84
+ h: relativeTimeWithSuffix,
85
+ hh: relativeTimeWithSuffix,
86
+ d: relativeTimeWithSuffix,
87
+ dd: relativeTimeWithSuffix,
88
+ M: relativeTimeWithSuffix,
89
+ MM: relativeTimeWithSuffix,
90
+ y: relativeTimeWithSuffix,
91
+ yy: relativeTimeWithSuffix,
50
92
  },
51
93
  week: {
52
94
  dow: 1, // Monday is the first day of the week.
@@ -53,12 +53,12 @@ export default moment.defineLocale('tet', {
53
53
  ~~((number % 100) / 10) === 1
54
54
  ? 'th'
55
55
  : b === 1
56
- ? 'st'
57
- : b === 2
58
- ? 'nd'
59
- : b === 3
60
- ? 'rd'
61
- : 'th';
56
+ ? 'st'
57
+ : b === 2
58
+ ? 'nd'
59
+ : b === 3
60
+ ? 'rd'
61
+ : 'th';
62
62
  return number + output;
63
63
  },
64
64
  week: {
@@ -12,10 +12,10 @@ function translateFuture(output) {
12
12
  output.indexOf('jaj') !== -1
13
13
  ? time.slice(0, -3) + 'leS'
14
14
  : output.indexOf('jar') !== -1
15
- ? time.slice(0, -3) + 'waQ'
16
- : output.indexOf('DIS') !== -1
17
- ? time.slice(0, -3) + 'nem'
18
- : time + ' pIq';
15
+ ? time.slice(0, -3) + 'waQ'
16
+ : output.indexOf('DIS') !== -1
17
+ ? time.slice(0, -3) + 'nem'
18
+ : time + ' pIq';
19
19
  return time;
20
20
  }
21
21
 
@@ -25,10 +25,10 @@ function translatePast(output) {
25
25
  output.indexOf('jaj') !== -1
26
26
  ? time.slice(0, -3) + 'Hu’'
27
27
  : output.indexOf('jar') !== -1
28
- ? time.slice(0, -3) + 'wen'
29
- : output.indexOf('DIS') !== -1
30
- ? time.slice(0, -3) + 'ben'
31
- : time + ' ret';
28
+ ? time.slice(0, -3) + 'wen'
29
+ : output.indexOf('DIS') !== -1
30
+ ? time.slice(0, -3) + 'ben'
31
+ : time + ' ret';
32
32
  return time;
33
33
  }
34
34
 
@@ -84,6 +84,6 @@ function processRelativeTime(number, withoutSuffix, key, isFuture) {
84
84
  return isFuture
85
85
  ? format[key][0]
86
86
  : withoutSuffix
87
- ? format[key][0]
88
- : format[key][1];
87
+ ? format[key][0]
88
+ : format[key][1];
89
89
  }
@@ -2,6 +2,7 @@
2
2
  //! locale : Ukrainian [uk]
3
3
  //! author : zemlanin : https://github.com/zemlanin
4
4
  //! Author : Menelion Elensúle : https://github.com/Oire
5
+ //! Author : Oleksandr Trukhnii : https://github.com/JohnJunior
5
6
 
6
7
  import moment from '../moment';
7
8
 
@@ -10,8 +11,8 @@ function plural(word, num) {
10
11
  return num % 10 === 1 && num % 100 !== 11
11
12
  ? forms[0]
12
13
  : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
13
- ? forms[1]
14
- : forms[2];
14
+ ? forms[1]
15
+ : forms[2];
15
16
  }
16
17
  function relativeTimeWithPlural(number, withoutSuffix, key) {
17
18
  var format = {
@@ -33,15 +34,15 @@ function relativeTimeWithPlural(number, withoutSuffix, key) {
33
34
  function weekdaysCaseReplace(m, format) {
34
35
  var weekdays = {
35
36
  nominative:
36
- 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
37
+ 'неділя_понеділок_вівторок_середа_четвер_пʼятниця_субота'.split(
37
38
  '_'
38
39
  ),
39
40
  accusative:
40
- 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
41
+ 'неділю_понеділок_вівторок_середу_четвер_пʼятницю_суботу'.split(
41
42
  '_'
42
43
  ),
43
44
  genitive:
44
- 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
45
+ 'неділі_понеділка_вівторка_середи_четверга_пʼятниці_суботи'.split(
45
46
  '_'
46
47
  ),
47
48
  },
@@ -59,8 +60,8 @@ function weekdaysCaseReplace(m, format) {
59
60
  nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
60
61
  ? 'accusative'
61
62
  : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
62
- ? 'genitive'
63
- : 'nominative';
63
+ ? 'genitive'
64
+ : 'nominative';
64
65
  return weekdays[nounCase][m.day()];
65
66
  }
66
67
  function processHoursFunction(str) {
@@ -162,6 +163,6 @@ export default moment.defineLocale('uk', {
162
163
  },
163
164
  week: {
164
165
  dow: 1, // Monday is the first day of the week.
165
- doy: 7, // The week that contains Jan 7th is the first week of the year.
166
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
166
167
  },
167
168
  });
@@ -33,7 +33,7 @@ export default moment.defineLocale('uz-latn', {
33
33
  },
34
34
  relativeTime: {
35
35
  future: 'Yaqin %s ichida',
36
- past: 'Bir necha %s oldin',
36
+ past: '%s oldin',
37
37
  s: 'soniya',
38
38
  ss: '%d soniya',
39
39
  m: 'bir daqiqa',
@@ -30,7 +30,7 @@ export default moment.defineLocale('uz', {
30
30
  },
31
31
  relativeTime: {
32
32
  future: 'Якин %s ичида',
33
- past: 'Бир неча %s олдин',
33
+ past: '%s олдин',
34
34
  s: 'фурсат',
35
35
  ss: '%d фурсат',
36
36
  m: 'бир дакика',
@@ -58,12 +58,12 @@ export default moment.defineLocale('x-pseudo', {
58
58
  ~~((number % 100) / 10) === 1
59
59
  ? 'th'
60
60
  : b === 1
61
- ? 'st'
62
- : b === 2
63
- ? 'nd'
64
- : b === 3
65
- ? 'rd'
66
- : 'th';
61
+ ? 'st'
62
+ : b === 2
63
+ ? 'nd'
64
+ : b === 3
65
+ ? 'rd'
66
+ : 'th';
67
67
  return number + output;
68
68
  },
69
69
  week: {
@@ -1,12 +1,12 @@
1
1
  //! moment.js
2
- //! version : 2.29.4
2
+ //! version : 2.31.0
3
3
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
4
  //! license : MIT
5
5
  //! momentjs.com
6
6
 
7
7
  import { hooks as moment, setHookCallback } from './lib/utils/hooks';
8
8
 
9
- moment.version = '2.29.4';
9
+ moment.version = '2.31.0';
10
10
 
11
11
  import {
12
12
  min,