Disqus Comment System - Version 3.0.18

Version Description

  • Tested plugin with WordPress 5.6 and updated documentation
  • Fixed count.js script being loaded on unnecessary pages
  • Fixed comments showing sync date instead of creation date in WordPress admin
Download this release

Release Info

Developer Disqus
Plugin Icon Disqus Comment System
Version 3.0.18
Comparing to
See all releases

Code changes from version 3.0.17 to 3.0.18

README.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Disqus Comment System ===
2
- Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12, iamfrancisyo, brevityness
3
- Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
4
  Requires at least: 4.4
5
- Tested up to: 5.1
6
- Stable tag: 3.0.17
7
- Requires PHP: 5.4
8
 
9
  Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
10
 
@@ -22,7 +22,7 @@ The Disqus for WordPress plugin lets site owners and developers easily add Disqu
22
  * Improve SEO ranking with user generated content
23
  * Keep spam out with our best-in-class anti-spam filter powered by Akismet
24
  * Single profile for commenting on over 4 million sites including social login support for Facebook, Twitter, and Google accounts
25
- * Trusted by sites like Wired, CBS, and Entertainment Weekly
26
 
27
  = Disqus Features =
28
 
@@ -42,7 +42,7 @@ The Disqus for WordPress plugin lets site owners and developers easily add Disqu
42
  * Flexible login options - Social login with Facebook, Twitter, and Google, SSO, and guest commenting support
43
  * Instant activity notifications, email notifications, and digests pull readers back in
44
  * User profiles that show you recent comment history and frequented communities
45
- * Discovery widget that shows active discussions happening elsewhere on your site
46
 
47
  = Moderation Features =
48
 
@@ -80,7 +80,7 @@ Yes, you can import your existing WordPress comments into Disqus during installa
80
 
81
  = How do I set up Single Sign-On (SSO)? =
82
 
83
- SSO allows users in your database to comment without requiring them to register with Disqus. Access to SSO is currently available as an add-on for users with a [Pro subscription](https://help.disqus.com/customer/en/portal/articles/2759918-disqus-pricing-and-plans#pro-plan). If you would like to enable this feature, [contact our Support team](https://disqus.com/support/?article=contact_SSO). Also check out our guide for [setting up SSO on WordPress](https://help.disqus.com/customer/portal/articles/1148635).
84
 
85
  = I’m experiencing an issue with my installation of Disqus. =
86
 
@@ -111,10 +111,10 @@ Go to [https://disqus.com/help/wordpress](https://disqus.com/help/wordpress)
111
  == Screenshots ==
112
 
113
  1. Disqus Comments
114
- 2. Comment Reply
115
- 3. Disqus Audience Platform
116
  4. Featured Comment
117
- 5. Discovery Box (part of Disqus Comments)
118
  6. Mentions
119
  7. Real-time Comments
120
  8. Commenter User Profile
@@ -124,6 +124,11 @@ Go to [https://disqus.com/help/wordpress](https://disqus.com/help/wordpress)
124
 
125
  == Changelog ==
126
 
 
 
 
 
 
127
  = 3.0.17 =
128
  * Bumping version for WP 5.1 version bump. (Changes to README versions and main php file's version)
129
  * Fixed Undefined index bug where HTTP_HOST could not find web server
1
  === Disqus Comment System ===
2
+ Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12, iamfrancisyo, brevityness, tterb
3
+ Tags: disqus, comments, engagement, threaded, email, notification, spam, avatars, community, profile, widget
4
  Requires at least: 4.4
5
+ Tested up to: 5.6
6
+ Stable tag: 3.0.18
7
+ Requires PHP: 5.6
8
 
9
  Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
10
 
22
  * Improve SEO ranking with user generated content
23
  * Keep spam out with our best-in-class anti-spam filter powered by Akismet
24
  * Single profile for commenting on over 4 million sites including social login support for Facebook, Twitter, and Google accounts
25
+ * Trusted by sites like ABC News, Entertainment Weekly, and Rotten Tomatoes
26
 
27
  = Disqus Features =
28
 
42
  * Flexible login options - Social login with Facebook, Twitter, and Google, SSO, and guest commenting support
43
  * Instant activity notifications, email notifications, and digests pull readers back in
44
  * User profiles that show you recent comment history and frequented communities
45
+ * Recommendations widget that shows where active discussions are happening elsewhere on your site
46
 
47
  = Moderation Features =
48
 
80
 
81
  = How do I set up Single Sign-On (SSO)? =
82
 
83
+ SSO allows users in your database to comment without requiring them to register with Disqus. Access to SSO is currently available as an add-on for users with a [Business subscription](https://help.disqus.com/customer/en/portal/articles/2759918-disqus-pricing-and-plans#business-plan). If you would like to enable this feature, [contact our Support team](https://disqus.com/support/?article=contact_SSO). Also check out our guide for [setting up SSO on WordPress](https://help.disqus.com/customer/portal/articles/1148635).
84
 
85
  = I’m experiencing an issue with my installation of Disqus. =
86
 
111
  == Screenshots ==
112
 
113
  1. Disqus Comments
114
+ 2. Disqus Audience Platform
115
+ 3. Comment Reply
116
  4. Featured Comment
117
+ 5. Recommendations (part of Disqus Comments)
118
  6. Mentions
119
  7. Real-time Comments
120
  8. Commenter User Profile
124
 
125
  == Changelog ==
126
 
127
+ = 3.0.18 =
128
+ * Tested plugin with WordPress 5.6 and updated documentation
129
+ * Fixed count.js script being loaded on unnecessary pages
130
+ * Fixed comments showing sync date instead of creation date in WordPress admin
131
+
132
  = 3.0.17 =
133
  * Bumping version for WP 5.1 version bump. (Changes to README versions and main php file's version)
134
  * Fixed Undefined index bug where HTTP_HOST could not find web server
admin/bundles/js/en.disqus-admin.bundle.3.0.17.js DELETED
@@ -1,52721 +0,0 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
- /******/
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
- /******/
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId]) {
10
- /******/ return installedModules[moduleId].exports;
11
- /******/ }
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ i: moduleId,
15
- /******/ l: false,
16
- /******/ exports: {}
17
- /******/ };
18
- /******/
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
- /******/
22
- /******/ // Flag the module as loaded
23
- /******/ module.l = true;
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
- /******/
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
- /******/
36
- /******/ // define getter function for harmony exports
37
- /******/ __webpack_require__.d = function(exports, name, getter) {
38
- /******/ if(!__webpack_require__.o(exports, name)) {
39
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
40
- /******/ }
41
- /******/ };
42
- /******/
43
- /******/ // define __esModule on exports
44
- /******/ __webpack_require__.r = function(exports) {
45
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47
- /******/ }
48
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
49
- /******/ };
50
- /******/
51
- /******/ // create a fake namespace object
52
- /******/ // mode & 1: value is a module id, require it
53
- /******/ // mode & 2: merge all properties of value into the ns
54
- /******/ // mode & 4: return value when already ns object
55
- /******/ // mode & 8|1: behave like require
56
- /******/ __webpack_require__.t = function(value, mode) {
57
- /******/ if(mode & 1) value = __webpack_require__(value);
58
- /******/ if(mode & 8) return value;
59
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60
- /******/ var ns = Object.create(null);
61
- /******/ __webpack_require__.r(ns);
62
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64
- /******/ return ns;
65
- /******/ };
66
- /******/
67
- /******/ // getDefaultExport function for compatibility with non-harmony modules
68
- /******/ __webpack_require__.n = function(module) {
69
- /******/ var getter = module && module.__esModule ?
70
- /******/ function getDefault() { return module['default']; } :
71
- /******/ function getModuleExports() { return module; };
72
- /******/ __webpack_require__.d(getter, 'a', getter);
73
- /******/ return getter;
74
- /******/ };
75
- /******/
76
- /******/ // Object.prototype.hasOwnProperty.call
77
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78
- /******/
79
- /******/ // __webpack_public_path__
80
- /******/ __webpack_require__.p = "";
81
- /******/
82
- /******/
83
- /******/ // Load entry module and return exports
84
- /******/ return __webpack_require__(__webpack_require__.s = "./frontend/src/ts/index.ts");
85
- /******/ })
86
- /************************************************************************/
87
- /******/ ({
88
-
89
- /***/ "./frontend/src/ts/DisqusApi.ts":
90
- /*!**************************************!*\
91
- !*** ./frontend/src/ts/DisqusApi.ts ***!
92
- \**************************************/
93
- /*! no static exports found */
94
- /***/ (function(module, exports, __webpack_require__) {
95
-
96
- "use strict";
97
-
98
- Object.defineProperty(exports, "__esModule", { value: true });
99
- var DisqusApi = /** @class */ (function () {
100
- function DisqusApi() {
101
- }
102
- Object.defineProperty(DisqusApi, "instance", {
103
- get: function () {
104
- return disqusApi;
105
- },
106
- enumerable: true,
107
- configurable: true
108
- });
109
- Object.defineProperty(DisqusApi.prototype, "apiKey", {
110
- // tslint:enable:variable-name
111
- get: function () {
112
- return this._apiKey;
113
- },
114
- enumerable: true,
115
- configurable: true
116
- });
117
- Object.defineProperty(DisqusApi.prototype, "accessToken", {
118
- get: function () {
119
- return this._accessToken;
120
- },
121
- enumerable: true,
122
- configurable: true
123
- });
124
- Object.defineProperty(DisqusApi.prototype, "forum", {
125
- get: function () {
126
- return this._forum;
127
- },
128
- enumerable: true,
129
- configurable: true
130
- });
131
- DisqusApi.prototype.configure = function (apiKey, accessToken, forum) {
132
- this._apiKey = apiKey;
133
- this._accessToken = accessToken;
134
- this._forum = forum;
135
- };
136
- DisqusApi.prototype.createImport = function (xmlContent, filename, onLoad) {
137
- var formData = new FormData();
138
- formData.append('upload', new Blob([xmlContent], { type: 'text/xml' }), filename);
139
- formData.append('sourceType', '0');
140
- formData.append('forum', this.forum);
141
- return this.post('imports/create', formData, onLoad);
142
- };
143
- DisqusApi.prototype.listPostsForForum = function (cursor, startDate, endDate, limit, onLoad) {
144
- var query = [
145
- "start=" + startDate.toISOString(),
146
- "end=" + endDate.toISOString(),
147
- "forum=" + this.forum,
148
- 'related=thread',
149
- "limit=" + Math.min(Math.max(limit, 1), 100),
150
- "cursor=" + (cursor || ''),
151
- ].join('&');
152
- return this.get('posts/list', query, onLoad);
153
- };
154
- DisqusApi.prototype.get = function (path, query, onLoad) {
155
- if (!this.apiKey)
156
- return null;
157
- var XHR = new XMLHttpRequest();
158
- XHR.open('GET', "https://disqus.com/api/3.0/" + path + ".json?api_key=" + this.apiKey + "&access_token=" + this.accessToken + "&" + query);
159
- XHR.addEventListener('load', onLoad);
160
- XHR.send();
161
- return XHR;
162
- };
163
- DisqusApi.prototype.post = function (path, data, onLoad) {
164
- if (!this.apiKey)
165
- return null;
166
- data.append('api_key', this.apiKey);
167
- data.append('access_token', this.accessToken);
168
- var XHR = new XMLHttpRequest();
169
- XHR.open('POST', "https://disqus.com/api/3.0/" + path + ".json");
170
- XHR.addEventListener('load', onLoad);
171
- XHR.send(data);
172
- return XHR;
173
- };
174
- return DisqusApi;
175
- }());
176
- exports.DisqusApi = DisqusApi;
177
- var disqusApi = new DisqusApi();
178
-
179
-
180
- /***/ }),
181
-
182
- /***/ "./frontend/src/ts/REST_OPTIONS.ts":
183
- /*!*****************************************!*\
184
- !*** ./frontend/src/ts/REST_OPTIONS.ts ***!
185
- \*****************************************/
186
- /*! no static exports found */
187
- /***/ (function(module, exports, __webpack_require__) {
188
-
189
- "use strict";
190
-
191
- Object.defineProperty(exports, "__esModule", { value: true });
192
- var WIN = window;
193
- var REST_OPTIONS = WIN.DISQUS_WP && WIN.DISQUS_WP.rest;
194
- exports.default = REST_OPTIONS;
195
-
196
-
197
- /***/ }),
198
-
199
- /***/ "./frontend/src/ts/WordPressCommentExporter.ts":
200
- /*!*****************************************************!*\
201
- !*** ./frontend/src/ts/WordPressCommentExporter.ts ***!
202
- \*****************************************************/
203
- /*! no static exports found */
204
- /***/ (function(module, exports, __webpack_require__) {
205
-
206
- "use strict";
207
-
208
- Object.defineProperty(exports, "__esModule", { value: true });
209
- var actions_1 = __webpack_require__(/*! ./actions */ "./frontend/src/ts/actions.ts");
210
- var DisqusApi_1 = __webpack_require__(/*! ./DisqusApi */ "./frontend/src/ts/DisqusApi.ts");
211
- var AdminState_1 = __webpack_require__(/*! ./reducers/AdminState */ "./frontend/src/ts/reducers/AdminState.ts");
212
- var WordPressRestApi_1 = __webpack_require__(/*! ./WordPressRestApi */ "./frontend/src/ts/WordPressRestApi.ts");
213
- var POSTS_PER_PAGE = 10;
214
- exports.POSTS_PER_PAGE = POSTS_PER_PAGE;
215
- var WordPressCommentExporter = /** @class */ (function () {
216
- function WordPressCommentExporter(dispatch) {
217
- this.dispatch = dispatch;
218
- this.currentPage = 1;
219
- this.handleDisqusImportResponse = this.handleDisqusImportResponse.bind(this);
220
- this.handleExportPostResponse = this.handleExportPostResponse.bind(this);
221
- this.handlePostsResponse = this.handlePostsResponse.bind(this);
222
- }
223
- WordPressCommentExporter.prototype.startExportPosts = function () {
224
- return WordPressRestApi_1.WordPressRestApi.instance.wordpressRestGet('posts', "per_page=" + POSTS_PER_PAGE + "&page=" + this.currentPage, this.handlePostsResponse);
225
- };
226
- WordPressCommentExporter.prototype.exportPost = function (post) {
227
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestPost('export/post', { postId: post.id }, this.handleExportPostResponse.bind(null, post));
228
- };
229
- WordPressCommentExporter.prototype.dispatchComplete = function (post, numComments) {
230
- this.dispatch(actions_1.updateExportPostLogAction({
231
- error: null,
232
- id: post.id,
233
- link: post.link,
234
- numComments: numComments,
235
- status: AdminState_1.ExportLogStaus.complete,
236
- title: post.title.rendered,
237
- }));
238
- };
239
- WordPressCommentExporter.prototype.dispatchError = function (post, error) {
240
- this.dispatch(actions_1.updateExportPostLogAction({
241
- error: error,
242
- id: post.id,
243
- link: post.link,
244
- numComments: null,
245
- status: AdminState_1.ExportLogStaus.failed,
246
- title: post.title.rendered,
247
- }));
248
- };
249
- WordPressCommentExporter.prototype.handleDisqusImportResponse = function (post, exportPostResponse, xhr) {
250
- var jsonObject = null;
251
- try {
252
- jsonObject = JSON.parse(xhr.target.responseText);
253
- }
254
- catch (error) {
255
- // Continue
256
- }
257
- if (!jsonObject) {
258
- this.dispatchError(post, "Unknown error uploading to the Disqus servers");
259
- return;
260
- }
261
- if (jsonObject.code !== 0) {
262
- this.dispatchError(post, jsonObject.response);
263
- return;
264
- }
265
- this.dispatchComplete(post, exportPostResponse.data.comments.length);
266
- };
267
- WordPressCommentExporter.prototype.handleExportPostResponse = function (post, response) {
268
- if (!response || response.code !== 'OK') {
269
- this.dispatchError(post, response.message);
270
- return;
271
- }
272
- if (!response.data.comments.length) {
273
- this.dispatchComplete(post, response.data.comments.length);
274
- return;
275
- }
276
- var wxr = response.data.wxr;
277
- DisqusApi_1.DisqusApi.instance.createImport(wxr.xmlContent, wxr.filename, this.handleDisqusImportResponse.bind(null, post, response));
278
- };
279
- WordPressCommentExporter.prototype.handlePostsResponse = function (response) {
280
- var _this = this;
281
- if (Array.isArray(response)) {
282
- response.forEach(function (post) {
283
- _this.dispatch(actions_1.updateExportPostLogAction({
284
- error: null,
285
- id: post.id,
286
- link: post.link,
287
- numComments: null,
288
- status: AdminState_1.ExportLogStaus.pending,
289
- title: post.title.rendered,
290
- }));
291
- _this.exportPost(post);
292
- });
293
- if (response.length === POSTS_PER_PAGE) {
294
- this.currentPage += 1;
295
- this.startExportPosts();
296
- }
297
- }
298
- };
299
- return WordPressCommentExporter;
300
- }());
301
- exports.default = WordPressCommentExporter;
302
-
303
-
304
- /***/ }),
305
-
306
- /***/ "./frontend/src/ts/WordPressRestApi.ts":
307
- /*!*********************************************!*\
308
- !*** ./frontend/src/ts/WordPressRestApi.ts ***!
309
- \*********************************************/
310
- /*! no static exports found */
311
- /***/ (function(module, exports, __webpack_require__) {
312
-
313
- "use strict";
314
-
315
- Object.defineProperty(exports, "__esModule", { value: true });
316
- var REST_OPTIONS_1 = __webpack_require__(/*! ./REST_OPTIONS */ "./frontend/src/ts/REST_OPTIONS.ts");
317
- var WordPressRestApi = /** @class */ (function () {
318
- function WordPressRestApi() {
319
- }
320
- Object.defineProperty(WordPressRestApi, "instance", {
321
- get: function () {
322
- if (!WordPressRestApi.current)
323
- WordPressRestApi.current = new WordPressRestApi();
324
- return WordPressRestApi.current;
325
- },
326
- set: function (newInstance) {
327
- WordPressRestApi.current = newInstance;
328
- },
329
- enumerable: true,
330
- configurable: true
331
- });
332
- WordPressRestApi.prototype.pluginRestGet = function (path, onLoad) {
333
- var _this = this;
334
- return this.makeApiRequest('GET', "" + REST_OPTIONS_1.default.base + REST_OPTIONS_1.default.disqusBase + path, null, function (xhr) {
335
- _this.handleResponse(xhr.target.responseText, onLoad);
336
- });
337
- };
338
- WordPressRestApi.prototype.pluginRestPost = function (path, data, onLoad) {
339
- var _this = this;
340
- return this.makeApiRequest('POST', "" + REST_OPTIONS_1.default.base + REST_OPTIONS_1.default.disqusBase + path, data && JSON.stringify(data), function (xhr) {
341
- _this.handleResponse(xhr.target.responseText, onLoad);
342
- });
343
- };
344
- WordPressRestApi.prototype.wordpressRestGet = function (path, query, onLoad) {
345
- var _this = this;
346
- return this.makeApiRequest('GET', REST_OPTIONS_1.default.base + "wp/v2/" + path + (REST_OPTIONS_1.default.base.indexOf('?') > -1 ? '&' : '?') + (query || ''), null, function (xhr) {
347
- _this.handleResponse(xhr.target.responseText, onLoad);
348
- });
349
- };
350
- WordPressRestApi.prototype.makeApiRequest = function (method, url, data, onLoad) {
351
- var XHR = new XMLHttpRequest();
352
- XHR.open(method, url);
353
- XHR.setRequestHeader('Content-type', 'application/json');
354
- XHR.setRequestHeader('X-WP-Nonce', REST_OPTIONS_1.default.nonce);
355
- XHR.addEventListener('load', onLoad);
356
- XHR.send(data);
357
- return XHR;
358
- };
359
- WordPressRestApi.prototype.handleResponse = function (text, callback) {
360
- var jsonObject = null;
361
- try {
362
- jsonObject = JSON.parse(text);
363
- }
364
- catch (error) {
365
- // Continue
366
- }
367
- callback.call(null, jsonObject);
368
- };
369
- return WordPressRestApi;
370
- }());
371
- exports.WordPressRestApi = WordPressRestApi;
372
-
373
-
374
- /***/ }),
375
-
376
- /***/ "./frontend/src/ts/actions.ts":
377
- /*!************************************!*\
378
- !*** ./frontend/src/ts/actions.ts ***!
379
- \************************************/
380
- /*! no static exports found */
381
- /***/ (function(module, exports, __webpack_require__) {
382
-
383
- "use strict";
384
-
385
- Object.defineProperty(exports, "__esModule", { value: true });
386
- exports.UPDATE_ADMIN_OPTIONS = 'UPDATE_ADMIN_OPTIONS';
387
- exports.UPDATE_SYNC_STATUS = 'UPDATE_SYNC_STATUS';
388
- exports.TOGGLE_VALUE = 'TOGGLE_VALUE';
389
- exports.SET_VALUE = 'SET_VALUE';
390
- exports.UPDATE_LOCAL_OPTION = 'UPDATE_LOCAL_OPTION';
391
- exports.SET_MESSAGE = 'SET_MESSAGE';
392
- exports.CHANGE_INSTALL_STATE = 'CHANGE_INSTALL_STATE';
393
- exports.CHANGE_TAB_STATE = 'CHANGE_TAB_STATE';
394
- exports.UPDATE_EXPORT_POST_LOG = 'UPDATE_EXPORT_POST_LOG';
395
- function updateAdminOptionsAction(data) {
396
- return {
397
- data: data,
398
- type: exports.UPDATE_ADMIN_OPTIONS,
399
- };
400
- }
401
- exports.updateAdminOptionsAction = updateAdminOptionsAction;
402
- function updateLocalOptionAction(key, newValue) {
403
- var _a;
404
- return {
405
- data: (_a = {},
406
- _a[key] = newValue,
407
- _a),
408
- type: exports.UPDATE_LOCAL_OPTION,
409
- };
410
- }
411
- exports.updateLocalOptionAction = updateLocalOptionAction;
412
- function updateSyncStatusAction(data) {
413
- return {
414
- data: data,
415
- type: exports.UPDATE_SYNC_STATUS,
416
- };
417
- }
418
- exports.updateSyncStatusAction = updateSyncStatusAction;
419
- function toggleValueAction(key) {
420
- return {
421
- data: key,
422
- type: exports.TOGGLE_VALUE,
423
- };
424
- }
425
- exports.toggleValueAction = toggleValueAction;
426
- function setValueAction(key, newValue) {
427
- var _a;
428
- return {
429
- data: (_a = {},
430
- _a[key] = newValue,
431
- _a),
432
- type: exports.SET_VALUE,
433
- };
434
- }
435
- exports.setValueAction = setValueAction;
436
- function setMessageAction(message) {
437
- return {
438
- data: message,
439
- type: exports.SET_MESSAGE,
440
- };
441
- }
442
- exports.setMessageAction = setMessageAction;
443
- function changeInstallStateAction(state) {
444
- return {
445
- data: state,
446
- type: exports.CHANGE_INSTALL_STATE,
447
- };
448
- }
449
- exports.changeInstallStateAction = changeInstallStateAction;
450
- function changeTabStateAction(tab) {
451
- return {
452
- data: tab,
453
- type: exports.CHANGE_TAB_STATE,
454
- };
455
- }
456
- exports.changeTabStateAction = changeTabStateAction;
457
- function updateExportPostLogAction(log) {
458
- return {
459
- data: log,
460
- type: exports.UPDATE_EXPORT_POST_LOG,
461
- };
462
- }
463
- exports.updateExportPostLogAction = updateExportPostLogAction;
464
-
465
-
466
- /***/ }),
467
-
468
- /***/ "./frontend/src/ts/app.tsx":
469
- /*!*********************************!*\
470
- !*** ./frontend/src/ts/app.tsx ***!
471
- \*********************************/
472
- /*! no static exports found */
473
- /***/ (function(module, exports, __webpack_require__) {
474
-
475
- "use strict";
476
-
477
- Object.defineProperty(exports, "__esModule", { value: true });
478
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
479
- var ReactDOM = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
480
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
481
- var Redux = __webpack_require__(/*! redux */ "./node_modules/redux/es/index.js");
482
- var actions_1 = __webpack_require__(/*! ./actions */ "./frontend/src/ts/actions.ts");
483
- var MainContainer_1 = __webpack_require__(/*! ./containers/MainContainer */ "./frontend/src/ts/containers/MainContainer.ts");
484
- var DisqusApi_1 = __webpack_require__(/*! ./DisqusApi */ "./frontend/src/ts/DisqusApi.ts");
485
- var adminApp_1 = __webpack_require__(/*! ./reducers/adminApp */ "./frontend/src/ts/reducers/adminApp.ts");
486
- var AdminState_1 = __webpack_require__(/*! ./reducers/AdminState */ "./frontend/src/ts/reducers/AdminState.ts");
487
- var WordPressRestApi_1 = __webpack_require__(/*! ./WordPressRestApi */ "./frontend/src/ts/WordPressRestApi.ts");
488
- var store = Redux.createStore(adminApp_1.default);
489
- var element = document.getElementById('disqus-admin');
490
- var onClearMessage = function (event) {
491
- store.dispatch(actions_1.setMessageAction(null));
492
- };
493
- // Sets up the hashchange router for configuration tabs.
494
- var onHashChange = function (event) {
495
- if (event)
496
- event.preventDefault();
497
- store.dispatch(actions_1.changeTabStateAction(window.location.hash.replace('#', '')));
498
- };
499
- window.addEventListener('hashchange', onHashChange);
500
- if (window.location.hash)
501
- onHashChange(null);
502
- ReactDOM.render(React.createElement(ReactRedux.Provider, { store: store },
503
- React.createElement(MainContainer_1.default, null)), element, function () {
504
- var checkResponse = function (response) {
505
- if (!response)
506
- return false;
507
- if (response.code !== 'OK') {
508
- store.dispatch(actions_1.setMessageAction({
509
- onDismiss: onClearMessage,
510
- text: response.message,
511
- type: 'error',
512
- }));
513
- return false;
514
- }
515
- return true;
516
- };
517
- store.dispatch(actions_1.setValueAction('isFetchingAdminOptions', true));
518
- store.dispatch(actions_1.setValueAction('isFetchingSyncStatus', true));
519
- // Fetch the admin options
520
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestGet('settings', function (response) {
521
- store.dispatch(actions_1.setValueAction('isFetchingAdminOptions', false));
522
- if (!checkResponse(response))
523
- return;
524
- var data = response.data;
525
- DisqusApi_1.DisqusApi.instance.configure(data.disqus_public_key, data.disqus_admin_access_token, data.disqus_forum_url);
526
- store.dispatch(actions_1.updateAdminOptionsAction(response.data));
527
- if (response.data.disqus_installed)
528
- store.dispatch(actions_1.changeInstallStateAction(AdminState_1.InstallationState.installed));
529
- });
530
- // Fetch the sync status
531
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestGet('sync/status', function (response) {
532
- store.dispatch(actions_1.setValueAction('isFetchingSyncStatus', false));
533
- if (!checkResponse(response))
534
- return;
535
- store.dispatch(actions_1.updateSyncStatusAction(response.data));
536
- });
537
- });
538
-
539
-
540
- /***/ }),
541
-
542
- /***/ "./frontend/src/ts/components/Admin.tsx":
543
- /*!**********************************************!*\
544
- !*** ./frontend/src/ts/components/Admin.tsx ***!
545
- \**********************************************/
546
- /*! no static exports found */
547
- /***/ (function(module, exports, __webpack_require__) {
548
-
549
- "use strict";
550
-
551
- var __assign = (this && this.__assign) || Object.assign || function(t) {
552
- for (var s, i = 1, n = arguments.length; i < n; i++) {
553
- s = arguments[i];
554
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
555
- t[p] = s[p];
556
- }
557
- return t;
558
- };
559
- Object.defineProperty(exports, "__esModule", { value: true });
560
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
561
- var AdvancedConfigContainer_1 = __webpack_require__(/*! ../containers/AdvancedConfigContainer */ "./frontend/src/ts/containers/AdvancedConfigContainer.ts");
562
- var ExportCommentsContainer_1 = __webpack_require__(/*! ../containers/ExportCommentsContainer */ "./frontend/src/ts/containers/ExportCommentsContainer.ts");
563
- var InstallContainer_1 = __webpack_require__(/*! ../containers/InstallContainer */ "./frontend/src/ts/containers/InstallContainer.ts");
564
- var ManualSyncContainer_1 = __webpack_require__(/*! ../containers/ManualSyncContainer */ "./frontend/src/ts/containers/ManualSyncContainer.ts");
565
- var SiteConfigContainer_1 = __webpack_require__(/*! ../containers/SiteConfigContainer */ "./frontend/src/ts/containers/SiteConfigContainer.ts");
566
- var SSOConfigContainer_1 = __webpack_require__(/*! ../containers/SSOConfigContainer */ "./frontend/src/ts/containers/SSOConfigContainer.ts");
567
- var SupportDiagnosticsContainer_1 = __webpack_require__(/*! ../containers/SupportDiagnosticsContainer */ "./frontend/src/ts/containers/SupportDiagnosticsContainer.ts");
568
- var SyncConfigContainer_1 = __webpack_require__(/*! ../containers/SyncConfigContainer */ "./frontend/src/ts/containers/SyncConfigContainer.ts");
569
- var utils_1 = __webpack_require__(/*! ../utils */ "./frontend/src/ts/utils.ts");
570
- var HelpResources_1 = __webpack_require__(/*! ./HelpResources */ "./frontend/src/ts/components/HelpResources.tsx");
571
- var SupportLinks_1 = __webpack_require__(/*! ./SupportLinks */ "./frontend/src/ts/components/SupportLinks.tsx");
572
- var WelcomePanel_1 = __webpack_require__(/*! ./WelcomePanel */ "./frontend/src/ts/components/WelcomePanel.tsx");
573
- var getSSOContainer = function (props) {
574
- var adminOptions = props.data.adminOptions;
575
- if (!adminOptions.disqus_public_key || !adminOptions.disqus_secret_key || !adminOptions.disqus_installed) {
576
- return (React.createElement("div", { className: 'notice notice-warning' },
577
- React.createElement("p", null,
578
- React.createElement("span", { className: 'dashicons dashicons-warning' }),
579
- ' ',
580
- "You must have a Site Shortname, API Public Key, and API Secret Key configured to enable this feature.")));
581
- }
582
- return React.createElement(SSOConfigContainer_1.default, null);
583
- };
584
- var getSyncContainer = function (props) {
585
- var adminOptions = props.data.adminOptions;
586
- if (!adminOptions.disqus_secret_key || !adminOptions.disqus_admin_access_token || !adminOptions.disqus_installed) {
587
- return (React.createElement("div", { className: 'notice notice-warning' },
588
- React.createElement("p", null,
589
- React.createElement("span", { className: 'dashicons dashicons-warning' }),
590
- ' ',
591
- "You must have a Site Shortname, API Secret Key, and API Access Token configured to enable this feature.")));
592
- }
593
- return (React.createElement("div", null,
594
- React.createElement(SyncConfigContainer_1.default, null),
595
- props.data.isManualSyncFormVisible ? React.createElement(ManualSyncContainer_1.default, null) : null));
596
- };
597
- var getActiveTab = function (props) { return (props.data.activeTab || (props.data.adminOptions.disqus_installed ? 'siteConfiguration' : 'install')); };
598
- var getExportContainer = function (props) {
599
- var adminOptions = props.data.adminOptions;
600
- if (!adminOptions.disqus_secret_key || !adminOptions.disqus_admin_access_token) {
601
- return (React.createElement("div", { className: 'notice notice-warning' },
602
- React.createElement("p", null,
603
- React.createElement("span", { className: 'dashicons dashicons-warning' }),
604
- ' ',
605
- "You must have an API Secret Key and API Access Token configured to enable this feature.")));
606
- }
607
- return React.createElement(ExportCommentsContainer_1.default, null);
608
- };
609
- var getTabClassName = function (props, id) {
610
- var activeTab = getActiveTab(props);
611
- return "nav-tab" + (activeTab === id ? ' nav-tab-active' : '');
612
- };
613
- var AdminTabBar = function (props) { return (React.createElement("div", { className: 'nav-tab-wrapper' },
614
- React.createElement("a", { href: '#install', className: getTabClassName(props, 'install') }, props.data.adminOptions.disqus_installed ? "Reinstall" : "Install"),
615
- React.createElement("a", { href: '#siteConfiguration', className: getTabClassName(props, 'siteConfiguration') }, "Site Configuration"),
616
- React.createElement("a", { href: '#syncing', className: getTabClassName(props, 'syncing') }, "Syncing"),
617
- React.createElement("a", { href: '#singleSignOn', className: getTabClassName(props, 'singleSignOn') }, "Single Sign-on"),
618
- React.createElement("a", { href: '#advanced', className: getTabClassName(props, 'advanced') }, "Advanced"),
619
- React.createElement("a", { href: '#support', className: getTabClassName(props, 'support') }, "Support"))); };
620
- /* tslint:disable:max-line-length */
621
- var getActiveTabView = function (props) {
622
- var activeTab = getActiveTab(props);
623
- switch (activeTab) {
624
- case 'syncing':
625
- return (React.createElement("div", null,
626
- React.createElement("h3", null, "WordPress Comments"),
627
- React.createElement("p", { className: 'description' }, "Disqus has replaced the default WordPress commenting system. You may access and edit the comments in your database, but any actions performed there will not be reflected in Disqus."),
628
- React.createElement("p", { className: 'submit' },
629
- React.createElement("a", { href: utils_1.getWordpressAdminUrl('editComments'), className: 'button button-large' },
630
- React.createElement("span", { className: 'dashicons dashicons-wordpress-alt' }),
631
- ' ',
632
- "View WordPress Comments")),
633
- React.createElement("hr", null),
634
- React.createElement("h3", null, "Sync"),
635
- React.createElement("p", { className: 'description' },
636
- "Copy comments created and edited in Disqus to your local WordPress database for backup purposes.",
637
- ' ',
638
- React.createElement("a", { href: 'https://help.disqus.com/customer/portal/articles/960360', target: '_blank' }, "Learn More")),
639
- getSyncContainer(props),
640
- React.createElement("hr", null),
641
- React.createElement("h3", null, "Import"),
642
- React.createElement("p", { className: 'description' },
643
- "Import your existing WordPress comments to Disqus.",
644
- ' ',
645
- React.createElement("a", { href: 'https://help.disqus.com/customer/portal/articles/466255', target: '_blank' }, "Learn More")),
646
- getExportContainer(props)));
647
- case 'singleSignOn':
648
- return (React.createElement("div", null,
649
- React.createElement("h3", null, "Set up Single Sign-on"),
650
- React.createElement("p", { className: 'description' },
651
- "Allow users to sign in with this site's user accounts. This is a Disqus Pro feature.",
652
- ' ',
653
- React.createElement("a", { href: 'https://help.disqus.com/customer/portal/articles/1148635', target: '_blank' }, "Learn More")),
654
- getSSOContainer(props)));
655
- case 'advanced':
656
- return (React.createElement("div", null,
657
- React.createElement("h3", null, "Advanced Settings"),
658
- React.createElement(AdvancedConfigContainer_1.default, null)));
659
- case 'support':
660
- return (React.createElement("div", null,
661
- React.createElement("h3", null, "How to Get Support"),
662
- React.createElement(SupportLinks_1.default, null),
663
- React.createElement("hr", null),
664
- React.createElement("h3", null, "Helpful Resources"),
665
- React.createElement(HelpResources_1.default, null),
666
- React.createElement("hr", null),
667
- React.createElement("h3", null, "Diagnostic Information"),
668
- React.createElement("p", { className: 'description' }, "Include the following information in any private support requests, but do not share this publicly."),
669
- React.createElement("div", { className: 'submit' },
670
- React.createElement(SupportDiagnosticsContainer_1.default, null))));
671
- case 'install':
672
- return React.createElement(InstallContainer_1.default, null);
673
- case 'siteConfiguration':
674
- default:
675
- return (React.createElement("div", null,
676
- React.createElement("h3", null, "Site Configuration"),
677
- React.createElement("p", { className: 'description' },
678
- "Your site configuration comes from Disqus. Changing these values may break your installation.",
679
- ' ',
680
- React.createElement("a", { href: utils_1.getForumAdminUrl(props.data.adminOptions.disqus_forum_url, 'install/platforms/wordpress'), target: '_blank' }, "WordPress install instructions")),
681
- React.createElement(SiteConfigContainer_1.default, null)));
682
- }
683
- };
684
- var Admin = function (props) { return (React.createElement("div", null,
685
- props.data.adminOptions.disqus_installed ? React.createElement(WelcomePanel_1.default, { shortname: props.data.adminOptions.disqus_forum_url }) : null,
686
- React.createElement(AdminTabBar, __assign({}, props)),
687
- getActiveTabView(props))); };
688
- /* tslint:enable:max-line-length */
689
- exports.default = Admin;
690
-
691
-
692
- /***/ }),
693
-
694
- /***/ "./frontend/src/ts/components/AdvancedConfigForm.tsx":
695
- /*!***********************************************************!*\
696
- !*** ./frontend/src/ts/components/AdvancedConfigForm.tsx ***!
697
- \***********************************************************/
698
- /*! no static exports found */
699
- /***/ (function(module, exports, __webpack_require__) {
700
-
701
- "use strict";
702
-
703
- Object.defineProperty(exports, "__esModule", { value: true });
704
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
705
- /* tslint:disable:max-line-length */
706
- var AdvancedConfigForm = function (props) { return (React.createElement("form", { name: 'advanced', action: '', method: 'POST', onSubmit: props.onSubmitSiteForm },
707
- React.createElement("table", { className: 'form-table' },
708
- React.createElement("tbody", null,
709
- React.createElement("tr", null,
710
- React.createElement("th", { scope: 'row' },
711
- React.createElement("label", { htmlFor: 'disqus_render_js' }, "Render Comments JavaScript")),
712
- React.createElement("td", null,
713
- React.createElement("input", { type: 'checkbox', id: 'disqus_render_js', name: 'disqus_render_js', checked: Boolean(props.data.localAdminOptions.get('disqus_render_js')), onChange: props.onInputChange.bind(null, 'disqus_render_js') }),
714
- React.createElement("p", { className: 'description' }, "This will render the Disqus comments javascript directly into the page markup, rather than use the wp_enqueue_script() function. Enable this if Disqus doesn't load on your posts."))))),
715
- React.createElement("p", { className: 'submit' },
716
- React.createElement("input", { type: 'submit', name: 'submit-application-form', className: 'button button-primary', value: "Save" })))); };
717
- /* tslint:enable:max-line-length */
718
- exports.default = AdvancedConfigForm;
719
-
720
-
721
- /***/ }),
722
-
723
- /***/ "./frontend/src/ts/components/ExportComments.tsx":
724
- /*!*******************************************************!*\
725
- !*** ./frontend/src/ts/components/ExportComments.tsx ***!
726
- \*******************************************************/
727
- /*! no static exports found */
728
- /***/ (function(module, exports, __webpack_require__) {
729
-
730
- "use strict";
731
-
732
- var __assign = (this && this.__assign) || Object.assign || function(t) {
733
- for (var s, i = 1, n = arguments.length; i < n; i++) {
734
- s = arguments[i];
735
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
736
- t[p] = s[p];
737
- }
738
- return t;
739
- };
740
- Object.defineProperty(exports, "__esModule", { value: true });
741
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
742
- var AdminState_1 = __webpack_require__(/*! ../reducers/AdminState */ "./frontend/src/ts/reducers/AdminState.ts");
743
- var getStatusMessage = function (props) {
744
- if (props.data.isExportRunning)
745
- return React.createElement("h4", null, "Sending to Disqus" + '…');
746
- return (React.createElement("h4", null,
747
- React.createElement("span", null,
748
- "Done!",
749
- ' ',
750
- React.createElement("a", { href: "https://import.disqus.com/" + props.data.adminOptions.disqus_forum_url + "/", target: '_blank' }, "Check your import status"))));
751
- };
752
- var LogMessages = function (props) {
753
- var logArray = props.data.exportLogs.toArray();
754
- var logElements = logArray.map(function (log) {
755
- var statusColor;
756
- var statusText;
757
- switch (log.status) {
758
- case AdminState_1.ExportLogStaus.failed:
759
- statusColor = 'red';
760
- statusText = React.createElement("abbr", { title: log.error }, "Failed");
761
- break;
762
- case AdminState_1.ExportLogStaus.complete:
763
- statusColor = 'green';
764
- statusText = "Complete";
765
- break;
766
- case AdminState_1.ExportLogStaus.pending:
767
- default:
768
- statusColor = 'gray';
769
- statusText = "Pending";
770
- break;
771
- }
772
- return (React.createElement("tr", { key: log.id },
773
- React.createElement("td", null, log.id),
774
- React.createElement("td", null,
775
- React.createElement("a", { href: log.link }, log.title)),
776
- React.createElement("td", null,
777
- React.createElement("strong", { style: { color: statusColor } }, statusText)),
778
- React.createElement("td", null, log.numComments)));
779
- });
780
- return (React.createElement("div", null,
781
- getStatusMessage(props),
782
- React.createElement("table", { className: 'wp-list-table widefat striped' },
783
- React.createElement("thead", null,
784
- React.createElement("tr", null,
785
- React.createElement("th", { scope: 'col' }, "ID"),
786
- React.createElement("th", { scope: 'col' }, "Title"),
787
- React.createElement("th", { scope: 'col' }, "Status"),
788
- React.createElement("th", { scope: 'col' }, "# Imported"))),
789
- React.createElement("tbody", null, logElements))));
790
- };
791
- var ExportComments = function (props) { return (React.createElement("form", { name: 'export', method: 'POST', onSubmit: props.onSubmitExportCommentsForm },
792
- React.createElement("p", { className: 'submit' },
793
- React.createElement("button", { type: 'submit', className: 'button button-large', disabled: props.data.isExportRunning },
794
- React.createElement("span", { className: 'dashicons dashicons-upload' }),
795
- ' ',
796
- "Import Comments")),
797
- props.data.exportLogs.size ? React.createElement(LogMessages, __assign({}, props)) : null)); };
798
- exports.default = ExportComments;
799
-
800
-
801
- /***/ }),
802
-
803
- /***/ "./frontend/src/ts/components/HelpResources.tsx":
804
- /*!******************************************************!*\
805
- !*** ./frontend/src/ts/components/HelpResources.tsx ***!
806
- \******************************************************/
807
- /*! no static exports found */
808
- /***/ (function(module, exports, __webpack_require__) {
809
-
810
- "use strict";
811
-
812
- Object.defineProperty(exports, "__esModule", { value: true });
813
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
814
- var HelpResources = function () { return (React.createElement("ul", null,
815
- React.createElement("li", null,
816
- React.createElement("a", { href: 'https://status.disqus.com/', target: '_blank' }, "Disqus System Status")),
817
- React.createElement("li", null,
818
- React.createElement("a", { href: 'https://github.com/disqus/disqus-wordpress-plugin', target: '_blank' },
819
- "Github Project",
820
- " (disqus-wordpress-plugin)")))); };
821
- exports.default = HelpResources;
822
-
823
-
824
- /***/ }),
825
-
826
- /***/ "./frontend/src/ts/components/Install.tsx":
827
- /*!************************************************!*\
828
- !*** ./frontend/src/ts/components/Install.tsx ***!
829
- \************************************************/
830
- /*! no static exports found */
831
- /***/ (function(module, exports, __webpack_require__) {
832
-
833
- "use strict";
834
-
835
- var __extends = (this && this.__extends) || (function () {
836
- var extendStatics = Object.setPrototypeOf ||
837
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
838
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
839
- return function (d, b) {
840
- extendStatics(d, b);
841
- function __() { this.constructor = d; }
842
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
843
- };
844
- })();
845
- Object.defineProperty(exports, "__esModule", { value: true });
846
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
847
- var AdminState_1 = __webpack_require__(/*! ../reducers/AdminState */ "./frontend/src/ts/reducers/AdminState.ts");
848
- var REST_OPTIONS_1 = __webpack_require__(/*! ../REST_OPTIONS */ "./frontend/src/ts/REST_OPTIONS.ts");
849
- var DISQUS_URL_BASE = 'https://disqus.com/';
850
- var DISQUS_SIGNUP_URL = DISQUS_URL_BASE + "profile/signup/";
851
- var DISQUS_LOGIN_URL = DISQUS_URL_BASE + "profile/login/";
852
- var DISQUS_CREATE_URL = DISQUS_URL_BASE + "admin/create/";
853
- var DISQUS_WORDPRESS_URL = DISQUS_URL_BASE + "admin/install/platforms/wordpress/";
854
- var SYNCTOKEN_INPUT_ID = 'configKey';
855
- /* tslint:disable:max-line-length */
856
- var Install = /** @class */ (function (_super) {
857
- __extends(Install, _super);
858
- function Install() {
859
- return _super !== null && _super.apply(this, arguments) || this;
860
- }
861
- Install.prototype.render = function () {
862
- var syncToken = "" + REST_OPTIONS_1.default.base + REST_OPTIONS_1.default.disqusBase + "settings " + this.props.data.adminOptions.get('disqus_sync_token', '');
863
- return (React.createElement("div", null,
864
- React.createElement("h3", null, "Automatic Installation"),
865
- React.createElement("p", null, "Installs Disqus on your site using a generated API application. If your site isn't publicly accessible, use the manual installation method."),
866
- this.getAutoInstallPrompt(syncToken)));
867
- };
868
- Install.prototype.getAutoInstallPrompt = function (syncToken) {
869
- switch (this.props.data.installationState) {
870
- case AdminState_1.InstallationState.none:
871
- return (React.createElement("div", null,
872
- React.createElement("p", { className: 'submit' },
873
- React.createElement("strong", null, "Do you have a Disqus account?"),
874
- React.createElement("br", null),
875
- React.createElement("button", { className: 'button', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.hasAccount) }, "Yes"),
876
- ' ',
877
- React.createElement("button", { className: 'button', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.noAccount) }, "No"))));
878
- case AdminState_1.InstallationState.hasAccount:
879
- return (React.createElement("div", null,
880
- React.createElement("p", { className: 'submit' },
881
- React.createElement("strong", null, "Do you have a site registered on Disqus you want to use?"),
882
- React.createElement("br", null),
883
- React.createElement("button", { className: 'button', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.hasSite) }, "Yes"),
884
- ' ',
885
- React.createElement("button", { className: 'button', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.noSite) }, "No"))));
886
- case AdminState_1.InstallationState.noAccount:
887
- return (React.createElement("ol", { className: 'dsq-installation__instruction-list' },
888
- React.createElement("li", null,
889
- "Sign up to register your account and site with Disqus",
890
- React.createElement("br", null),
891
- React.createElement("button", { className: 'button button-primary button-large', onClick: this.openDisqusPage.bind(this, syncToken, DISQUS_SIGNUP_URL + "?next=" + encodeURIComponent(DISQUS_CREATE_URL)) }, "Sign up")),
892
- React.createElement("li", null,
893
- "After creating the site, go to the WordPress installation page to finish.",
894
- React.createElement("br", null),
895
- React.createElement("button", { className: 'button', onClick: this.openDisqusPage.bind(this, syncToken, DISQUS_LOGIN_URL + "?next=" + encodeURIComponent(DISQUS_WORDPRESS_URL)) }, "WordPress installation page")),
896
- React.createElement("li", null,
897
- "If needed, copy the sync token below and paste it to the input field in the installation page",
898
- React.createElement("br", null),
899
- React.createElement("input", { id: SYNCTOKEN_INPUT_ID, type: 'text', value: syncToken, className: 'regular-text', readOnly: true }),
900
- React.createElement("button", { className: 'button', onClick: this.props.onCopyText.bind(null, SYNCTOKEN_INPUT_ID) }, "Copy")),
901
- React.createElement("li", null, "Click the Install button and finish configuring your Disqus settings")));
902
- case AdminState_1.InstallationState.hasSite:
903
- case AdminState_1.InstallationState.reinstallSite:
904
- var installUrl = DISQUS_WORDPRESS_URL;
905
- var useExistingSite = this.props.data.installationState === AdminState_1.InstallationState.reinstallSite;
906
- if (useExistingSite)
907
- installUrl = installUrl.replace('//disqus.com', "//" + this.props.data.adminOptions.disqus_forum_url + ".disqus.com");
908
- return (React.createElement("ol", { className: 'dsq-installation__instruction-list' },
909
- React.createElement("li", null,
910
- "Go to the WordPress installation page",
911
- React.createElement("br", null),
912
- React.createElement("button", { className: 'button button-primary button-large', onClick: this.openDisqusPage.bind(this, syncToken, DISQUS_LOGIN_URL + "?next=" + encodeURIComponent(installUrl)) }, "WordPress installation page")),
913
- useExistingSite ? null : (React.createElement("li", null, "When prompted, choose the Disqus site you want to use")),
914
- React.createElement("li", null,
915
- "If needed, copy the sync token below and paste it to the input field in the installation page",
916
- React.createElement("br", null),
917
- React.createElement("input", { id: SYNCTOKEN_INPUT_ID, type: 'text', value: syncToken, className: 'regular-text', readOnly: true }),
918
- React.createElement("button", { className: 'button', onClick: this.props.onCopyText.bind(null, SYNCTOKEN_INPUT_ID) }, "Copy")),
919
- React.createElement("li", null, "Click the Install button and finish configuring your Disqus settings")));
920
- case AdminState_1.InstallationState.noSite:
921
- return (React.createElement("ol", { className: 'dsq-installation__instruction-list' },
922
- React.createElement("li", null,
923
- "Create a new site on Disqus",
924
- React.createElement("br", null),
925
- React.createElement("button", { className: 'button button-primary button-large', onClick: this.openDisqusPage.bind(this, syncToken, DISQUS_LOGIN_URL + "?next=" + encodeURIComponent(DISQUS_CREATE_URL)) }, "Create site")),
926
- React.createElement("li", null,
927
- "After creating the site, go to the WordPress installation page to finish.",
928
- React.createElement("br", null),
929
- React.createElement("button", { className: 'button', onClick: this.openDisqusPage.bind(this, syncToken, DISQUS_LOGIN_URL + "?next=" + encodeURIComponent(DISQUS_WORDPRESS_URL)) }, "WordPress installation page")),
930
- React.createElement("li", null,
931
- "If needed, copy the sync token below and paste it to the input field in the installation page",
932
- React.createElement("br", null),
933
- React.createElement("input", { id: SYNCTOKEN_INPUT_ID, type: 'text', value: syncToken, className: 'regular-text', readOnly: true }),
934
- React.createElement("button", { className: 'button', onClick: this.props.onCopyText.bind(null, SYNCTOKEN_INPUT_ID) }, "Copy")),
935
- React.createElement("li", null, "Click the Install button and finish configuring your Disqus settings")));
936
- case AdminState_1.InstallationState.installed:
937
- return (React.createElement("div", null,
938
- React.createElement("p", { className: 'submit' },
939
- React.createElement("strong", null, "Do you want to reinstall this site or a different site?")),
940
- React.createElement("p", null,
941
- React.createElement("button", { className: 'button button-primary button-large', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.reinstallSite) },
942
- "Reinstall",
943
- ' ',
944
- React.createElement("em", null, this.props.data.adminOptions.disqus_forum_url)),
945
- ' ',
946
- React.createElement("button", { className: 'button button-large', onClick: this.props.onUpdateInstallationState.bind(null, AdminState_1.InstallationState.hasSite) }, "Choose a new site"))));
947
- default:
948
- return null;
949
- }
950
- };
951
- /**
952
- * Opens a window to the publisher admin installation instructions and initializes communication between them.
953
- * @param syncToken - The token to send when the installation instructions are ready.
954
- * @param startUrl - The URL to load initially.
955
- */
956
- Install.prototype.openDisqusPage = function (syncToken, startUrl) {
957
- var win = window.open(startUrl);
958
- var handlePostMessageEvent = function (evt) {
959
- if (evt.origin.match(/https:\/\/(\w+).disqus.com/)) {
960
- switch (evt.data) {
961
- case 'installPageReady':
962
- // Pass the token information back to the install instructions page.
963
- win.postMessage(syncToken, evt.origin);
964
- break;
965
- case 'configurationUpdated':
966
- window.location.reload();
967
- break;
968
- default:
969
- break;
970
- }
971
- }
972
- };
973
- window.addEventListener('message', handlePostMessageEvent, false);
974
- };
975
- return Install;
976
- }(React.Component));
977
- /* tslint:enable:max-line-length */
978
- exports.default = Install;
979
-
980
-
981
- /***/ }),
982
-
983
- /***/ "./frontend/src/ts/components/Loading.tsx":
984
- /*!************************************************!*\
985
- !*** ./frontend/src/ts/components/Loading.tsx ***!
986
- \************************************************/
987
- /*! no static exports found */
988
- /***/ (function(module, exports, __webpack_require__) {
989
-
990
- "use strict";
991
-
992
- Object.defineProperty(exports, "__esModule", { value: true });
993
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
994
- var Loading = function () { return (React.createElement("div", { className: 'dsq-loading-container' },
995
- React.createElement("div", { className: 'dsq-spinner' }))); };
996
- exports.default = Loading;
997
-
998
-
999
- /***/ }),
1000
-
1001
- /***/ "./frontend/src/ts/components/Main.tsx":
1002
- /*!*********************************************!*\
1003
- !*** ./frontend/src/ts/components/Main.tsx ***!
1004
- \*********************************************/
1005
- /*! no static exports found */
1006
- /***/ (function(module, exports, __webpack_require__) {
1007
-
1008
- "use strict";
1009
-
1010
- var __assign = (this && this.__assign) || Object.assign || function(t) {
1011
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1012
- s = arguments[i];
1013
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1014
- t[p] = s[p];
1015
- }
1016
- return t;
1017
- };
1018
- Object.defineProperty(exports, "__esModule", { value: true });
1019
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1020
- var SyncTokenContainer_1 = __webpack_require__(/*! ../containers/SyncTokenContainer */ "./frontend/src/ts/containers/SyncTokenContainer.ts");
1021
- var utils_1 = __webpack_require__(/*! ../utils */ "./frontend/src/ts/utils.ts");
1022
- var Admin_1 = __webpack_require__(/*! ./Admin */ "./frontend/src/ts/components/Admin.tsx");
1023
- var Loading_1 = __webpack_require__(/*! ./Loading */ "./frontend/src/ts/components/Loading.tsx");
1024
- var Message_1 = __webpack_require__(/*! ./Message */ "./frontend/src/ts/components/Message.tsx");
1025
- var PRE_RELEASE_TYPES = Object.freeze({
1026
- alpha: 'alpha',
1027
- beta: 'beta',
1028
- });
1029
- /* tslint:disable:max-line-length */
1030
- var getMainView = function (props) {
1031
- if (!props.data.config.permissions.canManageSettings)
1032
- return "You don't have permission to make any changes here. Please contact the site administrator to get access.";
1033
- else if (props.data.isFetchingAdminOptions || props.data.isFetchingSyncStatus)
1034
- return React.createElement(Loading_1.default, null);
1035
- else if (!props.data.adminOptions.disqus_sync_token)
1036
- return (React.createElement("div", null,
1037
- React.createElement("div", { className: "notice notice-info inline" },
1038
- React.createElement("p", null, "The plugin was unable to generate a secret key for your site. You will have to create one below in order for installation and syncing to work.")),
1039
- React.createElement(SyncTokenContainer_1.default, __assign({}, props))));
1040
- return React.createElement(Admin_1.default, __assign({}, props));
1041
- };
1042
- var getPreReleaseNotice = function (pluginVersion) {
1043
- // Format of versions can be either 1.0.0, 1.0.0-beta, or 1.0.0-beta.1
1044
- var preReleaseType = (pluginVersion.split('-')[1] || '').split('.')[0];
1045
- if (PRE_RELEASE_TYPES[preReleaseType]) {
1046
- return (React.createElement("div", { className: "notice notice-info inline" },
1047
- React.createElement("p", null,
1048
- "You are using a ",
1049
- React.createElement("strong", null,
1050
- "pre-release version (", "" + pluginVersion,
1051
- ")"),
1052
- " of the Disqus WordPress plugin.",
1053
- ' ',
1054
- React.createElement("a", { href: 'https://github.com/disqus/disqus-wordpress-plugin/releases', target: '_blank' }, "Check for new releases"))));
1055
- }
1056
- return null;
1057
- };
1058
- var Main = function (props) { return (React.createElement("div", { className: 'dsq-admin-wrapper' },
1059
- React.createElement("div", { className: 'wrap' },
1060
- React.createElement("a", { href: utils_1.getWordpressAdminUrl('disqus'), className: 'disqus-logo' },
1061
- React.createElement("img", { src: 'https://a.disquscdn.com/dotcom/d-2407bda/img/brand/disqus-logo-blue-white.svg', width: 102 }))),
1062
- React.createElement("div", { className: 'wrap' },
1063
- getPreReleaseNotice(props.data.config.site.pluginVersion),
1064
- props.data.message ? React.createElement(Message_1.default, __assign({}, props.data.message)) : null,
1065
- getMainView(props)))); };
1066
- /* tslint:enable:max-line-length */
1067
- exports.default = Main;
1068
-
1069
-
1070
- /***/ }),
1071
-
1072
- /***/ "./frontend/src/ts/components/ManualSyncForm.tsx":
1073
- /*!*******************************************************!*\
1074
- !*** ./frontend/src/ts/components/ManualSyncForm.tsx ***!
1075
- \*******************************************************/
1076
- /*! no static exports found */
1077
- /***/ (function(module, exports, __webpack_require__) {
1078
-
1079
- "use strict";
1080
-
1081
- Object.defineProperty(exports, "__esModule", { value: true });
1082
- var moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
1083
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1084
- var ManualSyncForm = function (props) {
1085
- return (React.createElement("form", { name: 'manual-sync', method: 'POST', onSubmit: props.onSubmitManualSyncForm },
1086
- React.createElement("h4", null, "Manually Sync Comments"),
1087
- React.createElement("p", { className: 'description' }, "Select a time range to sync past comments. Date ranges are limited to a maximum of 12 months."),
1088
- React.createElement("table", { className: 'form-table' },
1089
- React.createElement("tbody", null,
1090
- React.createElement("tr", null,
1091
- React.createElement("th", { scope: 'row' },
1092
- React.createElement("label", { htmlFor: 'manualSyncRangeStart' }, "Start Date")),
1093
- React.createElement("td", null,
1094
- React.createElement("input", { type: 'date', id: 'manualSyncRangeStart', name: 'manualSyncRangeStart', className: 'regular-text', value: props.data.manualSyncRangeStart, onChange: props.onDateSelectorInputchange.bind(null, 'manualSyncRangeStart'), max: props.data.manualSyncRangeEnd, min: moment(props.data.manualSyncRangeEnd).subtract(12, 'months').format('YYYY-MM-DD'), disabled: props.data.isManualSyncRunning }),
1095
- React.createElement("p", { className: 'description' }, "The start date for the manual sync"))),
1096
- React.createElement("tr", null,
1097
- React.createElement("th", { scope: 'row' },
1098
- React.createElement("label", { htmlFor: 'manualSyncRangeEnd' }, "End Date")),
1099
- React.createElement("td", null,
1100
- React.createElement("input", { type: 'date', id: 'manualSyncRangeEnd', name: 'manualSyncRangeEnd', className: 'regular-text', value: props.data.manualSyncRangeEnd, onChange: props.onDateSelectorInputchange.bind(null, 'manualSyncRangeEnd'), max: moment().format('YYYY-MM-DD'), min: props.data.manualSyncRangeStart, disabled: props.data.isManualSyncRunning }),
1101
- React.createElement("p", { className: 'description' }, "The end date for the manual sync"))))),
1102
- React.createElement("p", { className: 'submit' },
1103
- React.createElement("button", { type: 'submit', className: 'button button-large', disabled: props.data.isManualSyncRunning },
1104
- React.createElement("span", { className: 'dashicons dashicons-update' }),
1105
- ' ',
1106
- "Run Manual Sync"))));
1107
- };
1108
- exports.default = ManualSyncForm;
1109
-
1110
-
1111
- /***/ }),
1112
-
1113
- /***/ "./frontend/src/ts/components/Message.tsx":
1114
- /*!************************************************!*\
1115
- !*** ./frontend/src/ts/components/Message.tsx ***!
1116
- \************************************************/
1117
- /*! no static exports found */
1118
- /***/ (function(module, exports, __webpack_require__) {
1119
-
1120
- "use strict";
1121
-
1122
- Object.defineProperty(exports, "__esModule", { value: true });
1123
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1124
- var getDismissButton = function (props) {
1125
- if (!props.onDismiss)
1126
- return null;
1127
- return (React.createElement("button", { type: 'button', className: 'notice-dismiss', onClick: props.onDismiss },
1128
- React.createElement("span", { className: 'screen-reader-text' }, "Dismiss this notice.")));
1129
- };
1130
- var Message = function (props) { return (React.createElement("div", { className: "notice notice-" + props.type + " inline is-dismissible" },
1131
- React.createElement("p", null, props.text),
1132
- getDismissButton(props))); };
1133
- exports.default = Message;
1134
-
1135
-
1136
- /***/ }),
1137
-
1138
- /***/ "./frontend/src/ts/components/SSOConfigForm.tsx":
1139
- /*!******************************************************!*\
1140
- !*** ./frontend/src/ts/components/SSOConfigForm.tsx ***!
1141
- \******************************************************/
1142
- /*! no static exports found */
1143
- /***/ (function(module, exports, __webpack_require__) {
1144
-
1145
- "use strict";
1146
-
1147
- Object.defineProperty(exports, "__esModule", { value: true });
1148
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1149
- /* tslint:disable:max-line-length */
1150
- var SSOConfigForm = function (props) { return (React.createElement("form", { name: 'sso', action: '', method: 'POST', onSubmit: props.onSubmitSiteForm },
1151
- React.createElement("table", { className: 'form-table' },
1152
- React.createElement("tbody", null,
1153
- React.createElement("tr", null,
1154
- React.createElement("th", { scope: 'row' },
1155
- React.createElement("label", { htmlFor: 'disqus_sso_enabled' }, "Enable SSO")),
1156
- React.createElement("td", null,
1157
- React.createElement("input", { type: 'checkbox', id: 'disqus_sso_enabled', name: 'disqus_sso_enabled', checked: Boolean(props.data.localAdminOptions.get('disqus_sso_enabled')), onChange: props.onInputChange.bind(null, 'disqus_sso_enabled') }),
1158
- React.createElement("p", { className: 'description' }, "This will enable Single Sign-on for this site, if already enabled for your Disqus organization."))),
1159
- React.createElement("tr", null,
1160
- React.createElement("th", { scope: 'row' },
1161
- React.createElement("label", { htmlFor: 'disqus_sso_button' }, "Custom Login Button")),
1162
- React.createElement("td", null,
1163
- React.createElement("input", { type: 'url', id: 'disqus_sso_button', name: 'disqus_sso_button', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_sso_button') || '', onChange: props.onInputChange.bind(null, 'disqus_sso_button') }),
1164
- React.createElement("p", { className: 'description' },
1165
- "A link to a .png, .gif, or .jpg image to show as a button in Disqus.",
1166
- ' ',
1167
- React.createElement("a", { href: 'https://help.disqus.com/customer/portal/articles/236206#sso-login-button', target: '_blank' }, "Learn More")))))),
1168
- React.createElement("p", { className: 'submit' },
1169
- React.createElement("input", { type: 'submit', name: 'submit-application-form', className: 'button button-primary', value: "Save" })))); };
1170
- /* tslint:enable:max-line-length */
1171
- exports.default = SSOConfigForm;
1172
-
1173
-
1174
- /***/ }),
1175
-
1176
- /***/ "./frontend/src/ts/components/SiteConfigForm.tsx":
1177
- /*!*******************************************************!*\
1178
- !*** ./frontend/src/ts/components/SiteConfigForm.tsx ***!
1179
- \*******************************************************/
1180
- /*! no static exports found */
1181
- /***/ (function(module, exports, __webpack_require__) {
1182
-
1183
- "use strict";
1184
-
1185
- Object.defineProperty(exports, "__esModule", { value: true });
1186
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1187
- var getSubmitButton = function (props) {
1188
- return props.data.isSiteFormLocked ? (React.createElement("button", { className: 'button button-link', onClick: props.onToggleState.bind(null, 'isSiteFormLocked') },
1189
- React.createElement("span", { className: 'dashicons dashicons-lock' }),
1190
- ' ',
1191
- "Click to make changes")) : (React.createElement("input", { type: 'submit', name: 'submit-site-form', className: 'button button-primary', value: "Save" }));
1192
- };
1193
- var SiteConfigForm = function (props) { return (React.createElement("form", { name: 'site', action: '', method: 'POST', onSubmit: props.onSubmitSiteForm, autoComplete: 'off' },
1194
- React.createElement("table", { className: 'form-table' },
1195
- React.createElement("tbody", null,
1196
- React.createElement("tr", null,
1197
- React.createElement("th", { scope: 'row' },
1198
- React.createElement("label", { htmlFor: 'disqus_forum_url' },
1199
- "Shortname",
1200
- React.createElement("span", { style: { color: 'red' } }, ' *'))),
1201
- React.createElement("td", null,
1202
- React.createElement("input", { type: 'text', id: 'disqus_forum_url', name: 'disqus_forum_url', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_forum_url') || '', onChange: props.onInputChange.bind(null, 'disqus_forum_url'), readOnly: Boolean(props.data.isSiteFormLocked), disabled: Boolean(props.data.isSiteFormLocked) }),
1203
- React.createElement("p", { className: 'description' },
1204
- "Your site's unique identifier",
1205
- ' ',
1206
- React.createElement("a", { href: 'https://help.disqus.com/customer/portal/articles/466208', target: '_blank' }, "What is this?")))),
1207
- React.createElement("tr", null,
1208
- React.createElement("th", { scope: 'row' },
1209
- React.createElement("label", { htmlFor: 'disqus_public_key' }, "API Public Key")),
1210
- React.createElement("td", null,
1211
- React.createElement("input", { type: 'text', id: 'disqus_public_key', name: 'disqus_public_key', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_public_key') || '', onChange: props.onInputChange.bind(null, 'disqus_public_key'), readOnly: Boolean(props.data.isSiteFormLocked), disabled: Boolean(props.data.isSiteFormLocked) }),
1212
- React.createElement("p", { className: 'description' }, "The public key of your application (optional)."))),
1213
- React.createElement("tr", null,
1214
- React.createElement("th", { scope: 'row' },
1215
- React.createElement("label", { htmlFor: 'disqus_secret_key' }, "API Secret Key")),
1216
- React.createElement("td", null,
1217
- React.createElement("input", { type: 'text', id: 'disqus_secret_key', name: 'disqus_secret_key', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_secret_key') || '', onChange: props.onInputChange.bind(null, 'disqus_secret_key'), readOnly: Boolean(props.data.isSiteFormLocked), disabled: Boolean(props.data.isSiteFormLocked) }),
1218
- React.createElement("p", { className: 'description' }, "The secret key of your application (optional)."))),
1219
- React.createElement("tr", null,
1220
- React.createElement("th", { scope: 'row' },
1221
- React.createElement("label", { htmlFor: 'disqus_admin_access_token' }, "API Access Token")),
1222
- React.createElement("td", null,
1223
- React.createElement("input", { type: 'text', id: 'disqus_admin_access_token', name: 'disqus_admin_access_token', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_admin_access_token') || '', onChange: props.onInputChange.bind(null, 'disqus_admin_access_token'), readOnly: Boolean(props.data.isSiteFormLocked), disabled: Boolean(props.data.isSiteFormLocked) }),
1224
- React.createElement("p", { className: 'description' }, "The admin access token of your application (optional)."))),
1225
- React.createElement("tr", null,
1226
- React.createElement("th", { scope: 'row' },
1227
- React.createElement("label", { htmlFor: 'disqus_sync_token' }, "Site Secret Key")),
1228
- React.createElement("td", null,
1229
- React.createElement("input", { type: 'text', id: 'disqus_sync_token', name: 'disqus_sync_token', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_sync_token') || '', onChange: props.onInputChange.bind(null, 'disqus_sync_token'), readOnly: Boolean(props.data.isSiteFormLocked), disabled: Boolean(props.data.isSiteFormLocked) }),
1230
- React.createElement("p", { className: 'description' },
1231
- "The secret key for your site which allows Disqus to sync comments.",
1232
- React.createElement("br", null),
1233
- React.createElement("br", null),
1234
- React.createElement("strong", null,
1235
- "Important",
1236
- ":"),
1237
- ' ',
1238
- "If you change this you will need to re-enable syncing to use the new key."))))),
1239
- React.createElement("p", { className: 'submit' }, getSubmitButton(props)))); };
1240
- exports.default = SiteConfigForm;
1241
-
1242
-
1243
- /***/ }),
1244
-
1245
- /***/ "./frontend/src/ts/components/SupportDiagnostics.tsx":
1246
- /*!***********************************************************!*\
1247
- !*** ./frontend/src/ts/components/SupportDiagnostics.tsx ***!
1248
- \***********************************************************/
1249
- /*! no static exports found */
1250
- /***/ (function(module, exports, __webpack_require__) {
1251
-
1252
- "use strict";
1253
-
1254
- Object.defineProperty(exports, "__esModule", { value: true });
1255
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1256
- var DIAGNOSTICS_TEXTAREA_ID = 'diagnostics-textarea';
1257
- var SupportDiagnostics = function (props) { return (React.createElement("div", null,
1258
- React.createElement("div", null,
1259
- React.createElement("textarea", { id: DIAGNOSTICS_TEXTAREA_ID, readOnly: true, style: { minWidth: '320px', minHeight: '200px' }, value: JSON.stringify(props, null, 4) }),
1260
- React.createElement("br", null),
1261
- React.createElement("button", { className: 'button', onClick: props.onCopyText.bind(null, DIAGNOSTICS_TEXTAREA_ID) }, "Copy")))); };
1262
- exports.default = SupportDiagnostics;
1263
-
1264
-
1265
- /***/ }),
1266
-
1267
- /***/ "./frontend/src/ts/components/SupportLinks.tsx":
1268
- /*!*****************************************************!*\
1269
- !*** ./frontend/src/ts/components/SupportLinks.tsx ***!
1270
- \*****************************************************/
1271
- /*! no static exports found */
1272
- /***/ (function(module, exports, __webpack_require__) {
1273
-
1274
- "use strict";
1275
-
1276
- Object.defineProperty(exports, "__esModule", { value: true });
1277
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1278
- var SupportLinks = function () { return (React.createElement("ul", { className: 'dsq-support-list-container' },
1279
- React.createElement("li", { className: 'dsq-support-list-item' },
1280
- React.createElement("div", null,
1281
- React.createElement("a", { href: 'https://help.disqus.com/customer/en/portal/articles/472005', target: '_blank' },
1282
- React.createElement("div", { className: 'dashicons dashicons-lightbulb dsq-icon-support' }),
1283
- "WordPress FAQ"))),
1284
- React.createElement("li", { className: 'dsq-support-list-item' },
1285
- React.createElement("div", null,
1286
- React.createElement("a", { href: 'https://disqus.com/home/channel/discussdisqus/', target: '_blank' },
1287
- React.createElement("div", { className: 'dashicons dashicons-groups dsq-icon-support' }),
1288
- "Community Forum"))),
1289
- React.createElement("li", { className: 'dsq-support-list-item' },
1290
- React.createElement("div", null,
1291
- React.createElement("a", { href: 'http://wp-plugin.disqus.net/', target: '_blank' },
1292
- React.createElement("div", { className: 'dashicons dashicons-email-alt dsq-icon-support' }),
1293
- "Contact Support"))))); };
1294
- exports.default = SupportLinks;
1295
-
1296
-
1297
- /***/ }),
1298
-
1299
- /***/ "./frontend/src/ts/components/SyncConfigForm.tsx":
1300
- /*!*******************************************************!*\
1301
- !*** ./frontend/src/ts/components/SyncConfigForm.tsx ***!
1302
- \*******************************************************/
1303
- /*! no static exports found */
1304
- /***/ (function(module, exports, __webpack_require__) {
1305
-
1306
- "use strict";
1307
-
1308
- Object.defineProperty(exports, "__esModule", { value: true });
1309
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1310
- var getSyncStatus = function (syncStatus) {
1311
- if (!syncStatus.subscribed) {
1312
- return {
1313
- button: "Enable Auto Syncing",
1314
- endpoint: 'sync/enable',
1315
- status: "Not Configured",
1316
- statusIcon: 'play',
1317
- };
1318
- }
1319
- if (syncStatus.requires_update) {
1320
- return {
1321
- button: "Update Auto Syncing",
1322
- endpoint: 'sync/enable',
1323
- status: "Needs Update",
1324
- statusIcon: 'play',
1325
- };
1326
- }
1327
- if (syncStatus.enabled) {
1328
- return {
1329
- button: "Pause Auto Syncing",
1330
- endpoint: 'sync/disable',
1331
- status: "Running",
1332
- statusIcon: 'pause',
1333
- };
1334
- }
1335
- return {
1336
- button: "Enable Auto Syncing",
1337
- endpoint: 'sync/enable',
1338
- status: "Paused",
1339
- statusIcon: 'play',
1340
- };
1341
- };
1342
- var SyncConfigForm = function (props) {
1343
- var syncStatus = getSyncStatus(props.data.syncStatus);
1344
- return (React.createElement("form", { name: syncStatus.endpoint, method: 'POST', onSubmit: props.onSubmitSyncConfigForm },
1345
- React.createElement("p", null,
1346
- React.createElement("span", { className: 'dashicons dashicons-update' }),
1347
- ' ',
1348
- "Auto syncing",
1349
- ':',
1350
- ' ',
1351
- React.createElement("strong", null, syncStatus.status)),
1352
- props.data.syncStatus.last_message ? React.createElement("p", null, props.data.syncStatus.last_message) : null,
1353
- React.createElement("p", { className: 'submit' },
1354
- React.createElement("button", { type: 'submit', className: 'button button-large' },
1355
- React.createElement("span", { className: "dashicons dashicons-controls-" + syncStatus.statusIcon }),
1356
- ' ',
1357
- syncStatus.button)),
1358
- props.data.isManualSyncFormVisible ? null : (React.createElement("p", null,
1359
- React.createElement("button", { type: 'button', className: 'button button-link', onClick: props.onToggleState.bind(null, 'isManualSyncFormVisible') }, "Manually Sync Comments")))));
1360
- };
1361
- exports.default = SyncConfigForm;
1362
-
1363
-
1364
- /***/ }),
1365
-
1366
- /***/ "./frontend/src/ts/components/SyncTokenForm.tsx":
1367
- /*!******************************************************!*\
1368
- !*** ./frontend/src/ts/components/SyncTokenForm.tsx ***!
1369
- \******************************************************/
1370
- /*! no static exports found */
1371
- /***/ (function(module, exports, __webpack_require__) {
1372
-
1373
- "use strict";
1374
-
1375
- Object.defineProperty(exports, "__esModule", { value: true });
1376
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1377
- var SyncTokenForm = function (props) {
1378
- return (React.createElement("form", { name: 'site', action: '', method: 'POST', onSubmit: props.onSubmitSiteForm, autoComplete: 'off' },
1379
- React.createElement("table", { className: 'form-table' },
1380
- React.createElement("tbody", null,
1381
- React.createElement("tr", null,
1382
- React.createElement("th", { scope: 'row' },
1383
- React.createElement("label", { htmlFor: 'disqus_sync_token' }, "Site Secret Key")),
1384
- React.createElement("td", null,
1385
- React.createElement("input", { type: 'text', id: 'disqus_sync_token', name: 'disqus_sync_token', className: 'regular-text', value: props.data.localAdminOptions.get('disqus_sync_token') || '', onChange: props.onInputChange.bind(null, 'disqus_sync_token') }),
1386
- React.createElement("p", { className: 'description' },
1387
- "Enter any combination of letters and numbers, at least 32 characters.",
1388
- React.createElement("br", null),
1389
- React.createElement("a", { href: '#', onClick: props.onGenerateRandomSyncToken }, "Generate a key")))))),
1390
- React.createElement("p", { className: 'submit' },
1391
- React.createElement("input", { type: 'submit', name: 'submit-site-form', className: 'button button-primary', value: "Save" }))));
1392
- };
1393
- exports.default = SyncTokenForm;
1394
-
1395
-
1396
- /***/ }),
1397
-
1398
- /***/ "./frontend/src/ts/components/WelcomePanel.tsx":
1399
- /*!*****************************************************!*\
1400
- !*** ./frontend/src/ts/components/WelcomePanel.tsx ***!
1401
- \*****************************************************/
1402
- /*! no static exports found */
1403
- /***/ (function(module, exports, __webpack_require__) {
1404
-
1405
- "use strict";
1406
-
1407
- Object.defineProperty(exports, "__esModule", { value: true });
1408
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
1409
- var utils_1 = __webpack_require__(/*! ../utils */ "./frontend/src/ts/utils.ts");
1410
- var WelcomePanel = function (props) { return (React.createElement("div", { className: 'welcome-panel' },
1411
- React.createElement("div", { className: 'welcome-panel-content' },
1412
- React.createElement("p", { className: 'about-description' }, "Manage Community"),
1413
- React.createElement("div", { className: 'welcome-panel-column-container' },
1414
- React.createElement("div", { className: 'welcome-panel-column' },
1415
- React.createElement("h3", null, "Comments"),
1416
- React.createElement("a", { className: 'button button-primary button-hero', href: utils_1.getForumAdminUrl(props.shortname, 'moderate') }, "Moderate"),
1417
- React.createElement("p", null,
1418
- React.createElement("strong", null, "Manage" + ": "),
1419
- React.createElement("a", { href: utils_1.getForumAdminUrl(props.shortname, 'access/banned'), target: '_blank' }, "Banned users"),
1420
- ' | ',
1421
- React.createElement("a", { href: utils_1.getForumAdminUrl(props.shortname, 'settings/access'), target: '_blank' }, "Restricted words filter"),
1422
- ' | ',
1423
- React.createElement("a", { href: utils_1.getForumAdminUrl(props.shortname, 'settings/moderators'), target: '_blank' }, "Site moderators"))),
1424
- React.createElement("div", { className: 'welcome-panel-column' },
1425
- React.createElement("h3", null, "Analytics"),
1426
- React.createElement("ul", null,
1427
- React.createElement("li", null,
1428
- React.createElement("a", { className: 'welcome-icon dashicons-megaphone', href: utils_1.getForumAdminUrl(props.shortname, 'analytics/comments'), target: '_blank' }, "Engagement")),
1429
- React.createElement("li", null,
1430
- React.createElement("a", { className: 'welcome-icon dashicons-chart-line', href: utils_1.getForumAdminUrl(props.shortname, 'analytics/revenue'), target: '_blank' }, "Revenue")),
1431
- React.createElement("li", null,
1432
- React.createElement("a", { className: 'welcome-icon dashicons-heart', href: utils_1.getForumAdminUrl(props.shortname, 'analytics/content'), target: '_blank' }, "Popular Content")))),
1433
- React.createElement("div", { className: 'welcome-panel-column' },
1434
- React.createElement("h3", null, "Settings"),
1435
- React.createElement("ul", null,
1436
- React.createElement("li", null,
1437
- React.createElement("a", { className: 'welcome-icon dashicons-admin-appearance', href: utils_1.getForumAdminUrl(props.shortname, 'settings/general'), target: '_blank' }, "Identity")),
1438
- React.createElement("li", null,
1439
- React.createElement("a", { className: 'welcome-icon dashicons-format-chat', href: utils_1.getForumAdminUrl(props.shortname, 'settings/community'), target: '_blank' }, "Community Rules")),
1440
- React.createElement("li", null,
1441
- React.createElement("a", { className: 'welcome-icon dashicons-admin-settings', href: utils_1.getForumAdminUrl(props.shortname, 'settings/advanced'), target: '_blank' }, "Advanced")))))))); };
1442
- exports.default = WelcomePanel;
1443
-
1444
-
1445
- /***/ }),
1446
-
1447
- /***/ "./frontend/src/ts/containers/AdvancedConfigContainer.ts":
1448
- /*!***************************************************************!*\
1449
- !*** ./frontend/src/ts/containers/AdvancedConfigContainer.ts ***!
1450
- \***************************************************************/
1451
- /*! no static exports found */
1452
- /***/ (function(module, exports, __webpack_require__) {
1453
-
1454
- "use strict";
1455
-
1456
- Object.defineProperty(exports, "__esModule", { value: true });
1457
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1458
- var AdvancedConfigForm_1 = __webpack_require__(/*! ../components/AdvancedConfigForm */ "./frontend/src/ts/components/AdvancedConfigForm.tsx");
1459
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1460
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1461
- var AdvancedConfigContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(AdvancedConfigForm_1.default);
1462
- exports.default = AdvancedConfigContainer;
1463
-
1464
-
1465
- /***/ }),
1466
-
1467
- /***/ "./frontend/src/ts/containers/ExportCommentsContainer.ts":
1468
- /*!***************************************************************!*\
1469
- !*** ./frontend/src/ts/containers/ExportCommentsContainer.ts ***!
1470
- \***************************************************************/
1471
- /*! no static exports found */
1472
- /***/ (function(module, exports, __webpack_require__) {
1473
-
1474
- "use strict";
1475
-
1476
- Object.defineProperty(exports, "__esModule", { value: true });
1477
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1478
- var ExportComments_1 = __webpack_require__(/*! ../components/ExportComments */ "./frontend/src/ts/components/ExportComments.tsx");
1479
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1480
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1481
- var ExportCommentsContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(ExportComments_1.default);
1482
- exports.default = ExportCommentsContainer;
1483
-
1484
-
1485
- /***/ }),
1486
-
1487
- /***/ "./frontend/src/ts/containers/InstallContainer.ts":
1488
- /*!********************************************************!*\
1489
- !*** ./frontend/src/ts/containers/InstallContainer.ts ***!
1490
- \********************************************************/
1491
- /*! no static exports found */
1492
- /***/ (function(module, exports, __webpack_require__) {
1493
-
1494
- "use strict";
1495
-
1496
- Object.defineProperty(exports, "__esModule", { value: true });
1497
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1498
- var Install_1 = __webpack_require__(/*! ../components/Install */ "./frontend/src/ts/components/Install.tsx");
1499
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1500
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1501
- var InstallContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(Install_1.default);
1502
- exports.default = InstallContainer;
1503
-
1504
-
1505
- /***/ }),
1506
-
1507
- /***/ "./frontend/src/ts/containers/MainContainer.ts":
1508
- /*!*****************************************************!*\
1509
- !*** ./frontend/src/ts/containers/MainContainer.ts ***!
1510
- \*****************************************************/
1511
- /*! no static exports found */
1512
- /***/ (function(module, exports, __webpack_require__) {
1513
-
1514
- "use strict";
1515
-
1516
- Object.defineProperty(exports, "__esModule", { value: true });
1517
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1518
- var Main_1 = __webpack_require__(/*! ../components/Main */ "./frontend/src/ts/components/Main.tsx");
1519
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1520
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1521
- var MainContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(Main_1.default);
1522
- exports.default = MainContainer;
1523
-
1524
-
1525
- /***/ }),
1526
-
1527
- /***/ "./frontend/src/ts/containers/ManualSyncContainer.ts":
1528
- /*!***********************************************************!*\
1529
- !*** ./frontend/src/ts/containers/ManualSyncContainer.ts ***!
1530
- \***********************************************************/
1531
- /*! no static exports found */
1532
- /***/ (function(module, exports, __webpack_require__) {
1533
-
1534
- "use strict";
1535
-
1536
- Object.defineProperty(exports, "__esModule", { value: true });
1537
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1538
- var ManualSyncForm_1 = __webpack_require__(/*! ../components/ManualSyncForm */ "./frontend/src/ts/components/ManualSyncForm.tsx");
1539
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1540
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1541
- var ManualSyncContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(ManualSyncForm_1.default);
1542
- exports.default = ManualSyncContainer;
1543
-
1544
-
1545
- /***/ }),
1546
-
1547
- /***/ "./frontend/src/ts/containers/SSOConfigContainer.ts":
1548
- /*!**********************************************************!*\
1549
- !*** ./frontend/src/ts/containers/SSOConfigContainer.ts ***!
1550
- \**********************************************************/
1551
- /*! no static exports found */
1552
- /***/ (function(module, exports, __webpack_require__) {
1553
-
1554
- "use strict";
1555
-
1556
- Object.defineProperty(exports, "__esModule", { value: true });
1557
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1558
- var SSOConfigForm_1 = __webpack_require__(/*! ../components/SSOConfigForm */ "./frontend/src/ts/components/SSOConfigForm.tsx");
1559
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1560
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1561
- var SSOConfigContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(SSOConfigForm_1.default);
1562
- exports.default = SSOConfigContainer;
1563
-
1564
-
1565
- /***/ }),
1566
-
1567
- /***/ "./frontend/src/ts/containers/SiteConfigContainer.ts":
1568
- /*!***********************************************************!*\
1569
- !*** ./frontend/src/ts/containers/SiteConfigContainer.ts ***!
1570
- \***********************************************************/
1571
- /*! no static exports found */
1572
- /***/ (function(module, exports, __webpack_require__) {
1573
-
1574
- "use strict";
1575
-
1576
- Object.defineProperty(exports, "__esModule", { value: true });
1577
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1578
- var SiteConfigForm_1 = __webpack_require__(/*! ../components/SiteConfigForm */ "./frontend/src/ts/components/SiteConfigForm.tsx");
1579
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1580
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1581
- var SiteConfigContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(SiteConfigForm_1.default);
1582
- exports.default = SiteConfigContainer;
1583
-
1584
-
1585
- /***/ }),
1586
-
1587
- /***/ "./frontend/src/ts/containers/SupportDiagnosticsContainer.ts":
1588
- /*!*******************************************************************!*\
1589
- !*** ./frontend/src/ts/containers/SupportDiagnosticsContainer.ts ***!
1590
- \*******************************************************************/
1591
- /*! no static exports found */
1592
- /***/ (function(module, exports, __webpack_require__) {
1593
-
1594
- "use strict";
1595
-
1596
- Object.defineProperty(exports, "__esModule", { value: true });
1597
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1598
- var SupportDiagnostics_1 = __webpack_require__(/*! ../components/SupportDiagnostics */ "./frontend/src/ts/components/SupportDiagnostics.tsx");
1599
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1600
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1601
- var SupportDiagnosticsContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(SupportDiagnostics_1.default);
1602
- exports.default = SupportDiagnosticsContainer;
1603
-
1604
-
1605
- /***/ }),
1606
-
1607
- /***/ "./frontend/src/ts/containers/SyncConfigContainer.ts":
1608
- /*!***********************************************************!*\
1609
- !*** ./frontend/src/ts/containers/SyncConfigContainer.ts ***!
1610
- \***********************************************************/
1611
- /*! no static exports found */
1612
- /***/ (function(module, exports, __webpack_require__) {
1613
-
1614
- "use strict";
1615
-
1616
- Object.defineProperty(exports, "__esModule", { value: true });
1617
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1618
- var SyncConfigForm_1 = __webpack_require__(/*! ../components/SyncConfigForm */ "./frontend/src/ts/components/SyncConfigForm.tsx");
1619
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1620
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1621
- var SyncConfigContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(SyncConfigForm_1.default);
1622
- exports.default = SyncConfigContainer;
1623
-
1624
-
1625
- /***/ }),
1626
-
1627
- /***/ "./frontend/src/ts/containers/SyncTokenContainer.ts":
1628
- /*!**********************************************************!*\
1629
- !*** ./frontend/src/ts/containers/SyncTokenContainer.ts ***!
1630
- \**********************************************************/
1631
- /*! no static exports found */
1632
- /***/ (function(module, exports, __webpack_require__) {
1633
-
1634
- "use strict";
1635
-
1636
- Object.defineProperty(exports, "__esModule", { value: true });
1637
- var ReactRedux = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
1638
- var SyncTokenForm_1 = __webpack_require__(/*! ../components/SyncTokenForm */ "./frontend/src/ts/components/SyncTokenForm.tsx");
1639
- var mapDispatchToProps_1 = __webpack_require__(/*! ./mapDispatchToProps */ "./frontend/src/ts/containers/mapDispatchToProps.ts");
1640
- var mapStateToProps_1 = __webpack_require__(/*! ./mapStateToProps */ "./frontend/src/ts/containers/mapStateToProps.ts");
1641
- var SyncTokenContainer = ReactRedux.connect(mapStateToProps_1.default, mapDispatchToProps_1.default)(SyncTokenForm_1.default);
1642
- exports.default = SyncTokenContainer;
1643
-
1644
-
1645
- /***/ }),
1646
-
1647
- /***/ "./frontend/src/ts/containers/mapDispatchToProps.ts":
1648
- /*!**********************************************************!*\
1649
- !*** ./frontend/src/ts/containers/mapDispatchToProps.ts ***!
1650
- \**********************************************************/
1651
- /*! no static exports found */
1652
- /***/ (function(module, exports, __webpack_require__) {
1653
-
1654
- "use strict";
1655
-
1656
- Object.defineProperty(exports, "__esModule", { value: true });
1657
- var moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
1658
- var actions_1 = __webpack_require__(/*! ../actions */ "./frontend/src/ts/actions.ts");
1659
- var DisqusApi_1 = __webpack_require__(/*! ../DisqusApi */ "./frontend/src/ts/DisqusApi.ts");
1660
- var utils_1 = __webpack_require__(/*! ../utils */ "./frontend/src/ts/utils.ts");
1661
- var WordPressCommentExporter_1 = __webpack_require__(/*! ../WordPressCommentExporter */ "./frontend/src/ts/WordPressCommentExporter.ts");
1662
- var WordPressRestApi_1 = __webpack_require__(/*! ../WordPressRestApi */ "./frontend/src/ts/WordPressRestApi.ts");
1663
- var UPDATABLE_FIELDS = [
1664
- 'disqus_forum_url',
1665
- 'disqus_public_key',
1666
- 'disqus_secret_key',
1667
- 'disqus_admin_access_token',
1668
- 'disqus_sso_button',
1669
- 'disqus_sso_enabled',
1670
- 'disqus_sync_token',
1671
- 'disqus_render_js',
1672
- ];
1673
- exports.UPDATABLE_FIELDS = UPDATABLE_FIELDS;
1674
- var valueFromInput = function (element) {
1675
- var isCheckbox = element.type === 'checkbox';
1676
- var value;
1677
- if (isCheckbox)
1678
- value = element.checked ? '1' : '';
1679
- else
1680
- value = element.value;
1681
- return value;
1682
- };
1683
- var mapDispatchToProps = function (dispatch) {
1684
- var handleClearMessage = function (event) {
1685
- dispatch(actions_1.setMessageAction(null));
1686
- };
1687
- return {
1688
- onCopyText: function (elementId) {
1689
- try {
1690
- var element = window.document.getElementById(elementId);
1691
- if (element) {
1692
- element.select();
1693
- window.document.execCommand('copy');
1694
- }
1695
- }
1696
- catch (err) {
1697
- // Continue
1698
- }
1699
- },
1700
- onDateSelectorInputchange: function (key, event) {
1701
- var value = valueFromInput(event.currentTarget);
1702
- dispatch(actions_1.setValueAction(key, value));
1703
- },
1704
- onGenerateRandomSyncToken: function (event) {
1705
- event.preventDefault();
1706
- var newToken = utils_1.createRandomToken();
1707
- dispatch(actions_1.updateLocalOptionAction('disqus_sync_token', newToken));
1708
- },
1709
- onInputChange: function (key, event) {
1710
- var value = valueFromInput(event.currentTarget);
1711
- dispatch(actions_1.updateLocalOptionAction(key, value));
1712
- },
1713
- onSubmitExportCommentsForm: function (event) {
1714
- event.preventDefault();
1715
- var exporter = new WordPressCommentExporter_1.default(dispatch);
1716
- exporter.startExportPosts();
1717
- },
1718
- onSubmitManualSyncForm: function (event) {
1719
- event.preventDefault();
1720
- var rangeStartInput = event.currentTarget.elements.namedItem('manualSyncRangeStart');
1721
- var rangeEndInput = event.currentTarget.elements.namedItem('manualSyncRangeEnd');
1722
- var getDateFromInput = function (input) {
1723
- var dateValue = input && input.value;
1724
- var timestamp = moment(dateValue).endOf('day');
1725
- return timestamp;
1726
- };
1727
- var startDate = getDateFromInput(rangeStartInput);
1728
- var endDate = getDateFromInput(rangeEndInput);
1729
- var syncComments = function (cursor) {
1730
- if (cursor === void 0) { cursor = ''; }
1731
- DisqusApi_1.DisqusApi.instance.listPostsForForum(cursor, startDate, endDate, 100, function (xhr) {
1732
- var disqusData = null;
1733
- try {
1734
- disqusData = JSON.parse(xhr.target.responseText);
1735
- }
1736
- catch (error) {
1737
- // Continue
1738
- }
1739
- if (!disqusData || disqusData.code !== 0) {
1740
- dispatch(actions_1.setMessageAction({
1741
- onDismiss: handleClearMessage,
1742
- text: (disqusData && disqusData.response) || 'Error connecting to the Disqus API',
1743
- type: 'error',
1744
- }));
1745
- return;
1746
- }
1747
- disqusData.response.forEach(function (comment) {
1748
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestPost('sync/comment', {
1749
- object_type: 'post',
1750
- transformed_data: comment,
1751
- verb: 'force_sync',
1752
- }, function (syncResponse) {
1753
- var datestr = moment().format('YYYY-MM-DD h:mm:ss a');
1754
- dispatch(actions_1.updateSyncStatusAction({
1755
- last_message: "Manually synced comment \"" + comment.id + "\" from Disqus: " + datestr,
1756
- }));
1757
- });
1758
- });
1759
- var nextCursor = disqusData.cursor;
1760
- if (nextCursor && nextCursor.hasNext)
1761
- syncComments(nextCursor.next);
1762
- else
1763
- dispatch(actions_1.setValueAction('isManualSyncRunning', false));
1764
- });
1765
- };
1766
- dispatch(actions_1.setValueAction('isManualSyncRunning', true));
1767
- syncComments();
1768
- },
1769
- onSubmitSiteForm: function (event) {
1770
- event.preventDefault();
1771
- var fields = UPDATABLE_FIELDS.reduce(function (previousValue, currentIdKey) {
1772
- var _a;
1773
- if (currentIdKey in event.currentTarget.elements) {
1774
- var currentField = event.currentTarget.elements.namedItem(currentIdKey);
1775
- var currentInputElement = currentField;
1776
- var value = valueFromInput(currentInputElement);
1777
- return Object.assign((_a = {},
1778
- _a[currentInputElement.name] = value,
1779
- _a), previousValue);
1780
- }
1781
- return previousValue;
1782
- }, {});
1783
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestPost('settings', fields, function (response) {
1784
- if (!response)
1785
- return;
1786
- if (response.code !== 'OK') {
1787
- dispatch(actions_1.setMessageAction({
1788
- onDismiss: handleClearMessage,
1789
- text: response.message,
1790
- type: 'error',
1791
- }));
1792
- return;
1793
- }
1794
- dispatch(actions_1.updateAdminOptionsAction(response.data));
1795
- dispatch(actions_1.setMessageAction({
1796
- onDismiss: handleClearMessage,
1797
- text: "Changes saved successfully.",
1798
- type: 'success',
1799
- }));
1800
- dispatch(actions_1.toggleValueAction('isSiteFormLocked'));
1801
- });
1802
- },
1803
- onSubmitSyncConfigForm: function (event) {
1804
- event.preventDefault();
1805
- var endpoint = event.currentTarget.name;
1806
- WordPressRestApi_1.WordPressRestApi.instance.pluginRestPost(endpoint, null, function (response) {
1807
- if (!response)
1808
- return;
1809
- if (response.code !== 'OK') {
1810
- dispatch(actions_1.setMessageAction({
1811
- onDismiss: handleClearMessage,
1812
- text: response.message,
1813
- type: 'error',
1814
- }));
1815
- return;
1816
- }
1817
- dispatch(actions_1.updateSyncStatusAction(response.data));
1818
- dispatch(actions_1.setMessageAction({
1819
- onDismiss: handleClearMessage,
1820
- text: "Changes saved successfully.",
1821
- type: 'success',
1822
- }));
1823
- });
1824
- },
1825
- onToggleState: function (key) {
1826
- dispatch(actions_1.toggleValueAction(key));
1827
- },
1828
- onUpdateInstallationState: function (newState) {
1829
- dispatch(actions_1.changeInstallStateAction(newState));
1830
- },
1831
- };
1832
- };
1833
- exports.default = mapDispatchToProps;
1834
-
1835
-
1836
- /***/ }),
1837
-
1838
- /***/ "./frontend/src/ts/containers/mapStateToProps.ts":
1839
- /*!*******************************************************!*\
1840
- !*** ./frontend/src/ts/containers/mapStateToProps.ts ***!
1841
- \*******************************************************/
1842
- /*! no static exports found */
1843
- /***/ (function(module, exports, __webpack_require__) {
1844
-
1845
- "use strict";
1846
-
1847
- Object.defineProperty(exports, "__esModule", { value: true });
1848
- var mapStateToProps = function (state) {
1849
- return {
1850
- data: state,
1851
- };
1852
- };
1853
- exports.default = mapStateToProps;
1854
-
1855
-
1856
- /***/ }),
1857
-
1858
- /***/ "./frontend/src/ts/index.ts":
1859
- /*!**********************************!*\
1860
- !*** ./frontend/src/ts/index.ts ***!
1861
- \**********************************/
1862
- /*! no static exports found */
1863
- /***/ (function(module, exports, __webpack_require__) {
1864
-
1865
- "use strict";
1866
-
1867
- Object.defineProperty(exports, "__esModule", { value: true });
1868
- __webpack_require__(/*! ./app */ "./frontend/src/ts/app.tsx");
1869
-
1870
-
1871
- /***/ }),
1872
-
1873
- /***/ "./frontend/src/ts/reducers/AdminOptions.ts":
1874
- /*!**************************************************!*\
1875
- !*** ./frontend/src/ts/reducers/AdminOptions.ts ***!
1876
- \**************************************************/
1877
- /*! no static exports found */
1878
- /***/ (function(module, exports, __webpack_require__) {
1879
-
1880
- "use strict";
1881
-
1882
- var __extends = (this && this.__extends) || (function () {
1883
- var extendStatics = Object.setPrototypeOf ||
1884
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1885
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1886
- return function (d, b) {
1887
- extendStatics(d, b);
1888
- function __() { this.constructor = d; }
1889
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1890
- };
1891
- })();
1892
- Object.defineProperty(exports, "__esModule", { value: true });
1893
- var immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js");
1894
- var AdminOptions = /** @class */ (function (_super) {
1895
- __extends(AdminOptions, _super);
1896
- /* tslint:enable:variable-name */
1897
- function AdminOptions(options) {
1898
- return _super.call(this, options) || this;
1899
- }
1900
- AdminOptions.prototype.set = function (key, value) {
1901
- return _super.prototype.set.call(this, key, value);
1902
- };
1903
- AdminOptions.prototype.with = function (values) {
1904
- return this.merge(values);
1905
- };
1906
- return AdminOptions;
1907
- }(immutable_1.Record({
1908
- disqus_admin_access_token: null,
1909
- disqus_forum_url: null,
1910
- disqus_installed: null,
1911
- disqus_public_key: null,
1912
- disqus_render_js: null,
1913
- disqus_secret_key: null,
1914
- disqus_sso_button: null,
1915
- disqus_sso_enabled: null,
1916
- disqus_sync_token: null,
1917
- })));
1918
- exports.default = AdminOptions;
1919
-
1920
-
1921
- /***/ }),
1922
-
1923
- /***/ "./frontend/src/ts/reducers/AdminState.ts":
1924
- /*!************************************************!*\
1925
- !*** ./frontend/src/ts/reducers/AdminState.ts ***!
1926
- \************************************************/
1927
- /*! no static exports found */
1928
- /***/ (function(module, exports, __webpack_require__) {
1929
-
1930
- "use strict";
1931
-
1932
- var __extends = (this && this.__extends) || (function () {
1933
- var extendStatics = Object.setPrototypeOf ||
1934
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1935
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1936
- return function (d, b) {
1937
- extendStatics(d, b);
1938
- function __() { this.constructor = d; }
1939
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1940
- };
1941
- })();
1942
- Object.defineProperty(exports, "__esModule", { value: true });
1943
- var immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js");
1944
- var moment = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
1945
- var AdminOptions_1 = __webpack_require__(/*! ./AdminOptions */ "./frontend/src/ts/reducers/AdminOptions.ts");
1946
- var SyncStatus_1 = __webpack_require__(/*! ./SyncStatus */ "./frontend/src/ts/reducers/SyncStatus.ts");
1947
- var InstallationState;
1948
- (function (InstallationState) {
1949
- InstallationState[InstallationState["none"] = 0] = "none";
1950
- InstallationState[InstallationState["noAccount"] = 1] = "noAccount";
1951
- InstallationState[InstallationState["hasAccount"] = 2] = "hasAccount";
1952
- InstallationState[InstallationState["noSite"] = 3] = "noSite";
1953
- InstallationState[InstallationState["hasSite"] = 4] = "hasSite";
1954
- InstallationState[InstallationState["installed"] = 5] = "installed";
1955
- InstallationState[InstallationState["reinstallSite"] = 6] = "reinstallSite";
1956
- })(InstallationState = exports.InstallationState || (exports.InstallationState = {}));
1957
- var ExportLogStaus;
1958
- (function (ExportLogStaus) {
1959
- ExportLogStaus[ExportLogStaus["pending"] = 0] = "pending";
1960
- ExportLogStaus[ExportLogStaus["complete"] = 1] = "complete";
1961
- ExportLogStaus[ExportLogStaus["failed"] = 2] = "failed";
1962
- })(ExportLogStaus = exports.ExportLogStaus || (exports.ExportLogStaus = {}));
1963
- var AdminState = /** @class */ (function (_super) {
1964
- __extends(AdminState, _super);
1965
- function AdminState(config) {
1966
- return _super.call(this, {
1967
- adminOptions: new AdminOptions_1.default(),
1968
- config: config,
1969
- exportLogs: immutable_1.Map(),
1970
- localAdminOptions: new AdminOptions_1.default(),
1971
- manualSyncRangeEnd: moment().format('YYYY-MM-DD'),
1972
- manualSyncRangeStart: moment().subtract(7, 'days').format('YYYY-MM-DD'),
1973
- syncStatus: new SyncStatus_1.default(),
1974
- }) || this;
1975
- }
1976
- AdminState.prototype.set = function (key, value) {
1977
- return _super.prototype.set.call(this, key, value);
1978
- };
1979
- AdminState.prototype.with = function (values) {
1980
- return this.merge(values);
1981
- };
1982
- return AdminState;
1983
- }(immutable_1.Record({
1984
- activeTab: null,
1985
- adminOptions: null,
1986
- config: null,
1987
- exportLogs: null,
1988
- installationState: InstallationState.none,
1989
- isExportRunning: false,
1990
- isManualSyncRunning: false,
1991
- isFetchingAdminOptions: false,
1992
- isFetchingSyncStatus: false,
1993
- isManualSyncFormVisible: false,
1994
- isSiteFormLocked: true,
1995
- localAdminOptions: null,
1996
- manualSyncRangeEnd: null,
1997
- manualSyncRangeStart: null,
1998
- message: null,
1999
- syncStatus: null,
2000
- })));
2001
- exports.default = AdminState;
2002
-
2003
-
2004
- /***/ }),
2005
-
2006
- /***/ "./frontend/src/ts/reducers/SyncStatus.ts":
2007
- /*!************************************************!*\
2008
- !*** ./frontend/src/ts/reducers/SyncStatus.ts ***!
2009
- \************************************************/
2010
- /*! no static exports found */
2011
- /***/ (function(module, exports, __webpack_require__) {
2012
-
2013
- "use strict";
2014
-
2015
- var __extends = (this && this.__extends) || (function () {
2016
- var extendStatics = Object.setPrototypeOf ||
2017
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2018
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2019
- return function (d, b) {
2020
- extendStatics(d, b);
2021
- function __() { this.constructor = d; }
2022
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2023
- };
2024
- })();
2025
- Object.defineProperty(exports, "__esModule", { value: true });
2026
- var immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js");
2027
- var SyncStatus = /** @class */ (function (_super) {
2028
- __extends(SyncStatus, _super);
2029
- /* tslint:enable:variable-name */
2030
- function SyncStatus(options) {
2031
- return _super.call(this, options) || this;
2032
- }
2033
- SyncStatus.prototype.set = function (key, value) {
2034
- return _super.prototype.set.call(this, key, value);
2035
- };
2036
- SyncStatus.prototype.with = function (values) {
2037
- return this.merge(values);
2038
- };
2039
- return SyncStatus;
2040
- }(immutable_1.Record({
2041
- enabled: null,
2042
- last_message: null,
2043
- requires_update: null,
2044
- subscribed: null,
2045
- subscription: null,
2046
- })));
2047
- exports.default = SyncStatus;
2048
-
2049
-
2050
- /***/ }),
2051
-
2052
- /***/ "./frontend/src/ts/reducers/adminApp.ts":
2053
- /*!**********************************************!*\
2054
- !*** ./frontend/src/ts/reducers/adminApp.ts ***!
2055
- \**********************************************/
2056
- /*! no static exports found */
2057
- /***/ (function(module, exports, __webpack_require__) {
2058
-
2059
- "use strict";
2060
-
2061
- Object.defineProperty(exports, "__esModule", { value: true });
2062
- var actions = __webpack_require__(/*! ../actions */ "./frontend/src/ts/actions.ts");
2063
- var AdminState_1 = __webpack_require__(/*! ./AdminState */ "./frontend/src/ts/reducers/AdminState.ts");
2064
- var adminConfigData = window.DISQUS_WP;
2065
- var initialState = new AdminState_1.default(adminConfigData);
2066
- var adminApp = function (state, action) {
2067
- if (state === void 0) { state = initialState; }
2068
- var _a;
2069
- switch (action.type) {
2070
- case actions.UPDATE_ADMIN_OPTIONS:
2071
- state = state.with({
2072
- adminOptions: state.adminOptions.with(action.data),
2073
- localAdminOptions: state.localAdminOptions.with(action.data),
2074
- });
2075
- break;
2076
- case actions.UPDATE_SYNC_STATUS:
2077
- state = state.with({
2078
- syncStatus: state.syncStatus.with(action.data),
2079
- });
2080
- break;
2081
- case actions.SET_MESSAGE:
2082
- state = state.set('message', action.data);
2083
- break;
2084
- case actions.SET_VALUE:
2085
- state = state.with(action.data);
2086
- break;
2087
- case actions.TOGGLE_VALUE:
2088
- var currentValue = state.get(action.data, false);
2089
- state = state.with((_a = {},
2090
- _a[action.data] = !currentValue,
2091
- _a));
2092
- break;
2093
- case actions.UPDATE_LOCAL_OPTION:
2094
- state = state.with({
2095
- localAdminOptions: state.localAdminOptions.with(action.data),
2096
- });
2097
- break;
2098
- case actions.CHANGE_INSTALL_STATE:
2099
- state = state.with({
2100
- installationState: action.data,
2101
- });
2102
- break;
2103
- case actions.CHANGE_TAB_STATE:
2104
- state = state.with({
2105
- activeTab: action.data,
2106
- installationState: state.adminOptions.disqus_installed ?
2107
- AdminState_1.InstallationState.installed :
2108
- AdminState_1.InstallationState.none,
2109
- });
2110
- break;
2111
- case actions.UPDATE_EXPORT_POST_LOG:
2112
- var newLogs = state.exportLogs.set(action.data.id, action.data);
2113
- state = state.with({
2114
- exportLogs: newLogs,
2115
- isExportRunning: Boolean(newLogs.find(function (value, key) {
2116
- return value.status === AdminState_1.ExportLogStaus.pending;
2117
- })),
2118
- });
2119
- break;
2120
- default:
2121
- break;
2122
- }
2123
- return state;
2124
- };
2125
- exports.default = adminApp;
2126
-
2127
-
2128
- /***/ }),
2129
-
2130
- /***/ "./frontend/src/ts/utils.ts":
2131
- /*!**********************************!*\
2132
- !*** ./frontend/src/ts/utils.ts ***!
2133
- \**********************************/
2134
- /*! no static exports found */
2135
- /***/ (function(module, exports, __webpack_require__) {
2136
-
2137
- "use strict";
2138
-
2139
- Object.defineProperty(exports, "__esModule", { value: true });
2140
- function getWordpressAdminUrl(name) {
2141
- return window.DISQUS_WP.adminUrls[name];
2142
- }
2143
- exports.getWordpressAdminUrl = getWordpressAdminUrl;
2144
- function getForumAdminUrl(shortname, path) {
2145
- return "https://" + shortname + ".disqus.com/admin/" + path + "/";
2146
- }
2147
- exports.getForumAdminUrl = getForumAdminUrl;
2148
- function createRandomToken(length) {
2149
- if (length === void 0) { length = 32; }
2150
- var token = '';
2151
- var possibleChars = 'abcdefghijklmnopqrstuvwxyz0123456789';
2152
- for (var i = 0; i < length; i++)
2153
- token += possibleChars.charAt(Math.floor(Math.random() * possibleChars.length));
2154
- return token;
2155
- }
2156
- exports.createRandomToken = createRandomToken;
2157
-
2158
-
2159
- /***/ }),
2160
-
2161
- /***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
2162
- /*!**************************************************************************!*\
2163
- !*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
2164
- \**************************************************************************/
2165
- /*! exports provided: default */
2166
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2167
-
2168
- "use strict";
2169
- __webpack_require__.r(__webpack_exports__);
2170
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _assertThisInitialized; });
2171
- function _assertThisInitialized(self) {
2172
- if (self === void 0) {
2173
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2174
- }
2175
-
2176
- return self;
2177
- }
2178
-
2179
- /***/ }),
2180
-
2181
- /***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
2182
- /*!************************************************************!*\
2183
- !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
2184
- \************************************************************/
2185
- /*! exports provided: default */
2186
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2187
-
2188
- "use strict";
2189
- __webpack_require__.r(__webpack_exports__);
2190
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
2191
- function _extends() {
2192
- _extends = Object.assign || function (target) {
2193
- for (var i = 1; i < arguments.length; i++) {
2194
- var source = arguments[i];
2195
-
2196
- for (var key in source) {
2197
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2198
- target[key] = source[key];
2199
- }
2200
- }
2201
- }
2202
-
2203
- return target;
2204
- };
2205
-
2206
- return _extends.apply(this, arguments);
2207
- }
2208
-
2209
- /***/ }),
2210
-
2211
- /***/ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":
2212
- /*!******************************************************************!*\
2213
- !*** ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***!
2214
- \******************************************************************/
2215
- /*! exports provided: default */
2216
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2217
-
2218
- "use strict";
2219
- __webpack_require__.r(__webpack_exports__);
2220
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inheritsLoose; });
2221
- function _inheritsLoose(subClass, superClass) {
2222
- subClass.prototype = Object.create(superClass.prototype);
2223
- subClass.prototype.constructor = subClass;
2224
- subClass.__proto__ = superClass;
2225
- }
2226
-
2227
- /***/ }),
2228
-
2229
- /***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
2230
- /*!*********************************************************************************!*\
2231
- !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
2232
- \*********************************************************************************/
2233
- /*! exports provided: default */
2234
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2235
-
2236
- "use strict";
2237
- __webpack_require__.r(__webpack_exports__);
2238
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutPropertiesLoose; });
2239
- function _objectWithoutPropertiesLoose(source, excluded) {
2240
- if (source == null) return {};
2241
- var target = {};
2242
- var sourceKeys = Object.keys(source);
2243
- var key, i;
2244
-
2245
- for (i = 0; i < sourceKeys.length; i++) {
2246
- key = sourceKeys[i];
2247
- if (excluded.indexOf(key) >= 0) continue;
2248
- target[key] = source[key];
2249
- }
2250
-
2251
- return target;
2252
- }
2253
-
2254
- /***/ }),
2255
-
2256
- /***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":
2257
- /*!**********************************************************************************!*\
2258
- !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***!
2259
- \**********************************************************************************/
2260
- /*! no static exports found */
2261
- /***/ (function(module, exports, __webpack_require__) {
2262
-
2263
- "use strict";
2264
-
2265
-
2266
- /**
2267
- * Copyright 2015, Yahoo! Inc.
2268
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
2269
- */
2270
- var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
2271
- var REACT_STATICS = {
2272
- childContextTypes: true,
2273
- contextType: true,
2274
- contextTypes: true,
2275
- defaultProps: true,
2276
- displayName: true,
2277
- getDefaultProps: true,
2278
- getDerivedStateFromError: true,
2279
- getDerivedStateFromProps: true,
2280
- mixins: true,
2281
- propTypes: true,
2282
- type: true
2283
- };
2284
-
2285
- var KNOWN_STATICS = {
2286
- name: true,
2287
- length: true,
2288
- prototype: true,
2289
- caller: true,
2290
- callee: true,
2291
- arguments: true,
2292
- arity: true
2293
- };
2294
-
2295
- var FORWARD_REF_STATICS = {
2296
- '$$typeof': true,
2297
- render: true,
2298
- defaultProps: true,
2299
- displayName: true,
2300
- propTypes: true
2301
- };
2302
-
2303
- var MEMO_STATICS = {
2304
- '$$typeof': true,
2305
- compare: true,
2306
- defaultProps: true,
2307
- displayName: true,
2308
- propTypes: true,
2309
- type: true
2310
- };
2311
-
2312
- var TYPE_STATICS = {};
2313
- TYPE_STATICS[ReactIs.ForwardRef] = FORWARD_REF_STATICS;
2314
-
2315
- function getStatics(component) {
2316
- if (ReactIs.isMemo(component)) {
2317
- return MEMO_STATICS;
2318
- }
2319
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
2320
- }
2321
-
2322
- var defineProperty = Object.defineProperty;
2323
- var getOwnPropertyNames = Object.getOwnPropertyNames;
2324
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2325
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2326
- var getPrototypeOf = Object.getPrototypeOf;
2327
- var objectPrototype = Object.prototype;
2328
-
2329
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
2330
- if (typeof sourceComponent !== 'string') {
2331
- // don't hoist over string (html) components
2332
-
2333
- if (objectPrototype) {
2334
- var inheritedComponent = getPrototypeOf(sourceComponent);
2335
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
2336
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
2337
- }
2338
- }
2339
-
2340
- var keys = getOwnPropertyNames(sourceComponent);
2341
-
2342
- if (getOwnPropertySymbols) {
2343
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
2344
- }
2345
-
2346
- var targetStatics = getStatics(targetComponent);
2347
- var sourceStatics = getStatics(sourceComponent);
2348
-
2349
- for (var i = 0; i < keys.length; ++i) {
2350
- var key = keys[i];
2351
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
2352
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
2353
- try {
2354
- // Avoid failures from read-only properties
2355
- defineProperty(targetComponent, key, descriptor);
2356
- } catch (e) {}
2357
- }
2358
- }
2359
-
2360
- return targetComponent;
2361
- }
2362
-
2363
- return targetComponent;
2364
- }
2365
-
2366
- module.exports = hoistNonReactStatics;
2367
-
2368
-
2369
- /***/ }),
2370
-
2371
- /***/ "./node_modules/immutable/dist/immutable.js":
2372
- /*!**************************************************!*\
2373
- !*** ./node_modules/immutable/dist/immutable.js ***!
2374
- \**************************************************/
2375
- /*! no static exports found */
2376
- /***/ (function(module, exports, __webpack_require__) {
2377
-
2378
- /**
2379
- * Copyright (c) 2014-present, Facebook, Inc.
2380
- *
2381
- * This source code is licensed under the MIT license found in the
2382
- * LICENSE file in the root directory of this source tree.
2383
- */
2384
-
2385
- (function (global, factory) {
2386
- true ? module.exports = factory() :
2387
- undefined;
2388
- }(this, function () { 'use strict';var SLICE$0 = Array.prototype.slice;
2389
-
2390
- function createClass(ctor, superClass) {
2391
- if (superClass) {
2392
- ctor.prototype = Object.create(superClass.prototype);
2393
- }
2394
- ctor.prototype.constructor = ctor;
2395
- }
2396
-
2397
- function Iterable(value) {
2398
- return isIterable(value) ? value : Seq(value);
2399
- }
2400
-
2401
-
2402
- createClass(KeyedIterable, Iterable);
2403
- function KeyedIterable(value) {
2404
- return isKeyed(value) ? value : KeyedSeq(value);
2405
- }
2406
-
2407
-
2408
- createClass(IndexedIterable, Iterable);
2409
- function IndexedIterable(value) {
2410
- return isIndexed(value) ? value : IndexedSeq(value);
2411
- }
2412
-
2413
-
2414
- createClass(SetIterable, Iterable);
2415
- function SetIterable(value) {
2416
- return isIterable(value) && !isAssociative(value) ? value : SetSeq(value);
2417
- }
2418
-
2419
-
2420
-
2421
- function isIterable(maybeIterable) {
2422
- return !!(maybeIterable && maybeIterable[IS_ITERABLE_SENTINEL]);
2423
- }
2424
-
2425
- function isKeyed(maybeKeyed) {
2426
- return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL]);
2427
- }
2428
-
2429
- function isIndexed(maybeIndexed) {
2430
- return !!(maybeIndexed && maybeIndexed[IS_INDEXED_SENTINEL]);
2431
- }
2432
-
2433
- function isAssociative(maybeAssociative) {
2434
- return isKeyed(maybeAssociative) || isIndexed(maybeAssociative);
2435
- }
2436
-
2437
- function isOrdered(maybeOrdered) {
2438
- return !!(maybeOrdered && maybeOrdered[IS_ORDERED_SENTINEL]);
2439
- }
2440
-
2441
- Iterable.isIterable = isIterable;
2442
- Iterable.isKeyed = isKeyed;
2443
- Iterable.isIndexed = isIndexed;
2444
- Iterable.isAssociative = isAssociative;
2445
- Iterable.isOrdered = isOrdered;
2446
-
2447
- Iterable.Keyed = KeyedIterable;
2448
- Iterable.Indexed = IndexedIterable;
2449
- Iterable.Set = SetIterable;
2450
-
2451
-
2452
- var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
2453
- var IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
2454
- var IS_INDEXED_SENTINEL = '@@__IMMUTABLE_INDEXED__@@';
2455
- var IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';
2456
-
2457
- // Used for setting prototype methods that IE8 chokes on.
2458
- var DELETE = 'delete';
2459
-
2460
- // Constants describing the size of trie nodes.
2461
- var SHIFT = 5; // Resulted in best performance after ______?
2462
- var SIZE = 1 << SHIFT;
2463
- var MASK = SIZE - 1;
2464
-
2465
- // A consistent shared value representing "not set" which equals nothing other
2466
- // than itself, and nothing that could be provided externally.
2467
- var NOT_SET = {};
2468
-
2469
- // Boolean references, Rough equivalent of `bool &`.
2470
- var CHANGE_LENGTH = { value: false };
2471
- var DID_ALTER = { value: false };
2472
-
2473
- function MakeRef(ref) {
2474
- ref.value = false;
2475
- return ref;
2476
- }
2477
-
2478
- function SetRef(ref) {
2479
- ref && (ref.value = true);
2480
- }
2481
-
2482
- // A function which returns a value representing an "owner" for transient writes
2483
- // to tries. The return value will only ever equal itself, and will not equal
2484
- // the return of any subsequent call of this function.
2485
- function OwnerID() {}
2486
-
2487
- // http://jsperf.com/copy-array-inline
2488
- function arrCopy(arr, offset) {
2489
- offset = offset || 0;
2490
- var len = Math.max(0, arr.length - offset);
2491
- var newArr = new Array(len);
2492
- for (var ii = 0; ii < len; ii++) {
2493
- newArr[ii] = arr[ii + offset];
2494
- }
2495
- return newArr;
2496
- }
2497
-
2498
- function ensureSize(iter) {
2499
- if (iter.size === undefined) {
2500
- iter.size = iter.__iterate(returnTrue);
2501
- }
2502
- return iter.size;
2503
- }
2504
-
2505
- function wrapIndex(iter, index) {
2506
- // This implements "is array index" which the ECMAString spec defines as:
2507
- //
2508
- // A String property name P is an array index if and only if
2509
- // ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal
2510
- // to 2^32−1.
2511
- //
2512
- // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects
2513
- if (typeof index !== 'number') {
2514
- var uint32Index = index >>> 0; // N >>> 0 is shorthand for ToUint32
2515
- if ('' + uint32Index !== index || uint32Index === 4294967295) {
2516
- return NaN;
2517
- }
2518
- index = uint32Index;
2519
- }
2520
- return index < 0 ? ensureSize(iter) + index : index;
2521
- }
2522
-
2523
- function returnTrue() {
2524
- return true;
2525
- }
2526
-
2527
- function wholeSlice(begin, end, size) {
2528
- return (begin === 0 || (size !== undefined && begin <= -size)) &&
2529
- (end === undefined || (size !== undefined && end >= size));
2530
- }
2531
-
2532
- function resolveBegin(begin, size) {
2533
- return resolveIndex(begin, size, 0);
2534
- }
2535
-
2536
- function resolveEnd(end, size) {
2537
- return resolveIndex(end, size, size);
2538
- }
2539
-
2540
- function resolveIndex(index, size, defaultIndex) {
2541
- return index === undefined ?
2542
- defaultIndex :
2543
- index < 0 ?
2544
- Math.max(0, size + index) :
2545
- size === undefined ?
2546
- index :
2547
- Math.min(size, index);
2548
- }
2549
-
2550
- /* global Symbol */
2551
-
2552
- var ITERATE_KEYS = 0;
2553
- var ITERATE_VALUES = 1;
2554
- var ITERATE_ENTRIES = 2;
2555
-
2556
- var REAL_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
2557
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
2558
-
2559
- var ITERATOR_SYMBOL = REAL_ITERATOR_SYMBOL || FAUX_ITERATOR_SYMBOL;
2560
-
2561
-
2562
- function Iterator(next) {
2563
- this.next = next;
2564
- }
2565
-
2566
- Iterator.prototype.toString = function() {
2567
- return '[Iterator]';
2568
- };
2569
-
2570
-
2571
- Iterator.KEYS = ITERATE_KEYS;
2572
- Iterator.VALUES = ITERATE_VALUES;
2573
- Iterator.ENTRIES = ITERATE_ENTRIES;
2574
-
2575
- Iterator.prototype.inspect =
2576
- Iterator.prototype.toSource = function () { return this.toString(); }
2577
- Iterator.prototype[ITERATOR_SYMBOL] = function () {
2578
- return this;
2579
- };
2580
-
2581
-
2582
- function iteratorValue(type, k, v, iteratorResult) {
2583
- var value = type === 0 ? k : type === 1 ? v : [k, v];
2584
- iteratorResult ? (iteratorResult.value = value) : (iteratorResult = {
2585
- value: value, done: false
2586
- });
2587
- return iteratorResult;
2588
- }
2589
-
2590
- function iteratorDone() {
2591
- return { value: undefined, done: true };
2592
- }
2593
-
2594
- function hasIterator(maybeIterable) {
2595
- return !!getIteratorFn(maybeIterable);
2596
- }
2597
-
2598
- function isIterator(maybeIterator) {
2599
- return maybeIterator && typeof maybeIterator.next === 'function';
2600
- }
2601
-
2602
- function getIterator(iterable) {
2603
- var iteratorFn = getIteratorFn(iterable);
2604
- return iteratorFn && iteratorFn.call(iterable);
2605
- }
2606
-
2607
- function getIteratorFn(iterable) {
2608
- var iteratorFn = iterable && (
2609
- (REAL_ITERATOR_SYMBOL && iterable[REAL_ITERATOR_SYMBOL]) ||
2610
- iterable[FAUX_ITERATOR_SYMBOL]
2611
- );
2612
- if (typeof iteratorFn === 'function') {
2613
- return iteratorFn;
2614
- }
2615
- }
2616
-
2617
- function isArrayLike(value) {
2618
- return value && typeof value.length === 'number';
2619
- }
2620
-
2621
- createClass(Seq, Iterable);
2622
- function Seq(value) {
2623
- return value === null || value === undefined ? emptySequence() :
2624
- isIterable(value) ? value.toSeq() : seqFromValue(value);
2625
- }
2626
-
2627
- Seq.of = function(/*...values*/) {
2628
- return Seq(arguments);
2629
- };
2630
-
2631
- Seq.prototype.toSeq = function() {
2632
- return this;
2633
- };
2634
-
2635
- Seq.prototype.toString = function() {
2636
- return this.__toString('Seq {', '}');
2637
- };
2638
-
2639
- Seq.prototype.cacheResult = function() {
2640
- if (!this._cache && this.__iterateUncached) {
2641
- this._cache = this.entrySeq().toArray();
2642
- this.size = this._cache.length;
2643
- }
2644
- return this;
2645
- };
2646
-
2647
- // abstract __iterateUncached(fn, reverse)
2648
-
2649
- Seq.prototype.__iterate = function(fn, reverse) {
2650
- return seqIterate(this, fn, reverse, true);
2651
- };
2652
-
2653
- // abstract __iteratorUncached(type, reverse)
2654
-
2655
- Seq.prototype.__iterator = function(type, reverse) {
2656
- return seqIterator(this, type, reverse, true);
2657
- };
2658
-
2659
-
2660
-
2661
- createClass(KeyedSeq, Seq);
2662
- function KeyedSeq(value) {
2663
- return value === null || value === undefined ?
2664
- emptySequence().toKeyedSeq() :
2665
- isIterable(value) ?
2666
- (isKeyed(value) ? value.toSeq() : value.fromEntrySeq()) :
2667
- keyedSeqFromValue(value);
2668
- }
2669
-
2670
- KeyedSeq.prototype.toKeyedSeq = function() {
2671
- return this;
2672
- };
2673
-
2674
-
2675
-
2676
- createClass(IndexedSeq, Seq);
2677
- function IndexedSeq(value) {
2678
- return value === null || value === undefined ? emptySequence() :
2679
- !isIterable(value) ? indexedSeqFromValue(value) :
2680
- isKeyed(value) ? value.entrySeq() : value.toIndexedSeq();
2681
- }
2682
-
2683
- IndexedSeq.of = function(/*...values*/) {
2684
- return IndexedSeq(arguments);
2685
- };
2686
-
2687
- IndexedSeq.prototype.toIndexedSeq = function() {
2688
- return this;
2689
- };
2690
-
2691
- IndexedSeq.prototype.toString = function() {
2692
- return this.__toString('Seq [', ']');
2693
- };
2694
-
2695
- IndexedSeq.prototype.__iterate = function(fn, reverse) {
2696
- return seqIterate(this, fn, reverse, false);
2697
- };
2698
-
2699
- IndexedSeq.prototype.__iterator = function(type, reverse) {
2700
- return seqIterator(this, type, reverse, false);
2701
- };
2702
-
2703
-
2704
-
2705
- createClass(SetSeq, Seq);
2706
- function SetSeq(value) {
2707
- return (
2708
- value === null || value === undefined ? emptySequence() :
2709
- !isIterable(value) ? indexedSeqFromValue(value) :
2710
- isKeyed(value) ? value.entrySeq() : value
2711
- ).toSetSeq();
2712
- }
2713
-
2714
- SetSeq.of = function(/*...values*/) {
2715
- return SetSeq(arguments);
2716
- };
2717
-
2718
- SetSeq.prototype.toSetSeq = function() {
2719
- return this;
2720
- };
2721
-
2722
-
2723
-
2724
- Seq.isSeq = isSeq;
2725
- Seq.Keyed = KeyedSeq;
2726
- Seq.Set = SetSeq;
2727
- Seq.Indexed = IndexedSeq;
2728
-
2729
- var IS_SEQ_SENTINEL = '@@__IMMUTABLE_SEQ__@@';
2730
-
2731
- Seq.prototype[IS_SEQ_SENTINEL] = true;
2732
-
2733
-
2734
-
2735
- createClass(ArraySeq, IndexedSeq);
2736
- function ArraySeq(array) {
2737
- this._array = array;
2738
- this.size = array.length;
2739
- }
2740
-
2741
- ArraySeq.prototype.get = function(index, notSetValue) {
2742
- return this.has(index) ? this._array[wrapIndex(this, index)] : notSetValue;
2743
- };
2744
-
2745
- ArraySeq.prototype.__iterate = function(fn, reverse) {
2746
- var array = this._array;
2747
- var maxIndex = array.length - 1;
2748
- for (var ii = 0; ii <= maxIndex; ii++) {
2749
- if (fn(array[reverse ? maxIndex - ii : ii], ii, this) === false) {
2750
- return ii + 1;
2751
- }
2752
- }
2753
- return ii;
2754
- };
2755
-
2756
- ArraySeq.prototype.__iterator = function(type, reverse) {
2757
- var array = this._array;
2758
- var maxIndex = array.length - 1;
2759
- var ii = 0;
2760
- return new Iterator(function()
2761
- {return ii > maxIndex ?
2762
- iteratorDone() :
2763
- iteratorValue(type, ii, array[reverse ? maxIndex - ii++ : ii++])}
2764
- );
2765
- };
2766
-
2767
-
2768
-
2769
- createClass(ObjectSeq, KeyedSeq);
2770
- function ObjectSeq(object) {
2771
- var keys = Object.keys(object);
2772
- this._object = object;
2773
- this._keys = keys;
2774
- this.size = keys.length;
2775
- }
2776
-
2777
- ObjectSeq.prototype.get = function(key, notSetValue) {
2778
- if (notSetValue !== undefined && !this.has(key)) {
2779
- return notSetValue;
2780
- }
2781
- return this._object[key];
2782
- };
2783
-
2784
- ObjectSeq.prototype.has = function(key) {
2785
- return this._object.hasOwnProperty(key);
2786
- };
2787
-
2788
- ObjectSeq.prototype.__iterate = function(fn, reverse) {
2789
- var object = this._object;
2790
- var keys = this._keys;
2791
- var maxIndex = keys.length - 1;
2792
- for (var ii = 0; ii <= maxIndex; ii++) {
2793
- var key = keys[reverse ? maxIndex - ii : ii];
2794
- if (fn(object[key], key, this) === false) {
2795
- return ii + 1;
2796
- }
2797
- }
2798
- return ii;
2799
- };
2800
-
2801
- ObjectSeq.prototype.__iterator = function(type, reverse) {
2802
- var object = this._object;
2803
- var keys = this._keys;
2804
- var maxIndex = keys.length - 1;
2805
- var ii = 0;
2806
- return new Iterator(function() {
2807
- var key = keys[reverse ? maxIndex - ii : ii];
2808
- return ii++ > maxIndex ?
2809
- iteratorDone() :
2810
- iteratorValue(type, key, object[key]);
2811
- });
2812
- };
2813
-
2814
- ObjectSeq.prototype[IS_ORDERED_SENTINEL] = true;
2815
-
2816
-
2817
- createClass(IterableSeq, IndexedSeq);
2818
- function IterableSeq(iterable) {
2819
- this._iterable = iterable;
2820
- this.size = iterable.length || iterable.size;
2821
- }
2822
-
2823
- IterableSeq.prototype.__iterateUncached = function(fn, reverse) {
2824
- if (reverse) {
2825
- return this.cacheResult().__iterate(fn, reverse);
2826
- }
2827
- var iterable = this._iterable;
2828
- var iterator = getIterator(iterable);
2829
- var iterations = 0;
2830
- if (isIterator(iterator)) {
2831
- var step;
2832
- while (!(step = iterator.next()).done) {
2833
- if (fn(step.value, iterations++, this) === false) {
2834
- break;
2835
- }
2836
- }
2837
- }
2838
- return iterations;
2839
- };
2840
-
2841
- IterableSeq.prototype.__iteratorUncached = function(type, reverse) {
2842
- if (reverse) {
2843
- return this.cacheResult().__iterator(type, reverse);
2844
- }
2845
- var iterable = this._iterable;
2846
- var iterator = getIterator(iterable);
2847
- if (!isIterator(iterator)) {
2848
- return new Iterator(iteratorDone);
2849
- }
2850
- var iterations = 0;
2851
- return new Iterator(function() {
2852
- var step = iterator.next();
2853
- return step.done ? step : iteratorValue(type, iterations++, step.value);
2854
- });
2855
- };
2856
-
2857
-
2858
-
2859
- createClass(IteratorSeq, IndexedSeq);
2860
- function IteratorSeq(iterator) {
2861
- this._iterator = iterator;
2862
- this._iteratorCache = [];
2863
- }
2864
-
2865
- IteratorSeq.prototype.__iterateUncached = function(fn, reverse) {
2866
- if (reverse) {
2867
- return this.cacheResult().__iterate(fn, reverse);
2868
- }
2869
- var iterator = this._iterator;
2870
- var cache = this._iteratorCache;
2871
- var iterations = 0;
2872
- while (iterations < cache.length) {
2873
- if (fn(cache[iterations], iterations++, this) === false) {
2874
- return iterations;
2875
- }
2876
- }
2877
- var step;
2878
- while (!(step = iterator.next()).done) {
2879
- var val = step.value;
2880
- cache[iterations] = val;
2881
- if (fn(val, iterations++, this) === false) {
2882
- break;
2883
- }
2884
- }
2885
- return iterations;
2886
- };
2887
-
2888
- IteratorSeq.prototype.__iteratorUncached = function(type, reverse) {
2889
- if (reverse) {
2890
- return this.cacheResult().__iterator(type, reverse);
2891
- }
2892
- var iterator = this._iterator;
2893
- var cache = this._iteratorCache;
2894
- var iterations = 0;
2895
- return new Iterator(function() {
2896
- if (iterations >= cache.length) {
2897
- var step = iterator.next();
2898
- if (step.done) {
2899
- return step;
2900
- }
2901
- cache[iterations] = step.value;
2902
- }
2903
- return iteratorValue(type, iterations, cache[iterations++]);
2904
- });
2905
- };
2906
-
2907
-
2908
-
2909
-
2910
- // # pragma Helper functions
2911
-
2912
- function isSeq(maybeSeq) {
2913
- return !!(maybeSeq && maybeSeq[IS_SEQ_SENTINEL]);
2914
- }
2915
-
2916
- var EMPTY_SEQ;
2917
-
2918
- function emptySequence() {
2919
- return EMPTY_SEQ || (EMPTY_SEQ = new ArraySeq([]));
2920
- }
2921
-
2922
- function keyedSeqFromValue(value) {
2923
- var seq =
2924
- Array.isArray(value) ? new ArraySeq(value).fromEntrySeq() :
2925
- isIterator(value) ? new IteratorSeq(value).fromEntrySeq() :
2926
- hasIterator(value) ? new IterableSeq(value).fromEntrySeq() :
2927
- typeof value === 'object' ? new ObjectSeq(value) :
2928
- undefined;
2929
- if (!seq) {
2930
- throw new TypeError(
2931
- 'Expected Array or iterable object of [k, v] entries, '+
2932
- 'or keyed object: ' + value
2933
- );
2934
- }
2935
- return seq;
2936
- }
2937
-
2938
- function indexedSeqFromValue(value) {
2939
- var seq = maybeIndexedSeqFromValue(value);
2940
- if (!seq) {
2941
- throw new TypeError(
2942
- 'Expected Array or iterable object of values: ' + value
2943
- );
2944
- }
2945
- return seq;
2946
- }
2947
-
2948
- function seqFromValue(value) {
2949
- var seq = maybeIndexedSeqFromValue(value) ||
2950
- (typeof value === 'object' && new ObjectSeq(value));
2951
- if (!seq) {
2952
- throw new TypeError(
2953
- 'Expected Array or iterable object of values, or keyed object: ' + value
2954
- );
2955
- }
2956
- return seq;
2957
- }
2958
-
2959
- function maybeIndexedSeqFromValue(value) {
2960
- return (
2961
- isArrayLike(value) ? new ArraySeq(value) :
2962
- isIterator(value) ? new IteratorSeq(value) :
2963
- hasIterator(value) ? new IterableSeq(value) :
2964
- undefined
2965
- );
2966
- }
2967
-
2968
- function seqIterate(seq, fn, reverse, useKeys) {
2969
- var cache = seq._cache;
2970
- if (cache) {
2971
- var maxIndex = cache.length - 1;
2972
- for (var ii = 0; ii <= maxIndex; ii++) {
2973
- var entry = cache[reverse ? maxIndex - ii : ii];
2974
- if (fn(entry[1], useKeys ? entry[0] : ii, seq) === false) {
2975
- return ii + 1;
2976
- }
2977
- }
2978
- return ii;
2979
- }
2980
- return seq.__iterateUncached(fn, reverse);
2981
- }
2982
-
2983
- function seqIterator(seq, type, reverse, useKeys) {
2984
- var cache = seq._cache;
2985
- if (cache) {
2986
- var maxIndex = cache.length - 1;
2987
- var ii = 0;
2988
- return new Iterator(function() {
2989
- var entry = cache[reverse ? maxIndex - ii : ii];
2990
- return ii++ > maxIndex ?
2991
- iteratorDone() :
2992
- iteratorValue(type, useKeys ? entry[0] : ii - 1, entry[1]);
2993
- });
2994
- }
2995
- return seq.__iteratorUncached(type, reverse);
2996
- }
2997
-
2998
- function fromJS(json, converter) {
2999
- return converter ?
3000
- fromJSWith(converter, json, '', {'': json}) :
3001
- fromJSDefault(json);
3002
- }
3003
-
3004
- function fromJSWith(converter, json, key, parentJSON) {
3005
- if (Array.isArray(json)) {
3006
- return converter.call(parentJSON, key, IndexedSeq(json).map(function(v, k) {return fromJSWith(converter, v, k, json)}));
3007
- }
3008
- if (isPlainObj(json)) {
3009
- return converter.call(parentJSON, key, KeyedSeq(json).map(function(v, k) {return fromJSWith(converter, v, k, json)}));
3010
- }
3011
- return json;
3012
- }
3013
-
3014
- function fromJSDefault(json) {
3015
- if (Array.isArray(json)) {
3016
- return IndexedSeq(json).map(fromJSDefault).toList();
3017
- }
3018
- if (isPlainObj(json)) {
3019
- return KeyedSeq(json).map(fromJSDefault).toMap();
3020
- }
3021
- return json;
3022
- }
3023
-
3024
- function isPlainObj(value) {
3025
- return value && (value.constructor === Object || value.constructor === undefined);
3026
- }
3027
-
3028
- /**
3029
- * An extension of the "same-value" algorithm as [described for use by ES6 Map
3030
- * and Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Key_equality)
3031
- *
3032
- * NaN is considered the same as NaN, however -0 and 0 are considered the same
3033
- * value, which is different from the algorithm described by
3034
- * [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
3035
- *
3036
- * This is extended further to allow Objects to describe the values they
3037
- * represent, by way of `valueOf` or `equals` (and `hashCode`).
3038
- *
3039
- * Note: because of this extension, the key equality of Immutable.Map and the
3040
- * value equality of Immutable.Set will differ from ES6 Map and Set.
3041
- *
3042
- * ### Defining custom values
3043
- *
3044
- * The easiest way to describe the value an object represents is by implementing
3045
- * `valueOf`. For example, `Date` represents a value by returning a unix
3046
- * timestamp for `valueOf`:
3047
- *
3048
- * var date1 = new Date(1234567890000); // Fri Feb 13 2009 ...
3049
- * var date2 = new Date(1234567890000);
3050
- * date1.valueOf(); // 1234567890000
3051
- * assert( date1 !== date2 );
3052
- * assert( Immutable.is( date1, date2 ) );
3053
- *
3054
- * Note: overriding `valueOf` may have other implications if you use this object
3055
- * where JavaScript expects a primitive, such as implicit string coercion.
3056
- *
3057
- * For more complex types, especially collections, implementing `valueOf` may
3058
- * not be performant. An alternative is to implement `equals` and `hashCode`.
3059
- *
3060
- * `equals` takes another object, presumably of similar type, and returns true
3061
- * if the it is equal. Equality is symmetrical, so the same result should be
3062
- * returned if this and the argument are flipped.
3063
- *
3064
- * assert( a.equals(b) === b.equals(a) );
3065
- *
3066
- * `hashCode` returns a 32bit integer number representing the object which will
3067
- * be used to determine how to store the value object in a Map or Set. You must
3068
- * provide both or neither methods, one must not exist without the other.
3069
- *
3070
- * Also, an important relationship between these methods must be upheld: if two
3071
- * values are equal, they *must* return the same hashCode. If the values are not
3072
- * equal, they might have the same hashCode; this is called a hash collision,
3073
- * and while undesirable for performance reasons, it is acceptable.
3074
- *
3075
- * if (a.equals(b)) {
3076
- * assert( a.hashCode() === b.hashCode() );
3077
- * }
3078
- *
3079
- * All Immutable collections implement `equals` and `hashCode`.
3080
- *
3081
- */
3082
- function is(valueA, valueB) {
3083
- if (valueA === valueB || (valueA !== valueA && valueB !== valueB)) {
3084
- return true;
3085
- }
3086
- if (!valueA || !valueB) {
3087
- return false;
3088
- }
3089
- if (typeof valueA.valueOf === 'function' &&
3090
- typeof valueB.valueOf === 'function') {
3091
- valueA = valueA.valueOf();
3092
- valueB = valueB.valueOf();
3093
- if (valueA === valueB || (valueA !== valueA && valueB !== valueB)) {
3094
- return true;
3095
- }
3096
- if (!valueA || !valueB) {
3097
- return false;
3098
- }
3099
- }
3100
- if (typeof valueA.equals === 'function' &&
3101
- typeof valueB.equals === 'function' &&
3102
- valueA.equals(valueB)) {
3103
- return true;
3104
- }
3105
- return false;
3106
- }
3107
-
3108
- function deepEqual(a, b) {
3109
- if (a === b) {
3110
- return true;
3111
- }
3112
-
3113
- if (
3114
- !isIterable(b) ||
3115
- a.size !== undefined && b.size !== undefined && a.size !== b.size ||
3116
- a.__hash !== undefined && b.__hash !== undefined && a.__hash !== b.__hash ||
3117
- isKeyed(a) !== isKeyed(b) ||
3118
- isIndexed(a) !== isIndexed(b) ||
3119
- isOrdered(a) !== isOrdered(b)
3120
- ) {
3121
- return false;
3122
- }
3123
-
3124
- if (a.size === 0 && b.size === 0) {
3125
- return true;
3126
- }
3127
-
3128
- var notAssociative = !isAssociative(a);
3129
-
3130
- if (isOrdered(a)) {
3131
- var entries = a.entries();
3132
- return b.every(function(v, k) {
3133
- var entry = entries.next().value;
3134
- return entry && is(entry[1], v) && (notAssociative || is(entry[0], k));
3135
- }) && entries.next().done;
3136
- }
3137
-
3138
- var flipped = false;
3139
-
3140
- if (a.size === undefined) {
3141
- if (b.size === undefined) {
3142
- if (typeof a.cacheResult === 'function') {
3143
- a.cacheResult();
3144
- }
3145
- } else {
3146
- flipped = true;
3147
- var _ = a;
3148
- a = b;
3149
- b = _;
3150
- }
3151
- }
3152
-
3153
- var allEqual = true;
3154
- var bSize = b.__iterate(function(v, k) {
3155
- if (notAssociative ? !a.has(v) :
3156
- flipped ? !is(v, a.get(k, NOT_SET)) : !is(a.get(k, NOT_SET), v)) {
3157
- allEqual = false;
3158
- return false;
3159
- }
3160
- });
3161
-
3162
- return allEqual && a.size === bSize;
3163
- }
3164
-
3165
- createClass(Repeat, IndexedSeq);
3166
-
3167
- function Repeat(value, times) {
3168
- if (!(this instanceof Repeat)) {
3169
- return new Repeat(value, times);
3170
- }
3171
- this._value = value;
3172
- this.size = times === undefined ? Infinity : Math.max(0, times);
3173
- if (this.size === 0) {
3174
- if (EMPTY_REPEAT) {
3175
- return EMPTY_REPEAT;
3176
- }
3177
- EMPTY_REPEAT = this;
3178
- }
3179
- }
3180
-
3181
- Repeat.prototype.toString = function() {
3182
- if (this.size === 0) {
3183
- return 'Repeat []';
3184
- }
3185
- return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';
3186
- };
3187
-
3188
- Repeat.prototype.get = function(index, notSetValue) {
3189
- return this.has(index) ? this._value : notSetValue;
3190
- };
3191
-
3192
- Repeat.prototype.includes = function(searchValue) {
3193
- return is(this._value, searchValue);
3194
- };
3195
-
3196
- Repeat.prototype.slice = function(begin, end) {
3197
- var size = this.size;
3198
- return wholeSlice(begin, end, size) ? this :
3199
- new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size));
3200
- };
3201
-
3202
- Repeat.prototype.reverse = function() {
3203
- return this;
3204
- };
3205
-
3206
- Repeat.prototype.indexOf = function(searchValue) {
3207
- if (is(this._value, searchValue)) {
3208
- return 0;
3209
- }
3210
- return -1;
3211
- };
3212
-
3213
- Repeat.prototype.lastIndexOf = function(searchValue) {
3214
- if (is(this._value, searchValue)) {
3215
- return this.size;
3216
- }
3217
- return -1;
3218
- };
3219
-
3220
- Repeat.prototype.__iterate = function(fn, reverse) {
3221
- for (var ii = 0; ii < this.size; ii++) {
3222
- if (fn(this._value, ii, this) === false) {
3223
- return ii + 1;
3224
- }
3225
- }
3226
- return ii;
3227
- };
3228
-
3229
- Repeat.prototype.__iterator = function(type, reverse) {var this$0 = this;
3230
- var ii = 0;
3231
- return new Iterator(function()
3232
- {return ii < this$0.size ? iteratorValue(type, ii++, this$0._value) : iteratorDone()}
3233
- );
3234
- };
3235
-
3236
- Repeat.prototype.equals = function(other) {
3237
- return other instanceof Repeat ?
3238
- is(this._value, other._value) :
3239
- deepEqual(other);
3240
- };
3241
-
3242
-
3243
- var EMPTY_REPEAT;
3244
-
3245
- function invariant(condition, error) {
3246
- if (!condition) throw new Error(error);
3247
- }
3248
-
3249
- createClass(Range, IndexedSeq);
3250
-
3251
- function Range(start, end, step) {
3252
- if (!(this instanceof Range)) {
3253
- return new Range(start, end, step);
3254
- }
3255
- invariant(step !== 0, 'Cannot step a Range by 0');
3256
- start = start || 0;
3257
- if (end === undefined) {
3258
- end = Infinity;
3259
- }
3260
- step = step === undefined ? 1 : Math.abs(step);
3261
- if (end < start) {
3262
- step = -step;
3263
- }
3264
- this._start = start;
3265
- this._end = end;
3266
- this._step = step;
3267
- this.size = Math.max(0, Math.ceil((end - start) / step - 1) + 1);
3268
- if (this.size === 0) {
3269
- if (EMPTY_RANGE) {
3270
- return EMPTY_RANGE;
3271
- }
3272
- EMPTY_RANGE = this;
3273
- }
3274
- }
3275
-
3276
- Range.prototype.toString = function() {
3277
- if (this.size === 0) {
3278
- return 'Range []';
3279
- }
3280
- return 'Range [ ' +
3281
- this._start + '...' + this._end +
3282
- (this._step !== 1 ? ' by ' + this._step : '') +
3283
- ' ]';
3284
- };
3285
-
3286
- Range.prototype.get = function(index, notSetValue) {
3287
- return this.has(index) ?
3288
- this._start + wrapIndex(this, index) * this._step :
3289
- notSetValue;
3290
- };
3291
-
3292
- Range.prototype.includes = function(searchValue) {
3293
- var possibleIndex = (searchValue - this._start) / this._step;
3294
- return possibleIndex >= 0 &&
3295
- possibleIndex < this.size &&
3296
- possibleIndex === Math.floor(possibleIndex);
3297
- };
3298
-
3299
- Range.prototype.slice = function(begin, end) {
3300
- if (wholeSlice(begin, end, this.size)) {
3301
- return this;
3302
- }
3303
- begin = resolveBegin(begin, this.size);
3304
- end = resolveEnd(end, this.size);
3305
- if (end <= begin) {
3306
- return new Range(0, 0);
3307
- }
3308
- return new Range(this.get(begin, this._end), this.get(end, this._end), this._step);
3309
- };
3310
-
3311
- Range.prototype.indexOf = function(searchValue) {
3312
- var offsetValue = searchValue - this._start;
3313
- if (offsetValue % this._step === 0) {
3314
- var index = offsetValue / this._step;
3315
- if (index >= 0 && index < this.size) {
3316
- return index
3317
- }
3318
- }
3319
- return -1;
3320
- };
3321
-
3322
- Range.prototype.lastIndexOf = function(searchValue) {
3323
- return this.indexOf(searchValue);
3324
- };
3325
-
3326
- Range.prototype.__iterate = function(fn, reverse) {
3327
- var maxIndex = this.size - 1;
3328
- var step = this._step;
3329
- var value = reverse ? this._start + maxIndex * step : this._start;
3330
- for (var ii = 0; ii <= maxIndex; ii++) {
3331
- if (fn(value, ii, this) === false) {
3332
- return ii + 1;
3333
- }
3334
- value += reverse ? -step : step;
3335
- }
3336
- return ii;
3337
- };
3338
-
3339
- Range.prototype.__iterator = function(type, reverse) {
3340
- var maxIndex = this.size - 1;
3341
- var step = this._step;
3342
- var value = reverse ? this._start + maxIndex * step : this._start;
3343
- var ii = 0;
3344
- return new Iterator(function() {
3345
- var v = value;
3346
- value += reverse ? -step : step;
3347
- return ii > maxIndex ? iteratorDone() : iteratorValue(type, ii++, v);
3348
- });
3349
- };
3350
-
3351
- Range.prototype.equals = function(other) {
3352
- return other instanceof Range ?
3353
- this._start === other._start &&
3354
- this._end === other._end &&
3355
- this._step === other._step :
3356
- deepEqual(this, other);
3357
- };
3358
-
3359
-
3360
- var EMPTY_RANGE;
3361
-
3362
- createClass(Collection, Iterable);
3363
- function Collection() {
3364
- throw TypeError('Abstract');
3365
- }
3366
-
3367
-
3368
- createClass(KeyedCollection, Collection);function KeyedCollection() {}
3369
-
3370
- createClass(IndexedCollection, Collection);function IndexedCollection() {}
3371
-
3372
- createClass(SetCollection, Collection);function SetCollection() {}
3373
-
3374
-
3375
- Collection.Keyed = KeyedCollection;
3376
- Collection.Indexed = IndexedCollection;
3377
- Collection.Set = SetCollection;
3378
-
3379
- var imul =
3380
- typeof Math.imul === 'function' && Math.imul(0xffffffff, 2) === -2 ?
3381
- Math.imul :
3382
- function imul(a, b) {
3383
- a = a | 0; // int
3384
- b = b | 0; // int
3385
- var c = a & 0xffff;
3386
- var d = b & 0xffff;
3387
- // Shift by 0 fixes the sign on the high part.
3388
- return (c * d) + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0) | 0; // int
3389
- };
3390
-
3391
- // v8 has an optimization for storing 31-bit signed numbers.
3392
- // Values which have either 00 or 11 as the high order bits qualify.
3393
- // This function drops the highest order bit in a signed number, maintaining
3394
- // the sign bit.
3395
- function smi(i32) {
3396
- return ((i32 >>> 1) & 0x40000000) | (i32 & 0xBFFFFFFF);
3397
- }
3398
-
3399
- function hash(o) {
3400
- if (o === false || o === null || o === undefined) {
3401
- return 0;
3402
- }
3403
- if (typeof o.valueOf === 'function') {
3404
- o = o.valueOf();
3405
- if (o === false || o === null || o === undefined) {
3406
- return 0;
3407
- }
3408
- }
3409
- if (o === true) {
3410
- return 1;
3411
- }
3412
- var type = typeof o;
3413
- if (type === 'number') {
3414
- if (o !== o || o === Infinity) {
3415
- return 0;
3416
- }
3417
- var h = o | 0;
3418
- if (h !== o) {
3419
- h ^= o * 0xFFFFFFFF;
3420
- }
3421
- while (o > 0xFFFFFFFF) {
3422
- o /= 0xFFFFFFFF;
3423
- h ^= o;
3424
- }
3425
- return smi(h);
3426
- }
3427
- if (type === 'string') {
3428
- return o.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(o) : hashString(o);
3429
- }
3430
- if (typeof o.hashCode === 'function') {
3431
- return o.hashCode();
3432
- }
3433
- if (type === 'object') {
3434
- return hashJSObj(o);
3435
- }
3436
- if (typeof o.toString === 'function') {
3437
- return hashString(o.toString());
3438
- }
3439
- throw new Error('Value type ' + type + ' cannot be hashed.');
3440
- }
3441
-
3442
- function cachedHashString(string) {
3443
- var hash = stringHashCache[string];
3444
- if (hash === undefined) {
3445
- hash = hashString(string);
3446
- if (STRING_HASH_CACHE_SIZE === STRING_HASH_CACHE_MAX_SIZE) {
3447
- STRING_HASH_CACHE_SIZE = 0;
3448
- stringHashCache = {};
3449
- }
3450
- STRING_HASH_CACHE_SIZE++;
3451
- stringHashCache[string] = hash;
3452
- }
3453
- return hash;
3454
- }
3455
-
3456
- // http://jsperf.com/hashing-strings
3457
- function hashString(string) {
3458
- // This is the hash from JVM
3459
- // The hash code for a string is computed as
3460
- // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1],
3461
- // where s[i] is the ith character of the string and n is the length of
3462
- // the string. We "mod" the result to make it between 0 (inclusive) and 2^31
3463
- // (exclusive) by dropping high bits.
3464
- var hash = 0;
3465
- for (var ii = 0; ii < string.length; ii++) {
3466
- hash = 31 * hash + string.charCodeAt(ii) | 0;
3467
- }
3468
- return smi(hash);
3469
- }
3470
-
3471
- function hashJSObj(obj) {
3472
- var hash;
3473
- if (usingWeakMap) {
3474
- hash = weakMap.get(obj);
3475
- if (hash !== undefined) {
3476
- return hash;
3477
- }
3478
- }
3479
-
3480
- hash = obj[UID_HASH_KEY];
3481
- if (hash !== undefined) {
3482
- return hash;
3483
- }
3484
-
3485
- if (!canDefineProperty) {
3486
- hash = obj.propertyIsEnumerable && obj.propertyIsEnumerable[UID_HASH_KEY];
3487
- if (hash !== undefined) {
3488
- return hash;
3489
- }
3490
-
3491
- hash = getIENodeHash(obj);
3492
- if (hash !== undefined) {
3493
- return hash;
3494
- }
3495
- }
3496
-
3497
- hash = ++objHashUID;
3498
- if (objHashUID & 0x40000000) {
3499
- objHashUID = 0;
3500
- }
3501
-
3502
- if (usingWeakMap) {
3503
- weakMap.set(obj, hash);
3504
- } else if (isExtensible !== undefined && isExtensible(obj) === false) {
3505
- throw new Error('Non-extensible objects are not allowed as keys.');
3506
- } else if (canDefineProperty) {
3507
- Object.defineProperty(obj, UID_HASH_KEY, {
3508
- 'enumerable': false,
3509
- 'configurable': false,
3510
- 'writable': false,
3511
- 'value': hash
3512
- });
3513
- } else if (obj.propertyIsEnumerable !== undefined &&
3514
- obj.propertyIsEnumerable === obj.constructor.prototype.propertyIsEnumerable) {
3515
- // Since we can't define a non-enumerable property on the object
3516
- // we'll hijack one of the less-used non-enumerable properties to
3517
- // save our hash on it. Since this is a function it will not show up in
3518
- // `JSON.stringify` which is what we want.
3519
- obj.propertyIsEnumerable = function() {
3520
- return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);
3521
- };
3522
- obj.propertyIsEnumerable[UID_HASH_KEY] = hash;
3523
- } else if (obj.nodeType !== undefined) {
3524
- // At this point we couldn't get the IE `uniqueID` to use as a hash
3525
- // and we couldn't use a non-enumerable property to exploit the
3526
- // dontEnum bug so we simply add the `UID_HASH_KEY` on the node
3527
- // itself.
3528
- obj[UID_HASH_KEY] = hash;
3529
- } else {
3530
- throw new Error('Unable to set a non-enumerable property on object.');
3531
- }
3532
-
3533
- return hash;
3534
- }
3535
-
3536
- // Get references to ES5 object methods.
3537
- var isExtensible = Object.isExtensible;
3538
-
3539
- // True if Object.defineProperty works as expected. IE8 fails this test.
3540
- var canDefineProperty = (function() {
3541
- try {
3542
- Object.defineProperty({}, '@', {});
3543
- return true;
3544
- } catch (e) {
3545
- return false;
3546
- }
3547
- }());
3548
-
3549
- // IE has a `uniqueID` property on DOM nodes. We can construct the hash from it
3550
- // and avoid memory leaks from the IE cloneNode bug.
3551
- function getIENodeHash(node) {
3552
- if (node && node.nodeType > 0) {
3553
- switch (node.nodeType) {
3554
- case 1: // Element
3555
- return node.uniqueID;
3556
- case 9: // Document
3557
- return node.documentElement && node.documentElement.uniqueID;
3558
- }
3559
- }
3560
- }
3561
-
3562
- // If possible, use a WeakMap.
3563
- var usingWeakMap = typeof WeakMap === 'function';
3564
- var weakMap;
3565
- if (usingWeakMap) {
3566
- weakMap = new WeakMap();
3567
- }
3568
-
3569
- var objHashUID = 0;
3570
-
3571
- var UID_HASH_KEY = '__immutablehash__';
3572
- if (typeof Symbol === 'function') {
3573
- UID_HASH_KEY = Symbol(UID_HASH_KEY);
3574
- }
3575
-
3576
- var STRING_HASH_CACHE_MIN_STRLEN = 16;
3577
- var STRING_HASH_CACHE_MAX_SIZE = 255;
3578
- var STRING_HASH_CACHE_SIZE = 0;
3579
- var stringHashCache = {};
3580
-
3581
- function assertNotInfinite(size) {
3582
- invariant(
3583
- size !== Infinity,
3584
- 'Cannot perform this action with an infinite size.'
3585
- );
3586
- }
3587
-
3588
- createClass(Map, KeyedCollection);
3589
-
3590
- // @pragma Construction
3591
-
3592
- function Map(value) {
3593
- return value === null || value === undefined ? emptyMap() :
3594
- isMap(value) && !isOrdered(value) ? value :
3595
- emptyMap().withMutations(function(map ) {
3596
- var iter = KeyedIterable(value);
3597
- assertNotInfinite(iter.size);
3598
- iter.forEach(function(v, k) {return map.set(k, v)});
3599
- });
3600
- }
3601
-
3602
- Map.of = function() {var keyValues = SLICE$0.call(arguments, 0);
3603
- return emptyMap().withMutations(function(map ) {
3604
- for (var i = 0; i < keyValues.length; i += 2) {
3605
- if (i + 1 >= keyValues.length) {
3606
- throw new Error('Missing value for key: ' + keyValues[i]);
3607
- }
3608
- map.set(keyValues[i], keyValues[i + 1]);
3609
- }
3610
- });
3611
- };
3612
-
3613
- Map.prototype.toString = function() {
3614
- return this.__toString('Map {', '}');
3615
- };
3616
-
3617
- // @pragma Access
3618
-
3619
- Map.prototype.get = function(k, notSetValue) {
3620
- return this._root ?
3621
- this._root.get(0, undefined, k, notSetValue) :
3622
- notSetValue;
3623
- };
3624
-
3625
- // @pragma Modification
3626
-
3627
- Map.prototype.set = function(k, v) {
3628
- return updateMap(this, k, v);
3629
- };
3630
-
3631
- Map.prototype.setIn = function(keyPath, v) {
3632
- return this.updateIn(keyPath, NOT_SET, function() {return v});
3633
- };
3634
-
3635
- Map.prototype.remove = function(k) {
3636
- return updateMap(this, k, NOT_SET);
3637
- };
3638
-
3639
- Map.prototype.deleteIn = function(keyPath) {
3640
- return this.updateIn(keyPath, function() {return NOT_SET});
3641
- };
3642
-
3643
- Map.prototype.update = function(k, notSetValue, updater) {
3644
- return arguments.length === 1 ?
3645
- k(this) :
3646
- this.updateIn([k], notSetValue, updater);
3647
- };
3648
-
3649
- Map.prototype.updateIn = function(keyPath, notSetValue, updater) {
3650
- if (!updater) {
3651
- updater = notSetValue;
3652
- notSetValue = undefined;
3653
- }
3654
- var updatedValue = updateInDeepMap(
3655
- this,
3656
- forceIterator(keyPath),
3657
- notSetValue,
3658
- updater
3659
- );
3660
- return updatedValue === NOT_SET ? undefined : updatedValue;
3661
- };
3662
-
3663
- Map.prototype.clear = function() {
3664
- if (this.size === 0) {
3665
- return this;
3666
- }
3667
- if (this.__ownerID) {
3668
- this.size = 0;
3669
- this._root = null;
3670
- this.__hash = undefined;
3671
- this.__altered = true;
3672
- return this;
3673
- }
3674
- return emptyMap();
3675
- };
3676
-
3677
- // @pragma Composition
3678
-
3679
- Map.prototype.merge = function(/*...iters*/) {
3680
- return mergeIntoMapWith(this, undefined, arguments);
3681
- };
3682
-
3683
- Map.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
3684
- return mergeIntoMapWith(this, merger, iters);
3685
- };
3686
-
3687
- Map.prototype.mergeIn = function(keyPath) {var iters = SLICE$0.call(arguments, 1);
3688
- return this.updateIn(
3689
- keyPath,
3690
- emptyMap(),
3691
- function(m ) {return typeof m.merge === 'function' ?
3692
- m.merge.apply(m, iters) :
3693
- iters[iters.length - 1]}
3694
- );
3695
- };
3696
-
3697
- Map.prototype.mergeDeep = function(/*...iters*/) {
3698
- return mergeIntoMapWith(this, deepMerger, arguments);
3699
- };
3700
-
3701
- Map.prototype.mergeDeepWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
3702
- return mergeIntoMapWith(this, deepMergerWith(merger), iters);
3703
- };
3704
-
3705
- Map.prototype.mergeDeepIn = function(keyPath) {var iters = SLICE$0.call(arguments, 1);
3706
- return this.updateIn(
3707
- keyPath,
3708
- emptyMap(),
3709
- function(m ) {return typeof m.mergeDeep === 'function' ?
3710
- m.mergeDeep.apply(m, iters) :
3711
- iters[iters.length - 1]}
3712
- );
3713
- };
3714
-
3715
- Map.prototype.sort = function(comparator) {
3716
- // Late binding
3717
- return OrderedMap(sortFactory(this, comparator));
3718
- };
3719
-
3720
- Map.prototype.sortBy = function(mapper, comparator) {
3721
- // Late binding
3722
- return OrderedMap(sortFactory(this, comparator, mapper));
3723
- };
3724
-
3725
- // @pragma Mutability
3726
-
3727
- Map.prototype.withMutations = function(fn) {
3728
- var mutable = this.asMutable();
3729
- fn(mutable);
3730
- return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID) : this;
3731
- };
3732
-
3733
- Map.prototype.asMutable = function() {
3734
- return this.__ownerID ? this : this.__ensureOwner(new OwnerID());
3735
- };
3736
-
3737
- Map.prototype.asImmutable = function() {
3738
- return this.__ensureOwner();
3739
- };
3740
-
3741
- Map.prototype.wasAltered = function() {
3742
- return this.__altered;
3743
- };
3744
-
3745
- Map.prototype.__iterator = function(type, reverse) {
3746
- return new MapIterator(this, type, reverse);
3747
- };
3748
-
3749
- Map.prototype.__iterate = function(fn, reverse) {var this$0 = this;
3750
- var iterations = 0;
3751
- this._root && this._root.iterate(function(entry ) {
3752
- iterations++;
3753
- return fn(entry[1], entry[0], this$0);
3754
- }, reverse);
3755
- return iterations;
3756
- };
3757
-
3758
- Map.prototype.__ensureOwner = function(ownerID) {
3759
- if (ownerID === this.__ownerID) {
3760
- return this;
3761
- }
3762
- if (!ownerID) {
3763
- this.__ownerID = ownerID;
3764
- this.__altered = false;
3765
- return this;
3766
- }
3767
- return makeMap(this.size, this._root, ownerID, this.__hash);
3768
- };
3769
-
3770
-
3771
- function isMap(maybeMap) {
3772
- return !!(maybeMap && maybeMap[IS_MAP_SENTINEL]);
3773
- }
3774
-
3775
- Map.isMap = isMap;
3776
-
3777
- var IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@';
3778
-
3779
- var MapPrototype = Map.prototype;
3780
- MapPrototype[IS_MAP_SENTINEL] = true;
3781
- MapPrototype[DELETE] = MapPrototype.remove;
3782
- MapPrototype.removeIn = MapPrototype.deleteIn;
3783
-
3784
-
3785
- // #pragma Trie Nodes
3786
-
3787
-
3788
-
3789
- function ArrayMapNode(ownerID, entries) {
3790
- this.ownerID = ownerID;
3791
- this.entries = entries;
3792
- }
3793
-
3794
- ArrayMapNode.prototype.get = function(shift, keyHash, key, notSetValue) {
3795
- var entries = this.entries;
3796
- for (var ii = 0, len = entries.length; ii < len; ii++) {
3797
- if (is(key, entries[ii][0])) {
3798
- return entries[ii][1];
3799
- }
3800
- }
3801
- return notSetValue;
3802
- };
3803
-
3804
- ArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
3805
- var removed = value === NOT_SET;
3806
-
3807
- var entries = this.entries;
3808
- var idx = 0;
3809
- for (var len = entries.length; idx < len; idx++) {
3810
- if (is(key, entries[idx][0])) {
3811
- break;
3812
- }
3813
- }
3814
- var exists = idx < len;
3815
-
3816
- if (exists ? entries[idx][1] === value : removed) {
3817
- return this;
3818
- }
3819
-
3820
- SetRef(didAlter);
3821
- (removed || !exists) && SetRef(didChangeSize);
3822
-
3823
- if (removed && entries.length === 1) {
3824
- return; // undefined
3825
- }
3826
-
3827
- if (!exists && !removed && entries.length >= MAX_ARRAY_MAP_SIZE) {
3828
- return createNodes(ownerID, entries, key, value);
3829
- }
3830
-
3831
- var isEditable = ownerID && ownerID === this.ownerID;
3832
- var newEntries = isEditable ? entries : arrCopy(entries);
3833
-
3834
- if (exists) {
3835
- if (removed) {
3836
- idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop());
3837
- } else {
3838
- newEntries[idx] = [key, value];
3839
- }
3840
- } else {
3841
- newEntries.push([key, value]);
3842
- }
3843
-
3844
- if (isEditable) {
3845
- this.entries = newEntries;
3846
- return this;
3847
- }
3848
-
3849
- return new ArrayMapNode(ownerID, newEntries);
3850
- };
3851
-
3852
-
3853
-
3854
-
3855
- function BitmapIndexedNode(ownerID, bitmap, nodes) {
3856
- this.ownerID = ownerID;
3857
- this.bitmap = bitmap;
3858
- this.nodes = nodes;
3859
- }
3860
-
3861
- BitmapIndexedNode.prototype.get = function(shift, keyHash, key, notSetValue) {
3862
- if (keyHash === undefined) {
3863
- keyHash = hash(key);
3864
- }
3865
- var bit = (1 << ((shift === 0 ? keyHash : keyHash >>> shift) & MASK));
3866
- var bitmap = this.bitmap;
3867
- return (bitmap & bit) === 0 ? notSetValue :
3868
- this.nodes[popCount(bitmap & (bit - 1))].get(shift + SHIFT, keyHash, key, notSetValue);
3869
- };
3870
-
3871
- BitmapIndexedNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
3872
- if (keyHash === undefined) {
3873
- keyHash = hash(key);
3874
- }
3875
- var keyHashFrag = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
3876
- var bit = 1 << keyHashFrag;
3877
- var bitmap = this.bitmap;
3878
- var exists = (bitmap & bit) !== 0;
3879
-
3880
- if (!exists && value === NOT_SET) {
3881
- return this;
3882
- }
3883
-
3884
- var idx = popCount(bitmap & (bit - 1));
3885
- var nodes = this.nodes;
3886
- var node = exists ? nodes[idx] : undefined;
3887
- var newNode = updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);
3888
-
3889
- if (newNode === node) {
3890
- return this;
3891
- }
3892
-
3893
- if (!exists && newNode && nodes.length >= MAX_BITMAP_INDEXED_SIZE) {
3894
- return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode);
3895
- }
3896
-
3897
- if (exists && !newNode && nodes.length === 2 && isLeafNode(nodes[idx ^ 1])) {
3898
- return nodes[idx ^ 1];
3899
- }
3900
-
3901
- if (exists && newNode && nodes.length === 1 && isLeafNode(newNode)) {
3902
- return newNode;
3903
- }
3904
-
3905
- var isEditable = ownerID && ownerID === this.ownerID;
3906
- var newBitmap = exists ? newNode ? bitmap : bitmap ^ bit : bitmap | bit;
3907
- var newNodes = exists ? newNode ?
3908
- setIn(nodes, idx, newNode, isEditable) :
3909
- spliceOut(nodes, idx, isEditable) :
3910
- spliceIn(nodes, idx, newNode, isEditable);
3911
-
3912
- if (isEditable) {
3913
- this.bitmap = newBitmap;
3914
- this.nodes = newNodes;
3915
- return this;
3916
- }
3917
-
3918
- return new BitmapIndexedNode(ownerID, newBitmap, newNodes);
3919
- };
3920
-
3921
-
3922
-
3923
-
3924
- function HashArrayMapNode(ownerID, count, nodes) {
3925
- this.ownerID = ownerID;
3926
- this.count = count;
3927
- this.nodes = nodes;
3928
- }
3929
-
3930
- HashArrayMapNode.prototype.get = function(shift, keyHash, key, notSetValue) {
3931
- if (keyHash === undefined) {
3932
- keyHash = hash(key);
3933
- }
3934
- var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
3935
- var node = this.nodes[idx];
3936
- return node ? node.get(shift + SHIFT, keyHash, key, notSetValue) : notSetValue;
3937
- };
3938
-
3939
- HashArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
3940
- if (keyHash === undefined) {
3941
- keyHash = hash(key);
3942
- }
3943
- var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
3944
- var removed = value === NOT_SET;
3945
- var nodes = this.nodes;
3946
- var node = nodes[idx];
3947
-
3948
- if (removed && !node) {
3949
- return this;
3950
- }
3951
-
3952
- var newNode = updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);
3953
- if (newNode === node) {
3954
- return this;
3955
- }
3956
-
3957
- var newCount = this.count;
3958
- if (!node) {
3959
- newCount++;
3960
- } else if (!newNode) {
3961
- newCount--;
3962
- if (newCount < MIN_HASH_ARRAY_MAP_SIZE) {
3963
- return packNodes(ownerID, nodes, newCount, idx);
3964
- }
3965
- }
3966
-
3967
- var isEditable = ownerID && ownerID === this.ownerID;
3968
- var newNodes = setIn(nodes, idx, newNode, isEditable);
3969
-
3970
- if (isEditable) {
3971
- this.count = newCount;
3972
- this.nodes = newNodes;
3973
- return this;
3974
- }
3975
-
3976
- return new HashArrayMapNode(ownerID, newCount, newNodes);
3977
- };
3978
-
3979
-
3980
-
3981
-
3982
- function HashCollisionNode(ownerID, keyHash, entries) {
3983
- this.ownerID = ownerID;
3984
- this.keyHash = keyHash;
3985
- this.entries = entries;
3986
- }
3987
-
3988
- HashCollisionNode.prototype.get = function(shift, keyHash, key, notSetValue) {
3989
- var entries = this.entries;
3990
- for (var ii = 0, len = entries.length; ii < len; ii++) {
3991
- if (is(key, entries[ii][0])) {
3992
- return entries[ii][1];
3993
- }
3994
- }
3995
- return notSetValue;
3996
- };
3997
-
3998
- HashCollisionNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
3999
- if (keyHash === undefined) {
4000
- keyHash = hash(key);
4001
- }
4002
-
4003
- var removed = value === NOT_SET;
4004
-
4005
- if (keyHash !== this.keyHash) {
4006
- if (removed) {
4007
- return this;
4008
- }
4009
- SetRef(didAlter);
4010
- SetRef(didChangeSize);
4011
- return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]);
4012
- }
4013
-
4014
- var entries = this.entries;
4015
- var idx = 0;
4016
- for (var len = entries.length; idx < len; idx++) {
4017
- if (is(key, entries[idx][0])) {
4018
- break;
4019
- }
4020
- }
4021
- var exists = idx < len;
4022
-
4023
- if (exists ? entries[idx][1] === value : removed) {
4024
- return this;
4025
- }
4026
-
4027
- SetRef(didAlter);
4028
- (removed || !exists) && SetRef(didChangeSize);
4029
-
4030
- if (removed && len === 2) {
4031
- return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]);
4032
- }
4033
-
4034
- var isEditable = ownerID && ownerID === this.ownerID;
4035
- var newEntries = isEditable ? entries : arrCopy(entries);
4036
-
4037
- if (exists) {
4038
- if (removed) {
4039
- idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop());
4040
- } else {
4041
- newEntries[idx] = [key, value];
4042
- }
4043
- } else {
4044
- newEntries.push([key, value]);
4045
- }
4046
-
4047
- if (isEditable) {
4048
- this.entries = newEntries;
4049
- return this;
4050
- }
4051
-
4052
- return new HashCollisionNode(ownerID, this.keyHash, newEntries);
4053
- };
4054
-
4055
-
4056
-
4057
-
4058
- function ValueNode(ownerID, keyHash, entry) {
4059
- this.ownerID = ownerID;
4060
- this.keyHash = keyHash;
4061
- this.entry = entry;
4062
- }
4063
-
4064
- ValueNode.prototype.get = function(shift, keyHash, key, notSetValue) {
4065
- return is(key, this.entry[0]) ? this.entry[1] : notSetValue;
4066
- };
4067
-
4068
- ValueNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
4069
- var removed = value === NOT_SET;
4070
- var keyMatch = is(key, this.entry[0]);
4071
- if (keyMatch ? value === this.entry[1] : removed) {
4072
- return this;
4073
- }
4074
-
4075
- SetRef(didAlter);
4076
-
4077
- if (removed) {
4078
- SetRef(didChangeSize);
4079
- return; // undefined
4080
- }
4081
-
4082
- if (keyMatch) {
4083
- if (ownerID && ownerID === this.ownerID) {
4084
- this.entry[1] = value;
4085
- return this;
4086
- }
4087
- return new ValueNode(ownerID, this.keyHash, [key, value]);
4088
- }
4089
-
4090
- SetRef(didChangeSize);
4091
- return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]);
4092
- };
4093
-
4094
-
4095
-
4096
- // #pragma Iterators
4097
-
4098
- ArrayMapNode.prototype.iterate =
4099
- HashCollisionNode.prototype.iterate = function (fn, reverse) {
4100
- var entries = this.entries;
4101
- for (var ii = 0, maxIndex = entries.length - 1; ii <= maxIndex; ii++) {
4102
- if (fn(entries[reverse ? maxIndex - ii : ii]) === false) {
4103
- return false;
4104
- }
4105
- }
4106
- }
4107
-
4108
- BitmapIndexedNode.prototype.iterate =
4109
- HashArrayMapNode.prototype.iterate = function (fn, reverse) {
4110
- var nodes = this.nodes;
4111
- for (var ii = 0, maxIndex = nodes.length - 1; ii <= maxIndex; ii++) {
4112
- var node = nodes[reverse ? maxIndex - ii : ii];
4113
- if (node && node.iterate(fn, reverse) === false) {
4114
- return false;
4115
- }
4116
- }
4117
- }
4118
-
4119
- ValueNode.prototype.iterate = function (fn, reverse) {
4120
- return fn(this.entry);
4121
- }
4122
-
4123
- createClass(MapIterator, Iterator);
4124
-
4125
- function MapIterator(map, type, reverse) {
4126
- this._type = type;
4127
- this._reverse = reverse;
4128
- this._stack = map._root && mapIteratorFrame(map._root);
4129
- }
4130
-
4131
- MapIterator.prototype.next = function() {
4132
- var type = this._type;
4133
- var stack = this._stack;
4134
- while (stack) {
4135
- var node = stack.node;
4136
- var index = stack.index++;
4137
- var maxIndex;
4138
- if (node.entry) {
4139
- if (index === 0) {
4140
- return mapIteratorValue(type, node.entry);
4141
- }
4142
- } else if (node.entries) {
4143
- maxIndex = node.entries.length - 1;
4144
- if (index <= maxIndex) {
4145
- return mapIteratorValue(type, node.entries[this._reverse ? maxIndex - index : index]);
4146
- }
4147
- } else {
4148
- maxIndex = node.nodes.length - 1;
4149
- if (index <= maxIndex) {
4150
- var subNode = node.nodes[this._reverse ? maxIndex - index : index];
4151
- if (subNode) {
4152
- if (subNode.entry) {
4153
- return mapIteratorValue(type, subNode.entry);
4154
- }
4155
- stack = this._stack = mapIteratorFrame(subNode, stack);
4156
- }
4157
- continue;
4158
- }
4159
- }
4160
- stack = this._stack = this._stack.__prev;
4161
- }
4162
- return iteratorDone();
4163
- };
4164
-
4165
-
4166
- function mapIteratorValue(type, entry) {
4167
- return iteratorValue(type, entry[0], entry[1]);
4168
- }
4169
-
4170
- function mapIteratorFrame(node, prev) {
4171
- return {
4172
- node: node,
4173
- index: 0,
4174
- __prev: prev
4175
- };
4176
- }
4177
-
4178
- function makeMap(size, root, ownerID, hash) {
4179
- var map = Object.create(MapPrototype);
4180
- map.size = size;
4181
- map._root = root;
4182
- map.__ownerID = ownerID;
4183
- map.__hash = hash;
4184
- map.__altered = false;
4185
- return map;
4186
- }
4187
-
4188
- var EMPTY_MAP;
4189
- function emptyMap() {
4190
- return EMPTY_MAP || (EMPTY_MAP = makeMap(0));
4191
- }
4192
-
4193
- function updateMap(map, k, v) {
4194
- var newRoot;
4195
- var newSize;
4196
- if (!map._root) {
4197
- if (v === NOT_SET) {
4198
- return map;
4199
- }
4200
- newSize = 1;
4201
- newRoot = new ArrayMapNode(map.__ownerID, [[k, v]]);
4202
- } else {
4203
- var didChangeSize = MakeRef(CHANGE_LENGTH);
4204
- var didAlter = MakeRef(DID_ALTER);
4205
- newRoot = updateNode(map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter);
4206
- if (!didAlter.value) {
4207
- return map;
4208
- }
4209
- newSize = map.size + (didChangeSize.value ? v === NOT_SET ? -1 : 1 : 0);
4210
- }
4211
- if (map.__ownerID) {
4212
- map.size = newSize;
4213
- map._root = newRoot;
4214
- map.__hash = undefined;
4215
- map.__altered = true;
4216
- return map;
4217
- }
4218
- return newRoot ? makeMap(newSize, newRoot) : emptyMap();
4219
- }
4220
-
4221
- function updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
4222
- if (!node) {
4223
- if (value === NOT_SET) {
4224
- return node;
4225
- }
4226
- SetRef(didAlter);
4227
- SetRef(didChangeSize);
4228
- return new ValueNode(ownerID, keyHash, [key, value]);
4229
- }
4230
- return node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter);
4231
- }
4232
-
4233
- function isLeafNode(node) {
4234
- return node.constructor === ValueNode || node.constructor === HashCollisionNode;
4235
- }
4236
-
4237
- function mergeIntoNode(node, ownerID, shift, keyHash, entry) {
4238
- if (node.keyHash === keyHash) {
4239
- return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]);
4240
- }
4241
-
4242
- var idx1 = (shift === 0 ? node.keyHash : node.keyHash >>> shift) & MASK;
4243
- var idx2 = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
4244
-
4245
- var newNode;
4246
- var nodes = idx1 === idx2 ?
4247
- [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] :
4248
- ((newNode = new ValueNode(ownerID, keyHash, entry)), idx1 < idx2 ? [node, newNode] : [newNode, node]);
4249
-
4250
- return new BitmapIndexedNode(ownerID, (1 << idx1) | (1 << idx2), nodes);
4251
- }
4252
-
4253
- function createNodes(ownerID, entries, key, value) {
4254
- if (!ownerID) {
4255
- ownerID = new OwnerID();
4256
- }
4257
- var node = new ValueNode(ownerID, hash(key), [key, value]);
4258
- for (var ii = 0; ii < entries.length; ii++) {
4259
- var entry = entries[ii];
4260
- node = node.update(ownerID, 0, undefined, entry[0], entry[1]);
4261
- }
4262
- return node;
4263
- }
4264
-
4265
- function packNodes(ownerID, nodes, count, excluding) {
4266
- var bitmap = 0;
4267
- var packedII = 0;
4268
- var packedNodes = new Array(count);
4269
- for (var ii = 0, bit = 1, len = nodes.length; ii < len; ii++, bit <<= 1) {
4270
- var node = nodes[ii];
4271
- if (node !== undefined && ii !== excluding) {
4272
- bitmap |= bit;
4273
- packedNodes[packedII++] = node;
4274
- }
4275
- }
4276
- return new BitmapIndexedNode(ownerID, bitmap, packedNodes);
4277
- }
4278
-
4279
- function expandNodes(ownerID, nodes, bitmap, including, node) {
4280
- var count = 0;
4281
- var expandedNodes = new Array(SIZE);
4282
- for (var ii = 0; bitmap !== 0; ii++, bitmap >>>= 1) {
4283
- expandedNodes[ii] = bitmap & 1 ? nodes[count++] : undefined;
4284
- }
4285
- expandedNodes[including] = node;
4286
- return new HashArrayMapNode(ownerID, count + 1, expandedNodes);
4287
- }
4288
-
4289
- function mergeIntoMapWith(map, merger, iterables) {
4290
- var iters = [];
4291
- for (var ii = 0; ii < iterables.length; ii++) {
4292
- var value = iterables[ii];
4293
- var iter = KeyedIterable(value);
4294
- if (!isIterable(value)) {
4295
- iter = iter.map(function(v ) {return fromJS(v)});
4296
- }
4297
- iters.push(iter);
4298
- }
4299
- return mergeIntoCollectionWith(map, merger, iters);
4300
- }
4301
-
4302
- function deepMerger(existing, value, key) {
4303
- return existing && existing.mergeDeep && isIterable(value) ?
4304
- existing.mergeDeep(value) :
4305
- is(existing, value) ? existing : value;
4306
- }
4307
-
4308
- function deepMergerWith(merger) {
4309
- return function(existing, value, key) {
4310
- if (existing && existing.mergeDeepWith && isIterable(value)) {
4311
- return existing.mergeDeepWith(merger, value);
4312
- }
4313
- var nextValue = merger(existing, value, key);
4314
- return is(existing, nextValue) ? existing : nextValue;
4315
- };
4316
- }
4317
-
4318
- function mergeIntoCollectionWith(collection, merger, iters) {
4319
- iters = iters.filter(function(x ) {return x.size !== 0});
4320
- if (iters.length === 0) {
4321
- return collection;
4322
- }
4323
- if (collection.size === 0 && !collection.__ownerID && iters.length === 1) {
4324
- return collection.constructor(iters[0]);
4325
- }
4326
- return collection.withMutations(function(collection ) {
4327
- var mergeIntoMap = merger ?
4328
- function(value, key) {
4329
- collection.update(key, NOT_SET, function(existing )
4330
- {return existing === NOT_SET ? value : merger(existing, value, key)}
4331
- );
4332
- } :
4333
- function(value, key) {
4334
- collection.set(key, value);
4335
- }
4336
- for (var ii = 0; ii < iters.length; ii++) {
4337
- iters[ii].forEach(mergeIntoMap);
4338
- }
4339
- });
4340
- }
4341
-
4342
- function updateInDeepMap(existing, keyPathIter, notSetValue, updater) {
4343
- var isNotSet = existing === NOT_SET;
4344
- var step = keyPathIter.next();
4345
- if (step.done) {
4346
- var existingValue = isNotSet ? notSetValue : existing;
4347
- var newValue = updater(existingValue);
4348
- return newValue === existingValue ? existing : newValue;
4349
- }
4350
- invariant(
4351
- isNotSet || (existing && existing.set),
4352
- 'invalid keyPath'
4353
- );
4354
- var key = step.value;
4355
- var nextExisting = isNotSet ? NOT_SET : existing.get(key, NOT_SET);
4356
- var nextUpdated = updateInDeepMap(
4357
- nextExisting,
4358
- keyPathIter,
4359
- notSetValue,
4360
- updater
4361
- );
4362
- return nextUpdated === nextExisting ? existing :
4363
- nextUpdated === NOT_SET ? existing.remove(key) :
4364
- (isNotSet ? emptyMap() : existing).set(key, nextUpdated);
4365
- }
4366
-
4367
- function popCount(x) {
4368
- x = x - ((x >> 1) & 0x55555555);
4369
- x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
4370
- x = (x + (x >> 4)) & 0x0f0f0f0f;
4371
- x = x + (x >> 8);
4372
- x = x + (x >> 16);
4373
- return x & 0x7f;
4374
- }
4375
-
4376
- function setIn(array, idx, val, canEdit) {
4377
- var newArray = canEdit ? array : arrCopy(array);
4378
- newArray[idx] = val;
4379
- return newArray;
4380
- }
4381
-
4382
- function spliceIn(array, idx, val, canEdit) {
4383
- var newLen = array.length + 1;
4384
- if (canEdit && idx + 1 === newLen) {
4385
- array[idx] = val;
4386
- return array;
4387
- }
4388
- var newArray = new Array(newLen);
4389
- var after = 0;
4390
- for (var ii = 0; ii < newLen; ii++) {
4391
- if (ii === idx) {
4392
- newArray[ii] = val;
4393
- after = -1;
4394
- } else {
4395
- newArray[ii] = array[ii + after];
4396
- }
4397
- }
4398
- return newArray;
4399
- }
4400
-
4401
- function spliceOut(array, idx, canEdit) {
4402
- var newLen = array.length - 1;
4403
- if (canEdit && idx === newLen) {
4404
- array.pop();
4405
- return array;
4406
- }
4407
- var newArray = new Array(newLen);
4408
- var after = 0;
4409
- for (var ii = 0; ii < newLen; ii++) {
4410
- if (ii === idx) {
4411
- after = 1;
4412
- }
4413
- newArray[ii] = array[ii + after];
4414
- }
4415
- return newArray;
4416
- }
4417
-
4418
- var MAX_ARRAY_MAP_SIZE = SIZE / 4;
4419
- var MAX_BITMAP_INDEXED_SIZE = SIZE / 2;
4420
- var MIN_HASH_ARRAY_MAP_SIZE = SIZE / 4;
4421
-
4422
- createClass(List, IndexedCollection);
4423
-
4424
- // @pragma Construction
4425
-
4426
- function List(value) {
4427
- var empty = emptyList();
4428
- if (value === null || value === undefined) {
4429
- return empty;
4430
- }
4431
- if (isList(value)) {
4432
- return value;
4433
- }
4434
- var iter = IndexedIterable(value);
4435
- var size = iter.size;
4436
- if (size === 0) {
4437
- return empty;
4438
- }
4439
- assertNotInfinite(size);
4440
- if (size > 0 && size < SIZE) {
4441
- return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));
4442
- }
4443
- return empty.withMutations(function(list ) {
4444
- list.setSize(size);
4445
- iter.forEach(function(v, i) {return list.set(i, v)});
4446
- });
4447
- }
4448
-
4449
- List.of = function(/*...values*/) {
4450
- return this(arguments);
4451
- };
4452
-
4453
- List.prototype.toString = function() {
4454
- return this.__toString('List [', ']');
4455
- };
4456
-
4457
- // @pragma Access
4458
-
4459
- List.prototype.get = function(index, notSetValue) {
4460
- index = wrapIndex(this, index);
4461
- if (index >= 0 && index < this.size) {
4462
- index += this._origin;
4463
- var node = listNodeFor(this, index);
4464
- return node && node.array[index & MASK];
4465
- }
4466
- return notSetValue;
4467
- };
4468
-
4469
- // @pragma Modification
4470
-
4471
- List.prototype.set = function(index, value) {
4472
- return updateList(this, index, value);
4473
- };
4474
-
4475
- List.prototype.remove = function(index) {
4476
- return !this.has(index) ? this :
4477
- index === 0 ? this.shift() :
4478
- index === this.size - 1 ? this.pop() :
4479
- this.splice(index, 1);
4480
- };
4481
-
4482
- List.prototype.insert = function(index, value) {
4483
- return this.splice(index, 0, value);
4484
- };
4485
-
4486
- List.prototype.clear = function() {
4487
- if (this.size === 0) {
4488
- return this;
4489
- }
4490
- if (this.__ownerID) {
4491
- this.size = this._origin = this._capacity = 0;
4492
- this._level = SHIFT;
4493
- this._root = this._tail = null;
4494
- this.__hash = undefined;
4495
- this.__altered = true;
4496
- return this;
4497
- }
4498
- return emptyList();
4499
- };
4500
-
4501
- List.prototype.push = function(/*...values*/) {
4502
- var values = arguments;
4503
- var oldSize = this.size;
4504
- return this.withMutations(function(list ) {
4505
- setListBounds(list, 0, oldSize + values.length);
4506
- for (var ii = 0; ii < values.length; ii++) {
4507
- list.set(oldSize + ii, values[ii]);
4508
- }
4509
- });
4510
- };
4511
-
4512
- List.prototype.pop = function() {
4513
- return setListBounds(this, 0, -1);
4514
- };
4515
-
4516
- List.prototype.unshift = function(/*...values*/) {
4517
- var values = arguments;
4518
- return this.withMutations(function(list ) {
4519
- setListBounds(list, -values.length);
4520
- for (var ii = 0; ii < values.length; ii++) {
4521
- list.set(ii, values[ii]);
4522
- }
4523
- });
4524
- };
4525
-
4526
- List.prototype.shift = function() {
4527
- return setListBounds(this, 1);
4528
- };
4529
-
4530
- // @pragma Composition
4531
-
4532
- List.prototype.merge = function(/*...iters*/) {
4533
- return mergeIntoListWith(this, undefined, arguments);
4534
- };
4535
-
4536
- List.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
4537
- return mergeIntoListWith(this, merger, iters);
4538
- };
4539
-
4540
- List.prototype.mergeDeep = function(/*...iters*/) {
4541
- return mergeIntoListWith(this, deepMerger, arguments);
4542
- };
4543
-
4544
- List.prototype.mergeDeepWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
4545
- return mergeIntoListWith(this, deepMergerWith(merger), iters);
4546
- };
4547
-
4548
- List.prototype.setSize = function(size) {
4549
- return setListBounds(this, 0, size);
4550
- };
4551
-
4552
- // @pragma Iteration
4553
-
4554
- List.prototype.slice = function(begin, end) {
4555
- var size = this.size;
4556
- if (wholeSlice(begin, end, size)) {
4557
- return this;
4558
- }
4559
- return setListBounds(
4560
- this,
4561
- resolveBegin(begin, size),
4562
- resolveEnd(end, size)
4563
- );
4564
- };
4565
-
4566
- List.prototype.__iterator = function(type, reverse) {
4567
- var index = 0;
4568
- var values = iterateList(this, reverse);
4569
- return new Iterator(function() {
4570
- var value = values();
4571
- return value === DONE ?
4572
- iteratorDone() :
4573
- iteratorValue(type, index++, value);
4574
- });
4575
- };
4576
-
4577
- List.prototype.__iterate = function(fn, reverse) {
4578
- var index = 0;
4579
- var values = iterateList(this, reverse);
4580
- var value;
4581
- while ((value = values()) !== DONE) {
4582
- if (fn(value, index++, this) === false) {
4583
- break;
4584
- }
4585
- }
4586
- return index;
4587
- };
4588
-
4589
- List.prototype.__ensureOwner = function(ownerID) {
4590
- if (ownerID === this.__ownerID) {
4591
- return this;
4592
- }
4593
- if (!ownerID) {
4594
- this.__ownerID = ownerID;
4595
- return this;
4596
- }
4597
- return makeList(this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash);
4598
- };
4599
-
4600
-
4601
- function isList(maybeList) {
4602
- return !!(maybeList && maybeList[IS_LIST_SENTINEL]);
4603
- }
4604
-
4605
- List.isList = isList;
4606
-
4607
- var IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';
4608
-
4609
- var ListPrototype = List.prototype;
4610
- ListPrototype[IS_LIST_SENTINEL] = true;
4611
- ListPrototype[DELETE] = ListPrototype.remove;
4612
- ListPrototype.setIn = MapPrototype.setIn;
4613
- ListPrototype.deleteIn =
4614
- ListPrototype.removeIn = MapPrototype.removeIn;
4615
- ListPrototype.update = MapPrototype.update;
4616
- ListPrototype.updateIn = MapPrototype.updateIn;
4617
- ListPrototype.mergeIn = MapPrototype.mergeIn;
4618
- ListPrototype.mergeDeepIn = MapPrototype.mergeDeepIn;
4619
- ListPrototype.withMutations = MapPrototype.withMutations;
4620
- ListPrototype.asMutable = MapPrototype.asMutable;
4621
- ListPrototype.asImmutable = MapPrototype.asImmutable;
4622
- ListPrototype.wasAltered = MapPrototype.wasAltered;
4623
-
4624
-
4625
-
4626
- function VNode(array, ownerID) {
4627
- this.array = array;
4628
- this.ownerID = ownerID;
4629
- }
4630
-
4631
- // TODO: seems like these methods are very similar
4632
-
4633
- VNode.prototype.removeBefore = function(ownerID, level, index) {
4634
- if (index === level ? 1 << level : false || this.array.length === 0) {
4635
- return this;
4636
- }
4637
- var originIndex = (index >>> level) & MASK;
4638
- if (originIndex >= this.array.length) {
4639
- return new VNode([], ownerID);
4640
- }
4641
- var removingFirst = originIndex === 0;
4642
- var newChild;
4643
- if (level > 0) {
4644
- var oldChild = this.array[originIndex];
4645
- newChild = oldChild && oldChild.removeBefore(ownerID, level - SHIFT, index);
4646
- if (newChild === oldChild && removingFirst) {
4647
- return this;
4648
- }
4649
- }
4650
- if (removingFirst && !newChild) {
4651
- return this;
4652
- }
4653
- var editable = editableVNode(this, ownerID);
4654
- if (!removingFirst) {
4655
- for (var ii = 0; ii < originIndex; ii++) {
4656
- editable.array[ii] = undefined;
4657
- }
4658
- }
4659
- if (newChild) {
4660
- editable.array[originIndex] = newChild;
4661
- }
4662
- return editable;
4663
- };
4664
-
4665
- VNode.prototype.removeAfter = function(ownerID, level, index) {
4666
- if (index === (level ? 1 << level : 0) || this.array.length === 0) {
4667
- return this;
4668
- }
4669
- var sizeIndex = ((index - 1) >>> level) & MASK;
4670
- if (sizeIndex >= this.array.length) {
4671
- return this;
4672
- }
4673
-
4674
- var newChild;
4675
- if (level > 0) {
4676
- var oldChild = this.array[sizeIndex];
4677
- newChild = oldChild && oldChild.removeAfter(ownerID, level - SHIFT, index);
4678
- if (newChild === oldChild && sizeIndex === this.array.length - 1) {
4679
- return this;
4680
- }
4681
- }
4682
-
4683
- var editable = editableVNode(this, ownerID);
4684
- editable.array.splice(sizeIndex + 1);
4685
- if (newChild) {
4686
- editable.array[sizeIndex] = newChild;
4687
- }
4688
- return editable;
4689
- };
4690
-
4691
-
4692
-
4693
- var DONE = {};
4694
-
4695
- function iterateList(list, reverse) {
4696
- var left = list._origin;
4697
- var right = list._capacity;
4698
- var tailPos = getTailOffset(right);
4699
- var tail = list._tail;
4700
-
4701
- return iterateNodeOrLeaf(list._root, list._level, 0);
4702
-
4703
- function iterateNodeOrLeaf(node, level, offset) {
4704
- return level === 0 ?
4705
- iterateLeaf(node, offset) :
4706
- iterateNode(node, level, offset);
4707
- }
4708
-
4709
- function iterateLeaf(node, offset) {
4710
- var array = offset === tailPos ? tail && tail.array : node && node.array;
4711
- var from = offset > left ? 0 : left - offset;
4712
- var to = right - offset;
4713
- if (to > SIZE) {
4714
- to = SIZE;
4715
- }
4716
- return function() {
4717
- if (from === to) {
4718
- return DONE;
4719
- }
4720
- var idx = reverse ? --to : from++;
4721
- return array && array[idx];
4722
- };
4723
- }
4724
-
4725
- function iterateNode(node, level, offset) {
4726
- var values;
4727
- var array = node && node.array;
4728
- var from = offset > left ? 0 : (left - offset) >> level;
4729
- var to = ((right - offset) >> level) + 1;
4730
- if (to > SIZE) {
4731
- to = SIZE;
4732
- }
4733
- return function() {
4734
- do {
4735
- if (values) {
4736
- var value = values();
4737
- if (value !== DONE) {
4738
- return value;
4739
- }
4740
- values = null;
4741
- }
4742
- if (from === to) {
4743
- return DONE;
4744
- }
4745
- var idx = reverse ? --to : from++;
4746
- values = iterateNodeOrLeaf(
4747
- array && array[idx], level - SHIFT, offset + (idx << level)
4748
- );
4749
- } while (true);
4750
- };
4751
- }
4752
- }
4753
-
4754
- function makeList(origin, capacity, level, root, tail, ownerID, hash) {
4755
- var list = Object.create(ListPrototype);
4756
- list.size = capacity - origin;
4757
- list._origin = origin;
4758
- list._capacity = capacity;
4759
- list._level = level;
4760
- list._root = root;
4761
- list._tail = tail;
4762
- list.__ownerID = ownerID;
4763
- list.__hash = hash;
4764
- list.__altered = false;
4765
- return list;
4766
- }
4767
-
4768
- var EMPTY_LIST;
4769
- function emptyList() {
4770
- return EMPTY_LIST || (EMPTY_LIST = makeList(0, 0, SHIFT));
4771
- }
4772
-
4773
- function updateList(list, index, value) {
4774
- index = wrapIndex(list, index);
4775
-
4776
- if (index !== index) {
4777
- return list;
4778
- }
4779
-
4780
- if (index >= list.size || index < 0) {
4781
- return list.withMutations(function(list ) {
4782
- index < 0 ?
4783
- setListBounds(list, index).set(0, value) :
4784
- setListBounds(list, 0, index + 1).set(index, value)
4785
- });
4786
- }
4787
-
4788
- index += list._origin;
4789
-
4790
- var newTail = list._tail;
4791
- var newRoot = list._root;
4792
- var didAlter = MakeRef(DID_ALTER);
4793
- if (index >= getTailOffset(list._capacity)) {
4794
- newTail = updateVNode(newTail, list.__ownerID, 0, index, value, didAlter);
4795
- } else {
4796
- newRoot = updateVNode(newRoot, list.__ownerID, list._level, index, value, didAlter);
4797
- }
4798
-
4799
- if (!didAlter.value) {
4800
- return list;
4801
- }
4802
-
4803
- if (list.__ownerID) {
4804
- list._root = newRoot;
4805
- list._tail = newTail;
4806
- list.__hash = undefined;
4807
- list.__altered = true;
4808
- return list;
4809
- }
4810
- return makeList(list._origin, list._capacity, list._level, newRoot, newTail);
4811
- }
4812
-
4813
- function updateVNode(node, ownerID, level, index, value, didAlter) {
4814
- var idx = (index >>> level) & MASK;
4815
- var nodeHas = node && idx < node.array.length;
4816
- if (!nodeHas && value === undefined) {
4817
- return node;
4818
- }
4819
-
4820
- var newNode;
4821
-
4822
- if (level > 0) {
4823
- var lowerNode = node && node.array[idx];
4824
- var newLowerNode = updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter);
4825
- if (newLowerNode === lowerNode) {
4826
- return node;
4827
- }
4828
- newNode = editableVNode(node, ownerID);
4829
- newNode.array[idx] = newLowerNode;
4830
- return newNode;
4831
- }
4832
-
4833
- if (nodeHas && node.array[idx] === value) {
4834
- return node;
4835
- }
4836
-
4837
- SetRef(didAlter);
4838
-
4839
- newNode = editableVNode(node, ownerID);
4840
- if (value === undefined && idx === newNode.array.length - 1) {
4841
- newNode.array.pop();
4842
- } else {
4843
- newNode.array[idx] = value;
4844
- }
4845
- return newNode;
4846
- }
4847
-
4848
- function editableVNode(node, ownerID) {
4849
- if (ownerID && node && ownerID === node.ownerID) {
4850
- return node;
4851
- }
4852
- return new VNode(node ? node.array.slice() : [], ownerID);
4853
- }
4854
-
4855
- function listNodeFor(list, rawIndex) {
4856
- if (rawIndex >= getTailOffset(list._capacity)) {
4857
- return list._tail;
4858
- }
4859
- if (rawIndex < 1 << (list._level + SHIFT)) {
4860
- var node = list._root;
4861
- var level = list._level;
4862
- while (node && level > 0) {
4863
- node = node.array[(rawIndex >>> level) & MASK];
4864
- level -= SHIFT;
4865
- }
4866
- return node;
4867
- }
4868
- }
4869
-
4870
- function setListBounds(list, begin, end) {
4871
- // Sanitize begin & end using this shorthand for ToInt32(argument)
4872
- // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32
4873
- if (begin !== undefined) {
4874
- begin = begin | 0;
4875
- }
4876
- if (end !== undefined) {
4877
- end = end | 0;
4878
- }
4879
- var owner = list.__ownerID || new OwnerID();
4880
- var oldOrigin = list._origin;
4881
- var oldCapacity = list._capacity;
4882
- var newOrigin = oldOrigin + begin;
4883
- var newCapacity = end === undefined ? oldCapacity : end < 0 ? oldCapacity + end : oldOrigin + end;
4884
- if (newOrigin === oldOrigin && newCapacity === oldCapacity) {
4885
- return list;
4886
- }
4887
-
4888
- // If it's going to end after it starts, it's empty.
4889
- if (newOrigin >= newCapacity) {
4890
- return list.clear();
4891
- }
4892
-
4893
- var newLevel = list._level;
4894
- var newRoot = list._root;
4895
-
4896
- // New origin might need creating a higher root.
4897
- var offsetShift = 0;
4898
- while (newOrigin + offsetShift < 0) {
4899
- newRoot = new VNode(newRoot && newRoot.array.length ? [undefined, newRoot] : [], owner);
4900
- newLevel += SHIFT;
4901
- offsetShift += 1 << newLevel;
4902
- }
4903
- if (offsetShift) {
4904
- newOrigin += offsetShift;
4905
- oldOrigin += offsetShift;
4906
- newCapacity += offsetShift;
4907
- oldCapacity += offsetShift;
4908
- }
4909
-
4910
- var oldTailOffset = getTailOffset(oldCapacity);
4911
- var newTailOffset = getTailOffset(newCapacity);
4912
-
4913
- // New size might need creating a higher root.
4914
- while (newTailOffset >= 1 << (newLevel + SHIFT)) {
4915
- newRoot = new VNode(newRoot && newRoot.array.length ? [newRoot] : [], owner);
4916
- newLevel += SHIFT;
4917
- }
4918
-
4919
- // Locate or create the new tail.
4920
- var oldTail = list._tail;
4921
- var newTail = newTailOffset < oldTailOffset ?
4922
- listNodeFor(list, newCapacity - 1) :
4923
- newTailOffset > oldTailOffset ? new VNode([], owner) : oldTail;
4924
-
4925
- // Merge Tail into tree.
4926
- if (oldTail && newTailOffset > oldTailOffset && newOrigin < oldCapacity && oldTail.array.length) {
4927
- newRoot = editableVNode(newRoot, owner);
4928
- var node = newRoot;
4929
- for (var level = newLevel; level > SHIFT; level -= SHIFT) {
4930
- var idx = (oldTailOffset >>> level) & MASK;
4931
- node = node.array[idx] = editableVNode(node.array[idx], owner);
4932
- }
4933
- node.array[(oldTailOffset >>> SHIFT) & MASK] = oldTail;
4934
- }
4935
-
4936
- // If the size has been reduced, there's a chance the tail needs to be trimmed.
4937
- if (newCapacity < oldCapacity) {
4938
- newTail = newTail && newTail.removeAfter(owner, 0, newCapacity);
4939
- }
4940
-
4941
- // If the new origin is within the tail, then we do not need a root.
4942
- if (newOrigin >= newTailOffset) {
4943
- newOrigin -= newTailOffset;
4944
- newCapacity -= newTailOffset;
4945
- newLevel = SHIFT;
4946
- newRoot = null;
4947
- newTail = newTail && newTail.removeBefore(owner, 0, newOrigin);
4948
-
4949
- // Otherwise, if the root has been trimmed, garbage collect.
4950
- } else if (newOrigin > oldOrigin || newTailOffset < oldTailOffset) {
4951
- offsetShift = 0;
4952
-
4953
- // Identify the new top root node of the subtree of the old root.
4954
- while (newRoot) {
4955
- var beginIndex = (newOrigin >>> newLevel) & MASK;
4956
- if (beginIndex !== (newTailOffset >>> newLevel) & MASK) {
4957
- break;
4958
- }
4959
- if (beginIndex) {
4960
- offsetShift += (1 << newLevel) * beginIndex;
4961
- }
4962
- newLevel -= SHIFT;
4963
- newRoot = newRoot.array[beginIndex];
4964
- }
4965
-
4966
- // Trim the new sides of the new root.
4967
- if (newRoot && newOrigin > oldOrigin) {
4968
- newRoot = newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift);
4969
- }
4970
- if (newRoot && newTailOffset < oldTailOffset) {
4971
- newRoot = newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift);
4972
- }
4973
- if (offsetShift) {
4974
- newOrigin -= offsetShift;
4975
- newCapacity -= offsetShift;
4976
- }
4977
- }
4978
-
4979
- if (list.__ownerID) {
4980
- list.size = newCapacity - newOrigin;
4981
- list._origin = newOrigin;
4982
- list._capacity = newCapacity;
4983
- list._level = newLevel;
4984
- list._root = newRoot;
4985
- list._tail = newTail;
4986
- list.__hash = undefined;
4987
- list.__altered = true;
4988
- return list;
4989
- }
4990
- return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail);
4991
- }
4992
-
4993
- function mergeIntoListWith(list, merger, iterables) {
4994
- var iters = [];
4995
- var maxSize = 0;
4996
- for (var ii = 0; ii < iterables.length; ii++) {
4997
- var value = iterables[ii];
4998
- var iter = IndexedIterable(value);
4999
- if (iter.size > maxSize) {
5000
- maxSize = iter.size;
5001
- }
5002
- if (!isIterable(value)) {
5003
- iter = iter.map(function(v ) {return fromJS(v)});
5004
- }
5005
- iters.push(iter);
5006
- }
5007
- if (maxSize > list.size) {
5008
- list = list.setSize(maxSize);
5009
- }
5010
- return mergeIntoCollectionWith(list, merger, iters);
5011
- }
5012
-
5013
- function getTailOffset(size) {
5014
- return size < SIZE ? 0 : (((size - 1) >>> SHIFT) << SHIFT);
5015
- }
5016
-
5017
- createClass(OrderedMap, Map);
5018
-
5019
- // @pragma Construction
5020
-
5021
- function OrderedMap(value) {
5022
- return value === null || value === undefined ? emptyOrderedMap() :
5023
- isOrderedMap(value) ? value :
5024
- emptyOrderedMap().withMutations(function(map ) {
5025
- var iter = KeyedIterable(value);
5026
- assertNotInfinite(iter.size);
5027
- iter.forEach(function(v, k) {return map.set(k, v)});
5028
- });
5029
- }
5030
-
5031
- OrderedMap.of = function(/*...values*/) {
5032
- return this(arguments);
5033
- };
5034
-
5035
- OrderedMap.prototype.toString = function() {
5036
- return this.__toString('OrderedMap {', '}');
5037
- };
5038
-
5039
- // @pragma Access
5040
-
5041
- OrderedMap.prototype.get = function(k, notSetValue) {
5042
- var index = this._map.get(k);
5043
- return index !== undefined ? this._list.get(index)[1] : notSetValue;
5044
- };
5045
-
5046
- // @pragma Modification
5047
-
5048
- OrderedMap.prototype.clear = function() {
5049
- if (this.size === 0) {
5050
- return this;
5051
- }
5052
- if (this.__ownerID) {
5053
- this.size = 0;
5054
- this._map.clear();
5055
- this._list.clear();
5056
- return this;
5057
- }
5058
- return emptyOrderedMap();
5059
- };
5060
-
5061
- OrderedMap.prototype.set = function(k, v) {
5062
- return updateOrderedMap(this, k, v);
5063
- };
5064
-
5065
- OrderedMap.prototype.remove = function(k) {
5066
- return updateOrderedMap(this, k, NOT_SET);
5067
- };
5068
-
5069
- OrderedMap.prototype.wasAltered = function() {
5070
- return this._map.wasAltered() || this._list.wasAltered();
5071
- };
5072
-
5073
- OrderedMap.prototype.__iterate = function(fn, reverse) {var this$0 = this;
5074
- return this._list.__iterate(
5075
- function(entry ) {return entry && fn(entry[1], entry[0], this$0)},
5076
- reverse
5077
- );
5078
- };
5079
-
5080
- OrderedMap.prototype.__iterator = function(type, reverse) {
5081
- return this._list.fromEntrySeq().__iterator(type, reverse);
5082
- };
5083
-
5084
- OrderedMap.prototype.__ensureOwner = function(ownerID) {
5085
- if (ownerID === this.__ownerID) {
5086
- return this;
5087
- }
5088
- var newMap = this._map.__ensureOwner(ownerID);
5089
- var newList = this._list.__ensureOwner(ownerID);
5090
- if (!ownerID) {
5091
- this.__ownerID = ownerID;
5092
- this._map = newMap;
5093
- this._list = newList;
5094
- return this;
5095
- }
5096
- return makeOrderedMap(newMap, newList, ownerID, this.__hash);
5097
- };
5098
-
5099
-
5100
- function isOrderedMap(maybeOrderedMap) {
5101
- return isMap(maybeOrderedMap) && isOrdered(maybeOrderedMap);
5102
- }
5103
-
5104
- OrderedMap.isOrderedMap = isOrderedMap;
5105
-
5106
- OrderedMap.prototype[IS_ORDERED_SENTINEL] = true;
5107
- OrderedMap.prototype[DELETE] = OrderedMap.prototype.remove;
5108
-
5109
-
5110
-
5111
- function makeOrderedMap(map, list, ownerID, hash) {
5112
- var omap = Object.create(OrderedMap.prototype);
5113
- omap.size = map ? map.size : 0;
5114
- omap._map = map;
5115
- omap._list = list;
5116
- omap.__ownerID = ownerID;
5117
- omap.__hash = hash;
5118
- return omap;
5119
- }
5120
-
5121
- var EMPTY_ORDERED_MAP;
5122
- function emptyOrderedMap() {
5123
- return EMPTY_ORDERED_MAP || (EMPTY_ORDERED_MAP = makeOrderedMap(emptyMap(), emptyList()));
5124
- }
5125
-
5126
- function updateOrderedMap(omap, k, v) {
5127
- var map = omap._map;
5128
- var list = omap._list;
5129
- var i = map.get(k);
5130
- var has = i !== undefined;
5131
- var newMap;
5132
- var newList;
5133
- if (v === NOT_SET) { // removed
5134
- if (!has) {
5135
- return omap;
5136
- }
5137
- if (list.size >= SIZE && list.size >= map.size * 2) {
5138
- newList = list.filter(function(entry, idx) {return entry !== undefined && i !== idx});
5139
- newMap = newList.toKeyedSeq().map(function(entry ) {return entry[0]}).flip().toMap();
5140
- if (omap.__ownerID) {
5141
- newMap.__ownerID = newList.__ownerID = omap.__ownerID;
5142
- }
5143
- } else {
5144
- newMap = map.remove(k);
5145
- newList = i === list.size - 1 ? list.pop() : list.set(i, undefined);
5146
- }
5147
- } else {
5148
- if (has) {
5149
- if (v === list.get(i)[1]) {
5150
- return omap;
5151
- }
5152
- newMap = map;
5153
- newList = list.set(i, [k, v]);
5154
- } else {
5155
- newMap = map.set(k, list.size);
5156
- newList = list.set(list.size, [k, v]);
5157
- }
5158
- }
5159
- if (omap.__ownerID) {
5160
- omap.size = newMap.size;
5161
- omap._map = newMap;
5162
- omap._list = newList;
5163
- omap.__hash = undefined;
5164
- return omap;
5165
- }
5166
- return makeOrderedMap(newMap, newList);
5167
- }
5168
-
5169
- createClass(ToKeyedSequence, KeyedSeq);
5170
- function ToKeyedSequence(indexed, useKeys) {
5171
- this._iter = indexed;
5172
- this._useKeys = useKeys;
5173
- this.size = indexed.size;
5174
- }
5175
-
5176
- ToKeyedSequence.prototype.get = function(key, notSetValue) {
5177
- return this._iter.get(key, notSetValue);
5178
- };
5179
-
5180
- ToKeyedSequence.prototype.has = function(key) {
5181
- return this._iter.has(key);
5182
- };
5183
-
5184
- ToKeyedSequence.prototype.valueSeq = function() {
5185
- return this._iter.valueSeq();
5186
- };
5187
-
5188
- ToKeyedSequence.prototype.reverse = function() {var this$0 = this;
5189
- var reversedSequence = reverseFactory(this, true);
5190
- if (!this._useKeys) {
5191
- reversedSequence.valueSeq = function() {return this$0._iter.toSeq().reverse()};
5192
- }
5193
- return reversedSequence;
5194
- };
5195
-
5196
- ToKeyedSequence.prototype.map = function(mapper, context) {var this$0 = this;
5197
- var mappedSequence = mapFactory(this, mapper, context);
5198
- if (!this._useKeys) {
5199
- mappedSequence.valueSeq = function() {return this$0._iter.toSeq().map(mapper, context)};
5200
- }
5201
- return mappedSequence;
5202
- };
5203
-
5204
- ToKeyedSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
5205
- var ii;
5206
- return this._iter.__iterate(
5207
- this._useKeys ?
5208
- function(v, k) {return fn(v, k, this$0)} :
5209
- ((ii = reverse ? resolveSize(this) : 0),
5210
- function(v ) {return fn(v, reverse ? --ii : ii++, this$0)}),
5211
- reverse
5212
- );
5213
- };
5214
-
5215
- ToKeyedSequence.prototype.__iterator = function(type, reverse) {
5216
- if (this._useKeys) {
5217
- return this._iter.__iterator(type, reverse);
5218
- }
5219
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
5220
- var ii = reverse ? resolveSize(this) : 0;
5221
- return new Iterator(function() {
5222
- var step = iterator.next();
5223
- return step.done ? step :
5224
- iteratorValue(type, reverse ? --ii : ii++, step.value, step);
5225
- });
5226
- };
5227
-
5228
- ToKeyedSequence.prototype[IS_ORDERED_SENTINEL] = true;
5229
-
5230
-
5231
- createClass(ToIndexedSequence, IndexedSeq);
5232
- function ToIndexedSequence(iter) {
5233
- this._iter = iter;
5234
- this.size = iter.size;
5235
- }
5236
-
5237
- ToIndexedSequence.prototype.includes = function(value) {
5238
- return this._iter.includes(value);
5239
- };
5240
-
5241
- ToIndexedSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
5242
- var iterations = 0;
5243
- return this._iter.__iterate(function(v ) {return fn(v, iterations++, this$0)}, reverse);
5244
- };
5245
-
5246
- ToIndexedSequence.prototype.__iterator = function(type, reverse) {
5247
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
5248
- var iterations = 0;
5249
- return new Iterator(function() {
5250
- var step = iterator.next();
5251
- return step.done ? step :
5252
- iteratorValue(type, iterations++, step.value, step)
5253
- });
5254
- };
5255
-
5256
-
5257
-
5258
- createClass(ToSetSequence, SetSeq);
5259
- function ToSetSequence(iter) {
5260
- this._iter = iter;
5261
- this.size = iter.size;
5262
- }
5263
-
5264
- ToSetSequence.prototype.has = function(key) {
5265
- return this._iter.includes(key);
5266
- };
5267
-
5268
- ToSetSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
5269
- return this._iter.__iterate(function(v ) {return fn(v, v, this$0)}, reverse);
5270
- };
5271
-
5272
- ToSetSequence.prototype.__iterator = function(type, reverse) {
5273
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
5274
- return new Iterator(function() {
5275
- var step = iterator.next();
5276
- return step.done ? step :
5277
- iteratorValue(type, step.value, step.value, step);
5278
- });
5279
- };
5280
-
5281
-
5282
-
5283
- createClass(FromEntriesSequence, KeyedSeq);
5284
- function FromEntriesSequence(entries) {
5285
- this._iter = entries;
5286
- this.size = entries.size;
5287
- }
5288
-
5289
- FromEntriesSequence.prototype.entrySeq = function() {
5290
- return this._iter.toSeq();
5291
- };
5292
-
5293
- FromEntriesSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
5294
- return this._iter.__iterate(function(entry ) {
5295
- // Check if entry exists first so array access doesn't throw for holes
5296
- // in the parent iteration.
5297
- if (entry) {
5298
- validateEntry(entry);
5299
- var indexedIterable = isIterable(entry);
5300
- return fn(
5301
- indexedIterable ? entry.get(1) : entry[1],
5302
- indexedIterable ? entry.get(0) : entry[0],
5303
- this$0
5304
- );
5305
- }
5306
- }, reverse);
5307
- };
5308
-
5309
- FromEntriesSequence.prototype.__iterator = function(type, reverse) {
5310
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
5311
- return new Iterator(function() {
5312
- while (true) {
5313
- var step = iterator.next();
5314
- if (step.done) {
5315
- return step;
5316
- }
5317
- var entry = step.value;
5318
- // Check if entry exists first so array access doesn't throw for holes
5319
- // in the parent iteration.
5320
- if (entry) {
5321
- validateEntry(entry);
5322
- var indexedIterable = isIterable(entry);
5323
- return iteratorValue(
5324
- type,
5325
- indexedIterable ? entry.get(0) : entry[0],
5326
- indexedIterable ? entry.get(1) : entry[1],
5327
- step
5328
- );
5329
- }
5330
- }
5331
- });
5332
- };
5333
-
5334
-
5335
- ToIndexedSequence.prototype.cacheResult =
5336
- ToKeyedSequence.prototype.cacheResult =
5337
- ToSetSequence.prototype.cacheResult =
5338
- FromEntriesSequence.prototype.cacheResult =
5339
- cacheResultThrough;
5340
-
5341
-
5342
- function flipFactory(iterable) {
5343
- var flipSequence = makeSequence(iterable);
5344
- flipSequence._iter = iterable;
5345
- flipSequence.size = iterable.size;
5346
- flipSequence.flip = function() {return iterable};
5347
- flipSequence.reverse = function () {
5348
- var reversedSequence = iterable.reverse.apply(this); // super.reverse()
5349
- reversedSequence.flip = function() {return iterable.reverse()};
5350
- return reversedSequence;
5351
- };
5352
- flipSequence.has = function(key ) {return iterable.includes(key)};
5353
- flipSequence.includes = function(key ) {return iterable.has(key)};
5354
- flipSequence.cacheResult = cacheResultThrough;
5355
- flipSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
5356
- return iterable.__iterate(function(v, k) {return fn(k, v, this$0) !== false}, reverse);
5357
- }
5358
- flipSequence.__iteratorUncached = function(type, reverse) {
5359
- if (type === ITERATE_ENTRIES) {
5360
- var iterator = iterable.__iterator(type, reverse);
5361
- return new Iterator(function() {
5362
- var step = iterator.next();
5363
- if (!step.done) {
5364
- var k = step.value[0];
5365
- step.value[0] = step.value[1];
5366
- step.value[1] = k;
5367
- }
5368
- return step;
5369
- });
5370
- }
5371
- return iterable.__iterator(
5372
- type === ITERATE_VALUES ? ITERATE_KEYS : ITERATE_VALUES,
5373
- reverse
5374
- );
5375
- }
5376
- return flipSequence;
5377
- }
5378
-
5379
-
5380
- function mapFactory(iterable, mapper, context) {
5381
- var mappedSequence = makeSequence(iterable);
5382
- mappedSequence.size = iterable.size;
5383
- mappedSequence.has = function(key ) {return iterable.has(key)};
5384
- mappedSequence.get = function(key, notSetValue) {
5385
- var v = iterable.get(key, NOT_SET);
5386
- return v === NOT_SET ?
5387
- notSetValue :
5388
- mapper.call(context, v, key, iterable);
5389
- };
5390
- mappedSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
5391
- return iterable.__iterate(
5392
- function(v, k, c) {return fn(mapper.call(context, v, k, c), k, this$0) !== false},
5393
- reverse
5394
- );
5395
- }
5396
- mappedSequence.__iteratorUncached = function (type, reverse) {
5397
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
5398
- return new Iterator(function() {
5399
- var step = iterator.next();
5400
- if (step.done) {
5401
- return step;
5402
- }
5403
- var entry = step.value;
5404
- var key = entry[0];
5405
- return iteratorValue(
5406
- type,
5407
- key,
5408
- mapper.call(context, entry[1], key, iterable),
5409
- step
5410
- );
5411
- });
5412
- }
5413
- return mappedSequence;
5414
- }
5415
-
5416
-
5417
- function reverseFactory(iterable, useKeys) {
5418
- var reversedSequence = makeSequence(iterable);
5419
- reversedSequence._iter = iterable;
5420
- reversedSequence.size = iterable.size;
5421
- reversedSequence.reverse = function() {return iterable};
5422
- if (iterable.flip) {
5423
- reversedSequence.flip = function () {
5424
- var flipSequence = flipFactory(iterable);
5425
- flipSequence.reverse = function() {return iterable.flip()};
5426
- return flipSequence;
5427
- };
5428
- }
5429
- reversedSequence.get = function(key, notSetValue)
5430
- {return iterable.get(useKeys ? key : -1 - key, notSetValue)};
5431
- reversedSequence.has = function(key )
5432
- {return iterable.has(useKeys ? key : -1 - key)};
5433
- reversedSequence.includes = function(value ) {return iterable.includes(value)};
5434
- reversedSequence.cacheResult = cacheResultThrough;
5435
- reversedSequence.__iterate = function (fn, reverse) {var this$0 = this;
5436
- return iterable.__iterate(function(v, k) {return fn(v, k, this$0)}, !reverse);
5437
- };
5438
- reversedSequence.__iterator =
5439
- function(type, reverse) {return iterable.__iterator(type, !reverse)};
5440
- return reversedSequence;
5441
- }
5442
-
5443
-
5444
- function filterFactory(iterable, predicate, context, useKeys) {
5445
- var filterSequence = makeSequence(iterable);
5446
- if (useKeys) {
5447
- filterSequence.has = function(key ) {
5448
- var v = iterable.get(key, NOT_SET);
5449
- return v !== NOT_SET && !!predicate.call(context, v, key, iterable);
5450
- };
5451
- filterSequence.get = function(key, notSetValue) {
5452
- var v = iterable.get(key, NOT_SET);
5453
- return v !== NOT_SET && predicate.call(context, v, key, iterable) ?
5454
- v : notSetValue;
5455
- };
5456
- }
5457
- filterSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
5458
- var iterations = 0;
5459
- iterable.__iterate(function(v, k, c) {
5460
- if (predicate.call(context, v, k, c)) {
5461
- iterations++;
5462
- return fn(v, useKeys ? k : iterations - 1, this$0);
5463
- }
5464
- }, reverse);
5465
- return iterations;
5466
- };
5467
- filterSequence.__iteratorUncached = function (type, reverse) {
5468
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
5469
- var iterations = 0;
5470
- return new Iterator(function() {
5471
- while (true) {
5472
- var step = iterator.next();
5473
- if (step.done) {
5474
- return step;
5475
- }
5476
- var entry = step.value;
5477
- var key = entry[0];
5478
- var value = entry[1];
5479
- if (predicate.call(context, value, key, iterable)) {
5480
- return iteratorValue(type, useKeys ? key : iterations++, value, step);
5481
- }
5482
- }
5483
- });
5484
- }
5485
- return filterSequence;
5486
- }
5487
-
5488
-
5489
- function countByFactory(iterable, grouper, context) {
5490
- var groups = Map().asMutable();
5491
- iterable.__iterate(function(v, k) {
5492
- groups.update(
5493
- grouper.call(context, v, k, iterable),
5494
- 0,
5495
- function(a ) {return a + 1}
5496
- );
5497
- });
5498
- return groups.asImmutable();
5499
- }
5500
-
5501
-
5502
- function groupByFactory(iterable, grouper, context) {
5503
- var isKeyedIter = isKeyed(iterable);
5504
- var groups = (isOrdered(iterable) ? OrderedMap() : Map()).asMutable();
5505
- iterable.__iterate(function(v, k) {
5506
- groups.update(
5507
- grouper.call(context, v, k, iterable),
5508
- function(a ) {return (a = a || [], a.push(isKeyedIter ? [k, v] : v), a)}
5509
- );
5510
- });
5511
- var coerce = iterableClass(iterable);
5512
- return groups.map(function(arr ) {return reify(iterable, coerce(arr))});
5513
- }
5514
-
5515
-
5516
- function sliceFactory(iterable, begin, end, useKeys) {
5517
- var originalSize = iterable.size;
5518
-
5519
- // Sanitize begin & end using this shorthand for ToInt32(argument)
5520
- // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32
5521
- if (begin !== undefined) {
5522
- begin = begin | 0;
5523
- }
5524
- if (end !== undefined) {
5525
- if (end === Infinity) {
5526
- end = originalSize;
5527
- } else {
5528
- end = end | 0;
5529
- }
5530
- }
5531
-
5532
- if (wholeSlice(begin, end, originalSize)) {
5533
- return iterable;
5534
- }
5535
-
5536
- var resolvedBegin = resolveBegin(begin, originalSize);
5537
- var resolvedEnd = resolveEnd(end, originalSize);
5538
-
5539
- // begin or end will be NaN if they were provided as negative numbers and
5540
- // this iterable's size is unknown. In that case, cache first so there is
5541
- // a known size and these do not resolve to NaN.
5542
- if (resolvedBegin !== resolvedBegin || resolvedEnd !== resolvedEnd) {
5543
- return sliceFactory(iterable.toSeq().cacheResult(), begin, end, useKeys);
5544
- }
5545
-
5546
- // Note: resolvedEnd is undefined when the original sequence's length is
5547
- // unknown and this slice did not supply an end and should contain all
5548
- // elements after resolvedBegin.
5549
- // In that case, resolvedSize will be NaN and sliceSize will remain undefined.
5550
- var resolvedSize = resolvedEnd - resolvedBegin;
5551
- var sliceSize;
5552
- if (resolvedSize === resolvedSize) {
5553
- sliceSize = resolvedSize < 0 ? 0 : resolvedSize;
5554
- }
5555
-
5556
- var sliceSeq = makeSequence(iterable);
5557
-
5558
- // If iterable.size is undefined, the size of the realized sliceSeq is
5559
- // unknown at this point unless the number of items to slice is 0
5560
- sliceSeq.size = sliceSize === 0 ? sliceSize : iterable.size && sliceSize || undefined;
5561
-
5562
- if (!useKeys && isSeq(iterable) && sliceSize >= 0) {
5563
- sliceSeq.get = function (index, notSetValue) {
5564
- index = wrapIndex(this, index);
5565
- return index >= 0 && index < sliceSize ?
5566
- iterable.get(index + resolvedBegin, notSetValue) :
5567
- notSetValue;
5568
- }
5569
- }
5570
-
5571
- sliceSeq.__iterateUncached = function(fn, reverse) {var this$0 = this;
5572
- if (sliceSize === 0) {
5573
- return 0;
5574
- }
5575
- if (reverse) {
5576
- return this.cacheResult().__iterate(fn, reverse);
5577
- }
5578
- var skipped = 0;
5579
- var isSkipping = true;
5580
- var iterations = 0;
5581
- iterable.__iterate(function(v, k) {
5582
- if (!(isSkipping && (isSkipping = skipped++ < resolvedBegin))) {
5583
- iterations++;
5584
- return fn(v, useKeys ? k : iterations - 1, this$0) !== false &&
5585
- iterations !== sliceSize;
5586
- }
5587
- });
5588
- return iterations;
5589
- };
5590
-
5591
- sliceSeq.__iteratorUncached = function(type, reverse) {
5592
- if (sliceSize !== 0 && reverse) {
5593
- return this.cacheResult().__iterator(type, reverse);
5594
- }
5595
- // Don't bother instantiating parent iterator if taking 0.
5596
- var iterator = sliceSize !== 0 && iterable.__iterator(type, reverse);
5597
- var skipped = 0;
5598
- var iterations = 0;
5599
- return new Iterator(function() {
5600
- while (skipped++ < resolvedBegin) {
5601
- iterator.next();
5602
- }
5603
- if (++iterations > sliceSize) {
5604
- return iteratorDone();
5605
- }
5606
- var step = iterator.next();
5607
- if (useKeys || type === ITERATE_VALUES) {
5608
- return step;
5609
- } else if (type === ITERATE_KEYS) {
5610
- return iteratorValue(type, iterations - 1, undefined, step);
5611
- } else {
5612
- return iteratorValue(type, iterations - 1, step.value[1], step);
5613
- }
5614
- });
5615
- }
5616
-
5617
- return sliceSeq;
5618
- }
5619
-
5620
-
5621
- function takeWhileFactory(iterable, predicate, context) {
5622
- var takeSequence = makeSequence(iterable);
5623
- takeSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
5624
- if (reverse) {
5625
- return this.cacheResult().__iterate(fn, reverse);
5626
- }
5627
- var iterations = 0;
5628
- iterable.__iterate(function(v, k, c)
5629
- {return predicate.call(context, v, k, c) && ++iterations && fn(v, k, this$0)}
5630
- );
5631
- return iterations;
5632
- };
5633
- takeSequence.__iteratorUncached = function(type, reverse) {var this$0 = this;
5634
- if (reverse) {
5635
- return this.cacheResult().__iterator(type, reverse);
5636
- }
5637
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
5638
- var iterating = true;
5639
- return new Iterator(function() {
5640
- if (!iterating) {
5641
- return iteratorDone();
5642
- }
5643
- var step = iterator.next();
5644
- if (step.done) {
5645
- return step;
5646
- }
5647
- var entry = step.value;
5648
- var k = entry[0];
5649
- var v = entry[1];
5650
- if (!predicate.call(context, v, k, this$0)) {
5651
- iterating = false;
5652
- return iteratorDone();
5653
- }
5654
- return type === ITERATE_ENTRIES ? step :
5655
- iteratorValue(type, k, v, step);
5656
- });
5657
- };
5658
- return takeSequence;
5659
- }
5660
-
5661
-
5662
- function skipWhileFactory(iterable, predicate, context, useKeys) {
5663
- var skipSequence = makeSequence(iterable);
5664
- skipSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
5665
- if (reverse) {
5666
- return this.cacheResult().__iterate(fn, reverse);
5667
- }
5668
- var isSkipping = true;
5669
- var iterations = 0;
5670
- iterable.__iterate(function(v, k, c) {
5671
- if (!(isSkipping && (isSkipping = predicate.call(context, v, k, c)))) {
5672
- iterations++;
5673
- return fn(v, useKeys ? k : iterations - 1, this$0);
5674
- }
5675
- });
5676
- return iterations;
5677
- };
5678
- skipSequence.__iteratorUncached = function(type, reverse) {var this$0 = this;
5679
- if (reverse) {
5680
- return this.cacheResult().__iterator(type, reverse);
5681
- }
5682
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
5683
- var skipping = true;
5684
- var iterations = 0;
5685
- return new Iterator(function() {
5686
- var step, k, v;
5687
- do {
5688
- step = iterator.next();
5689
- if (step.done) {
5690
- if (useKeys || type === ITERATE_VALUES) {
5691
- return step;
5692
- } else if (type === ITERATE_KEYS) {
5693
- return iteratorValue(type, iterations++, undefined, step);
5694
- } else {
5695
- return iteratorValue(type, iterations++, step.value[1], step);
5696
- }
5697
- }
5698
- var entry = step.value;
5699
- k = entry[0];
5700
- v = entry[1];
5701
- skipping && (skipping = predicate.call(context, v, k, this$0));
5702
- } while (skipping);
5703
- return type === ITERATE_ENTRIES ? step :
5704
- iteratorValue(type, k, v, step);
5705
- });
5706
- };
5707
- return skipSequence;
5708
- }
5709
-
5710
-
5711
- function concatFactory(iterable, values) {
5712
- var isKeyedIterable = isKeyed(iterable);
5713
- var iters = [iterable].concat(values).map(function(v ) {
5714
- if (!isIterable(v)) {
5715
- v = isKeyedIterable ?
5716
- keyedSeqFromValue(v) :
5717
- indexedSeqFromValue(Array.isArray(v) ? v : [v]);
5718
- } else if (isKeyedIterable) {
5719
- v = KeyedIterable(v);
5720
- }
5721
- return v;
5722
- }).filter(function(v ) {return v.size !== 0});
5723
-
5724
- if (iters.length === 0) {
5725
- return iterable;
5726
- }
5727
-
5728
- if (iters.length === 1) {
5729
- var singleton = iters[0];
5730
- if (singleton === iterable ||
5731
- isKeyedIterable && isKeyed(singleton) ||
5732
- isIndexed(iterable) && isIndexed(singleton)) {
5733
- return singleton;
5734
- }
5735
- }
5736
-
5737
- var concatSeq = new ArraySeq(iters);
5738
- if (isKeyedIterable) {
5739
- concatSeq = concatSeq.toKeyedSeq();
5740
- } else if (!isIndexed(iterable)) {
5741
- concatSeq = concatSeq.toSetSeq();
5742
- }
5743
- concatSeq = concatSeq.flatten(true);
5744
- concatSeq.size = iters.reduce(
5745
- function(sum, seq) {
5746
- if (sum !== undefined) {
5747
- var size = seq.size;
5748
- if (size !== undefined) {
5749
- return sum + size;
5750
- }
5751
- }
5752
- },
5753
- 0
5754
- );
5755
- return concatSeq;
5756
- }
5757
-
5758
-
5759
- function flattenFactory(iterable, depth, useKeys) {
5760
- var flatSequence = makeSequence(iterable);
5761
- flatSequence.__iterateUncached = function(fn, reverse) {
5762
- var iterations = 0;
5763
- var stopped = false;
5764
- function flatDeep(iter, currentDepth) {var this$0 = this;
5765
- iter.__iterate(function(v, k) {
5766
- if ((!depth || currentDepth < depth) && isIterable(v)) {
5767
- flatDeep(v, currentDepth + 1);
5768
- } else if (fn(v, useKeys ? k : iterations++, this$0) === false) {
5769
- stopped = true;
5770
- }
5771
- return !stopped;
5772
- }, reverse);
5773
- }
5774
- flatDeep(iterable, 0);
5775
- return iterations;
5776
- }
5777
- flatSequence.__iteratorUncached = function(type, reverse) {
5778
- var iterator = iterable.__iterator(type, reverse);
5779
- var stack = [];
5780
- var iterations = 0;
5781
- return new Iterator(function() {
5782
- while (iterator) {
5783
- var step = iterator.next();
5784
- if (step.done !== false) {
5785
- iterator = stack.pop();
5786
- continue;
5787
- }
5788
- var v = step.value;
5789
- if (type === ITERATE_ENTRIES) {
5790
- v = v[1];
5791
- }
5792
- if ((!depth || stack.length < depth) && isIterable(v)) {
5793
- stack.push(iterator);
5794
- iterator = v.__iterator(type, reverse);
5795
- } else {
5796
- return useKeys ? step : iteratorValue(type, iterations++, v, step);
5797
- }
5798
- }
5799
- return iteratorDone();
5800
- });
5801
- }
5802
- return flatSequence;
5803
- }
5804
-
5805
-
5806
- function flatMapFactory(iterable, mapper, context) {
5807
- var coerce = iterableClass(iterable);
5808
- return iterable.toSeq().map(
5809
- function(v, k) {return coerce(mapper.call(context, v, k, iterable))}
5810
- ).flatten(true);
5811
- }
5812
-
5813
-
5814
- function interposeFactory(iterable, separator) {
5815
- var interposedSequence = makeSequence(iterable);
5816
- interposedSequence.size = iterable.size && iterable.size * 2 -1;
5817
- interposedSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
5818
- var iterations = 0;
5819
- iterable.__iterate(function(v, k)
5820
- {return (!iterations || fn(separator, iterations++, this$0) !== false) &&
5821
- fn(v, iterations++, this$0) !== false},
5822
- reverse
5823
- );
5824
- return iterations;
5825
- };
5826
- interposedSequence.__iteratorUncached = function(type, reverse) {
5827
- var iterator = iterable.__iterator(ITERATE_VALUES, reverse);
5828
- var iterations = 0;
5829
- var step;
5830
- return new Iterator(function() {
5831
- if (!step || iterations % 2) {
5832
- step = iterator.next();
5833
- if (step.done) {
5834
- return step;
5835
- }
5836
- }
5837
- return iterations % 2 ?
5838
- iteratorValue(type, iterations++, separator) :
5839
- iteratorValue(type, iterations++, step.value, step);
5840
- });
5841
- };
5842
- return interposedSequence;
5843
- }
5844
-
5845
-
5846
- function sortFactory(iterable, comparator, mapper) {
5847
- if (!comparator) {
5848
- comparator = defaultComparator;
5849
- }
5850
- var isKeyedIterable = isKeyed(iterable);
5851
- var index = 0;
5852
- var entries = iterable.toSeq().map(
5853
- function(v, k) {return [k, v, index++, mapper ? mapper(v, k, iterable) : v]}
5854
- ).toArray();
5855
- entries.sort(function(a, b) {return comparator(a[3], b[3]) || a[2] - b[2]}).forEach(
5856
- isKeyedIterable ?
5857
- function(v, i) { entries[i].length = 2; } :
5858
- function(v, i) { entries[i] = v[1]; }
5859
- );
5860
- return isKeyedIterable ? KeyedSeq(entries) :
5861
- isIndexed(iterable) ? IndexedSeq(entries) :
5862
- SetSeq(entries);
5863
- }
5864
-
5865
-
5866
- function maxFactory(iterable, comparator, mapper) {
5867
- if (!comparator) {
5868
- comparator = defaultComparator;
5869
- }
5870
- if (mapper) {
5871
- var entry = iterable.toSeq()
5872
- .map(function(v, k) {return [v, mapper(v, k, iterable)]})
5873
- .reduce(function(a, b) {return maxCompare(comparator, a[1], b[1]) ? b : a});
5874
- return entry && entry[0];
5875
- } else {
5876
- return iterable.reduce(function(a, b) {return maxCompare(comparator, a, b) ? b : a});
5877
- }
5878
- }
5879
-
5880
- function maxCompare(comparator, a, b) {
5881
- var comp = comparator(b, a);
5882
- // b is considered the new max if the comparator declares them equal, but
5883
- // they are not equal and b is in fact a nullish value.
5884
- return (comp === 0 && b !== a && (b === undefined || b === null || b !== b)) || comp > 0;
5885
- }
5886
-
5887
-
5888
- function zipWithFactory(keyIter, zipper, iters) {
5889
- var zipSequence = makeSequence(keyIter);
5890
- zipSequence.size = new ArraySeq(iters).map(function(i ) {return i.size}).min();
5891
- // Note: this a generic base implementation of __iterate in terms of
5892
- // __iterator which may be more generically useful in the future.
5893
- zipSequence.__iterate = function(fn, reverse) {
5894
- /* generic:
5895
- var iterator = this.__iterator(ITERATE_ENTRIES, reverse);
5896
- var step;
5897
- var iterations = 0;
5898
- while (!(step = iterator.next()).done) {
5899
- iterations++;
5900
- if (fn(step.value[1], step.value[0], this) === false) {
5901
- break;
5902
- }
5903
- }
5904
- return iterations;
5905
- */
5906
- // indexed:
5907
- var iterator = this.__iterator(ITERATE_VALUES, reverse);
5908
- var step;
5909
- var iterations = 0;
5910
- while (!(step = iterator.next()).done) {
5911
- if (fn(step.value, iterations++, this) === false) {
5912
- break;
5913
- }
5914
- }
5915
- return iterations;
5916
- };
5917
- zipSequence.__iteratorUncached = function(type, reverse) {
5918
- var iterators = iters.map(function(i )
5919
- {return (i = Iterable(i), getIterator(reverse ? i.reverse() : i))}
5920
- );
5921
- var iterations = 0;
5922
- var isDone = false;
5923
- return new Iterator(function() {
5924
- var steps;
5925
- if (!isDone) {
5926
- steps = iterators.map(function(i ) {return i.next()});
5927
- isDone = steps.some(function(s ) {return s.done});
5928
- }
5929
- if (isDone) {
5930
- return iteratorDone();
5931
- }
5932
- return iteratorValue(
5933
- type,
5934
- iterations++,
5935
- zipper.apply(null, steps.map(function(s ) {return s.value}))
5936
- );
5937
- });
5938
- };
5939
- return zipSequence
5940
- }
5941
-
5942
-
5943
- // #pragma Helper Functions
5944
-
5945
- function reify(iter, seq) {
5946
- return isSeq(iter) ? seq : iter.constructor(seq);
5947
- }
5948
-
5949
- function validateEntry(entry) {
5950
- if (entry !== Object(entry)) {
5951
- throw new TypeError('Expected [K, V] tuple: ' + entry);
5952
- }
5953
- }
5954
-
5955
- function resolveSize(iter) {
5956
- assertNotInfinite(iter.size);
5957
- return ensureSize(iter);
5958
- }
5959
-
5960
- function iterableClass(iterable) {
5961
- return isKeyed(iterable) ? KeyedIterable :
5962
- isIndexed(iterable) ? IndexedIterable :
5963
- SetIterable;
5964
- }
5965
-
5966
- function makeSequence(iterable) {
5967
- return Object.create(
5968
- (
5969
- isKeyed(iterable) ? KeyedSeq :
5970
- isIndexed(iterable) ? IndexedSeq :
5971
- SetSeq
5972
- ).prototype
5973
- );
5974
- }
5975
-
5976
- function cacheResultThrough() {
5977
- if (this._iter.cacheResult) {
5978
- this._iter.cacheResult();
5979
- this.size = this._iter.size;
5980
- return this;
5981
- } else {
5982
- return Seq.prototype.cacheResult.call(this);
5983
- }
5984
- }
5985
-
5986
- function defaultComparator(a, b) {
5987
- return a > b ? 1 : a < b ? -1 : 0;
5988
- }
5989
-
5990
- function forceIterator(keyPath) {
5991
- var iter = getIterator(keyPath);
5992
- if (!iter) {
5993
- // Array might not be iterable in this environment, so we need a fallback
5994
- // to our wrapped type.
5995
- if (!isArrayLike(keyPath)) {
5996
- throw new TypeError('Expected iterable or array-like: ' + keyPath);
5997
- }
5998
- iter = getIterator(Iterable(keyPath));
5999
- }
6000
- return iter;
6001
- }
6002
-
6003
- createClass(Record, KeyedCollection);
6004
-
6005
- function Record(defaultValues, name) {
6006
- var hasInitialized;
6007
-
6008
- var RecordType = function Record(values) {
6009
- if (values instanceof RecordType) {
6010
- return values;
6011
- }
6012
- if (!(this instanceof RecordType)) {
6013
- return new RecordType(values);
6014
- }
6015
- if (!hasInitialized) {
6016
- hasInitialized = true;
6017
- var keys = Object.keys(defaultValues);
6018
- setProps(RecordTypePrototype, keys);
6019
- RecordTypePrototype.size = keys.length;
6020
- RecordTypePrototype._name = name;
6021
- RecordTypePrototype._keys = keys;
6022
- RecordTypePrototype._defaultValues = defaultValues;
6023
- }
6024
- this._map = Map(values);
6025
- };
6026
-
6027
- var RecordTypePrototype = RecordType.prototype = Object.create(RecordPrototype);
6028
- RecordTypePrototype.constructor = RecordType;
6029
-
6030
- return RecordType;
6031
- }
6032
-
6033
- Record.prototype.toString = function() {
6034
- return this.__toString(recordName(this) + ' {', '}');
6035
- };
6036
-
6037
- // @pragma Access
6038
-
6039
- Record.prototype.has = function(k) {
6040
- return this._defaultValues.hasOwnProperty(k);
6041
- };
6042
-
6043
- Record.prototype.get = function(k, notSetValue) {
6044
- if (!this.has(k)) {
6045
- return notSetValue;
6046
- }
6047
- var defaultVal = this._defaultValues[k];
6048
- return this._map ? this._map.get(k, defaultVal) : defaultVal;
6049
- };
6050
-
6051
- // @pragma Modification
6052
-
6053
- Record.prototype.clear = function() {
6054
- if (this.__ownerID) {
6055
- this._map && this._map.clear();
6056
- return this;
6057
- }
6058
- var RecordType = this.constructor;
6059
- return RecordType._empty || (RecordType._empty = makeRecord(this, emptyMap()));
6060
- };
6061
-
6062
- Record.prototype.set = function(k, v) {
6063
- if (!this.has(k)) {
6064
- throw new Error('Cannot set unknown key "' + k + '" on ' + recordName(this));
6065
- }
6066
- if (this._map && !this._map.has(k)) {
6067
- var defaultVal = this._defaultValues[k];
6068
- if (v === defaultVal) {
6069
- return this;
6070
- }
6071
- }
6072
- var newMap = this._map && this._map.set(k, v);
6073
- if (this.__ownerID || newMap === this._map) {
6074
- return this;
6075
- }
6076
- return makeRecord(this, newMap);
6077
- };
6078
-
6079
- Record.prototype.remove = function(k) {
6080
- if (!this.has(k)) {
6081
- return this;
6082
- }
6083
- var newMap = this._map && this._map.remove(k);
6084
- if (this.__ownerID || newMap === this._map) {
6085
- return this;
6086
- }
6087
- return makeRecord(this, newMap);
6088
- };
6089
-
6090
- Record.prototype.wasAltered = function() {
6091
- return this._map.wasAltered();
6092
- };
6093
-
6094
- Record.prototype.__iterator = function(type, reverse) {var this$0 = this;
6095
- return KeyedIterable(this._defaultValues).map(function(_, k) {return this$0.get(k)}).__iterator(type, reverse);
6096
- };
6097
-
6098
- Record.prototype.__iterate = function(fn, reverse) {var this$0 = this;
6099
- return KeyedIterable(this._defaultValues).map(function(_, k) {return this$0.get(k)}).__iterate(fn, reverse);
6100
- };
6101
-
6102
- Record.prototype.__ensureOwner = function(ownerID) {
6103
- if (ownerID === this.__ownerID) {
6104
- return this;
6105
- }
6106
- var newMap = this._map && this._map.__ensureOwner(ownerID);
6107
- if (!ownerID) {
6108
- this.__ownerID = ownerID;
6109
- this._map = newMap;
6110
- return this;
6111
- }
6112
- return makeRecord(this, newMap, ownerID);
6113
- };
6114
-
6115
-
6116
- var RecordPrototype = Record.prototype;
6117
- RecordPrototype[DELETE] = RecordPrototype.remove;
6118
- RecordPrototype.deleteIn =
6119
- RecordPrototype.removeIn = MapPrototype.removeIn;
6120
- RecordPrototype.merge = MapPrototype.merge;
6121
- RecordPrototype.mergeWith = MapPrototype.mergeWith;
6122
- RecordPrototype.mergeIn = MapPrototype.mergeIn;
6123
- RecordPrototype.mergeDeep = MapPrototype.mergeDeep;
6124
- RecordPrototype.mergeDeepWith = MapPrototype.mergeDeepWith;
6125
- RecordPrototype.mergeDeepIn = MapPrototype.mergeDeepIn;
6126
- RecordPrototype.setIn = MapPrototype.setIn;
6127
- RecordPrototype.update = MapPrototype.update;
6128
- RecordPrototype.updateIn = MapPrototype.updateIn;
6129
- RecordPrototype.withMutations = MapPrototype.withMutations;
6130
- RecordPrototype.asMutable = MapPrototype.asMutable;
6131
- RecordPrototype.asImmutable = MapPrototype.asImmutable;
6132
-
6133
-
6134
- function makeRecord(likeRecord, map, ownerID) {
6135
- var record = Object.create(Object.getPrototypeOf(likeRecord));
6136
- record._map = map;
6137
- record.__ownerID = ownerID;
6138
- return record;
6139
- }
6140
-
6141
- function recordName(record) {
6142
- return record._name || record.constructor.name || 'Record';
6143
- }
6144
-
6145
- function setProps(prototype, names) {
6146
- try {
6147
- names.forEach(setProp.bind(undefined, prototype));
6148
- } catch (error) {
6149
- // Object.defineProperty failed. Probably IE8.
6150
- }
6151
- }
6152
-
6153
- function setProp(prototype, name) {
6154
- Object.defineProperty(prototype, name, {
6155
- get: function() {
6156
- return this.get(name);
6157
- },
6158
- set: function(value) {
6159
- invariant(this.__ownerID, 'Cannot set on an immutable record.');
6160
- this.set(name, value);
6161
- }
6162
- });
6163
- }
6164
-
6165
- createClass(Set, SetCollection);
6166
-
6167
- // @pragma Construction
6168
-
6169
- function Set(value) {
6170
- return value === null || value === undefined ? emptySet() :
6171
- isSet(value) && !isOrdered(value) ? value :
6172
- emptySet().withMutations(function(set ) {
6173
- var iter = SetIterable(value);
6174
- assertNotInfinite(iter.size);
6175
- iter.forEach(function(v ) {return set.add(v)});
6176
- });
6177
- }
6178
-
6179
- Set.of = function(/*...values*/) {
6180
- return this(arguments);
6181
- };
6182
-
6183
- Set.fromKeys = function(value) {
6184
- return this(KeyedIterable(value).keySeq());
6185
- };
6186
-
6187
- Set.prototype.toString = function() {
6188
- return this.__toString('Set {', '}');
6189
- };
6190
-
6191
- // @pragma Access
6192
-
6193
- Set.prototype.has = function(value) {
6194
- return this._map.has(value);
6195
- };
6196
-
6197
- // @pragma Modification
6198
-
6199
- Set.prototype.add = function(value) {
6200
- return updateSet(this, this._map.set(value, true));
6201
- };
6202
-
6203
- Set.prototype.remove = function(value) {
6204
- return updateSet(this, this._map.remove(value));
6205
- };
6206
-
6207
- Set.prototype.clear = function() {
6208
- return updateSet(this, this._map.clear());
6209
- };
6210
-
6211
- // @pragma Composition
6212
-
6213
- Set.prototype.union = function() {var iters = SLICE$0.call(arguments, 0);
6214
- iters = iters.filter(function(x ) {return x.size !== 0});
6215
- if (iters.length === 0) {
6216
- return this;
6217
- }
6218
- if (this.size === 0 && !this.__ownerID && iters.length === 1) {
6219
- return this.constructor(iters[0]);
6220
- }
6221
- return this.withMutations(function(set ) {
6222
- for (var ii = 0; ii < iters.length; ii++) {
6223
- SetIterable(iters[ii]).forEach(function(value ) {return set.add(value)});
6224
- }
6225
- });
6226
- };
6227
-
6228
- Set.prototype.intersect = function() {var iters = SLICE$0.call(arguments, 0);
6229
- if (iters.length === 0) {
6230
- return this;
6231
- }
6232
- iters = iters.map(function(iter ) {return SetIterable(iter)});
6233
- var originalSet = this;
6234
- return this.withMutations(function(set ) {
6235
- originalSet.forEach(function(value ) {
6236
- if (!iters.every(function(iter ) {return iter.includes(value)})) {
6237
- set.remove(value);
6238
- }
6239
- });
6240
- });
6241
- };
6242
-
6243
- Set.prototype.subtract = function() {var iters = SLICE$0.call(arguments, 0);
6244
- if (iters.length === 0) {
6245
- return this;
6246
- }
6247
- iters = iters.map(function(iter ) {return SetIterable(iter)});
6248
- var originalSet = this;
6249
- return this.withMutations(function(set ) {
6250
- originalSet.forEach(function(value ) {
6251
- if (iters.some(function(iter ) {return iter.includes(value)})) {
6252
- set.remove(value);
6253
- }
6254
- });
6255
- });
6256
- };
6257
-
6258
- Set.prototype.merge = function() {
6259
- return this.union.apply(this, arguments);
6260
- };
6261
-
6262
- Set.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
6263
- return this.union.apply(this, iters);
6264
- };
6265
-
6266
- Set.prototype.sort = function(comparator) {
6267
- // Late binding
6268
- return OrderedSet(sortFactory(this, comparator));
6269
- };
6270
-
6271
- Set.prototype.sortBy = function(mapper, comparator) {
6272
- // Late binding
6273
- return OrderedSet(sortFactory(this, comparator, mapper));
6274
- };
6275
-
6276
- Set.prototype.wasAltered = function() {
6277
- return this._map.wasAltered();
6278
- };
6279
-
6280
- Set.prototype.__iterate = function(fn, reverse) {var this$0 = this;
6281
- return this._map.__iterate(function(_, k) {return fn(k, k, this$0)}, reverse);
6282
- };
6283
-
6284
- Set.prototype.__iterator = function(type, reverse) {
6285
- return this._map.map(function(_, k) {return k}).__iterator(type, reverse);
6286
- };
6287
-
6288
- Set.prototype.__ensureOwner = function(ownerID) {
6289
- if (ownerID === this.__ownerID) {
6290
- return this;
6291
- }
6292
- var newMap = this._map.__ensureOwner(ownerID);
6293
- if (!ownerID) {
6294
- this.__ownerID = ownerID;
6295
- this._map = newMap;
6296
- return this;
6297
- }
6298
- return this.__make(newMap, ownerID);
6299
- };
6300
-
6301
-
6302
- function isSet(maybeSet) {
6303
- return !!(maybeSet && maybeSet[IS_SET_SENTINEL]);
6304
- }
6305
-
6306
- Set.isSet = isSet;
6307
-
6308
- var IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@';
6309
-
6310
- var SetPrototype = Set.prototype;
6311
- SetPrototype[IS_SET_SENTINEL] = true;
6312
- SetPrototype[DELETE] = SetPrototype.remove;
6313
- SetPrototype.mergeDeep = SetPrototype.merge;
6314
- SetPrototype.mergeDeepWith = SetPrototype.mergeWith;
6315
- SetPrototype.withMutations = MapPrototype.withMutations;
6316
- SetPrototype.asMutable = MapPrototype.asMutable;
6317
- SetPrototype.asImmutable = MapPrototype.asImmutable;
6318
-
6319
- SetPrototype.__empty = emptySet;
6320
- SetPrototype.__make = makeSet;
6321
-
6322
- function updateSet(set, newMap) {
6323
- if (set.__ownerID) {
6324
- set.size = newMap.size;
6325
- set._map = newMap;
6326
- return set;
6327
- }
6328
- return newMap === set._map ? set :
6329
- newMap.size === 0 ? set.__empty() :
6330
- set.__make(newMap);
6331
- }
6332
-
6333
- function makeSet(map, ownerID) {
6334
- var set = Object.create(SetPrototype);
6335
- set.size = map ? map.size : 0;
6336
- set._map = map;
6337
- set.__ownerID = ownerID;
6338
- return set;
6339
- }
6340
-
6341
- var EMPTY_SET;
6342
- function emptySet() {
6343
- return EMPTY_SET || (EMPTY_SET = makeSet(emptyMap()));
6344
- }
6345
-
6346
- createClass(OrderedSet, Set);
6347
-
6348
- // @pragma Construction
6349
-
6350
- function OrderedSet(value) {
6351
- return value === null || value === undefined ? emptyOrderedSet() :
6352
- isOrderedSet(value) ? value :
6353
- emptyOrderedSet().withMutations(function(set ) {
6354
- var iter = SetIterable(value);
6355
- assertNotInfinite(iter.size);
6356
- iter.forEach(function(v ) {return set.add(v)});
6357
- });
6358
- }
6359
-
6360
- OrderedSet.of = function(/*...values*/) {
6361
- return this(arguments);
6362
- };
6363
-
6364
- OrderedSet.fromKeys = function(value) {
6365
- return this(KeyedIterable(value).keySeq());
6366
- };
6367
-
6368
- OrderedSet.prototype.toString = function() {
6369
- return this.__toString('OrderedSet {', '}');
6370
- };
6371
-
6372
-
6373
- function isOrderedSet(maybeOrderedSet) {
6374
- return isSet(maybeOrderedSet) && isOrdered(maybeOrderedSet);
6375
- }
6376
-
6377
- OrderedSet.isOrderedSet = isOrderedSet;
6378
-
6379
- var OrderedSetPrototype = OrderedSet.prototype;
6380
- OrderedSetPrototype[IS_ORDERED_SENTINEL] = true;
6381
-
6382
- OrderedSetPrototype.__empty = emptyOrderedSet;
6383
- OrderedSetPrototype.__make = makeOrderedSet;
6384
-
6385
- function makeOrderedSet(map, ownerID) {
6386
- var set = Object.create(OrderedSetPrototype);
6387
- set.size = map ? map.size : 0;
6388
- set._map = map;
6389
- set.__ownerID = ownerID;
6390
- return set;
6391
- }
6392
-
6393
- var EMPTY_ORDERED_SET;
6394
- function emptyOrderedSet() {
6395
- return EMPTY_ORDERED_SET || (EMPTY_ORDERED_SET = makeOrderedSet(emptyOrderedMap()));
6396
- }
6397
-
6398
- createClass(Stack, IndexedCollection);
6399
-
6400
- // @pragma Construction
6401
-
6402
- function Stack(value) {
6403
- return value === null || value === undefined ? emptyStack() :
6404
- isStack(value) ? value :
6405
- emptyStack().unshiftAll(value);
6406
- }
6407
-
6408
- Stack.of = function(/*...values*/) {
6409
- return this(arguments);
6410
- };
6411
-
6412
- Stack.prototype.toString = function() {
6413
- return this.__toString('Stack [', ']');
6414
- };
6415
-
6416
- // @pragma Access
6417
-
6418
- Stack.prototype.get = function(index, notSetValue) {
6419
- var head = this._head;
6420
- index = wrapIndex(this, index);
6421
- while (head && index--) {
6422
- head = head.next;
6423
- }
6424
- return head ? head.value : notSetValue;
6425
- };
6426
-
6427
- Stack.prototype.peek = function() {
6428
- return this._head && this._head.value;
6429
- };
6430
-
6431
- // @pragma Modification
6432
-
6433
- Stack.prototype.push = function(/*...values*/) {
6434
- if (arguments.length === 0) {
6435
- return this;
6436
- }
6437
- var newSize = this.size + arguments.length;
6438
- var head = this._head;
6439
- for (var ii = arguments.length - 1; ii >= 0; ii--) {
6440
- head = {
6441
- value: arguments[ii],
6442
- next: head
6443
- };
6444
- }
6445
- if (this.__ownerID) {
6446
- this.size = newSize;
6447
- this._head = head;
6448
- this.__hash = undefined;
6449
- this.__altered = true;
6450
- return this;
6451
- }
6452
- return makeStack(newSize, head);
6453
- };
6454
-
6455
- Stack.prototype.pushAll = function(iter) {
6456
- iter = IndexedIterable(iter);
6457
- if (iter.size === 0) {
6458
- return this;
6459
- }
6460
- assertNotInfinite(iter.size);
6461
- var newSize = this.size;
6462
- var head = this._head;
6463
- iter.reverse().forEach(function(value ) {
6464
- newSize++;
6465
- head = {
6466
- value: value,
6467
- next: head
6468
- };
6469
- });
6470
- if (this.__ownerID) {
6471
- this.size = newSize;
6472
- this._head = head;
6473
- this.__hash = undefined;
6474
- this.__altered = true;
6475
- return this;
6476
- }
6477
- return makeStack(newSize, head);
6478
- };
6479
-
6480
- Stack.prototype.pop = function() {
6481
- return this.slice(1);
6482
- };
6483
-
6484
- Stack.prototype.unshift = function(/*...values*/) {
6485
- return this.push.apply(this, arguments);
6486
- };
6487
-
6488
- Stack.prototype.unshiftAll = function(iter) {
6489
- return this.pushAll(iter);
6490
- };
6491
-
6492
- Stack.prototype.shift = function() {
6493
- return this.pop.apply(this, arguments);
6494
- };
6495
-
6496
- Stack.prototype.clear = function() {
6497
- if (this.size === 0) {
6498
- return this;
6499
- }
6500
- if (this.__ownerID) {
6501
- this.size = 0;
6502
- this._head = undefined;
6503
- this.__hash = undefined;
6504
- this.__altered = true;
6505
- return this;
6506
- }
6507
- return emptyStack();
6508
- };
6509
-
6510
- Stack.prototype.slice = function(begin, end) {
6511
- if (wholeSlice(begin, end, this.size)) {
6512
- return this;
6513
- }
6514
- var resolvedBegin = resolveBegin(begin, this.size);
6515
- var resolvedEnd = resolveEnd(end, this.size);
6516
- if (resolvedEnd !== this.size) {
6517
- // super.slice(begin, end);
6518
- return IndexedCollection.prototype.slice.call(this, begin, end);
6519
- }
6520
- var newSize = this.size - resolvedBegin;
6521
- var head = this._head;
6522
- while (resolvedBegin--) {
6523
- head = head.next;
6524
- }
6525
- if (this.__ownerID) {
6526
- this.size = newSize;
6527
- this._head = head;
6528
- this.__hash = undefined;
6529
- this.__altered = true;
6530
- return this;
6531
- }
6532
- return makeStack(newSize, head);
6533
- };
6534
-
6535
- // @pragma Mutability
6536
-
6537
- Stack.prototype.__ensureOwner = function(ownerID) {
6538
- if (ownerID === this.__ownerID) {
6539
- return this;
6540
- }
6541
- if (!ownerID) {
6542
- this.__ownerID = ownerID;
6543
- this.__altered = false;
6544
- return this;
6545
- }
6546
- return makeStack(this.size, this._head, ownerID, this.__hash);
6547
- };
6548
-
6549
- // @pragma Iteration
6550
-
6551
- Stack.prototype.__iterate = function(fn, reverse) {
6552
- if (reverse) {
6553
- return this.reverse().__iterate(fn);
6554
- }
6555
- var iterations = 0;
6556
- var node = this._head;
6557
- while (node) {
6558
- if (fn(node.value, iterations++, this) === false) {
6559
- break;
6560
- }
6561
- node = node.next;
6562
- }
6563
- return iterations;
6564
- };
6565
-
6566
- Stack.prototype.__iterator = function(type, reverse) {
6567
- if (reverse) {
6568
- return this.reverse().__iterator(type);
6569
- }
6570
- var iterations = 0;
6571
- var node = this._head;
6572
- return new Iterator(function() {
6573
- if (node) {
6574
- var value = node.value;
6575
- node = node.next;
6576
- return iteratorValue(type, iterations++, value);
6577
- }
6578
- return iteratorDone();
6579
- });
6580
- };
6581
-
6582
-
6583
- function isStack(maybeStack) {
6584
- return !!(maybeStack && maybeStack[IS_STACK_SENTINEL]);
6585
- }
6586
-
6587
- Stack.isStack = isStack;
6588
-
6589
- var IS_STACK_SENTINEL = '@@__IMMUTABLE_STACK__@@';
6590
-
6591
- var StackPrototype = Stack.prototype;
6592
- StackPrototype[IS_STACK_SENTINEL] = true;
6593
- StackPrototype.withMutations = MapPrototype.withMutations;
6594
- StackPrototype.asMutable = MapPrototype.asMutable;
6595
- StackPrototype.asImmutable = MapPrototype.asImmutable;
6596
- StackPrototype.wasAltered = MapPrototype.wasAltered;
6597
-
6598
-
6599
- function makeStack(size, head, ownerID, hash) {
6600
- var map = Object.create(StackPrototype);
6601
- map.size = size;
6602
- map._head = head;
6603
- map.__ownerID = ownerID;
6604
- map.__hash = hash;
6605
- map.__altered = false;
6606
- return map;
6607
- }
6608
-
6609
- var EMPTY_STACK;
6610
- function emptyStack() {
6611
- return EMPTY_STACK || (EMPTY_STACK = makeStack(0));
6612
- }
6613
-
6614
- /**
6615
- * Contributes additional methods to a constructor
6616
- */
6617
- function mixin(ctor, methods) {
6618
- var keyCopier = function(key ) { ctor.prototype[key] = methods[key]; };
6619
- Object.keys(methods).forEach(keyCopier);
6620
- Object.getOwnPropertySymbols &&
6621
- Object.getOwnPropertySymbols(methods).forEach(keyCopier);
6622
- return ctor;
6623
- }
6624
-
6625
- Iterable.Iterator = Iterator;
6626
-
6627
- mixin(Iterable, {
6628
-
6629
- // ### Conversion to other types
6630
-
6631
- toArray: function() {
6632
- assertNotInfinite(this.size);
6633
- var array = new Array(this.size || 0);
6634
- this.valueSeq().__iterate(function(v, i) { array[i] = v; });
6635
- return array;
6636
- },
6637
-
6638
- toIndexedSeq: function() {
6639
- return new ToIndexedSequence(this);
6640
- },
6641
-
6642
- toJS: function() {
6643
- return this.toSeq().map(
6644
- function(value ) {return value && typeof value.toJS === 'function' ? value.toJS() : value}
6645
- ).__toJS();
6646
- },
6647
-
6648
- toJSON: function() {
6649
- return this.toSeq().map(
6650
- function(value ) {return value && typeof value.toJSON === 'function' ? value.toJSON() : value}
6651
- ).__toJS();
6652
- },
6653
-
6654
- toKeyedSeq: function() {
6655
- return new ToKeyedSequence(this, true);
6656
- },
6657
-
6658
- toMap: function() {
6659
- // Use Late Binding here to solve the circular dependency.
6660
- return Map(this.toKeyedSeq());
6661
- },
6662
-
6663
- toObject: function() {
6664
- assertNotInfinite(this.size);
6665
- var object = {};
6666
- this.__iterate(function(v, k) { object[k] = v; });
6667
- return object;
6668
- },
6669
-
6670
- toOrderedMap: function() {
6671
- // Use Late Binding here to solve the circular dependency.
6672
- return OrderedMap(this.toKeyedSeq());
6673
- },
6674
-
6675
- toOrderedSet: function() {
6676
- // Use Late Binding here to solve the circular dependency.
6677
- return OrderedSet(isKeyed(this) ? this.valueSeq() : this);
6678
- },
6679
-
6680
- toSet: function() {
6681
- // Use Late Binding here to solve the circular dependency.
6682
- return Set(isKeyed(this) ? this.valueSeq() : this);
6683
- },
6684
-
6685
- toSetSeq: function() {
6686
- return new ToSetSequence(this);
6687
- },
6688
-
6689
- toSeq: function() {
6690
- return isIndexed(this) ? this.toIndexedSeq() :
6691
- isKeyed(this) ? this.toKeyedSeq() :
6692
- this.toSetSeq();
6693
- },
6694
-
6695
- toStack: function() {
6696
- // Use Late Binding here to solve the circular dependency.
6697
- return Stack(isKeyed(this) ? this.valueSeq() : this);
6698
- },
6699
-
6700
- toList: function() {
6701
- // Use Late Binding here to solve the circular dependency.
6702
- return List(isKeyed(this) ? this.valueSeq() : this);
6703
- },
6704
-
6705
-
6706
- // ### Common JavaScript methods and properties
6707
-
6708
- toString: function() {
6709
- return '[Iterable]';
6710
- },
6711
-
6712
- __toString: function(head, tail) {
6713
- if (this.size === 0) {
6714
- return head + tail;
6715
- }
6716
- return head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail;
6717
- },
6718
-
6719
-
6720
- // ### ES6 Collection methods (ES6 Array and Map)
6721
-
6722
- concat: function() {var values = SLICE$0.call(arguments, 0);
6723
- return reify(this, concatFactory(this, values));
6724
- },
6725
-
6726
- includes: function(searchValue) {
6727
- return this.some(function(value ) {return is(value, searchValue)});
6728
- },
6729
-
6730
- entries: function() {
6731
- return this.__iterator(ITERATE_ENTRIES);
6732
- },
6733
-
6734
- every: function(predicate, context) {
6735
- assertNotInfinite(this.size);
6736
- var returnValue = true;
6737
- this.__iterate(function(v, k, c) {
6738
- if (!predicate.call(context, v, k, c)) {
6739
- returnValue = false;
6740
- return false;
6741
- }
6742
- });
6743
- return returnValue;
6744
- },
6745
-
6746
- filter: function(predicate, context) {
6747
- return reify(this, filterFactory(this, predicate, context, true));
6748
- },
6749
-
6750
- find: function(predicate, context, notSetValue) {
6751
- var entry = this.findEntry(predicate, context);
6752
- return entry ? entry[1] : notSetValue;
6753
- },
6754
-
6755
- forEach: function(sideEffect, context) {
6756
- assertNotInfinite(this.size);
6757
- return this.__iterate(context ? sideEffect.bind(context) : sideEffect);
6758
- },
6759
-
6760
- join: function(separator) {
6761
- assertNotInfinite(this.size);
6762
- separator = separator !== undefined ? '' + separator : ',';
6763
- var joined = '';
6764
- var isFirst = true;
6765
- this.__iterate(function(v ) {
6766
- isFirst ? (isFirst = false) : (joined += separator);
6767
- joined += v !== null && v !== undefined ? v.toString() : '';
6768
- });
6769
- return joined;
6770
- },
6771
-
6772
- keys: function() {
6773
- return this.__iterator(ITERATE_KEYS);
6774
- },
6775
-
6776
- map: function(mapper, context) {
6777
- return reify(this, mapFactory(this, mapper, context));
6778
- },
6779
-
6780
- reduce: function(reducer, initialReduction, context) {
6781
- assertNotInfinite(this.size);
6782
- var reduction;
6783
- var useFirst;
6784
- if (arguments.length < 2) {
6785
- useFirst = true;
6786
- } else {
6787
- reduction = initialReduction;
6788
- }
6789
- this.__iterate(function(v, k, c) {
6790
- if (useFirst) {
6791
- useFirst = false;
6792
- reduction = v;
6793
- } else {
6794
- reduction = reducer.call(context, reduction, v, k, c);
6795
- }
6796
- });
6797
- return reduction;
6798
- },
6799
-
6800
- reduceRight: function(reducer, initialReduction, context) {
6801
- var reversed = this.toKeyedSeq().reverse();
6802
- return reversed.reduce.apply(reversed, arguments);
6803
- },
6804
-
6805
- reverse: function() {
6806
- return reify(this, reverseFactory(this, true));
6807
- },
6808
-
6809
- slice: function(begin, end) {
6810
- return reify(this, sliceFactory(this, begin, end, true));
6811
- },
6812
-
6813
- some: function(predicate, context) {
6814
- return !this.every(not(predicate), context);
6815
- },
6816
-
6817
- sort: function(comparator) {
6818
- return reify(this, sortFactory(this, comparator));
6819
- },
6820
-
6821
- values: function() {
6822
- return this.__iterator(ITERATE_VALUES);
6823
- },
6824
-
6825
-
6826
- // ### More sequential methods
6827
-
6828
- butLast: function() {
6829
- return this.slice(0, -1);
6830
- },
6831
-
6832
- isEmpty: function() {
6833
- return this.size !== undefined ? this.size === 0 : !this.some(function() {return true});
6834
- },
6835
-
6836
- count: function(predicate, context) {
6837
- return ensureSize(
6838
- predicate ? this.toSeq().filter(predicate, context) : this
6839
- );
6840
- },
6841
-
6842
- countBy: function(grouper, context) {
6843
- return countByFactory(this, grouper, context);
6844
- },
6845
-
6846
- equals: function(other) {
6847
- return deepEqual(this, other);
6848
- },
6849
-
6850
- entrySeq: function() {
6851
- var iterable = this;
6852
- if (iterable._cache) {
6853
- // We cache as an entries array, so we can just return the cache!
6854
- return new ArraySeq(iterable._cache);
6855
- }
6856
- var entriesSequence = iterable.toSeq().map(entryMapper).toIndexedSeq();
6857
- entriesSequence.fromEntrySeq = function() {return iterable.toSeq()};
6858
- return entriesSequence;
6859
- },
6860
-
6861
- filterNot: function(predicate, context) {
6862
- return this.filter(not(predicate), context);
6863
- },
6864
-
6865
- findEntry: function(predicate, context, notSetValue) {
6866
- var found = notSetValue;
6867
- this.__iterate(function(v, k, c) {
6868
- if (predicate.call(context, v, k, c)) {
6869
- found = [k, v];
6870
- return false;
6871
- }
6872
- });
6873
- return found;
6874
- },
6875
-
6876
- findKey: function(predicate, context) {
6877
- var entry = this.findEntry(predicate, context);
6878
- return entry && entry[0];
6879
- },
6880
-
6881
- findLast: function(predicate, context, notSetValue) {
6882
- return this.toKeyedSeq().reverse().find(predicate, context, notSetValue);
6883
- },
6884
-
6885
- findLastEntry: function(predicate, context, notSetValue) {
6886
- return this.toKeyedSeq().reverse().findEntry(predicate, context, notSetValue);
6887
- },
6888
-
6889
- findLastKey: function(predicate, context) {
6890
- return this.toKeyedSeq().reverse().findKey(predicate, context);
6891
- },
6892
-
6893
- first: function() {
6894
- return this.find(returnTrue);
6895
- },
6896
-
6897
- flatMap: function(mapper, context) {
6898
- return reify(this, flatMapFactory(this, mapper, context));
6899
- },
6900
-
6901
- flatten: function(depth) {
6902
- return reify(this, flattenFactory(this, depth, true));
6903
- },
6904
-
6905
- fromEntrySeq: function() {
6906
- return new FromEntriesSequence(this);
6907
- },
6908
-
6909
- get: function(searchKey, notSetValue) {
6910
- return this.find(function(_, key) {return is(key, searchKey)}, undefined, notSetValue);
6911
- },
6912
-
6913
- getIn: function(searchKeyPath, notSetValue) {
6914
- var nested = this;
6915
- // Note: in an ES6 environment, we would prefer:
6916
- // for (var key of searchKeyPath) {
6917
- var iter = forceIterator(searchKeyPath);
6918
- var step;
6919
- while (!(step = iter.next()).done) {
6920
- var key = step.value;
6921
- nested = nested && nested.get ? nested.get(key, NOT_SET) : NOT_SET;
6922
- if (nested === NOT_SET) {
6923
- return notSetValue;
6924
- }
6925
- }
6926
- return nested;
6927
- },
6928
-
6929
- groupBy: function(grouper, context) {
6930
- return groupByFactory(this, grouper, context);
6931
- },
6932
-
6933
- has: function(searchKey) {
6934
- return this.get(searchKey, NOT_SET) !== NOT_SET;
6935
- },
6936
-
6937
- hasIn: function(searchKeyPath) {
6938
- return this.getIn(searchKeyPath, NOT_SET) !== NOT_SET;
6939
- },
6940
-
6941
- isSubset: function(iter) {
6942
- iter = typeof iter.includes === 'function' ? iter : Iterable(iter);
6943
- return this.every(function(value ) {return iter.includes(value)});
6944
- },
6945
-
6946
- isSuperset: function(iter) {
6947
- iter = typeof iter.isSubset === 'function' ? iter : Iterable(iter);
6948
- return iter.isSubset(this);
6949
- },
6950
-
6951
- keyOf: function(searchValue) {
6952
- return this.findKey(function(value ) {return is(value, searchValue)});
6953
- },
6954
-
6955
- keySeq: function() {
6956
- return this.toSeq().map(keyMapper).toIndexedSeq();
6957
- },
6958
-
6959
- last: function() {
6960
- return this.toSeq().reverse().first();
6961
- },
6962
-
6963
- lastKeyOf: function(searchValue) {
6964
- return this.toKeyedSeq().reverse().keyOf(searchValue);
6965
- },
6966
-
6967
- max: function(comparator) {
6968
- return maxFactory(this, comparator);
6969
- },
6970
-
6971
- maxBy: function(mapper, comparator) {
6972
- return maxFactory(this, comparator, mapper);
6973
- },
6974
-
6975
- min: function(comparator) {
6976
- return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator);
6977
- },
6978
-
6979
- minBy: function(mapper, comparator) {
6980
- return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator, mapper);
6981
- },
6982
-
6983
- rest: function() {
6984
- return this.slice(1);
6985
- },
6986
-
6987
- skip: function(amount) {
6988
- return this.slice(Math.max(0, amount));
6989
- },
6990
-
6991
- skipLast: function(amount) {
6992
- return reify(this, this.toSeq().reverse().skip(amount).reverse());
6993
- },
6994
-
6995
- skipWhile: function(predicate, context) {
6996
- return reify(this, skipWhileFactory(this, predicate, context, true));
6997
- },
6998
-
6999
- skipUntil: function(predicate, context) {
7000
- return this.skipWhile(not(predicate), context);
7001
- },
7002
-
7003
- sortBy: function(mapper, comparator) {
7004
- return reify(this, sortFactory(this, comparator, mapper));
7005
- },
7006
-
7007
- take: function(amount) {
7008
- return this.slice(0, Math.max(0, amount));
7009
- },
7010
-
7011
- takeLast: function(amount) {
7012
- return reify(this, this.toSeq().reverse().take(amount).reverse());
7013
- },
7014
-
7015
- takeWhile: function(predicate, context) {
7016
- return reify(this, takeWhileFactory(this, predicate, context));
7017
- },
7018
-
7019
- takeUntil: function(predicate, context) {
7020
- return this.takeWhile(not(predicate), context);
7021
- },
7022
-
7023
- valueSeq: function() {
7024
- return this.toIndexedSeq();
7025
- },
7026
-
7027
-
7028
- // ### Hashable Object
7029
-
7030
- hashCode: function() {
7031
- return this.__hash || (this.__hash = hashIterable(this));
7032
- }
7033
-
7034
-
7035
- // ### Internal
7036
-
7037
- // abstract __iterate(fn, reverse)
7038
-
7039
- // abstract __iterator(type, reverse)
7040
- });
7041
-
7042
- // var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
7043
- // var IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
7044
- // var IS_INDEXED_SENTINEL = '@@__IMMUTABLE_INDEXED__@@';
7045
- // var IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';
7046
-
7047
- var IterablePrototype = Iterable.prototype;
7048
- IterablePrototype[IS_ITERABLE_SENTINEL] = true;
7049
- IterablePrototype[ITERATOR_SYMBOL] = IterablePrototype.values;
7050
- IterablePrototype.__toJS = IterablePrototype.toArray;
7051
- IterablePrototype.__toStringMapper = quoteString;
7052
- IterablePrototype.inspect =
7053
- IterablePrototype.toSource = function() { return this.toString(); };
7054
- IterablePrototype.chain = IterablePrototype.flatMap;
7055
- IterablePrototype.contains = IterablePrototype.includes;
7056
-
7057
- mixin(KeyedIterable, {
7058
-
7059
- // ### More sequential methods
7060
-
7061
- flip: function() {
7062
- return reify(this, flipFactory(this));
7063
- },
7064
-
7065
- mapEntries: function(mapper, context) {var this$0 = this;
7066
- var iterations = 0;
7067
- return reify(this,
7068
- this.toSeq().map(
7069
- function(v, k) {return mapper.call(context, [k, v], iterations++, this$0)}
7070
- ).fromEntrySeq()
7071
- );
7072
- },
7073
-
7074
- mapKeys: function(mapper, context) {var this$0 = this;
7075
- return reify(this,
7076
- this.toSeq().flip().map(
7077
- function(k, v) {return mapper.call(context, k, v, this$0)}
7078
- ).flip()
7079
- );
7080
- }
7081
-
7082
- });
7083
-
7084
- var KeyedIterablePrototype = KeyedIterable.prototype;
7085
- KeyedIterablePrototype[IS_KEYED_SENTINEL] = true;
7086
- KeyedIterablePrototype[ITERATOR_SYMBOL] = IterablePrototype.entries;
7087
- KeyedIterablePrototype.__toJS = IterablePrototype.toObject;
7088
- KeyedIterablePrototype.__toStringMapper = function(v, k) {return JSON.stringify(k) + ': ' + quoteString(v)};
7089
-
7090
-
7091
-
7092
- mixin(IndexedIterable, {
7093
-
7094
- // ### Conversion to other types
7095
-
7096
- toKeyedSeq: function() {
7097
- return new ToKeyedSequence(this, false);
7098
- },
7099
-
7100
-
7101
- // ### ES6 Collection methods (ES6 Array and Map)
7102
-
7103
- filter: function(predicate, context) {
7104
- return reify(this, filterFactory(this, predicate, context, false));
7105
- },
7106
-
7107
- findIndex: function(predicate, context) {
7108
- var entry = this.findEntry(predicate, context);
7109
- return entry ? entry[0] : -1;
7110
- },
7111
-
7112
- indexOf: function(searchValue) {
7113
- var key = this.keyOf(searchValue);
7114
- return key === undefined ? -1 : key;
7115
- },
7116
-
7117
- lastIndexOf: function(searchValue) {
7118
- var key = this.lastKeyOf(searchValue);
7119
- return key === undefined ? -1 : key;
7120
- },
7121
-
7122
- reverse: function() {
7123
- return reify(this, reverseFactory(this, false));
7124
- },
7125
-
7126
- slice: function(begin, end) {
7127
- return reify(this, sliceFactory(this, begin, end, false));
7128
- },
7129
-
7130
- splice: function(index, removeNum /*, ...values*/) {
7131
- var numArgs = arguments.length;
7132
- removeNum = Math.max(removeNum | 0, 0);
7133
- if (numArgs === 0 || (numArgs === 2 && !removeNum)) {
7134
- return this;
7135
- }
7136
- // If index is negative, it should resolve relative to the size of the
7137
- // collection. However size may be expensive to compute if not cached, so
7138
- // only call count() if the number is in fact negative.
7139
- index = resolveBegin(index, index < 0 ? this.count() : this.size);
7140
- var spliced = this.slice(0, index);
7141
- return reify(
7142
- this,
7143
- numArgs === 1 ?
7144
- spliced :
7145
- spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum))
7146
- );
7147
- },
7148
-
7149
-
7150
- // ### More collection methods
7151
-
7152
- findLastIndex: function(predicate, context) {
7153
- var entry = this.findLastEntry(predicate, context);
7154
- return entry ? entry[0] : -1;
7155
- },
7156
-
7157
- first: function() {
7158
- return this.get(0);
7159
- },
7160
-
7161
- flatten: function(depth) {
7162
- return reify(this, flattenFactory(this, depth, false));
7163
- },
7164
-
7165
- get: function(index, notSetValue) {
7166
- index = wrapIndex(this, index);
7167
- return (index < 0 || (this.size === Infinity ||
7168
- (this.size !== undefined && index > this.size))) ?
7169
- notSetValue :
7170
- this.find(function(_, key) {return key === index}, undefined, notSetValue);
7171
- },
7172
-
7173
- has: function(index) {
7174
- index = wrapIndex(this, index);
7175
- return index >= 0 && (this.size !== undefined ?
7176
- this.size === Infinity || index < this.size :
7177
- this.indexOf(index) !== -1
7178
- );
7179
- },
7180
-
7181
- interpose: function(separator) {
7182
- return reify(this, interposeFactory(this, separator));
7183
- },
7184
-
7185
- interleave: function(/*...iterables*/) {
7186
- var iterables = [this].concat(arrCopy(arguments));
7187
- var zipped = zipWithFactory(this.toSeq(), IndexedSeq.of, iterables);
7188
- var interleaved = zipped.flatten(true);
7189
- if (zipped.size) {
7190
- interleaved.size = zipped.size * iterables.length;
7191
- }
7192
- return reify(this, interleaved);
7193
- },
7194
-
7195
- keySeq: function() {
7196
- return Range(0, this.size);
7197
- },
7198
-
7199
- last: function() {
7200
- return this.get(-1);
7201
- },
7202
-
7203
- skipWhile: function(predicate, context) {
7204
- return reify(this, skipWhileFactory(this, predicate, context, false));
7205
- },
7206
-
7207
- zip: function(/*, ...iterables */) {
7208
- var iterables = [this].concat(arrCopy(arguments));
7209
- return reify(this, zipWithFactory(this, defaultZipper, iterables));
7210
- },
7211
-
7212
- zipWith: function(zipper/*, ...iterables */) {
7213
- var iterables = arrCopy(arguments);
7214
- iterables[0] = this;
7215
- return reify(this, zipWithFactory(this, zipper, iterables));
7216
- }
7217
-
7218
- });
7219
-
7220
- IndexedIterable.prototype[IS_INDEXED_SENTINEL] = true;
7221
- IndexedIterable.prototype[IS_ORDERED_SENTINEL] = true;
7222
-
7223
-
7224
-
7225
- mixin(SetIterable, {
7226
-
7227
- // ### ES6 Collection methods (ES6 Array and Map)
7228
-
7229
- get: function(value, notSetValue) {
7230
- return this.has(value) ? value : notSetValue;
7231
- },
7232
-
7233
- includes: function(value) {
7234
- return this.has(value);
7235
- },
7236
-
7237
-
7238
- // ### More sequential methods
7239
-
7240
- keySeq: function() {
7241
- return this.valueSeq();
7242
- }
7243
-
7244
- });
7245
-
7246
- SetIterable.prototype.has = IterablePrototype.includes;
7247
- SetIterable.prototype.contains = SetIterable.prototype.includes;
7248
-
7249
-
7250
- // Mixin subclasses
7251
-
7252
- mixin(KeyedSeq, KeyedIterable.prototype);
7253
- mixin(IndexedSeq, IndexedIterable.prototype);
7254
- mixin(SetSeq, SetIterable.prototype);
7255
-
7256
- mixin(KeyedCollection, KeyedIterable.prototype);
7257
- mixin(IndexedCollection, IndexedIterable.prototype);
7258
- mixin(SetCollection, SetIterable.prototype);
7259
-
7260
-
7261
- // #pragma Helper functions
7262
-
7263
- function keyMapper(v, k) {
7264
- return k;
7265
- }
7266
-
7267
- function entryMapper(v, k) {
7268
- return [k, v];
7269
- }
7270
-
7271
- function not(predicate) {
7272
- return function() {
7273
- return !predicate.apply(this, arguments);
7274
- }
7275
- }
7276
-
7277
- function neg(predicate) {
7278
- return function() {
7279
- return -predicate.apply(this, arguments);
7280
- }
7281
- }
7282
-
7283
- function quoteString(value) {
7284
- return typeof value === 'string' ? JSON.stringify(value) : String(value);
7285
- }
7286
-
7287
- function defaultZipper() {
7288
- return arrCopy(arguments);
7289
- }
7290
-
7291
- function defaultNegComparator(a, b) {
7292
- return a < b ? 1 : a > b ? -1 : 0;
7293
- }
7294
-
7295
- function hashIterable(iterable) {
7296
- if (iterable.size === Infinity) {
7297
- return 0;
7298
- }
7299
- var ordered = isOrdered(iterable);
7300
- var keyed = isKeyed(iterable);
7301
- var h = ordered ? 1 : 0;
7302
- var size = iterable.__iterate(
7303
- keyed ?
7304
- ordered ?
7305
- function(v, k) { h = 31 * h + hashMerge(hash(v), hash(k)) | 0; } :
7306
- function(v, k) { h = h + hashMerge(hash(v), hash(k)) | 0; } :
7307
- ordered ?
7308
- function(v ) { h = 31 * h + hash(v) | 0; } :
7309
- function(v ) { h = h + hash(v) | 0; }
7310
- );
7311
- return murmurHashOfSize(size, h);
7312
- }
7313
-
7314
- function murmurHashOfSize(size, h) {
7315
- h = imul(h, 0xCC9E2D51);
7316
- h = imul(h << 15 | h >>> -15, 0x1B873593);
7317
- h = imul(h << 13 | h >>> -13, 5);
7318
- h = (h + 0xE6546B64 | 0) ^ size;
7319
- h = imul(h ^ h >>> 16, 0x85EBCA6B);
7320
- h = imul(h ^ h >>> 13, 0xC2B2AE35);
7321
- h = smi(h ^ h >>> 16);
7322
- return h;
7323
- }
7324
-
7325
- function hashMerge(a, b) {
7326
- return a ^ b + 0x9E3779B9 + (a << 6) + (a >> 2) | 0; // int
7327
- }
7328
-
7329
- var Immutable = {
7330
-
7331
- Iterable: Iterable,
7332
-
7333
- Seq: Seq,
7334
- Collection: Collection,
7335
- Map: Map,
7336
- OrderedMap: OrderedMap,
7337
- List: List,
7338
- Stack: Stack,
7339
- Set: Set,
7340
- OrderedSet: OrderedSet,
7341
-
7342
- Record: Record,
7343
- Range: Range,
7344
- Repeat: Repeat,
7345
-
7346
- is: is,
7347
- fromJS: fromJS
7348
-
7349
- };
7350
-
7351
- return Immutable;
7352
-
7353
- }));
7354
-
7355
- /***/ }),
7356
-
7357
- /***/ "./node_modules/invariant/browser.js":
7358
- /*!*******************************************!*\
7359
- !*** ./node_modules/invariant/browser.js ***!
7360
- \*******************************************/
7361
- /*! no static exports found */
7362
- /***/ (function(module, exports, __webpack_require__) {
7363
-
7364
- "use strict";
7365
- /**
7366
- * Copyright (c) 2013-present, Facebook, Inc.
7367
- *
7368
- * This source code is licensed under the MIT license found in the
7369
- * LICENSE file in the root directory of this source tree.
7370
- */
7371
-
7372
-
7373
-
7374
- /**
7375
- * Use invariant() to assert state which your program assumes to be true.
7376
- *
7377
- * Provide sprintf-style format (only %s is supported) and arguments
7378
- * to provide information about what broke and what you were
7379
- * expecting.
7380
- *
7381
- * The invariant message will be stripped in production, but the invariant
7382
- * will remain to ensure logic does not differ in production.
7383
- */
7384
-
7385
- var invariant = function(condition, format, a, b, c, d, e, f) {
7386
- if (true) {
7387
- if (format === undefined) {
7388
- throw new Error('invariant requires an error message argument');
7389
- }
7390
- }
7391
-
7392
- if (!condition) {
7393
- var error;
7394
- if (format === undefined) {
7395
- error = new Error(
7396
- 'Minified exception occurred; use the non-minified dev environment ' +
7397
- 'for the full error message and additional helpful warnings.'
7398
- );
7399
- } else {
7400
- var args = [a, b, c, d, e, f];
7401
- var argIndex = 0;
7402
- error = new Error(
7403
- format.replace(/%s/g, function() { return args[argIndex++]; })
7404
- );
7405
- error.name = 'Invariant Violation';
7406
- }
7407
-
7408
- error.framesToPop = 1; // we don't care about invariant's own frame
7409
- throw error;
7410
- }
7411
- };
7412
-
7413
- module.exports = invariant;
7414
-
7415
-
7416
- /***/ }),
7417
-
7418
- /***/ "./node_modules/lodash-es/_Symbol.js":
7419
- /*!*******************************************!*\
7420
- !*** ./node_modules/lodash-es/_Symbol.js ***!
7421
- \*******************************************/
7422
- /*! exports provided: default */
7423
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7424
-
7425
- "use strict";
7426
- __webpack_require__.r(__webpack_exports__);
7427
- /* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_root.js */ "./node_modules/lodash-es/_root.js");
7428
-
7429
-
7430
- /** Built-in value references. */
7431
- var Symbol = _root_js__WEBPACK_IMPORTED_MODULE_0__["default"].Symbol;
7432
-
7433
- /* harmony default export */ __webpack_exports__["default"] = (Symbol);
7434
-
7435
-
7436
- /***/ }),
7437
-
7438
- /***/ "./node_modules/lodash-es/_baseGetTag.js":
7439
- /*!***********************************************!*\
7440
- !*** ./node_modules/lodash-es/_baseGetTag.js ***!
7441
- \***********************************************/
7442
- /*! exports provided: default */
7443
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7444
-
7445
- "use strict";
7446
- __webpack_require__.r(__webpack_exports__);
7447
- /* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_Symbol.js */ "./node_modules/lodash-es/_Symbol.js");
7448
- /* harmony import */ var _getRawTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_getRawTag.js */ "./node_modules/lodash-es/_getRawTag.js");
7449
- /* harmony import */ var _objectToString_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_objectToString.js */ "./node_modules/lodash-es/_objectToString.js");
7450
-
7451
-
7452
-
7453
-
7454
- /** `Object#toString` result references. */
7455
- var nullTag = '[object Null]',
7456
- undefinedTag = '[object Undefined]';
7457
-
7458
- /** Built-in value references. */
7459
- var symToStringTag = _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"].toStringTag : undefined;
7460
-
7461
- /**
7462
- * The base implementation of `getTag` without fallbacks for buggy environments.
7463
- *
7464
- * @private
7465
- * @param {*} value The value to query.
7466
- * @returns {string} Returns the `toStringTag`.
7467
- */
7468
- function baseGetTag(value) {
7469
- if (value == null) {
7470
- return value === undefined ? undefinedTag : nullTag;
7471
- }
7472
- return (symToStringTag && symToStringTag in Object(value))
7473
- ? Object(_getRawTag_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value)
7474
- : Object(_objectToString_js__WEBPACK_IMPORTED_MODULE_2__["default"])(value);
7475
- }
7476
-
7477
- /* harmony default export */ __webpack_exports__["default"] = (baseGetTag);
7478
-
7479
-
7480
- /***/ }),
7481
-
7482
- /***/ "./node_modules/lodash-es/_freeGlobal.js":
7483
- /*!***********************************************!*\
7484
- !*** ./node_modules/lodash-es/_freeGlobal.js ***!
7485
- \***********************************************/
7486
- /*! exports provided: default */
7487
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7488
-
7489
- "use strict";
7490
- __webpack_require__.r(__webpack_exports__);
7491
- /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
7492
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
7493
-
7494
- /* harmony default export */ __webpack_exports__["default"] = (freeGlobal);
7495
-
7496
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
7497
-
7498
- /***/ }),
7499
-
7500
- /***/ "./node_modules/lodash-es/_getPrototype.js":
7501
- /*!*************************************************!*\
7502
- !*** ./node_modules/lodash-es/_getPrototype.js ***!
7503
- \*************************************************/
7504
- /*! exports provided: default */
7505
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7506
-
7507
- "use strict";
7508
- __webpack_require__.r(__webpack_exports__);
7509
- /* harmony import */ var _overArg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_overArg.js */ "./node_modules/lodash-es/_overArg.js");
7510
-
7511
-
7512
- /** Built-in value references. */
7513
- var getPrototype = Object(_overArg_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object.getPrototypeOf, Object);
7514
-
7515
- /* harmony default export */ __webpack_exports__["default"] = (getPrototype);
7516
-
7517
-
7518
- /***/ }),
7519
-
7520
- /***/ "./node_modules/lodash-es/_getRawTag.js":
7521
- /*!**********************************************!*\
7522
- !*** ./node_modules/lodash-es/_getRawTag.js ***!
7523
- \**********************************************/
7524
- /*! exports provided: default */
7525
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7526
-
7527
- "use strict";
7528
- __webpack_require__.r(__webpack_exports__);
7529
- /* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_Symbol.js */ "./node_modules/lodash-es/_Symbol.js");
7530
-
7531
-
7532
- /** Used for built-in method references. */
7533
- var objectProto = Object.prototype;
7534
-
7535
- /** Used to check objects for own properties. */
7536
- var hasOwnProperty = objectProto.hasOwnProperty;
7537
-
7538
- /**
7539
- * Used to resolve the
7540
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
7541
- * of values.
7542
- */
7543
- var nativeObjectToString = objectProto.toString;
7544
-
7545
- /** Built-in value references. */
7546
- var symToStringTag = _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? _Symbol_js__WEBPACK_IMPORTED_MODULE_0__["default"].toStringTag : undefined;
7547
-
7548
- /**
7549
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
7550
- *
7551
- * @private
7552
- * @param {*} value The value to query.
7553
- * @returns {string} Returns the raw `toStringTag`.
7554
- */
7555
- function getRawTag(value) {
7556
- var isOwn = hasOwnProperty.call(value, symToStringTag),
7557
- tag = value[symToStringTag];
7558
-
7559
- try {
7560
- value[symToStringTag] = undefined;
7561
- var unmasked = true;
7562
- } catch (e) {}
7563
-
7564
- var result = nativeObjectToString.call(value);
7565
- if (unmasked) {
7566
- if (isOwn) {
7567
- value[symToStringTag] = tag;
7568
- } else {
7569
- delete value[symToStringTag];
7570
- }
7571
- }
7572
- return result;
7573
- }
7574
-
7575
- /* harmony default export */ __webpack_exports__["default"] = (getRawTag);
7576
-
7577
-
7578
- /***/ }),
7579
-
7580
- /***/ "./node_modules/lodash-es/_objectToString.js":
7581
- /*!***************************************************!*\
7582
- !*** ./node_modules/lodash-es/_objectToString.js ***!
7583
- \***************************************************/
7584
- /*! exports provided: default */
7585
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7586
-
7587
- "use strict";
7588
- __webpack_require__.r(__webpack_exports__);
7589
- /** Used for built-in method references. */
7590
- var objectProto = Object.prototype;
7591
-
7592
- /**
7593
- * Used to resolve the
7594
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
7595
- * of values.
7596
- */
7597
- var nativeObjectToString = objectProto.toString;
7598
-
7599
- /**
7600
- * Converts `value` to a string using `Object.prototype.toString`.
7601
- *
7602
- * @private
7603
- * @param {*} value The value to convert.
7604
- * @returns {string} Returns the converted string.
7605
- */
7606
- function objectToString(value) {
7607
- return nativeObjectToString.call(value);
7608
- }
7609
-
7610
- /* harmony default export */ __webpack_exports__["default"] = (objectToString);
7611
-
7612
-
7613
- /***/ }),
7614
-
7615
- /***/ "./node_modules/lodash-es/_overArg.js":
7616
- /*!********************************************!*\
7617
- !*** ./node_modules/lodash-es/_overArg.js ***!
7618
- \********************************************/
7619
- /*! exports provided: default */
7620
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7621
-
7622
- "use strict";
7623
- __webpack_require__.r(__webpack_exports__);
7624
- /**
7625
- * Creates a unary function that invokes `func` with its argument transformed.
7626
- *
7627
- * @private
7628
- * @param {Function} func The function to wrap.
7629
- * @param {Function} transform The argument transform.
7630
- * @returns {Function} Returns the new function.
7631
- */
7632
- function overArg(func, transform) {
7633
- return function(arg) {
7634
- return func(transform(arg));
7635
- };
7636
- }
7637
-
7638
- /* harmony default export */ __webpack_exports__["default"] = (overArg);
7639
-
7640
-
7641
- /***/ }),
7642
-
7643
- /***/ "./node_modules/lodash-es/_root.js":
7644
- /*!*****************************************!*\
7645
- !*** ./node_modules/lodash-es/_root.js ***!
7646
- \*****************************************/
7647
- /*! exports provided: default */
7648
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7649
-
7650
- "use strict";
7651
- __webpack_require__.r(__webpack_exports__);
7652
- /* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_freeGlobal.js */ "./node_modules/lodash-es/_freeGlobal.js");
7653
-
7654
-
7655
- /** Detect free variable `self`. */
7656
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
7657
-
7658
- /** Used as a reference to the global object. */
7659
- var root = _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__["default"] || freeSelf || Function('return this')();
7660
-
7661
- /* harmony default export */ __webpack_exports__["default"] = (root);
7662
-
7663
-
7664
- /***/ }),
7665
-
7666
- /***/ "./node_modules/lodash-es/isObjectLike.js":
7667
- /*!************************************************!*\
7668
- !*** ./node_modules/lodash-es/isObjectLike.js ***!
7669
- \************************************************/
7670
- /*! exports provided: default */
7671
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7672
-
7673
- "use strict";
7674
- __webpack_require__.r(__webpack_exports__);
7675
- /**
7676
- * Checks if `value` is object-like. A value is object-like if it's not `null`
7677
- * and has a `typeof` result of "object".
7678
- *
7679
- * @static
7680
- * @memberOf _
7681
- * @since 4.0.0
7682
- * @category Lang
7683
- * @param {*} value The value to check.
7684
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
7685
- * @example
7686
- *
7687
- * _.isObjectLike({});
7688
- * // => true
7689
- *
7690
- * _.isObjectLike([1, 2, 3]);
7691
- * // => true
7692
- *
7693
- * _.isObjectLike(_.noop);
7694
- * // => false
7695
- *
7696
- * _.isObjectLike(null);
7697
- * // => false
7698
- */
7699
- function isObjectLike(value) {
7700
- return value != null && typeof value == 'object';
7701
- }
7702
-
7703
- /* harmony default export */ __webpack_exports__["default"] = (isObjectLike);
7704
-
7705
-
7706
- /***/ }),
7707
-
7708
- /***/ "./node_modules/lodash-es/isPlainObject.js":
7709
- /*!*************************************************!*\
7710
- !*** ./node_modules/lodash-es/isPlainObject.js ***!
7711
- \*************************************************/
7712
- /*! exports provided: default */
7713
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7714
-
7715
- "use strict";
7716
- __webpack_require__.r(__webpack_exports__);
7717
- /* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_baseGetTag.js */ "./node_modules/lodash-es/_baseGetTag.js");
7718
- /* harmony import */ var _getPrototype_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_getPrototype.js */ "./node_modules/lodash-es/_getPrototype.js");
7719
- /* harmony import */ var _isObjectLike_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isObjectLike.js */ "./node_modules/lodash-es/isObjectLike.js");
7720
-
7721
-
7722
-
7723
-
7724
- /** `Object#toString` result references. */
7725
- var objectTag = '[object Object]';
7726
-
7727
- /** Used for built-in method references. */
7728
- var funcProto = Function.prototype,
7729
- objectProto = Object.prototype;
7730
-
7731
- /** Used to resolve the decompiled source of functions. */
7732
- var funcToString = funcProto.toString;
7733
-
7734
- /** Used to check objects for own properties. */
7735
- var hasOwnProperty = objectProto.hasOwnProperty;
7736
-
7737
- /** Used to infer the `Object` constructor. */
7738
- var objectCtorString = funcToString.call(Object);
7739
-
7740
- /**
7741
- * Checks if `value` is a plain object, that is, an object created by the
7742
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
7743
- *
7744
- * @static
7745
- * @memberOf _
7746
- * @since 0.8.0
7747
- * @category Lang
7748
- * @param {*} value The value to check.
7749
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
7750
- * @example
7751
- *
7752
- * function Foo() {
7753
- * this.a = 1;
7754
- * }
7755
- *
7756
- * _.isPlainObject(new Foo);
7757
- * // => false
7758
- *
7759
- * _.isPlainObject([1, 2, 3]);
7760
- * // => false
7761
- *
7762
- * _.isPlainObject({ 'x': 0, 'y': 0 });
7763
- * // => true
7764
- *
7765
- * _.isPlainObject(Object.create(null));
7766
- * // => true
7767
- */
7768
- function isPlainObject(value) {
7769
- if (!Object(_isObjectLike_js__WEBPACK_IMPORTED_MODULE_2__["default"])(value) || Object(_baseGetTag_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) != objectTag) {
7770
- return false;
7771
- }
7772
- var proto = Object(_getPrototype_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value);
7773
- if (proto === null) {
7774
- return true;
7775
- }
7776
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
7777
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
7778
- funcToString.call(Ctor) == objectCtorString;
7779
- }
7780
-
7781
- /* harmony default export */ __webpack_exports__["default"] = (isPlainObject);
7782
-
7783
-
7784
- /***/ }),
7785
-
7786
- /***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$":
7787
- /*!**************************************************!*\
7788
- !*** ./node_modules/moment/locale sync ^\.\/.*$ ***!
7789
- \**************************************************/
7790
- /*! no static exports found */
7791
- /***/ (function(module, exports, __webpack_require__) {
7792
-
7793
- var map = {
7794
- "./af": "./node_modules/moment/locale/af.js",
7795
- "./af.js": "./node_modules/moment/locale/af.js",
7796
- "./ar": "./node_modules/moment/locale/ar.js",
7797
- "./ar-dz": "./node_modules/moment/locale/ar-dz.js",
7798
- "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",
7799
- "./ar-kw": "./node_modules/moment/locale/ar-kw.js",
7800
- "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",
7801
- "./ar-ly": "./node_modules/moment/locale/ar-ly.js",
7802
- "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",
7803
- "./ar-ma": "./node_modules/moment/locale/ar-ma.js",
7804
- "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",
7805
- "./ar-sa": "./node_modules/moment/locale/ar-sa.js",
7806
- "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",
7807
- "./ar-tn": "./node_modules/moment/locale/ar-tn.js",
7808
- "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",
7809
- "./ar.js": "./node_modules/moment/locale/ar.js",
7810
- "./az": "./node_modules/moment/locale/az.js",
7811
- "./az.js": "./node_modules/moment/locale/az.js",
7812
- "./be": "./node_modules/moment/locale/be.js",
7813
- "./be.js": "./node_modules/moment/locale/be.js",
7814
- "./bg": "./node_modules/moment/locale/bg.js",
7815
- "./bg.js": "./node_modules/moment/locale/bg.js",
7816
- "./bm": "./node_modules/moment/locale/bm.js",
7817
- "./bm.js": "./node_modules/moment/locale/bm.js",
7818
- "./bn": "./node_modules/moment/locale/bn.js",
7819
- "./bn.js": "./node_modules/moment/locale/bn.js",
7820
- "./bo": "./node_modules/moment/locale/bo.js",
7821
- "./bo.js": "./node_modules/moment/locale/bo.js",
7822
- "./br": "./node_modules/moment/locale/br.js",
7823
- "./br.js": "./node_modules/moment/locale/br.js",
7824
- "./bs": "./node_modules/moment/locale/bs.js",
7825
- "./bs.js": "./node_modules/moment/locale/bs.js",
7826
- "./ca": "./node_modules/moment/locale/ca.js",
7827
- "./ca.js": "./node_modules/moment/locale/ca.js",
7828
- "./cs": "./node_modules/moment/locale/cs.js",
7829
- "./cs.js": "./node_modules/moment/locale/cs.js",
7830
- "./cv": "./node_modules/moment/locale/cv.js",
7831
- "./cv.js": "./node_modules/moment/locale/cv.js",
7832
- "./cy": "./node_modules/moment/locale/cy.js",
7833
- "./cy.js": "./node_modules/moment/locale/cy.js",
7834
- "./da": "./node_modules/moment/locale/da.js",
7835
- "./da.js": "./node_modules/moment/locale/da.js",
7836
- "./de": "./node_modules/moment/locale/de.js",
7837
- "./de-at": "./node_modules/moment/locale/de-at.js",
7838
- "./de-at.js": "./node_modules/moment/locale/de-at.js",
7839
- "./de-ch": "./node_modules/moment/locale/de-ch.js",
7840
- "./de-ch.js": "./node_modules/moment/locale/de-ch.js",
7841
- "./de.js": "./node_modules/moment/locale/de.js",
7842
- "./dv": "./node_modules/moment/locale/dv.js",
7843
- "./dv.js": "./node_modules/moment/locale/dv.js",
7844
- "./el": "./node_modules/moment/locale/el.js",
7845
- "./el.js": "./node_modules/moment/locale/el.js",
7846
- "./en-SG": "./node_modules/moment/locale/en-SG.js",
7847
- "./en-SG.js": "./node_modules/moment/locale/en-SG.js",
7848
- "./en-au": "./node_modules/moment/locale/en-au.js",
7849
- "./en-au.js": "./node_modules/moment/locale/en-au.js",
7850
- "./en-ca": "./node_modules/moment/locale/en-ca.js",
7851
- "./en-ca.js": "./node_modules/moment/locale/en-ca.js",
7852
- "./en-gb": "./node_modules/moment/locale/en-gb.js",
7853
- "./en-gb.js": "./node_modules/moment/locale/en-gb.js",
7854
- "./en-ie": "./node_modules/moment/locale/en-ie.js",
7855
- "./en-ie.js": "./node_modules/moment/locale/en-ie.js",
7856
- "./en-il": "./node_modules/moment/locale/en-il.js",
7857
- "./en-il.js": "./node_modules/moment/locale/en-il.js",
7858
- "./en-nz": "./node_modules/moment/locale/en-nz.js",
7859
- "./en-nz.js": "./node_modules/moment/locale/en-nz.js",
7860
- "./eo": "./node_modules/moment/locale/eo.js",
7861
- "./eo.js": "./node_modules/moment/locale/eo.js",
7862
- "./es": "./node_modules/moment/locale/es.js",
7863
- "./es-do": "./node_modules/moment/locale/es-do.js",
7864
- "./es-do.js": "./node_modules/moment/locale/es-do.js",
7865
- "./es-us": "./node_modules/moment/locale/es-us.js",
7866
- "./es-us.js": "./node_modules/moment/locale/es-us.js",
7867
- "./es.js": "./node_modules/moment/locale/es.js",
7868
- "./et": "./node_modules/moment/locale/et.js",
7869
- "./et.js": "./node_modules/moment/locale/et.js",
7870
- "./eu": "./node_modules/moment/locale/eu.js",
7871
- "./eu.js": "./node_modules/moment/locale/eu.js",
7872
- "./fa": "./node_modules/moment/locale/fa.js",
7873
- "./fa.js": "./node_modules/moment/locale/fa.js",
7874
- "./fi": "./node_modules/moment/locale/fi.js",
7875
- "./fi.js": "./node_modules/moment/locale/fi.js",
7876
- "./fo": "./node_modules/moment/locale/fo.js",
7877
- "./fo.js": "./node_modules/moment/locale/fo.js",
7878
- "./fr": "./node_modules/moment/locale/fr.js",
7879
- "./fr-ca": "./node_modules/moment/locale/fr-ca.js",
7880
- "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",
7881
- "./fr-ch": "./node_modules/moment/locale/fr-ch.js",
7882
- "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",
7883
- "./fr.js": "./node_modules/moment/locale/fr.js",
7884
- "./fy": "./node_modules/moment/locale/fy.js",
7885
- "./fy.js": "./node_modules/moment/locale/fy.js",
7886
- "./ga": "./node_modules/moment/locale/ga.js",
7887
- "./ga.js": "./node_modules/moment/locale/ga.js",
7888
- "./gd": "./node_modules/moment/locale/gd.js",
7889
- "./gd.js": "./node_modules/moment/locale/gd.js",
7890
- "./gl": "./node_modules/moment/locale/gl.js",
7891
- "./gl.js": "./node_modules/moment/locale/gl.js",
7892
- "./gom-latn": "./node_modules/moment/locale/gom-latn.js",
7893
- "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",
7894
- "./gu": "./node_modules/moment/locale/gu.js",
7895
- "./gu.js": "./node_modules/moment/locale/gu.js",
7896
- "./he": "./node_modules/moment/locale/he.js",
7897
- "./he.js": "./node_modules/moment/locale/he.js",
7898
- "./hi": "./node_modules/moment/locale/hi.js",
7899
- "./hi.js": "./node_modules/moment/locale/hi.js",
7900
- "./hr": "./node_modules/moment/locale/hr.js",
7901
- "./hr.js": "./node_modules/moment/locale/hr.js",
7902
- "./hu": "./node_modules/moment/locale/hu.js",
7903
- "./hu.js": "./node_modules/moment/locale/hu.js",
7904
- "./hy-am": "./node_modules/moment/locale/hy-am.js",
7905
- "./hy-am.js": "./node_modules/moment/locale/hy-am.js",
7906
- "./id": "./node_modules/moment/locale/id.js",
7907
- "./id.js": "./node_modules/moment/locale/id.js",
7908
- "./is": "./node_modules/moment/locale/is.js",
7909
- "./is.js": "./node_modules/moment/locale/is.js",
7910
- "./it": "./node_modules/moment/locale/it.js",
7911
- "./it-ch": "./node_modules/moment/locale/it-ch.js",
7912
- "./it-ch.js": "./node_modules/moment/locale/it-ch.js",
7913
- "./it.js": "./node_modules/moment/locale/it.js",
7914
- "./ja": "./node_modules/moment/locale/ja.js",
7915
- "./ja.js": "./node_modules/moment/locale/ja.js",
7916
- "./jv": "./node_modules/moment/locale/jv.js",
7917
- "./jv.js": "./node_modules/moment/locale/jv.js",
7918
- "./ka": "./node_modules/moment/locale/ka.js",
7919
- "./ka.js": "./node_modules/moment/locale/ka.js",
7920
- "./kk": "./node_modules/moment/locale/kk.js",
7921
- "./kk.js": "./node_modules/moment/locale/kk.js",
7922
- "./km": "./node_modules/moment/locale/km.js",
7923
- "./km.js": "./node_modules/moment/locale/km.js",
7924
- "./kn": "./node_modules/moment/locale/kn.js",
7925
- "./kn.js": "./node_modules/moment/locale/kn.js",
7926
- "./ko": "./node_modules/moment/locale/ko.js",
7927
- "./ko.js": "./node_modules/moment/locale/ko.js",
7928
- "./ku": "./node_modules/moment/locale/ku.js",
7929
- "./ku.js": "./node_modules/moment/locale/ku.js",
7930
- "./ky": "./node_modules/moment/locale/ky.js",
7931
- "./ky.js": "./node_modules/moment/locale/ky.js",
7932
- "./lb": "./node_modules/moment/locale/lb.js",
7933
- "./lb.js": "./node_modules/moment/locale/lb.js",
7934
- "./lo": "./node_modules/moment/locale/lo.js",
7935
- "./lo.js": "./node_modules/moment/locale/lo.js",
7936
- "./lt": "./node_modules/moment/locale/lt.js",
7937
- "./lt.js": "./node_modules/moment/locale/lt.js",
7938
- "./lv": "./node_modules/moment/locale/lv.js",
7939
- "./lv.js": "./node_modules/moment/locale/lv.js",
7940
- "./me": "./node_modules/moment/locale/me.js",
7941
- "./me.js": "./node_modules/moment/locale/me.js",
7942
- "./mi": "./node_modules/moment/locale/mi.js",
7943
- "./mi.js": "./node_modules/moment/locale/mi.js",
7944
- "./mk": "./node_modules/moment/locale/mk.js",
7945
- "./mk.js": "./node_modules/moment/locale/mk.js",
7946
- "./ml": "./node_modules/moment/locale/ml.js",
7947
- "./ml.js": "./node_modules/moment/locale/ml.js",
7948
- "./mn": "./node_modules/moment/locale/mn.js",
7949
- "./mn.js": "./node_modules/moment/locale/mn.js",
7950
- "./mr": "./node_modules/moment/locale/mr.js",
7951
- "./mr.js": "./node_modules/moment/locale/mr.js",
7952
- "./ms": "./node_modules/moment/locale/ms.js",
7953
- "./ms-my": "./node_modules/moment/locale/ms-my.js",
7954
- "./ms-my.js": "./node_modules/moment/locale/ms-my.js",
7955
- "./ms.js": "./node_modules/moment/locale/ms.js",
7956
- "./mt": "./node_modules/moment/locale/mt.js",
7957
- "./mt.js": "./node_modules/moment/locale/mt.js",
7958
- "./my": "./node_modules/moment/locale/my.js",
7959
- "./my.js": "./node_modules/moment/locale/my.js",
7960
- "./nb": "./node_modules/moment/locale/nb.js",
7961
- "./nb.js": "./node_modules/moment/locale/nb.js",
7962
- "./ne": "./node_modules/moment/locale/ne.js",
7963
- "./ne.js": "./node_modules/moment/locale/ne.js",
7964
- "./nl": "./node_modules/moment/locale/nl.js",
7965
- "./nl-be": "./node_modules/moment/locale/nl-be.js",
7966
- "./nl-be.js": "./node_modules/moment/locale/nl-be.js",
7967
- "./nl.js": "./node_modules/moment/locale/nl.js",
7968
- "./nn": "./node_modules/moment/locale/nn.js",
7969
- "./nn.js": "./node_modules/moment/locale/nn.js",
7970
- "./pa-in": "./node_modules/moment/locale/pa-in.js",
7971
- "./pa-in.js": "./node_modules/moment/locale/pa-in.js",
7972
- "./pl": "./node_modules/moment/locale/pl.js",
7973
- "./pl.js": "./node_modules/moment/locale/pl.js",
7974
- "./pt": "./node_modules/moment/locale/pt.js",
7975
- "./pt-br": "./node_modules/moment/locale/pt-br.js",
7976
- "./pt-br.js": "./node_modules/moment/locale/pt-br.js",
7977
- "./pt.js": "./node_modules/moment/locale/pt.js",
7978
- "./ro": "./node_modules/moment/locale/ro.js",
7979
- "./ro.js": "./node_modules/moment/locale/ro.js",
7980
- "./ru": "./node_modules/moment/locale/ru.js",
7981
- "./ru.js": "./node_modules/moment/locale/ru.js",
7982
- "./sd": "./node_modules/moment/locale/sd.js",
7983
- "./sd.js": "./node_modules/moment/locale/sd.js",
7984
- "./se": "./node_modules/moment/locale/se.js",
7985
- "./se.js": "./node_modules/moment/locale/se.js",
7986
- "./si": "./node_modules/moment/locale/si.js",
7987
- "./si.js": "./node_modules/moment/locale/si.js",
7988
- "./sk": "./node_modules/moment/locale/sk.js",
7989
- "./sk.js": "./node_modules/moment/locale/sk.js",
7990
- "./sl": "./node_modules/moment/locale/sl.js",
7991
- "./sl.js": "./node_modules/moment/locale/sl.js",
7992
- "./sq": "./node_modules/moment/locale/sq.js",
7993
- "./sq.js": "./node_modules/moment/locale/sq.js",
7994
- "./sr": "./node_modules/moment/locale/sr.js",
7995
- "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",
7996
- "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",
7997
- "./sr.js": "./node_modules/moment/locale/sr.js",
7998
- "./ss": "./node_modules/moment/locale/ss.js",
7999
- "./ss.js": "./node_modules/moment/locale/ss.js",
8000
- "./sv": "./node_modules/moment/locale/sv.js",
8001
- "./sv.js": "./node_modules/moment/locale/sv.js",
8002
- "./sw": "./node_modules/moment/locale/sw.js",
8003
- "./sw.js": "./node_modules/moment/locale/sw.js",
8004
- "./ta": "./node_modules/moment/locale/ta.js",
8005
- "./ta.js": "./node_modules/moment/locale/ta.js",
8006
- "./te": "./node_modules/moment/locale/te.js",
8007
- "./te.js": "./node_modules/moment/locale/te.js",
8008
- "./tet": "./node_modules/moment/locale/tet.js",
8009
- "./tet.js": "./node_modules/moment/locale/tet.js",
8010
- "./tg": "./node_modules/moment/locale/tg.js",
8011
- "./tg.js": "./node_modules/moment/locale/tg.js",
8012
- "./th": "./node_modules/moment/locale/th.js",
8013
- "./th.js": "./node_modules/moment/locale/th.js",
8014
- "./tl-ph": "./node_modules/moment/locale/tl-ph.js",
8015
- "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",
8016
- "./tlh": "./node_modules/moment/locale/tlh.js",
8017
- "./tlh.js": "./node_modules/moment/locale/tlh.js",
8018
- "./tr": "./node_modules/moment/locale/tr.js",
8019
- "./tr.js": "./node_modules/moment/locale/tr.js",
8020
- "./tzl": "./node_modules/moment/locale/tzl.js",
8021
- "./tzl.js": "./node_modules/moment/locale/tzl.js",
8022
- "./tzm": "./node_modules/moment/locale/tzm.js",
8023
- "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",
8024
- "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",
8025
- "./tzm.js": "./node_modules/moment/locale/tzm.js",
8026
- "./ug-cn": "./node_modules/moment/locale/ug-cn.js",
8027
- "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js",
8028
- "./uk": "./node_modules/moment/locale/uk.js",
8029
- "./uk.js": "./node_modules/moment/locale/uk.js",
8030
- "./ur": "./node_modules/moment/locale/ur.js",
8031
- "./ur.js": "./node_modules/moment/locale/ur.js",
8032
- "./uz": "./node_modules/moment/locale/uz.js",
8033
- "./uz-latn": "./node_modules/moment/locale/uz-latn.js",
8034
- "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",
8035
- "./uz.js": "./node_modules/moment/locale/uz.js",
8036
- "./vi": "./node_modules/moment/locale/vi.js",
8037
- "./vi.js": "./node_modules/moment/locale/vi.js",
8038
- "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",
8039
- "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",
8040
- "./yo": "./node_modules/moment/locale/yo.js",
8041
- "./yo.js": "./node_modules/moment/locale/yo.js",
8042
- "./zh-cn": "./node_modules/moment/locale/zh-cn.js",
8043
- "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",
8044
- "./zh-hk": "./node_modules/moment/locale/zh-hk.js",
8045
- "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",
8046
- "./zh-tw": "./node_modules/moment/locale/zh-tw.js",
8047
- "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"
8048
- };
8049
-
8050
-
8051
- function webpackContext(req) {
8052
- var id = webpackContextResolve(req);
8053
- return __webpack_require__(id);
8054
- }
8055
- function webpackContextResolve(req) {
8056
- if(!__webpack_require__.o(map, req)) {
8057
- var e = new Error("Cannot find module '" + req + "'");
8058
- e.code = 'MODULE_NOT_FOUND';
8059
- throw e;
8060
- }
8061
- return map[req];
8062
- }
8063
- webpackContext.keys = function webpackContextKeys() {
8064
- return Object.keys(map);
8065
- };
8066
- webpackContext.resolve = webpackContextResolve;
8067
- module.exports = webpackContext;
8068
- webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";
8069
-
8070
- /***/ }),
8071
-
8072
- /***/ "./node_modules/moment/locale/af.js":
8073
- /*!******************************************!*\
8074
- !*** ./node_modules/moment/locale/af.js ***!
8075
- \******************************************/
8076
- /*! no static exports found */
8077
- /***/ (function(module, exports, __webpack_require__) {
8078
-
8079
- //! moment.js locale configuration
8080
-
8081
- ;(function (global, factory) {
8082
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8083
- undefined
8084
- }(this, (function (moment) { 'use strict';
8085
-
8086
-
8087
- var af = moment.defineLocale('af', {
8088
- months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
8089
- monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
8090
- weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
8091
- weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
8092
- weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
8093
- meridiemParse: /vm|nm/i,
8094
- isPM : function (input) {
8095
- return /^nm$/i.test(input);
8096
- },
8097
- meridiem : function (hours, minutes, isLower) {
8098
- if (hours < 12) {
8099
- return isLower ? 'vm' : 'VM';
8100
- } else {
8101
- return isLower ? 'nm' : 'NM';
8102
- }
8103
- },
8104
- longDateFormat : {
8105
- LT : 'HH:mm',
8106
- LTS : 'HH:mm:ss',
8107
- L : 'DD/MM/YYYY',
8108
- LL : 'D MMMM YYYY',
8109
- LLL : 'D MMMM YYYY HH:mm',
8110
- LLLL : 'dddd, D MMMM YYYY HH:mm'
8111
- },
8112
- calendar : {
8113
- sameDay : '[Vandag om] LT',
8114
- nextDay : '[Môre om] LT',
8115
- nextWeek : 'dddd [om] LT',
8116
- lastDay : '[Gister om] LT',
8117
- lastWeek : '[Laas] dddd [om] LT',
8118
- sameElse : 'L'
8119
- },
8120
- relativeTime : {
8121
- future : 'oor %s',
8122
- past : '%s gelede',
8123
- s : '\'n paar sekondes',
8124
- ss : '%d sekondes',
8125
- m : '\'n minuut',
8126
- mm : '%d minute',
8127
- h : '\'n uur',
8128
- hh : '%d ure',
8129
- d : '\'n dag',
8130
- dd : '%d dae',
8131
- M : '\'n maand',
8132
- MM : '%d maande',
8133
- y : '\'n jaar',
8134
- yy : '%d jaar'
8135
- },
8136
- dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
8137
- ordinal : function (number) {
8138
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
8139
- },
8140
- week : {
8141
- dow : 1, // Maandag is die eerste dag van die week.
8142
- doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
8143
- }
8144
- });
8145
-
8146
- return af;
8147
-
8148
- })));
8149
-
8150
-
8151
- /***/ }),
8152
-
8153
- /***/ "./node_modules/moment/locale/ar-dz.js":
8154
- /*!*********************************************!*\
8155
- !*** ./node_modules/moment/locale/ar-dz.js ***!
8156
- \*********************************************/
8157
- /*! no static exports found */
8158
- /***/ (function(module, exports, __webpack_require__) {
8159
-
8160
- //! moment.js locale configuration
8161
-
8162
- ;(function (global, factory) {
8163
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8164
- undefined
8165
- }(this, (function (moment) { 'use strict';
8166
-
8167
-
8168
- var arDz = moment.defineLocale('ar-dz', {
8169
- months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
8170
- monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
8171
- weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
8172
- weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
8173
- weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
8174
- weekdaysParseExact : true,
8175
- longDateFormat : {
8176
- LT : 'HH:mm',
8177
- LTS : 'HH:mm:ss',
8178
- L : 'DD/MM/YYYY',
8179
- LL : 'D MMMM YYYY',
8180
- LLL : 'D MMMM YYYY HH:mm',
8181
- LLLL : 'dddd D MMMM YYYY HH:mm'
8182
- },
8183
- calendar : {
8184
- sameDay: '[اليوم على الساعة] LT',
8185
- nextDay: '[غدا على الساعة] LT',
8186
- nextWeek: 'dddd [على الساعة] LT',
8187
- lastDay: '[أمس على الساعة] LT',
8188
- lastWeek: 'dddd [على الساعة] LT',
8189
- sameElse: 'L'
8190
- },
8191
- relativeTime : {
8192
- future : 'في %s',
8193
- past : 'منذ %s',
8194
- s : 'ثوان',
8195
- ss : '%d ثانية',
8196
- m : 'دقيقة',
8197
- mm : '%d دقائق',
8198
- h : 'ساعة',
8199
- hh : '%d ساعات',
8200
- d : 'يوم',
8201
- dd : '%d أيام',
8202
- M : 'شهر',
8203
- MM : '%d أشهر',
8204
- y : 'سنة',
8205
- yy : '%d سنوات'
8206
- },
8207
- week : {
8208
- dow : 0, // Sunday is the first day of the week.
8209
- doy : 4 // The week that contains Jan 4th is the first week of the year.
8210
- }
8211
- });
8212
-
8213
- return arDz;
8214
-
8215
- })));
8216
-
8217
-
8218
- /***/ }),
8219
-
8220
- /***/ "./node_modules/moment/locale/ar-kw.js":
8221
- /*!*********************************************!*\
8222
- !*** ./node_modules/moment/locale/ar-kw.js ***!
8223
- \*********************************************/
8224
- /*! no static exports found */
8225
- /***/ (function(module, exports, __webpack_require__) {
8226
-
8227
- //! moment.js locale configuration
8228
-
8229
- ;(function (global, factory) {
8230
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8231
- undefined
8232
- }(this, (function (moment) { 'use strict';
8233
-
8234
-
8235
- var arKw = moment.defineLocale('ar-kw', {
8236
- months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
8237
- monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
8238
- weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
8239
- weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
8240
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
8241
- weekdaysParseExact : true,
8242
- longDateFormat : {
8243
- LT : 'HH:mm',
8244
- LTS : 'HH:mm:ss',
8245
- L : 'DD/MM/YYYY',
8246
- LL : 'D MMMM YYYY',
8247
- LLL : 'D MMMM YYYY HH:mm',
8248
- LLLL : 'dddd D MMMM YYYY HH:mm'
8249
- },
8250
- calendar : {
8251
- sameDay: '[اليوم على الساعة] LT',
8252
- nextDay: '[غدا على الساعة] LT',
8253
- nextWeek: 'dddd [على الساعة] LT',
8254
- lastDay: '[أمس على الساعة] LT',
8255
- lastWeek: 'dddd [على الساعة] LT',
8256
- sameElse: 'L'
8257
- },
8258
- relativeTime : {
8259
- future : 'في %s',
8260
- past : 'منذ %s',
8261
- s : 'ثوان',
8262
- ss : '%d ثانية',
8263
- m : 'دقيقة',
8264
- mm : '%d دقائق',
8265
- h : 'ساعة',
8266
- hh : '%d ساعات',
8267
- d : 'يوم',
8268
- dd : '%d أيام',
8269
- M : 'شهر',
8270
- MM : '%d أشهر',
8271
- y : 'سنة',
8272
- yy : '%d سنوات'
8273
- },
8274
- week : {
8275
- dow : 0, // Sunday is the first day of the week.
8276
- doy : 12 // The week that contains Jan 12th is the first week of the year.
8277
- }
8278
- });
8279
-
8280
- return arKw;
8281
-
8282
- })));
8283
-
8284
-
8285
- /***/ }),
8286
-
8287
- /***/ "./node_modules/moment/locale/ar-ly.js":
8288
- /*!*********************************************!*\
8289
- !*** ./node_modules/moment/locale/ar-ly.js ***!
8290
- \*********************************************/
8291
- /*! no static exports found */
8292
- /***/ (function(module, exports, __webpack_require__) {
8293
-
8294
- //! moment.js locale configuration
8295
-
8296
- ;(function (global, factory) {
8297
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8298
- undefined
8299
- }(this, (function (moment) { 'use strict';
8300
-
8301
-
8302
- var symbolMap = {
8303
- '1': '1',
8304
- '2': '2',
8305
- '3': '3',
8306
- '4': '4',
8307
- '5': '5',
8308
- '6': '6',
8309
- '7': '7',
8310
- '8': '8',
8311
- '9': '9',
8312
- '0': '0'
8313
- }, pluralForm = function (n) {
8314
- return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
8315
- }, plurals = {
8316
- s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
8317
- m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
8318
- h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
8319
- d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
8320
- M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
8321
- y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
8322
- }, pluralize = function (u) {
8323
- return function (number, withoutSuffix, string, isFuture) {
8324
- var f = pluralForm(number),
8325
- str = plurals[u][pluralForm(number)];
8326
- if (f === 2) {
8327
- str = str[withoutSuffix ? 0 : 1];
8328
- }
8329
- return str.replace(/%d/i, number);
8330
- };
8331
- }, months = [
8332
- 'يناير',
8333
- 'فبراير',
8334
- 'مارس',
8335
- 'أبريل',
8336
- 'مايو',
8337
- 'يونيو',
8338
- 'يوليو',
8339
- 'أغسطس',
8340
- 'سبتمبر',
8341
- 'أكتوبر',
8342
- 'نوفمبر',
8343
- 'ديسمبر'
8344
- ];
8345
-
8346
- var arLy = moment.defineLocale('ar-ly', {
8347
- months : months,
8348
- monthsShort : months,
8349
- weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
8350
- weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
8351
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
8352
- weekdaysParseExact : true,
8353
- longDateFormat : {
8354
- LT : 'HH:mm',
8355
- LTS : 'HH:mm:ss',
8356
- L : 'D/\u200FM/\u200FYYYY',
8357
- LL : 'D MMMM YYYY',
8358
- LLL : 'D MMMM YYYY HH:mm',
8359
- LLLL : 'dddd D MMMM YYYY HH:mm'
8360
- },
8361
- meridiemParse: /ص|م/,
8362
- isPM : function (input) {
8363
- return 'م' === input;
8364
- },
8365
- meridiem : function (hour, minute, isLower) {
8366
- if (hour < 12) {
8367
- return 'ص';
8368
- } else {
8369
- return 'م';
8370
- }
8371
- },
8372
- calendar : {
8373
- sameDay: '[اليوم عند الساعة] LT',
8374
- nextDay: '[غدًا عند الساعة] LT',
8375
- nextWeek: 'dddd [عند الساعة] LT',
8376
- lastDay: '[أمس عند الساعة] LT',
8377
- lastWeek: 'dddd [عند الساعة] LT',
8378
- sameElse: 'L'
8379
- },
8380
- relativeTime : {
8381
- future : 'بعد %s',
8382
- past : 'منذ %s',
8383
- s : pluralize('s'),
8384
- ss : pluralize('s'),
8385
- m : pluralize('m'),
8386
- mm : pluralize('m'),
8387
- h : pluralize('h'),
8388
- hh : pluralize('h'),
8389
- d : pluralize('d'),
8390
- dd : pluralize('d'),
8391
- M : pluralize('M'),
8392
- MM : pluralize('M'),
8393
- y : pluralize('y'),
8394
- yy : pluralize('y')
8395
- },
8396
- preparse: function (string) {
8397
- return string.replace(/،/g, ',');
8398
- },
8399
- postformat: function (string) {
8400
- return string.replace(/\d/g, function (match) {
8401
- return symbolMap[match];
8402
- }).replace(/,/g, '،');
8403
- },
8404
- week : {
8405
- dow : 6, // Saturday is the first day of the week.
8406
- doy : 12 // The week that contains Jan 12th is the first week of the year.
8407
- }
8408
- });
8409
-
8410
- return arLy;
8411
-
8412
- })));
8413
-
8414
-
8415
- /***/ }),
8416
-
8417
- /***/ "./node_modules/moment/locale/ar-ma.js":
8418
- /*!*********************************************!*\
8419
- !*** ./node_modules/moment/locale/ar-ma.js ***!
8420
- \*********************************************/
8421
- /*! no static exports found */
8422
- /***/ (function(module, exports, __webpack_require__) {
8423
-
8424
- //! moment.js locale configuration
8425
-
8426
- ;(function (global, factory) {
8427
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8428
- undefined
8429
- }(this, (function (moment) { 'use strict';
8430
-
8431
-
8432
- var arMa = moment.defineLocale('ar-ma', {
8433
- months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
8434
- monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
8435
- weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
8436
- weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
8437
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
8438
- weekdaysParseExact : true,
8439
- longDateFormat : {
8440
- LT : 'HH:mm',
8441
- LTS : 'HH:mm:ss',
8442
- L : 'DD/MM/YYYY',
8443
- LL : 'D MMMM YYYY',
8444
- LLL : 'D MMMM YYYY HH:mm',
8445
- LLLL : 'dddd D MMMM YYYY HH:mm'
8446
- },
8447
- calendar : {
8448
- sameDay: '[اليوم على الساعة] LT',
8449
- nextDay: '[غدا على الساعة] LT',
8450
- nextWeek: 'dddd [على الساعة] LT',
8451
- lastDay: '[أمس على الساعة] LT',
8452
- lastWeek: 'dddd [على الساعة] LT',
8453
- sameElse: 'L'
8454
- },
8455
- relativeTime : {
8456
- future : 'في %s',
8457
- past : 'منذ %s',
8458
- s : 'ثوان',
8459
- ss : '%d ثانية',
8460
- m : 'دقيقة',
8461
- mm : '%d دقائق',
8462
- h : 'ساعة',
8463
- hh : '%d ساعات',
8464
- d : 'يوم',
8465
- dd : '%d أيام',
8466
- M : 'شهر',
8467
- MM : '%d أشهر',
8468
- y : 'سنة',
8469
- yy : '%d سنوات'
8470
- },
8471
- week : {
8472
- dow : 6, // Saturday is the first day of the week.
8473
- doy : 12 // The week that contains Jan 12th is the first week of the year.
8474
- }
8475
- });
8476
-
8477
- return arMa;
8478
-
8479
- })));
8480
-
8481
-
8482
- /***/ }),
8483
-
8484
- /***/ "./node_modules/moment/locale/ar-sa.js":
8485
- /*!*********************************************!*\
8486
- !*** ./node_modules/moment/locale/ar-sa.js ***!
8487
- \*********************************************/
8488
- /*! no static exports found */
8489
- /***/ (function(module, exports, __webpack_require__) {
8490
-
8491
- //! moment.js locale configuration
8492
-
8493
- ;(function (global, factory) {
8494
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8495
- undefined
8496
- }(this, (function (moment) { 'use strict';
8497
-
8498
-
8499
- var symbolMap = {
8500
- '1': '١',
8501
- '2': '٢',
8502
- '3': '٣',
8503
- '4': '٤',
8504
- '5': '٥',
8505
- '6': '٦',
8506
- '7': '٧',
8507
- '8': '٨',
8508
- '9': '٩',
8509
- '0': '٠'
8510
- }, numberMap = {
8511
- '١': '1',
8512
- '٢': '2',
8513
- '٣': '3',
8514
- '٤': '4',
8515
- '٥': '5',
8516
- '٦': '6',
8517
- '٧': '7',
8518
- '٨': '8',
8519
- '٩': '9',
8520
- '٠': '0'
8521
- };
8522
-
8523
- var arSa = moment.defineLocale('ar-sa', {
8524
- months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
8525
- monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
8526
- weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
8527
- weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
8528
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
8529
- weekdaysParseExact : true,
8530
- longDateFormat : {
8531
- LT : 'HH:mm',
8532
- LTS : 'HH:mm:ss',
8533
- L : 'DD/MM/YYYY',
8534
- LL : 'D MMMM YYYY',
8535
- LLL : 'D MMMM YYYY HH:mm',
8536
- LLLL : 'dddd D MMMM YYYY HH:mm'
8537
- },
8538
- meridiemParse: /ص|م/,
8539
- isPM : function (input) {
8540
- return 'م' === input;
8541
- },
8542
- meridiem : function (hour, minute, isLower) {
8543
- if (hour < 12) {
8544
- return 'ص';
8545
- } else {
8546
- return 'م';
8547
- }
8548
- },
8549
- calendar : {
8550
- sameDay: '[اليوم على الساعة] LT',
8551
- nextDay: '[غدا على الساعة] LT',
8552
- nextWeek: 'dddd [على الساعة] LT',
8553
- lastDay: '[أمس على الساعة] LT',
8554
- lastWeek: 'dddd [على الساعة] LT',
8555
- sameElse: 'L'
8556
- },
8557
- relativeTime : {
8558
- future : 'في %s',
8559
- past : 'منذ %s',
8560
- s : 'ثوان',
8561
- ss : '%d ثانية',
8562
- m : 'دقيقة',
8563
- mm : '%d دقائق',
8564
- h : 'ساعة',
8565
- hh : '%d ساعات',
8566
- d : 'يوم',
8567
- dd : '%d أيام',
8568
- M : 'شهر',
8569
- MM : '%d أشهر',
8570
- y : 'سنة',
8571
- yy : '%d سنوات'
8572
- },
8573
- preparse: function (string) {
8574
- return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
8575
- return numberMap[match];
8576
- }).replace(/،/g, ',');
8577
- },
8578
- postformat: function (string) {
8579
- return string.replace(/\d/g, function (match) {
8580
- return symbolMap[match];
8581
- }).replace(/,/g, '،');
8582
- },
8583
- week : {
8584
- dow : 0, // Sunday is the first day of the week.
8585
- doy : 6 // The week that contains Jan 6th is the first week of the year.
8586
- }
8587
- });
8588
-
8589
- return arSa;
8590
-
8591
- })));
8592
-
8593
-
8594
- /***/ }),
8595
-
8596
- /***/ "./node_modules/moment/locale/ar-tn.js":
8597
- /*!*********************************************!*\
8598
- !*** ./node_modules/moment/locale/ar-tn.js ***!
8599
- \*********************************************/
8600
- /*! no static exports found */
8601
- /***/ (function(module, exports, __webpack_require__) {
8602
-
8603
- //! moment.js locale configuration
8604
-
8605
- ;(function (global, factory) {
8606
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8607
- undefined
8608
- }(this, (function (moment) { 'use strict';
8609
-
8610
-
8611
- var arTn = moment.defineLocale('ar-tn', {
8612
- months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
8613
- monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
8614
- weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
8615
- weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
8616
- weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
8617
- weekdaysParseExact : true,
8618
- longDateFormat: {
8619
- LT: 'HH:mm',
8620
- LTS: 'HH:mm:ss',
8621
- L: 'DD/MM/YYYY',
8622
- LL: 'D MMMM YYYY',
8623
- LLL: 'D MMMM YYYY HH:mm',
8624
- LLLL: 'dddd D MMMM YYYY HH:mm'
8625
- },
8626
- calendar: {
8627
- sameDay: '[اليوم على الساعة] LT',
8628
- nextDay: '[غدا على الساعة] LT',
8629
- nextWeek: 'dddd [على الساعة] LT',
8630
- lastDay: '[أمس على الساعة] LT',
8631
- lastWeek: 'dddd [على الساعة] LT',
8632
- sameElse: 'L'
8633
- },
8634
- relativeTime: {
8635
- future: 'في %s',
8636
- past: 'منذ %s',
8637
- s: 'ثوان',
8638
- ss : '%d ثانية',
8639
- m: 'دقيقة',
8640
- mm: '%d دقائق',
8641
- h: 'ساعة',
8642
- hh: '%d ساعات',
8643
- d: 'يوم',
8644
- dd: '%d أيام',
8645
- M: 'شهر',
8646
- MM: '%d أشهر',
8647
- y: 'سنة',
8648
- yy: '%d سنوات'
8649
- },
8650
- week: {
8651
- dow: 1, // Monday is the first day of the week.
8652
- doy: 4 // The week that contains Jan 4th is the first week of the year.
8653
- }
8654
- });
8655
-
8656
- return arTn;
8657
-
8658
- })));
8659
-
8660
-
8661
- /***/ }),
8662
-
8663
- /***/ "./node_modules/moment/locale/ar.js":
8664
- /*!******************************************!*\
8665
- !*** ./node_modules/moment/locale/ar.js ***!
8666
- \******************************************/
8667
- /*! no static exports found */
8668
- /***/ (function(module, exports, __webpack_require__) {
8669
-
8670
- //! moment.js locale configuration
8671
-
8672
- ;(function (global, factory) {
8673
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8674
- undefined
8675
- }(this, (function (moment) { 'use strict';
8676
-
8677
-
8678
- var symbolMap = {
8679
- '1': '١',
8680
- '2': '٢',
8681
- '3': '٣',
8682
- '4': '٤',
8683
- '5': '٥',
8684
- '6': '٦',
8685
- '7': '٧',
8686
- '8': '٨',
8687
- '9': '٩',
8688
- '0': '٠'
8689
- }, numberMap = {
8690
- '١': '1',
8691
- '٢': '2',
8692
- '٣': '3',
8693
- '٤': '4',
8694
- '٥': '5',
8695
- '٦': '6',
8696
- '٧': '7',
8697
- '٨': '8',
8698
- '٩': '9',
8699
- '٠': '0'
8700
- }, pluralForm = function (n) {
8701
- return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
8702
- }, plurals = {
8703
- s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
8704
- m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
8705
- h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
8706
- d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
8707
- M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
8708
- y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
8709
- }, pluralize = function (u) {
8710
- return function (number, withoutSuffix, string, isFuture) {
8711
- var f = pluralForm(number),
8712
- str = plurals[u][pluralForm(number)];
8713
- if (f === 2) {
8714
- str = str[withoutSuffix ? 0 : 1];
8715
- }
8716
- return str.replace(/%d/i, number);
8717
- };
8718
- }, months = [
8719
- 'يناير',
8720
- 'فبراير',
8721
- 'مارس',
8722
- 'أبريل',
8723
- 'مايو',
8724
- 'يونيو',
8725
- 'يوليو',
8726
- 'أغسطس',
8727
- 'سبتمبر',
8728
- 'أكتوبر',
8729
- 'نوفمبر',
8730
- 'ديسمبر'
8731
- ];
8732
-
8733
- var ar = moment.defineLocale('ar', {
8734
- months : months,
8735
- monthsShort : months,
8736
- weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
8737
- weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
8738
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
8739
- weekdaysParseExact : true,
8740
- longDateFormat : {
8741
- LT : 'HH:mm',
8742
- LTS : 'HH:mm:ss',
8743
- L : 'D/\u200FM/\u200FYYYY',
8744
- LL : 'D MMMM YYYY',
8745
- LLL : 'D MMMM YYYY HH:mm',
8746
- LLLL : 'dddd D MMMM YYYY HH:mm'
8747
- },
8748
- meridiemParse: /ص|م/,
8749
- isPM : function (input) {
8750
- return 'م' === input;
8751
- },
8752
- meridiem : function (hour, minute, isLower) {
8753
- if (hour < 12) {
8754
- return 'ص';
8755
- } else {
8756
- return 'م';
8757
- }
8758
- },
8759
- calendar : {
8760
- sameDay: '[اليوم عند الساعة] LT',
8761
- nextDay: '[غدًا عند الساعة] LT',
8762
- nextWeek: 'dddd [عند الساعة] LT',
8763
- lastDay: '[أمس عند الساعة] LT',
8764
- lastWeek: 'dddd [عند الساعة] LT',
8765
- sameElse: 'L'
8766
- },
8767
- relativeTime : {
8768
- future : 'بعد %s',
8769
- past : 'منذ %s',
8770
- s : pluralize('s'),
8771
- ss : pluralize('s'),
8772
- m : pluralize('m'),
8773
- mm : pluralize('m'),
8774
- h : pluralize('h'),
8775
- hh : pluralize('h'),
8776
- d : pluralize('d'),
8777
- dd : pluralize('d'),
8778
- M : pluralize('M'),
8779
- MM : pluralize('M'),
8780
- y : pluralize('y'),
8781
- yy : pluralize('y')
8782
- },
8783
- preparse: function (string) {
8784
- return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
8785
- return numberMap[match];
8786
- }).replace(/،/g, ',');
8787
- },
8788
- postformat: function (string) {
8789
- return string.replace(/\d/g, function (match) {
8790
- return symbolMap[match];
8791
- }).replace(/,/g, '،');
8792
- },
8793
- week : {
8794
- dow : 6, // Saturday is the first day of the week.
8795
- doy : 12 // The week that contains Jan 12th is the first week of the year.
8796
- }
8797
- });
8798
-
8799
- return ar;
8800
-
8801
- })));
8802
-
8803
-
8804
- /***/ }),
8805
-
8806
- /***/ "./node_modules/moment/locale/az.js":
8807
- /*!******************************************!*\
8808
- !*** ./node_modules/moment/locale/az.js ***!
8809
- \******************************************/
8810
- /*! no static exports found */
8811
- /***/ (function(module, exports, __webpack_require__) {
8812
-
8813
- //! moment.js locale configuration
8814
-
8815
- ;(function (global, factory) {
8816
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8817
- undefined
8818
- }(this, (function (moment) { 'use strict';
8819
-
8820
-
8821
- var suffixes = {
8822
- 1: '-inci',
8823
- 5: '-inci',
8824
- 8: '-inci',
8825
- 70: '-inci',
8826
- 80: '-inci',
8827
- 2: '-nci',
8828
- 7: '-nci',
8829
- 20: '-nci',
8830
- 50: '-nci',
8831
- 3: '-üncü',
8832
- 4: '-üncü',
8833
- 100: '-üncü',
8834
- 6: '-ncı',
8835
- 9: '-uncu',
8836
- 10: '-uncu',
8837
- 30: '-uncu',
8838
- 60: '-ıncı',
8839
- 90: '-ıncı'
8840
- };
8841
-
8842
- var az = moment.defineLocale('az', {
8843
- months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
8844
- monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
8845
- weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
8846
- weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
8847
- weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
8848
- weekdaysParseExact : true,
8849
- longDateFormat : {
8850
- LT : 'HH:mm',
8851
- LTS : 'HH:mm:ss',
8852
- L : 'DD.MM.YYYY',
8853
- LL : 'D MMMM YYYY',
8854
- LLL : 'D MMMM YYYY HH:mm',
8855
- LLLL : 'dddd, D MMMM YYYY HH:mm'
8856
- },
8857
- calendar : {
8858
- sameDay : '[bugün saat] LT',
8859
- nextDay : '[sabah saat] LT',
8860
- nextWeek : '[gələn həftə] dddd [saat] LT',
8861
- lastDay : '[dünən] LT',
8862
- lastWeek : '[keçən həftə] dddd [saat] LT',
8863
- sameElse : 'L'
8864
- },
8865
- relativeTime : {
8866
- future : '%s sonra',
8867
- past : '%s əvvəl',
8868
- s : 'birneçə saniyə',
8869
- ss : '%d saniyə',
8870
- m : 'bir dəqiqə',
8871
- mm : '%d dəqiqə',
8872
- h : 'bir saat',
8873
- hh : '%d saat',
8874
- d : 'bir gün',
8875
- dd : '%d gün',
8876
- M : 'bir ay',
8877
- MM : '%d ay',
8878
- y : 'bir il',
8879
- yy : '%d il'
8880
- },
8881
- meridiemParse: /gecə|səhər|gündüz|axşam/,
8882
- isPM : function (input) {
8883
- return /^(gündüz|axşam)$/.test(input);
8884
- },
8885
- meridiem : function (hour, minute, isLower) {
8886
- if (hour < 4) {
8887
- return 'gecə';
8888
- } else if (hour < 12) {
8889
- return 'səhər';
8890
- } else if (hour < 17) {
8891
- return 'gündüz';
8892
- } else {
8893
- return 'axşam';
8894
- }
8895
- },
8896
- dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
8897
- ordinal : function (number) {
8898
- if (number === 0) { // special case for zero
8899
- return number + '-ıncı';
8900
- }
8901
- var a = number % 10,
8902
- b = number % 100 - a,
8903
- c = number >= 100 ? 100 : null;
8904
- return number + (suffixes[a] || suffixes[b] || suffixes[c]);
8905
- },
8906
- week : {
8907
- dow : 1, // Monday is the first day of the week.
8908
- doy : 7 // The week that contains Jan 7th is the first week of the year.
8909
- }
8910
- });
8911
-
8912
- return az;
8913
-
8914
- })));
8915
-
8916
-
8917
- /***/ }),
8918
-
8919
- /***/ "./node_modules/moment/locale/be.js":
8920
- /*!******************************************!*\
8921
- !*** ./node_modules/moment/locale/be.js ***!
8922
- \******************************************/
8923
- /*! no static exports found */
8924
- /***/ (function(module, exports, __webpack_require__) {
8925
-
8926
- //! moment.js locale configuration
8927
-
8928
- ;(function (global, factory) {
8929
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
8930
- undefined
8931
- }(this, (function (moment) { 'use strict';
8932
-
8933
-
8934
- function plural(word, num) {
8935
- var forms = word.split('_');
8936
- return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
8937
- }
8938
- function relativeTimeWithPlural(number, withoutSuffix, key) {
8939
- var format = {
8940
- 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
8941
- 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
8942
- 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
8943
- 'dd': 'дзень_дні_дзён',
8944
- 'MM': 'месяц_месяцы_месяцаў',
8945
- 'yy': 'год_гады_гадоў'
8946
- };
8947
- if (key === 'm') {
8948
- return withoutSuffix ? 'хвіліна' : 'хвіліну';
8949
- }
8950
- else if (key === 'h') {
8951
- return withoutSuffix ? 'гадзіна' : 'гадзіну';
8952
- }
8953
- else {
8954
- return number + ' ' + plural(format[key], +number);
8955
- }
8956
- }
8957
-
8958
- var be = moment.defineLocale('be', {
8959
- months : {
8960
- format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
8961
- standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
8962
- },
8963
- monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
8964
- weekdays : {
8965
- format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
8966
- standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
8967
- isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
8968
- },
8969
- weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
8970
- weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
8971
- longDateFormat : {
8972
- LT : 'HH:mm',
8973
- LTS : 'HH:mm:ss',
8974
- L : 'DD.MM.YYYY',
8975
- LL : 'D MMMM YYYY г.',
8976
- LLL : 'D MMMM YYYY г., HH:mm',
8977
- LLLL : 'dddd, D MMMM YYYY г., HH:mm'
8978
- },
8979
- calendar : {
8980
- sameDay: '[Сёння ў] LT',
8981
- nextDay: '[Заўтра ў] LT',
8982
- lastDay: '[Учора ў] LT',
8983
- nextWeek: function () {
8984
- return '[У] dddd [ў] LT';
8985
- },
8986
- lastWeek: function () {
8987
- switch (this.day()) {
8988
- case 0:
8989
- case 3:
8990
- case 5:
8991
- case 6:
8992
- return '[У мінулую] dddd [ў] LT';
8993
- case 1:
8994
- case 2:
8995
- case 4:
8996
- return '[У мінулы] dddd [ў] LT';
8997
- }
8998
- },
8999
- sameElse: 'L'
9000
- },
9001
- relativeTime : {
9002
- future : 'праз %s',
9003
- past : '%s таму',
9004
- s : 'некалькі секунд',
9005
- m : relativeTimeWithPlural,
9006
- mm : relativeTimeWithPlural,
9007
- h : relativeTimeWithPlural,
9008
- hh : relativeTimeWithPlural,
9009
- d : 'дзень',
9010
- dd : relativeTimeWithPlural,
9011
- M : 'месяц',
9012
- MM : relativeTimeWithPlural,
9013
- y : 'год',
9014
- yy : relativeTimeWithPlural
9015
- },
9016
- meridiemParse: /ночы|раніцы|дня|вечара/,
9017
- isPM : function (input) {
9018
- return /^(дня|вечара)$/.test(input);
9019
- },
9020
- meridiem : function (hour, minute, isLower) {
9021
- if (hour < 4) {
9022
- return 'ночы';
9023
- } else if (hour < 12) {
9024
- return 'раніцы';
9025
- } else if (hour < 17) {
9026
- return 'дня';
9027
- } else {
9028
- return 'вечара';
9029
- }
9030
- },
9031
- dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
9032
- ordinal: function (number, period) {
9033
- switch (period) {
9034
- case 'M':
9035
- case 'd':
9036
- case 'DDD':
9037
- case 'w':
9038
- case 'W':
9039
- return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
9040
- case 'D':
9041
- return number + '-га';
9042
- default:
9043
- return number;
9044
- }
9045
- },
9046
- week : {
9047
- dow : 1, // Monday is the first day of the week.
9048
- doy : 7 // The week that contains Jan 7th is the first week of the year.
9049
- }
9050
- });
9051
-
9052
- return be;
9053
-
9054
- })));
9055
-
9056
-
9057
- /***/ }),
9058
-
9059
- /***/ "./node_modules/moment/locale/bg.js":
9060
- /*!******************************************!*\
9061
- !*** ./node_modules/moment/locale/bg.js ***!
9062
- \******************************************/
9063
- /*! no static exports found */
9064
- /***/ (function(module, exports, __webpack_require__) {
9065
-
9066
- //! moment.js locale configuration
9067
-
9068
- ;(function (global, factory) {
9069
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9070
- undefined
9071
- }(this, (function (moment) { 'use strict';
9072
-
9073
-
9074
- var bg = moment.defineLocale('bg', {
9075
- months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
9076
- monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
9077
- weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
9078
- weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
9079
- weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
9080
- longDateFormat : {
9081
- LT : 'H:mm',
9082
- LTS : 'H:mm:ss',
9083
- L : 'D.MM.YYYY',
9084
- LL : 'D MMMM YYYY',
9085
- LLL : 'D MMMM YYYY H:mm',
9086
- LLLL : 'dddd, D MMMM YYYY H:mm'
9087
- },
9088
- calendar : {
9089
- sameDay : '[Днес в] LT',
9090
- nextDay : '[Утре в] LT',
9091
- nextWeek : 'dddd [в] LT',
9092
- lastDay : '[Вчера в] LT',
9093
- lastWeek : function () {
9094
- switch (this.day()) {
9095
- case 0:
9096
- case 3:
9097
- case 6:
9098
- return '[В изминалата] dddd [в] LT';
9099
- case 1:
9100
- case 2:
9101
- case 4:
9102
- case 5:
9103
- return '[В изминалия] dddd [в] LT';
9104
- }
9105
- },
9106
- sameElse : 'L'
9107
- },
9108
- relativeTime : {
9109
- future : 'след %s',
9110
- past : 'преди %s',
9111
- s : 'няколко секунди',
9112
- ss : '%d секунди',
9113
- m : 'минута',
9114
- mm : '%d минути',
9115
- h : 'час',
9116
- hh : '%d часа',
9117
- d : 'ден',
9118
- dd : '%d дни',
9119
- M : 'месец',
9120
- MM : '%d месеца',
9121
- y : 'година',
9122
- yy : '%d години'
9123
- },
9124
- dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
9125
- ordinal : function (number) {
9126
- var lastDigit = number % 10,
9127
- last2Digits = number % 100;
9128
- if (number === 0) {
9129
- return number + '-ев';
9130
- } else if (last2Digits === 0) {
9131
- return number + '-ен';
9132
- } else if (last2Digits > 10 && last2Digits < 20) {
9133
- return number + '-ти';
9134
- } else if (lastDigit === 1) {
9135
- return number + '-ви';
9136
- } else if (lastDigit === 2) {
9137
- return number + '-ри';
9138
- } else if (lastDigit === 7 || lastDigit === 8) {
9139
- return number + '-ми';
9140
- } else {
9141
- return number + '-ти';
9142
- }
9143
- },
9144
- week : {
9145
- dow : 1, // Monday is the first day of the week.
9146
- doy : 7 // The week that contains Jan 7th is the first week of the year.
9147
- }
9148
- });
9149
-
9150
- return bg;
9151
-
9152
- })));
9153
-
9154
-
9155
- /***/ }),
9156
-
9157
- /***/ "./node_modules/moment/locale/bm.js":
9158
- /*!******************************************!*\
9159
- !*** ./node_modules/moment/locale/bm.js ***!
9160
- \******************************************/
9161
- /*! no static exports found */
9162
- /***/ (function(module, exports, __webpack_require__) {
9163
-
9164
- //! moment.js locale configuration
9165
-
9166
- ;(function (global, factory) {
9167
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9168
- undefined
9169
- }(this, (function (moment) { 'use strict';
9170
-
9171
-
9172
- var bm = moment.defineLocale('bm', {
9173
- months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
9174
- monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
9175
- weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
9176
- weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
9177
- weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
9178
- longDateFormat : {
9179
- LT : 'HH:mm',
9180
- LTS : 'HH:mm:ss',
9181
- L : 'DD/MM/YYYY',
9182
- LL : 'MMMM [tile] D [san] YYYY',
9183
- LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
9184
- LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
9185
- },
9186
- calendar : {
9187
- sameDay : '[Bi lɛrɛ] LT',
9188
- nextDay : '[Sini lɛrɛ] LT',
9189
- nextWeek : 'dddd [don lɛrɛ] LT',
9190
- lastDay : '[Kunu lɛrɛ] LT',
9191
- lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
9192
- sameElse : 'L'
9193
- },
9194
- relativeTime : {
9195
- future : '%s kɔnɔ',
9196
- past : 'a bɛ %s bɔ',
9197
- s : 'sanga dama dama',
9198
- ss : 'sekondi %d',
9199
- m : 'miniti kelen',
9200
- mm : 'miniti %d',
9201
- h : 'lɛrɛ kelen',
9202
- hh : 'lɛrɛ %d',
9203
- d : 'tile kelen',
9204
- dd : 'tile %d',
9205
- M : 'kalo kelen',
9206
- MM : 'kalo %d',
9207
- y : 'san kelen',
9208
- yy : 'san %d'
9209
- },
9210
- week : {
9211
- dow : 1, // Monday is the first day of the week.
9212
- doy : 4 // The week that contains Jan 4th is the first week of the year.
9213
- }
9214
- });
9215
-
9216
- return bm;
9217
-
9218
- })));
9219
-
9220
-
9221
- /***/ }),
9222
-
9223
- /***/ "./node_modules/moment/locale/bn.js":
9224
- /*!******************************************!*\
9225
- !*** ./node_modules/moment/locale/bn.js ***!
9226
- \******************************************/
9227
- /*! no static exports found */
9228
- /***/ (function(module, exports, __webpack_require__) {
9229
-
9230
- //! moment.js locale configuration
9231
-
9232
- ;(function (global, factory) {
9233
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9234
- undefined
9235
- }(this, (function (moment) { 'use strict';
9236
-
9237
-
9238
- var symbolMap = {
9239
- '1': '১',
9240
- '2': '২',
9241
- '3': '৩',
9242
- '4': '৪',
9243
- '5': '৫',
9244
- '6': '৬',
9245
- '7': '৭',
9246
- '8': '৮',
9247
- '9': '৯',
9248
- '0': '০'
9249
- },
9250
- numberMap = {
9251
- '১': '1',
9252
- '২': '2',
9253
- '৩': '3',
9254
- '৪': '4',
9255
- '৫': '5',
9256
- '৬': '6',
9257
- '৭': '7',
9258
- '৮': '8',
9259
- '৯': '9',
9260
- '০': '0'
9261
- };
9262
-
9263
- var bn = moment.defineLocale('bn', {
9264
- months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
9265
- monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
9266
- weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
9267
- weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
9268
- weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
9269
- longDateFormat : {
9270
- LT : 'A h:mm সময়',
9271
- LTS : 'A h:mm:ss সময়',
9272
- L : 'DD/MM/YYYY',
9273
- LL : 'D MMMM YYYY',
9274
- LLL : 'D MMMM YYYY, A h:mm সময়',
9275
- LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
9276
- },
9277
- calendar : {
9278
- sameDay : '[আজ] LT',
9279
- nextDay : '[আগামীকাল] LT',
9280
- nextWeek : 'dddd, LT',
9281
- lastDay : '[গতকাল] LT',
9282
- lastWeek : '[গত] dddd, LT',
9283
- sameElse : 'L'
9284
- },
9285
- relativeTime : {
9286
- future : '%s পরে',
9287
- past : '%s আগে',
9288
- s : 'কয়েক সেকেন্ড',
9289
- ss : '%d সেকেন্ড',
9290
- m : 'এক মিনিট',
9291
- mm : '%d মিনিট',
9292
- h : 'এক ঘন্টা',
9293
- hh : '%d ঘন্টা',
9294
- d : 'এক দিন',
9295
- dd : '%d দিন',
9296
- M : 'এক মাস',
9297
- MM : '%d মাস',
9298
- y : 'এক বছর',
9299
- yy : '%d বছর'
9300
- },
9301
- preparse: function (string) {
9302
- return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
9303
- return numberMap[match];
9304
- });
9305
- },
9306
- postformat: function (string) {
9307
- return string.replace(/\d/g, function (match) {
9308
- return symbolMap[match];
9309
- });
9310
- },
9311
- meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
9312
- meridiemHour : function (hour, meridiem) {
9313
- if (hour === 12) {
9314
- hour = 0;
9315
- }
9316
- if ((meridiem === 'রাত' && hour >= 4) ||
9317
- (meridiem === 'দুপুর' && hour < 5) ||
9318
- meridiem === 'বিকাল') {
9319
- return hour + 12;
9320
- } else {
9321
- return hour;
9322
- }
9323
- },
9324
- meridiem : function (hour, minute, isLower) {
9325
- if (hour < 4) {
9326
- return 'রাত';
9327
- } else if (hour < 10) {
9328
- return 'সকাল';
9329
- } else if (hour < 17) {
9330
- return 'দুপুর';
9331
- } else if (hour < 20) {
9332
- return 'বিকাল';
9333
- } else {
9334
- return 'রাত';
9335
- }
9336
- },
9337
- week : {
9338
- dow : 0, // Sunday is the first day of the week.
9339
- doy : 6 // The week that contains Jan 6th is the first week of the year.
9340
- }
9341
- });
9342
-
9343
- return bn;
9344
-
9345
- })));
9346
-
9347
-
9348
- /***/ }),
9349
-
9350
- /***/ "./node_modules/moment/locale/bo.js":
9351
- /*!******************************************!*\
9352
- !*** ./node_modules/moment/locale/bo.js ***!
9353
- \******************************************/
9354
- /*! no static exports found */
9355
- /***/ (function(module, exports, __webpack_require__) {
9356
-
9357
- //! moment.js locale configuration
9358
-
9359
- ;(function (global, factory) {
9360
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9361
- undefined
9362
- }(this, (function (moment) { 'use strict';
9363
-
9364
-
9365
- var symbolMap = {
9366
- '1': '༡',
9367
- '2': '༢',
9368
- '3': '༣',
9369
- '4': '༤',
9370
- '5': '༥',
9371
- '6': '༦',
9372
- '7': '༧',
9373
- '8': '༨',
9374
- '9': '༩',
9375
- '0': '༠'
9376
- },
9377
- numberMap = {
9378
- '༡': '1',
9379
- '༢': '2',
9380
- '༣': '3',
9381
- '༤': '4',
9382
- '༥': '5',
9383
- '༦': '6',
9384
- '༧': '7',
9385
- '༨': '8',
9386
- '༩': '9',
9387
- '༠': '0'
9388
- };
9389
-
9390
- var bo = moment.defineLocale('bo', {
9391
- months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
9392
- monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
9393
- weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
9394
- weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
9395
- weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
9396
- longDateFormat : {
9397
- LT : 'A h:mm',
9398
- LTS : 'A h:mm:ss',
9399
- L : 'DD/MM/YYYY',
9400
- LL : 'D MMMM YYYY',
9401
- LLL : 'D MMMM YYYY, A h:mm',
9402
- LLLL : 'dddd, D MMMM YYYY, A h:mm'
9403
- },
9404
- calendar : {
9405
- sameDay : '[དི་རིང] LT',
9406
- nextDay : '[སང་ཉིན] LT',
9407
- nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
9408
- lastDay : '[ཁ་སང] LT',
9409
- lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
9410
- sameElse : 'L'
9411
- },
9412
- relativeTime : {
9413
- future : '%s ལ་',
9414
- past : '%s སྔན་ལ',
9415
- s : 'ལམ་སང',
9416
- ss : '%d སྐར་ཆ།',
9417
- m : 'སྐར་མ་གཅིག',
9418
- mm : '%d སྐར་མ',
9419
- h : 'ཆུ་ཚོད་གཅིག',
9420
- hh : '%d ཆུ་ཚོད',
9421
- d : 'ཉིན་གཅིག',
9422
- dd : '%d ཉིན་',
9423
- M : 'ཟླ་བ་གཅིག',
9424
- MM : '%d ཟླ་བ',
9425
- y : 'ལོ་གཅིག',
9426
- yy : '%d ལོ'
9427
- },
9428
- preparse: function (string) {
9429
- return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
9430
- return numberMap[match];
9431
- });
9432
- },
9433
- postformat: function (string) {
9434
- return string.replace(/\d/g, function (match) {
9435
- return symbolMap[match];
9436
- });
9437
- },
9438
- meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
9439
- meridiemHour : function (hour, meridiem) {
9440
- if (hour === 12) {
9441
- hour = 0;
9442
- }
9443
- if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
9444
- (meridiem === 'ཉིན་གུང' && hour < 5) ||
9445
- meridiem === 'དགོང་དག') {
9446
- return hour + 12;
9447
- } else {
9448
- return hour;
9449
- }
9450
- },
9451
- meridiem : function (hour, minute, isLower) {
9452
- if (hour < 4) {
9453
- return 'མཚན་མོ';
9454
- } else if (hour < 10) {
9455
- return 'ཞོགས་ཀས';
9456
- } else if (hour < 17) {
9457
- return 'ཉིན་གུང';
9458
- } else if (hour < 20) {
9459
- return 'དགོང་དག';
9460
- } else {
9461
- return 'མཚན་མོ';
9462
- }
9463
- },
9464
- week : {
9465
- dow : 0, // Sunday is the first day of the week.
9466
- doy : 6 // The week that contains Jan 6th is the first week of the year.
9467
- }
9468
- });
9469
-
9470
- return bo;
9471
-
9472
- })));
9473
-
9474
-
9475
- /***/ }),
9476
-
9477
- /***/ "./node_modules/moment/locale/br.js":
9478
- /*!******************************************!*\
9479
- !*** ./node_modules/moment/locale/br.js ***!
9480
- \******************************************/
9481
- /*! no static exports found */
9482
- /***/ (function(module, exports, __webpack_require__) {
9483
-
9484
- //! moment.js locale configuration
9485
-
9486
- ;(function (global, factory) {
9487
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9488
- undefined
9489
- }(this, (function (moment) { 'use strict';
9490
-
9491
-
9492
- function relativeTimeWithMutation(number, withoutSuffix, key) {
9493
- var format = {
9494
- 'mm': 'munutenn',
9495
- 'MM': 'miz',
9496
- 'dd': 'devezh'
9497
- };
9498
- return number + ' ' + mutation(format[key], number);
9499
- }
9500
- function specialMutationForYears(number) {
9501
- switch (lastNumber(number)) {
9502
- case 1:
9503
- case 3:
9504
- case 4:
9505
- case 5:
9506
- case 9:
9507
- return number + ' bloaz';
9508
- default:
9509
- return number + ' vloaz';
9510
- }
9511
- }
9512
- function lastNumber(number) {
9513
- if (number > 9) {
9514
- return lastNumber(number % 10);
9515
- }
9516
- return number;
9517
- }
9518
- function mutation(text, number) {
9519
- if (number === 2) {
9520
- return softMutation(text);
9521
- }
9522
- return text;
9523
- }
9524
- function softMutation(text) {
9525
- var mutationTable = {
9526
- 'm': 'v',
9527
- 'b': 'v',
9528
- 'd': 'z'
9529
- };
9530
- if (mutationTable[text.charAt(0)] === undefined) {
9531
- return text;
9532
- }
9533
- return mutationTable[text.charAt(0)] + text.substring(1);
9534
- }
9535
-
9536
- var br = moment.defineLocale('br', {
9537
- months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
9538
- monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
9539
- weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
9540
- weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
9541
- weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
9542
- weekdaysParseExact : true,
9543
- longDateFormat : {
9544
- LT : 'h[e]mm A',
9545
- LTS : 'h[e]mm:ss A',
9546
- L : 'DD/MM/YYYY',
9547
- LL : 'D [a viz] MMMM YYYY',
9548
- LLL : 'D [a viz] MMMM YYYY h[e]mm A',
9549
- LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
9550
- },
9551
- calendar : {
9552
- sameDay : '[Hiziv da] LT',
9553
- nextDay : '[Warc\'hoazh da] LT',
9554
- nextWeek : 'dddd [da] LT',
9555
- lastDay : '[Dec\'h da] LT',
9556
- lastWeek : 'dddd [paset da] LT',
9557
- sameElse : 'L'
9558
- },
9559
- relativeTime : {
9560
- future : 'a-benn %s',
9561
- past : '%s \'zo',
9562
- s : 'un nebeud segondennoù',
9563
- ss : '%d eilenn',
9564
- m : 'ur vunutenn',
9565
- mm : relativeTimeWithMutation,
9566
- h : 'un eur',
9567
- hh : '%d eur',
9568
- d : 'un devezh',
9569
- dd : relativeTimeWithMutation,
9570
- M : 'ur miz',
9571
- MM : relativeTimeWithMutation,
9572
- y : 'ur bloaz',
9573
- yy : specialMutationForYears
9574
- },
9575
- dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
9576
- ordinal : function (number) {
9577
- var output = (number === 1) ? 'añ' : 'vet';
9578
- return number + output;
9579
- },
9580
- week : {
9581
- dow : 1, // Monday is the first day of the week.
9582
- doy : 4 // The week that contains Jan 4th is the first week of the year.
9583
- }
9584
- });
9585
-
9586
- return br;
9587
-
9588
- })));
9589
-
9590
-
9591
- /***/ }),
9592
-
9593
- /***/ "./node_modules/moment/locale/bs.js":
9594
- /*!******************************************!*\
9595
- !*** ./node_modules/moment/locale/bs.js ***!
9596
- \******************************************/
9597
- /*! no static exports found */
9598
- /***/ (function(module, exports, __webpack_require__) {
9599
-
9600
- //! moment.js locale configuration
9601
-
9602
- ;(function (global, factory) {
9603
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9604
- undefined
9605
- }(this, (function (moment) { 'use strict';
9606
-
9607
-
9608
- function translate(number, withoutSuffix, key) {
9609
- var result = number + ' ';
9610
- switch (key) {
9611
- case 'ss':
9612
- if (number === 1) {
9613
- result += 'sekunda';
9614
- } else if (number === 2 || number === 3 || number === 4) {
9615
- result += 'sekunde';
9616
- } else {
9617
- result += 'sekundi';
9618
- }
9619
- return result;
9620
- case 'm':
9621
- return withoutSuffix ? 'jedna minuta' : 'jedne minute';
9622
- case 'mm':
9623
- if (number === 1) {
9624
- result += 'minuta';
9625
- } else if (number === 2 || number === 3 || number === 4) {
9626
- result += 'minute';
9627
- } else {
9628
- result += 'minuta';
9629
- }
9630
- return result;
9631
- case 'h':
9632
- return withoutSuffix ? 'jedan sat' : 'jednog sata';
9633
- case 'hh':
9634
- if (number === 1) {
9635
- result += 'sat';
9636
- } else if (number === 2 || number === 3 || number === 4) {
9637
- result += 'sata';
9638
- } else {
9639
- result += 'sati';
9640
- }
9641
- return result;
9642
- case 'dd':
9643
- if (number === 1) {
9644
- result += 'dan';
9645
- } else {
9646
- result += 'dana';
9647
- }
9648
- return result;
9649
- case 'MM':
9650
- if (number === 1) {
9651
- result += 'mjesec';
9652
- } else if (number === 2 || number === 3 || number === 4) {
9653
- result += 'mjeseca';
9654
- } else {
9655
- result += 'mjeseci';
9656
- }
9657
- return result;
9658
- case 'yy':
9659
- if (number === 1) {
9660
- result += 'godina';
9661
- } else if (number === 2 || number === 3 || number === 4) {
9662
- result += 'godine';
9663
- } else {
9664
- result += 'godina';
9665
- }
9666
- return result;
9667
- }
9668
- }
9669
-
9670
- var bs = moment.defineLocale('bs', {
9671
- months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
9672
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
9673
- monthsParseExact: true,
9674
- weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
9675
- weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
9676
- weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
9677
- weekdaysParseExact : true,
9678
- longDateFormat : {
9679
- LT : 'H:mm',
9680
- LTS : 'H:mm:ss',
9681
- L : 'DD.MM.YYYY',
9682
- LL : 'D. MMMM YYYY',
9683
- LLL : 'D. MMMM YYYY H:mm',
9684
- LLLL : 'dddd, D. MMMM YYYY H:mm'
9685
- },
9686
- calendar : {
9687
- sameDay : '[danas u] LT',
9688
- nextDay : '[sutra u] LT',
9689
- nextWeek : function () {
9690
- switch (this.day()) {
9691
- case 0:
9692
- return '[u] [nedjelju] [u] LT';
9693
- case 3:
9694
- return '[u] [srijedu] [u] LT';
9695
- case 6:
9696
- return '[u] [subotu] [u] LT';
9697
- case 1:
9698
- case 2:
9699
- case 4:
9700
- case 5:
9701
- return '[u] dddd [u] LT';
9702
- }
9703
- },
9704
- lastDay : '[jučer u] LT',
9705
- lastWeek : function () {
9706
- switch (this.day()) {
9707
- case 0:
9708
- case 3:
9709
- return '[prošlu] dddd [u] LT';
9710
- case 6:
9711
- return '[prošle] [subote] [u] LT';
9712
- case 1:
9713
- case 2:
9714
- case 4:
9715
- case 5:
9716
- return '[prošli] dddd [u] LT';
9717
- }
9718
- },
9719
- sameElse : 'L'
9720
- },
9721
- relativeTime : {
9722
- future : 'za %s',
9723
- past : 'prije %s',
9724
- s : 'par sekundi',
9725
- ss : translate,
9726
- m : translate,
9727
- mm : translate,
9728
- h : translate,
9729
- hh : translate,
9730
- d : 'dan',
9731
- dd : translate,
9732
- M : 'mjesec',
9733
- MM : translate,
9734
- y : 'godinu',
9735
- yy : translate
9736
- },
9737
- dayOfMonthOrdinalParse: /\d{1,2}\./,
9738
- ordinal : '%d.',
9739
- week : {
9740
- dow : 1, // Monday is the first day of the week.
9741
- doy : 7 // The week that contains Jan 7th is the first week of the year.
9742
- }
9743
- });
9744
-
9745
- return bs;
9746
-
9747
- })));
9748
-
9749
-
9750
- /***/ }),
9751
-
9752
- /***/ "./node_modules/moment/locale/ca.js":
9753
- /*!******************************************!*\
9754
- !*** ./node_modules/moment/locale/ca.js ***!
9755
- \******************************************/
9756
- /*! no static exports found */
9757
- /***/ (function(module, exports, __webpack_require__) {
9758
-
9759
- //! moment.js locale configuration
9760
-
9761
- ;(function (global, factory) {
9762
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9763
- undefined
9764
- }(this, (function (moment) { 'use strict';
9765
-
9766
-
9767
- var ca = moment.defineLocale('ca', {
9768
- months : {
9769
- standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
9770
- format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
9771
- isFormat: /D[oD]?(\s)+MMMM/
9772
- },
9773
- monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
9774
- monthsParseExact : true,
9775
- weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
9776
- weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
9777
- weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
9778
- weekdaysParseExact : true,
9779
- longDateFormat : {
9780
- LT : 'H:mm',
9781
- LTS : 'H:mm:ss',
9782
- L : 'DD/MM/YYYY',
9783
- LL : 'D MMMM [de] YYYY',
9784
- ll : 'D MMM YYYY',
9785
- LLL : 'D MMMM [de] YYYY [a les] H:mm',
9786
- lll : 'D MMM YYYY, H:mm',
9787
- LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
9788
- llll : 'ddd D MMM YYYY, H:mm'
9789
- },
9790
- calendar : {
9791
- sameDay : function () {
9792
- return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
9793
- },
9794
- nextDay : function () {
9795
- return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
9796
- },
9797
- nextWeek : function () {
9798
- return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
9799
- },
9800
- lastDay : function () {
9801
- return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
9802
- },
9803
- lastWeek : function () {
9804
- return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
9805
- },
9806
- sameElse : 'L'
9807
- },
9808
- relativeTime : {
9809
- future : 'd\'aquí %s',
9810
- past : 'fa %s',
9811
- s : 'uns segons',
9812
- ss : '%d segons',
9813
- m : 'un minut',
9814
- mm : '%d minuts',
9815
- h : 'una hora',
9816
- hh : '%d hores',
9817
- d : 'un dia',
9818
- dd : '%d dies',
9819
- M : 'un mes',
9820
- MM : '%d mesos',
9821
- y : 'un any',
9822
- yy : '%d anys'
9823
- },
9824
- dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
9825
- ordinal : function (number, period) {
9826
- var output = (number === 1) ? 'r' :
9827
- (number === 2) ? 'n' :
9828
- (number === 3) ? 'r' :
9829
- (number === 4) ? 't' : 'è';
9830
- if (period === 'w' || period === 'W') {
9831
- output = 'a';
9832
- }
9833
- return number + output;
9834
- },
9835
- week : {
9836
- dow : 1, // Monday is the first day of the week.
9837
- doy : 4 // The week that contains Jan 4th is the first week of the year.
9838
- }
9839
- });
9840
-
9841
- return ca;
9842
-
9843
- })));
9844
-
9845
-
9846
- /***/ }),
9847
-
9848
- /***/ "./node_modules/moment/locale/cs.js":
9849
- /*!******************************************!*\
9850
- !*** ./node_modules/moment/locale/cs.js ***!
9851
- \******************************************/
9852
- /*! no static exports found */
9853
- /***/ (function(module, exports, __webpack_require__) {
9854
-
9855
- //! moment.js locale configuration
9856
-
9857
- ;(function (global, factory) {
9858
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
9859
- undefined
9860
- }(this, (function (moment) { 'use strict';
9861
-
9862
-
9863
- var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
9864
- monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
9865
-
9866
- var monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i];
9867
- // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
9868
- // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
9869
- var monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
9870
-
9871
- function plural(n) {
9872
- return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
9873
- }
9874
- function translate(number, withoutSuffix, key, isFuture) {
9875
- var result = number + ' ';
9876
- switch (key) {
9877
- case 's': // a few seconds / in a few seconds / a few seconds ago
9878
- return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
9879
- case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
9880
- if (withoutSuffix || isFuture) {
9881
- return result + (plural(number) ? 'sekundy' : 'sekund');
9882
- } else {
9883
- return result + 'sekundami';
9884
- }
9885
- break;
9886
- case 'm': // a minute / in a minute / a minute ago
9887
- return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
9888
- case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
9889
- if (withoutSuffix || isFuture) {
9890
- return result + (plural(number) ? 'minuty' : 'minut');
9891
- } else {
9892
- return result + 'minutami';
9893
- }
9894
- break;
9895
- case 'h': // an hour / in an hour / an hour ago
9896
- return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
9897
- case 'hh': // 9 hours / in 9 hours / 9 hours ago
9898
- if (withoutSuffix || isFuture) {
9899
- return result + (plural(number) ? 'hodiny' : 'hodin');
9900
- } else {
9901
- return result + 'hodinami';
9902
- }
9903
- break;
9904
- case 'd': // a day / in a day / a day ago
9905
- return (withoutSuffix || isFuture) ? 'den' : 'dnem';
9906
- case 'dd': // 9 days / in 9 days / 9 days ago
9907
- if (withoutSuffix || isFuture) {
9908
- return result + (plural(number) ? 'dny' : 'dní');
9909
- } else {
9910
- return result + 'dny';
9911
- }
9912
- break;
9913
- case 'M': // a month / in a month / a month ago
9914
- return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
9915
- case 'MM': // 9 months / in 9 months / 9 months ago
9916
- if (withoutSuffix || isFuture) {
9917
- return result + (plural(number) ? 'měsíce' : 'měsíců');
9918
- } else {
9919
- return result + 'měsíci';
9920
- }
9921
- break;
9922
- case 'y': // a year / in a year / a year ago
9923
- return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
9924
- case 'yy': // 9 years / in 9 years / 9 years ago
9925
- if (withoutSuffix || isFuture) {
9926
- return result + (plural(number) ? 'roky' : 'let');
9927
- } else {
9928
- return result + 'lety';
9929
- }
9930
- break;
9931
- }
9932
- }
9933
-
9934
- var cs = moment.defineLocale('cs', {
9935
- months : months,
9936
- monthsShort : monthsShort,
9937
- monthsRegex : monthsRegex,
9938
- monthsShortRegex : monthsRegex,
9939
- // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
9940
- // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
9941
- monthsStrictRegex : /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
9942
- monthsShortStrictRegex : /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
9943
- monthsParse : monthsParse,
9944
- longMonthsParse : monthsParse,
9945
- shortMonthsParse : monthsParse,
9946
- weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
9947
- weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
9948
- weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
9949
- longDateFormat : {
9950
- LT: 'H:mm',
9951
- LTS : 'H:mm:ss',
9952
- L : 'DD.MM.YYYY',
9953
- LL : 'D. MMMM YYYY',
9954
- LLL : 'D. MMMM YYYY H:mm',
9955
- LLLL : 'dddd D. MMMM YYYY H:mm',
9956
- l : 'D. M. YYYY'
9957
- },
9958
- calendar : {
9959
- sameDay: '[dnes v] LT',
9960
- nextDay: '[zítra v] LT',
9961
- nextWeek: function () {
9962
- switch (this.day()) {
9963
- case 0:
9964
- return '[v neděli v] LT';
9965
- case 1:
9966
- case 2:
9967
- return '[v] dddd [v] LT';
9968
- case 3:
9969
- return '[ve středu v] LT';
9970
- case 4:
9971
- return '[ve čtvrtek v] LT';
9972
- case 5:
9973
- return '[v pátek v] LT';
9974
- case 6:
9975
- return '[v sobotu v] LT';
9976
- }
9977
- },
9978
- lastDay: '[včera v] LT',
9979
- lastWeek: function () {
9980
- switch (this.day()) {
9981
- case 0:
9982
- return '[minulou neděli v] LT';
9983
- case 1:
9984
- case 2:
9985
- return '[minulé] dddd [v] LT';
9986
- case 3:
9987
- return '[minulou středu v] LT';
9988
- case 4:
9989
- case 5:
9990
- return '[minulý] dddd [v] LT';
9991
- case 6:
9992
- return '[minulou sobotu v] LT';
9993
- }
9994
- },
9995
- sameElse: 'L'
9996
- },
9997
- relativeTime : {
9998
- future : 'za %s',
9999
- past : 'před %s',
10000
- s : translate,
10001
- ss : translate,
10002
- m : translate,
10003
- mm : translate,
10004
- h : translate,
10005
- hh : translate,
10006
- d : translate,
10007
- dd : translate,
10008
- M : translate,
10009
- MM : translate,
10010
- y : translate,
10011
- yy : translate
10012
- },
10013
- dayOfMonthOrdinalParse : /\d{1,2}\./,
10014
- ordinal : '%d.',
10015
- week : {
10016
- dow : 1, // Monday is the first day of the week.
10017
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10018
- }
10019
- });
10020
-
10021
- return cs;
10022
-
10023
- })));
10024
-
10025
-
10026
- /***/ }),
10027
-
10028
- /***/ "./node_modules/moment/locale/cv.js":
10029
- /*!******************************************!*\
10030
- !*** ./node_modules/moment/locale/cv.js ***!
10031
- \******************************************/
10032
- /*! no static exports found */
10033
- /***/ (function(module, exports, __webpack_require__) {
10034
-
10035
- //! moment.js locale configuration
10036
-
10037
- ;(function (global, factory) {
10038
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10039
- undefined
10040
- }(this, (function (moment) { 'use strict';
10041
-
10042
-
10043
- var cv = moment.defineLocale('cv', {
10044
- months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
10045
- monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
10046
- weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
10047
- weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
10048
- weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
10049
- longDateFormat : {
10050
- LT : 'HH:mm',
10051
- LTS : 'HH:mm:ss',
10052
- L : 'DD-MM-YYYY',
10053
- LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
10054
- LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
10055
- LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
10056
- },
10057
- calendar : {
10058
- sameDay: '[Паян] LT [сехетре]',
10059
- nextDay: '[Ыран] LT [сехетре]',
10060
- lastDay: '[Ӗнер] LT [сехетре]',
10061
- nextWeek: '[Ҫитес] dddd LT [сехетре]',
10062
- lastWeek: '[Иртнӗ] dddd LT [сехетре]',
10063
- sameElse: 'L'
10064
- },
10065
- relativeTime : {
10066
- future : function (output) {
10067
- var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
10068
- return output + affix;
10069
- },
10070
- past : '%s каялла',
10071
- s : 'пӗр-ик ҫеккунт',
10072
- ss : '%d ҫеккунт',
10073
- m : 'пӗр минут',
10074
- mm : '%d минут',
10075
- h : 'пӗр сехет',
10076
- hh : '%d сехет',
10077
- d : 'пӗр кун',
10078
- dd : '%d кун',
10079
- M : 'пӗр уйӑх',
10080
- MM : '%d уйӑх',
10081
- y : 'пӗр ҫул',
10082
- yy : '%d ҫул'
10083
- },
10084
- dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
10085
- ordinal : '%d-мӗш',
10086
- week : {
10087
- dow : 1, // Monday is the first day of the week.
10088
- doy : 7 // The week that contains Jan 7th is the first week of the year.
10089
- }
10090
- });
10091
-
10092
- return cv;
10093
-
10094
- })));
10095
-
10096
-
10097
- /***/ }),
10098
-
10099
- /***/ "./node_modules/moment/locale/cy.js":
10100
- /*!******************************************!*\
10101
- !*** ./node_modules/moment/locale/cy.js ***!
10102
- \******************************************/
10103
- /*! no static exports found */
10104
- /***/ (function(module, exports, __webpack_require__) {
10105
-
10106
- //! moment.js locale configuration
10107
-
10108
- ;(function (global, factory) {
10109
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10110
- undefined
10111
- }(this, (function (moment) { 'use strict';
10112
-
10113
-
10114
- var cy = moment.defineLocale('cy', {
10115
- months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
10116
- monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
10117
- weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
10118
- weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
10119
- weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
10120
- weekdaysParseExact : true,
10121
- // time formats are the same as en-gb
10122
- longDateFormat: {
10123
- LT: 'HH:mm',
10124
- LTS : 'HH:mm:ss',
10125
- L: 'DD/MM/YYYY',
10126
- LL: 'D MMMM YYYY',
10127
- LLL: 'D MMMM YYYY HH:mm',
10128
- LLLL: 'dddd, D MMMM YYYY HH:mm'
10129
- },
10130
- calendar: {
10131
- sameDay: '[Heddiw am] LT',
10132
- nextDay: '[Yfory am] LT',
10133
- nextWeek: 'dddd [am] LT',
10134
- lastDay: '[Ddoe am] LT',
10135
- lastWeek: 'dddd [diwethaf am] LT',
10136
- sameElse: 'L'
10137
- },
10138
- relativeTime: {
10139
- future: 'mewn %s',
10140
- past: '%s yn ôl',
10141
- s: 'ychydig eiliadau',
10142
- ss: '%d eiliad',
10143
- m: 'munud',
10144
- mm: '%d munud',
10145
- h: 'awr',
10146
- hh: '%d awr',
10147
- d: 'diwrnod',
10148
- dd: '%d diwrnod',
10149
- M: 'mis',
10150
- MM: '%d mis',
10151
- y: 'blwyddyn',
10152
- yy: '%d flynedd'
10153
- },
10154
- dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
10155
- // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
10156
- ordinal: function (number) {
10157
- var b = number,
10158
- output = '',
10159
- lookup = [
10160
- '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
10161
- 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
10162
- ];
10163
- if (b > 20) {
10164
- if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
10165
- output = 'fed'; // not 30ain, 70ain or 90ain
10166
- } else {
10167
- output = 'ain';
10168
- }
10169
- } else if (b > 0) {
10170
- output = lookup[b];
10171
- }
10172
- return number + output;
10173
- },
10174
- week : {
10175
- dow : 1, // Monday is the first day of the week.
10176
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10177
- }
10178
- });
10179
-
10180
- return cy;
10181
-
10182
- })));
10183
-
10184
-
10185
- /***/ }),
10186
-
10187
- /***/ "./node_modules/moment/locale/da.js":
10188
- /*!******************************************!*\
10189
- !*** ./node_modules/moment/locale/da.js ***!
10190
- \******************************************/
10191
- /*! no static exports found */
10192
- /***/ (function(module, exports, __webpack_require__) {
10193
-
10194
- //! moment.js locale configuration
10195
-
10196
- ;(function (global, factory) {
10197
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10198
- undefined
10199
- }(this, (function (moment) { 'use strict';
10200
-
10201
-
10202
- var da = moment.defineLocale('da', {
10203
- months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
10204
- monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
10205
- weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
10206
- weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
10207
- weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
10208
- longDateFormat : {
10209
- LT : 'HH:mm',
10210
- LTS : 'HH:mm:ss',
10211
- L : 'DD.MM.YYYY',
10212
- LL : 'D. MMMM YYYY',
10213
- LLL : 'D. MMMM YYYY HH:mm',
10214
- LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
10215
- },
10216
- calendar : {
10217
- sameDay : '[i dag kl.] LT',
10218
- nextDay : '[i morgen kl.] LT',
10219
- nextWeek : 'på dddd [kl.] LT',
10220
- lastDay : '[i går kl.] LT',
10221
- lastWeek : '[i] dddd[s kl.] LT',
10222
- sameElse : 'L'
10223
- },
10224
- relativeTime : {
10225
- future : 'om %s',
10226
- past : '%s siden',
10227
- s : 'få sekunder',
10228
- ss : '%d sekunder',
10229
- m : 'et minut',
10230
- mm : '%d minutter',
10231
- h : 'en time',
10232
- hh : '%d timer',
10233
- d : 'en dag',
10234
- dd : '%d dage',
10235
- M : 'en måned',
10236
- MM : '%d måneder',
10237
- y : 'et år',
10238
- yy : '%d år'
10239
- },
10240
- dayOfMonthOrdinalParse: /\d{1,2}\./,
10241
- ordinal : '%d.',
10242
- week : {
10243
- dow : 1, // Monday is the first day of the week.
10244
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10245
- }
10246
- });
10247
-
10248
- return da;
10249
-
10250
- })));
10251
-
10252
-
10253
- /***/ }),
10254
-
10255
- /***/ "./node_modules/moment/locale/de-at.js":
10256
- /*!*********************************************!*\
10257
- !*** ./node_modules/moment/locale/de-at.js ***!
10258
- \*********************************************/
10259
- /*! no static exports found */
10260
- /***/ (function(module, exports, __webpack_require__) {
10261
-
10262
- //! moment.js locale configuration
10263
-
10264
- ;(function (global, factory) {
10265
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10266
- undefined
10267
- }(this, (function (moment) { 'use strict';
10268
-
10269
-
10270
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
10271
- var format = {
10272
- 'm': ['eine Minute', 'einer Minute'],
10273
- 'h': ['eine Stunde', 'einer Stunde'],
10274
- 'd': ['ein Tag', 'einem Tag'],
10275
- 'dd': [number + ' Tage', number + ' Tagen'],
10276
- 'M': ['ein Monat', 'einem Monat'],
10277
- 'MM': [number + ' Monate', number + ' Monaten'],
10278
- 'y': ['ein Jahr', 'einem Jahr'],
10279
- 'yy': [number + ' Jahre', number + ' Jahren']
10280
- };
10281
- return withoutSuffix ? format[key][0] : format[key][1];
10282
- }
10283
-
10284
- var deAt = moment.defineLocale('de-at', {
10285
- months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
10286
- monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
10287
- monthsParseExact : true,
10288
- weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
10289
- weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
10290
- weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
10291
- weekdaysParseExact : true,
10292
- longDateFormat : {
10293
- LT: 'HH:mm',
10294
- LTS: 'HH:mm:ss',
10295
- L : 'DD.MM.YYYY',
10296
- LL : 'D. MMMM YYYY',
10297
- LLL : 'D. MMMM YYYY HH:mm',
10298
- LLLL : 'dddd, D. MMMM YYYY HH:mm'
10299
- },
10300
- calendar : {
10301
- sameDay: '[heute um] LT [Uhr]',
10302
- sameElse: 'L',
10303
- nextDay: '[morgen um] LT [Uhr]',
10304
- nextWeek: 'dddd [um] LT [Uhr]',
10305
- lastDay: '[gestern um] LT [Uhr]',
10306
- lastWeek: '[letzten] dddd [um] LT [Uhr]'
10307
- },
10308
- relativeTime : {
10309
- future : 'in %s',
10310
- past : 'vor %s',
10311
- s : 'ein paar Sekunden',
10312
- ss : '%d Sekunden',
10313
- m : processRelativeTime,
10314
- mm : '%d Minuten',
10315
- h : processRelativeTime,
10316
- hh : '%d Stunden',
10317
- d : processRelativeTime,
10318
- dd : processRelativeTime,
10319
- M : processRelativeTime,
10320
- MM : processRelativeTime,
10321
- y : processRelativeTime,
10322
- yy : processRelativeTime
10323
- },
10324
- dayOfMonthOrdinalParse: /\d{1,2}\./,
10325
- ordinal : '%d.',
10326
- week : {
10327
- dow : 1, // Monday is the first day of the week.
10328
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10329
- }
10330
- });
10331
-
10332
- return deAt;
10333
-
10334
- })));
10335
-
10336
-
10337
- /***/ }),
10338
-
10339
- /***/ "./node_modules/moment/locale/de-ch.js":
10340
- /*!*********************************************!*\
10341
- !*** ./node_modules/moment/locale/de-ch.js ***!
10342
- \*********************************************/
10343
- /*! no static exports found */
10344
- /***/ (function(module, exports, __webpack_require__) {
10345
-
10346
- //! moment.js locale configuration
10347
-
10348
- ;(function (global, factory) {
10349
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10350
- undefined
10351
- }(this, (function (moment) { 'use strict';
10352
-
10353
-
10354
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
10355
- var format = {
10356
- 'm': ['eine Minute', 'einer Minute'],
10357
- 'h': ['eine Stunde', 'einer Stunde'],
10358
- 'd': ['ein Tag', 'einem Tag'],
10359
- 'dd': [number + ' Tage', number + ' Tagen'],
10360
- 'M': ['ein Monat', 'einem Monat'],
10361
- 'MM': [number + ' Monate', number + ' Monaten'],
10362
- 'y': ['ein Jahr', 'einem Jahr'],
10363
- 'yy': [number + ' Jahre', number + ' Jahren']
10364
- };
10365
- return withoutSuffix ? format[key][0] : format[key][1];
10366
- }
10367
-
10368
- var deCh = moment.defineLocale('de-ch', {
10369
- months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
10370
- monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
10371
- monthsParseExact : true,
10372
- weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
10373
- weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
10374
- weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
10375
- weekdaysParseExact : true,
10376
- longDateFormat : {
10377
- LT: 'HH:mm',
10378
- LTS: 'HH:mm:ss',
10379
- L : 'DD.MM.YYYY',
10380
- LL : 'D. MMMM YYYY',
10381
- LLL : 'D. MMMM YYYY HH:mm',
10382
- LLLL : 'dddd, D. MMMM YYYY HH:mm'
10383
- },
10384
- calendar : {
10385
- sameDay: '[heute um] LT [Uhr]',
10386
- sameElse: 'L',
10387
- nextDay: '[morgen um] LT [Uhr]',
10388
- nextWeek: 'dddd [um] LT [Uhr]',
10389
- lastDay: '[gestern um] LT [Uhr]',
10390
- lastWeek: '[letzten] dddd [um] LT [Uhr]'
10391
- },
10392
- relativeTime : {
10393
- future : 'in %s',
10394
- past : 'vor %s',
10395
- s : 'ein paar Sekunden',
10396
- ss : '%d Sekunden',
10397
- m : processRelativeTime,
10398
- mm : '%d Minuten',
10399
- h : processRelativeTime,
10400
- hh : '%d Stunden',
10401
- d : processRelativeTime,
10402
- dd : processRelativeTime,
10403
- M : processRelativeTime,
10404
- MM : processRelativeTime,
10405
- y : processRelativeTime,
10406
- yy : processRelativeTime
10407
- },
10408
- dayOfMonthOrdinalParse: /\d{1,2}\./,
10409
- ordinal : '%d.',
10410
- week : {
10411
- dow : 1, // Monday is the first day of the week.
10412
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10413
- }
10414
- });
10415
-
10416
- return deCh;
10417
-
10418
- })));
10419
-
10420
-
10421
- /***/ }),
10422
-
10423
- /***/ "./node_modules/moment/locale/de.js":
10424
- /*!******************************************!*\
10425
- !*** ./node_modules/moment/locale/de.js ***!
10426
- \******************************************/
10427
- /*! no static exports found */
10428
- /***/ (function(module, exports, __webpack_require__) {
10429
-
10430
- //! moment.js locale configuration
10431
-
10432
- ;(function (global, factory) {
10433
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10434
- undefined
10435
- }(this, (function (moment) { 'use strict';
10436
-
10437
-
10438
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
10439
- var format = {
10440
- 'm': ['eine Minute', 'einer Minute'],
10441
- 'h': ['eine Stunde', 'einer Stunde'],
10442
- 'd': ['ein Tag', 'einem Tag'],
10443
- 'dd': [number + ' Tage', number + ' Tagen'],
10444
- 'M': ['ein Monat', 'einem Monat'],
10445
- 'MM': [number + ' Monate', number + ' Monaten'],
10446
- 'y': ['ein Jahr', 'einem Jahr'],
10447
- 'yy': [number + ' Jahre', number + ' Jahren']
10448
- };
10449
- return withoutSuffix ? format[key][0] : format[key][1];
10450
- }
10451
-
10452
- var de = moment.defineLocale('de', {
10453
- months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
10454
- monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
10455
- monthsParseExact : true,
10456
- weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
10457
- weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
10458
- weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
10459
- weekdaysParseExact : true,
10460
- longDateFormat : {
10461
- LT: 'HH:mm',
10462
- LTS: 'HH:mm:ss',
10463
- L : 'DD.MM.YYYY',
10464
- LL : 'D. MMMM YYYY',
10465
- LLL : 'D. MMMM YYYY HH:mm',
10466
- LLLL : 'dddd, D. MMMM YYYY HH:mm'
10467
- },
10468
- calendar : {
10469
- sameDay: '[heute um] LT [Uhr]',
10470
- sameElse: 'L',
10471
- nextDay: '[morgen um] LT [Uhr]',
10472
- nextWeek: 'dddd [um] LT [Uhr]',
10473
- lastDay: '[gestern um] LT [Uhr]',
10474
- lastWeek: '[letzten] dddd [um] LT [Uhr]'
10475
- },
10476
- relativeTime : {
10477
- future : 'in %s',
10478
- past : 'vor %s',
10479
- s : 'ein paar Sekunden',
10480
- ss : '%d Sekunden',
10481
- m : processRelativeTime,
10482
- mm : '%d Minuten',
10483
- h : processRelativeTime,
10484
- hh : '%d Stunden',
10485
- d : processRelativeTime,
10486
- dd : processRelativeTime,
10487
- M : processRelativeTime,
10488
- MM : processRelativeTime,
10489
- y : processRelativeTime,
10490
- yy : processRelativeTime
10491
- },
10492
- dayOfMonthOrdinalParse: /\d{1,2}\./,
10493
- ordinal : '%d.',
10494
- week : {
10495
- dow : 1, // Monday is the first day of the week.
10496
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10497
- }
10498
- });
10499
-
10500
- return de;
10501
-
10502
- })));
10503
-
10504
-
10505
- /***/ }),
10506
-
10507
- /***/ "./node_modules/moment/locale/dv.js":
10508
- /*!******************************************!*\
10509
- !*** ./node_modules/moment/locale/dv.js ***!
10510
- \******************************************/
10511
- /*! no static exports found */
10512
- /***/ (function(module, exports, __webpack_require__) {
10513
-
10514
- //! moment.js locale configuration
10515
-
10516
- ;(function (global, factory) {
10517
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10518
- undefined
10519
- }(this, (function (moment) { 'use strict';
10520
-
10521
-
10522
- var months = [
10523
- 'ޖެނުއަރީ',
10524
- 'ފެބްރުއަރީ',
10525
- 'މާރިޗު',
10526
- 'އޭޕްރީލު',
10527
- 'މޭ',
10528
- 'ޖޫން',
10529
- 'ޖުލައި',
10530
- 'އޯގަސްޓު',
10531
- 'ސެޕްޓެމްބަރު',
10532
- 'އޮކްޓޯބަރު',
10533
- 'ނޮވެމްބަރު',
10534
- 'ޑިސެމްބަރު'
10535
- ], weekdays = [
10536
- 'އާދިއްތަ',
10537
- 'ހޯމަ',
10538
- 'އަންގާރަ',
10539
- 'ބުދަ',
10540
- 'ބުރާސްފަތި',
10541
- 'ހުކުރު',
10542
- 'ހޮނިހިރު'
10543
- ];
10544
-
10545
- var dv = moment.defineLocale('dv', {
10546
- months : months,
10547
- monthsShort : months,
10548
- weekdays : weekdays,
10549
- weekdaysShort : weekdays,
10550
- weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
10551
- longDateFormat : {
10552
-
10553
- LT : 'HH:mm',
10554
- LTS : 'HH:mm:ss',
10555
- L : 'D/M/YYYY',
10556
- LL : 'D MMMM YYYY',
10557
- LLL : 'D MMMM YYYY HH:mm',
10558
- LLLL : 'dddd D MMMM YYYY HH:mm'
10559
- },
10560
- meridiemParse: /މކ|މފ/,
10561
- isPM : function (input) {
10562
- return 'މފ' === input;
10563
- },
10564
- meridiem : function (hour, minute, isLower) {
10565
- if (hour < 12) {
10566
- return 'މކ';
10567
- } else {
10568
- return 'މފ';
10569
- }
10570
- },
10571
- calendar : {
10572
- sameDay : '[މިއަދު] LT',
10573
- nextDay : '[މާދަމާ] LT',
10574
- nextWeek : 'dddd LT',
10575
- lastDay : '[އިއްޔެ] LT',
10576
- lastWeek : '[ފާއިތުވި] dddd LT',
10577
- sameElse : 'L'
10578
- },
10579
- relativeTime : {
10580
- future : 'ތެރޭގައި %s',
10581
- past : 'ކުރިން %s',
10582
- s : 'ސިކުންތުކޮޅެއް',
10583
- ss : 'd% ސިކުންތު',
10584
- m : 'މިނިޓެއް',
10585
- mm : 'މިނިޓު %d',
10586
- h : 'ގަޑިއިރެއް',
10587
- hh : 'ގަޑިއިރު %d',
10588
- d : 'ދުވަހެއް',
10589
- dd : 'ދުވަސް %d',
10590
- M : 'މަހެއް',
10591
- MM : 'މަސް %d',
10592
- y : 'އަހަރެއް',
10593
- yy : 'އަހަރު %d'
10594
- },
10595
- preparse: function (string) {
10596
- return string.replace(/،/g, ',');
10597
- },
10598
- postformat: function (string) {
10599
- return string.replace(/,/g, '،');
10600
- },
10601
- week : {
10602
- dow : 7, // Sunday is the first day of the week.
10603
- doy : 12 // The week that contains Jan 12th is the first week of the year.
10604
- }
10605
- });
10606
-
10607
- return dv;
10608
-
10609
- })));
10610
-
10611
-
10612
- /***/ }),
10613
-
10614
- /***/ "./node_modules/moment/locale/el.js":
10615
- /*!******************************************!*\
10616
- !*** ./node_modules/moment/locale/el.js ***!
10617
- \******************************************/
10618
- /*! no static exports found */
10619
- /***/ (function(module, exports, __webpack_require__) {
10620
-
10621
- //! moment.js locale configuration
10622
-
10623
- ;(function (global, factory) {
10624
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10625
- undefined
10626
- }(this, (function (moment) { 'use strict';
10627
-
10628
- function isFunction(input) {
10629
- return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
10630
- }
10631
-
10632
-
10633
- var el = moment.defineLocale('el', {
10634
- monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
10635
- monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
10636
- months : function (momentToFormat, format) {
10637
- if (!momentToFormat) {
10638
- return this._monthsNominativeEl;
10639
- } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
10640
- return this._monthsGenitiveEl[momentToFormat.month()];
10641
- } else {
10642
- return this._monthsNominativeEl[momentToFormat.month()];
10643
- }
10644
- },
10645
- monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
10646
- weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
10647
- weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
10648
- weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
10649
- meridiem : function (hours, minutes, isLower) {
10650
- if (hours > 11) {
10651
- return isLower ? 'μμ' : 'ΜΜ';
10652
- } else {
10653
- return isLower ? 'πμ' : 'ΠΜ';
10654
- }
10655
- },
10656
- isPM : function (input) {
10657
- return ((input + '').toLowerCase()[0] === 'μ');
10658
- },
10659
- meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
10660
- longDateFormat : {
10661
- LT : 'h:mm A',
10662
- LTS : 'h:mm:ss A',
10663
- L : 'DD/MM/YYYY',
10664
- LL : 'D MMMM YYYY',
10665
- LLL : 'D MMMM YYYY h:mm A',
10666
- LLLL : 'dddd, D MMMM YYYY h:mm A'
10667
- },
10668
- calendarEl : {
10669
- sameDay : '[Σήμερα {}] LT',
10670
- nextDay : '[Αύριο {}] LT',
10671
- nextWeek : 'dddd [{}] LT',
10672
- lastDay : '[Χθες {}] LT',
10673
- lastWeek : function () {
10674
- switch (this.day()) {
10675
- case 6:
10676
- return '[το προηγούμενο] dddd [{}] LT';
10677
- default:
10678
- return '[την προηγούμενη] dddd [{}] LT';
10679
- }
10680
- },
10681
- sameElse : 'L'
10682
- },
10683
- calendar : function (key, mom) {
10684
- var output = this._calendarEl[key],
10685
- hours = mom && mom.hours();
10686
- if (isFunction(output)) {
10687
- output = output.apply(mom);
10688
- }
10689
- return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
10690
- },
10691
- relativeTime : {
10692
- future : 'σε %s',
10693
- past : '%s πριν',
10694
- s : 'λίγα δευτερόλεπτα',
10695
- ss : '%d δευτερόλεπτα',
10696
- m : 'ένα λεπτό',
10697
- mm : '%d λεπτά',
10698
- h : 'μία ώρα',
10699
- hh : '%d ώρες',
10700
- d : 'μία μέρα',
10701
- dd : '%d μέρες',
10702
- M : 'ένας μήνας',
10703
- MM : '%d μήνες',
10704
- y : 'ένας χρόνος',
10705
- yy : '%d χρόνια'
10706
- },
10707
- dayOfMonthOrdinalParse: /\d{1,2}η/,
10708
- ordinal: '%dη',
10709
- week : {
10710
- dow : 1, // Monday is the first day of the week.
10711
- doy : 4 // The week that contains Jan 4st is the first week of the year.
10712
- }
10713
- });
10714
-
10715
- return el;
10716
-
10717
- })));
10718
-
10719
-
10720
- /***/ }),
10721
-
10722
- /***/ "./node_modules/moment/locale/en-SG.js":
10723
- /*!*********************************************!*\
10724
- !*** ./node_modules/moment/locale/en-SG.js ***!
10725
- \*********************************************/
10726
- /*! no static exports found */
10727
- /***/ (function(module, exports, __webpack_require__) {
10728
-
10729
- //! moment.js locale configuration
10730
-
10731
- ;(function (global, factory) {
10732
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10733
- undefined
10734
- }(this, (function (moment) { 'use strict';
10735
-
10736
-
10737
- var enSG = moment.defineLocale('en-SG', {
10738
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
10739
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10740
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
10741
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
10742
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
10743
- longDateFormat : {
10744
- LT : 'HH:mm',
10745
- LTS : 'HH:mm:ss',
10746
- L : 'DD/MM/YYYY',
10747
- LL : 'D MMMM YYYY',
10748
- LLL : 'D MMMM YYYY HH:mm',
10749
- LLLL : 'dddd, D MMMM YYYY HH:mm'
10750
- },
10751
- calendar : {
10752
- sameDay : '[Today at] LT',
10753
- nextDay : '[Tomorrow at] LT',
10754
- nextWeek : 'dddd [at] LT',
10755
- lastDay : '[Yesterday at] LT',
10756
- lastWeek : '[Last] dddd [at] LT',
10757
- sameElse : 'L'
10758
- },
10759
- relativeTime : {
10760
- future : 'in %s',
10761
- past : '%s ago',
10762
- s : 'a few seconds',
10763
- ss : '%d seconds',
10764
- m : 'a minute',
10765
- mm : '%d minutes',
10766
- h : 'an hour',
10767
- hh : '%d hours',
10768
- d : 'a day',
10769
- dd : '%d days',
10770
- M : 'a month',
10771
- MM : '%d months',
10772
- y : 'a year',
10773
- yy : '%d years'
10774
- },
10775
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
10776
- ordinal : function (number) {
10777
- var b = number % 10,
10778
- output = (~~(number % 100 / 10) === 1) ? 'th' :
10779
- (b === 1) ? 'st' :
10780
- (b === 2) ? 'nd' :
10781
- (b === 3) ? 'rd' : 'th';
10782
- return number + output;
10783
- },
10784
- week : {
10785
- dow : 1, // Monday is the first day of the week.
10786
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10787
- }
10788
- });
10789
-
10790
- return enSG;
10791
-
10792
- })));
10793
-
10794
-
10795
- /***/ }),
10796
-
10797
- /***/ "./node_modules/moment/locale/en-au.js":
10798
- /*!*********************************************!*\
10799
- !*** ./node_modules/moment/locale/en-au.js ***!
10800
- \*********************************************/
10801
- /*! no static exports found */
10802
- /***/ (function(module, exports, __webpack_require__) {
10803
-
10804
- //! moment.js locale configuration
10805
-
10806
- ;(function (global, factory) {
10807
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10808
- undefined
10809
- }(this, (function (moment) { 'use strict';
10810
-
10811
-
10812
- var enAu = moment.defineLocale('en-au', {
10813
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
10814
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10815
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
10816
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
10817
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
10818
- longDateFormat : {
10819
- LT : 'h:mm A',
10820
- LTS : 'h:mm:ss A',
10821
- L : 'DD/MM/YYYY',
10822
- LL : 'D MMMM YYYY',
10823
- LLL : 'D MMMM YYYY h:mm A',
10824
- LLLL : 'dddd, D MMMM YYYY h:mm A'
10825
- },
10826
- calendar : {
10827
- sameDay : '[Today at] LT',
10828
- nextDay : '[Tomorrow at] LT',
10829
- nextWeek : 'dddd [at] LT',
10830
- lastDay : '[Yesterday at] LT',
10831
- lastWeek : '[Last] dddd [at] LT',
10832
- sameElse : 'L'
10833
- },
10834
- relativeTime : {
10835
- future : 'in %s',
10836
- past : '%s ago',
10837
- s : 'a few seconds',
10838
- ss : '%d seconds',
10839
- m : 'a minute',
10840
- mm : '%d minutes',
10841
- h : 'an hour',
10842
- hh : '%d hours',
10843
- d : 'a day',
10844
- dd : '%d days',
10845
- M : 'a month',
10846
- MM : '%d months',
10847
- y : 'a year',
10848
- yy : '%d years'
10849
- },
10850
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
10851
- ordinal : function (number) {
10852
- var b = number % 10,
10853
- output = (~~(number % 100 / 10) === 1) ? 'th' :
10854
- (b === 1) ? 'st' :
10855
- (b === 2) ? 'nd' :
10856
- (b === 3) ? 'rd' : 'th';
10857
- return number + output;
10858
- },
10859
- week : {
10860
- dow : 1, // Monday is the first day of the week.
10861
- doy : 4 // The week that contains Jan 4th is the first week of the year.
10862
- }
10863
- });
10864
-
10865
- return enAu;
10866
-
10867
- })));
10868
-
10869
-
10870
- /***/ }),
10871
-
10872
- /***/ "./node_modules/moment/locale/en-ca.js":
10873
- /*!*********************************************!*\
10874
- !*** ./node_modules/moment/locale/en-ca.js ***!
10875
- \*********************************************/
10876
- /*! no static exports found */
10877
- /***/ (function(module, exports, __webpack_require__) {
10878
-
10879
- //! moment.js locale configuration
10880
-
10881
- ;(function (global, factory) {
10882
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10883
- undefined
10884
- }(this, (function (moment) { 'use strict';
10885
-
10886
-
10887
- var enCa = moment.defineLocale('en-ca', {
10888
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
10889
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10890
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
10891
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
10892
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
10893
- longDateFormat : {
10894
- LT : 'h:mm A',
10895
- LTS : 'h:mm:ss A',
10896
- L : 'YYYY-MM-DD',
10897
- LL : 'MMMM D, YYYY',
10898
- LLL : 'MMMM D, YYYY h:mm A',
10899
- LLLL : 'dddd, MMMM D, YYYY h:mm A'
10900
- },
10901
- calendar : {
10902
- sameDay : '[Today at] LT',
10903
- nextDay : '[Tomorrow at] LT',
10904
- nextWeek : 'dddd [at] LT',
10905
- lastDay : '[Yesterday at] LT',
10906
- lastWeek : '[Last] dddd [at] LT',
10907
- sameElse : 'L'
10908
- },
10909
- relativeTime : {
10910
- future : 'in %s',
10911
- past : '%s ago',
10912
- s : 'a few seconds',
10913
- ss : '%d seconds',
10914
- m : 'a minute',
10915
- mm : '%d minutes',
10916
- h : 'an hour',
10917
- hh : '%d hours',
10918
- d : 'a day',
10919
- dd : '%d days',
10920
- M : 'a month',
10921
- MM : '%d months',
10922
- y : 'a year',
10923
- yy : '%d years'
10924
- },
10925
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
10926
- ordinal : function (number) {
10927
- var b = number % 10,
10928
- output = (~~(number % 100 / 10) === 1) ? 'th' :
10929
- (b === 1) ? 'st' :
10930
- (b === 2) ? 'nd' :
10931
- (b === 3) ? 'rd' : 'th';
10932
- return number + output;
10933
- }
10934
- });
10935
-
10936
- return enCa;
10937
-
10938
- })));
10939
-
10940
-
10941
- /***/ }),
10942
-
10943
- /***/ "./node_modules/moment/locale/en-gb.js":
10944
- /*!*********************************************!*\
10945
- !*** ./node_modules/moment/locale/en-gb.js ***!
10946
- \*********************************************/
10947
- /*! no static exports found */
10948
- /***/ (function(module, exports, __webpack_require__) {
10949
-
10950
- //! moment.js locale configuration
10951
-
10952
- ;(function (global, factory) {
10953
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
10954
- undefined
10955
- }(this, (function (moment) { 'use strict';
10956
-
10957
-
10958
- var enGb = moment.defineLocale('en-gb', {
10959
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
10960
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10961
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
10962
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
10963
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
10964
- longDateFormat : {
10965
- LT : 'HH:mm',
10966
- LTS : 'HH:mm:ss',
10967
- L : 'DD/MM/YYYY',
10968
- LL : 'D MMMM YYYY',
10969
- LLL : 'D MMMM YYYY HH:mm',
10970
- LLLL : 'dddd, D MMMM YYYY HH:mm'
10971
- },
10972
- calendar : {
10973
- sameDay : '[Today at] LT',
10974
- nextDay : '[Tomorrow at] LT',
10975
- nextWeek : 'dddd [at] LT',
10976
- lastDay : '[Yesterday at] LT',
10977
- lastWeek : '[Last] dddd [at] LT',
10978
- sameElse : 'L'
10979
- },
10980
- relativeTime : {
10981
- future : 'in %s',
10982
- past : '%s ago',
10983
- s : 'a few seconds',
10984
- ss : '%d seconds',
10985
- m : 'a minute',
10986
- mm : '%d minutes',
10987
- h : 'an hour',
10988
- hh : '%d hours',
10989
- d : 'a day',
10990
- dd : '%d days',
10991
- M : 'a month',
10992
- MM : '%d months',
10993
- y : 'a year',
10994
- yy : '%d years'
10995
- },
10996
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
10997
- ordinal : function (number) {
10998
- var b = number % 10,
10999
- output = (~~(number % 100 / 10) === 1) ? 'th' :
11000
- (b === 1) ? 'st' :
11001
- (b === 2) ? 'nd' :
11002
- (b === 3) ? 'rd' : 'th';
11003
- return number + output;
11004
- },
11005
- week : {
11006
- dow : 1, // Monday is the first day of the week.
11007
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11008
- }
11009
- });
11010
-
11011
- return enGb;
11012
-
11013
- })));
11014
-
11015
-
11016
- /***/ }),
11017
-
11018
- /***/ "./node_modules/moment/locale/en-ie.js":
11019
- /*!*********************************************!*\
11020
- !*** ./node_modules/moment/locale/en-ie.js ***!
11021
- \*********************************************/
11022
- /*! no static exports found */
11023
- /***/ (function(module, exports, __webpack_require__) {
11024
-
11025
- //! moment.js locale configuration
11026
-
11027
- ;(function (global, factory) {
11028
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11029
- undefined
11030
- }(this, (function (moment) { 'use strict';
11031
-
11032
-
11033
- var enIe = moment.defineLocale('en-ie', {
11034
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
11035
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
11036
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11037
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
11038
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
11039
- longDateFormat : {
11040
- LT : 'HH:mm',
11041
- LTS : 'HH:mm:ss',
11042
- L : 'DD/MM/YYYY',
11043
- LL : 'D MMMM YYYY',
11044
- LLL : 'D MMMM YYYY HH:mm',
11045
- LLLL : 'dddd D MMMM YYYY HH:mm'
11046
- },
11047
- calendar : {
11048
- sameDay : '[Today at] LT',
11049
- nextDay : '[Tomorrow at] LT',
11050
- nextWeek : 'dddd [at] LT',
11051
- lastDay : '[Yesterday at] LT',
11052
- lastWeek : '[Last] dddd [at] LT',
11053
- sameElse : 'L'
11054
- },
11055
- relativeTime : {
11056
- future : 'in %s',
11057
- past : '%s ago',
11058
- s : 'a few seconds',
11059
- ss : '%d seconds',
11060
- m : 'a minute',
11061
- mm : '%d minutes',
11062
- h : 'an hour',
11063
- hh : '%d hours',
11064
- d : 'a day',
11065
- dd : '%d days',
11066
- M : 'a month',
11067
- MM : '%d months',
11068
- y : 'a year',
11069
- yy : '%d years'
11070
- },
11071
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
11072
- ordinal : function (number) {
11073
- var b = number % 10,
11074
- output = (~~(number % 100 / 10) === 1) ? 'th' :
11075
- (b === 1) ? 'st' :
11076
- (b === 2) ? 'nd' :
11077
- (b === 3) ? 'rd' : 'th';
11078
- return number + output;
11079
- },
11080
- week : {
11081
- dow : 1, // Monday is the first day of the week.
11082
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11083
- }
11084
- });
11085
-
11086
- return enIe;
11087
-
11088
- })));
11089
-
11090
-
11091
- /***/ }),
11092
-
11093
- /***/ "./node_modules/moment/locale/en-il.js":
11094
- /*!*********************************************!*\
11095
- !*** ./node_modules/moment/locale/en-il.js ***!
11096
- \*********************************************/
11097
- /*! no static exports found */
11098
- /***/ (function(module, exports, __webpack_require__) {
11099
-
11100
- //! moment.js locale configuration
11101
-
11102
- ;(function (global, factory) {
11103
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11104
- undefined
11105
- }(this, (function (moment) { 'use strict';
11106
-
11107
-
11108
- var enIl = moment.defineLocale('en-il', {
11109
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
11110
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
11111
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11112
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
11113
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
11114
- longDateFormat : {
11115
- LT : 'HH:mm',
11116
- LTS : 'HH:mm:ss',
11117
- L : 'DD/MM/YYYY',
11118
- LL : 'D MMMM YYYY',
11119
- LLL : 'D MMMM YYYY HH:mm',
11120
- LLLL : 'dddd, D MMMM YYYY HH:mm'
11121
- },
11122
- calendar : {
11123
- sameDay : '[Today at] LT',
11124
- nextDay : '[Tomorrow at] LT',
11125
- nextWeek : 'dddd [at] LT',
11126
- lastDay : '[Yesterday at] LT',
11127
- lastWeek : '[Last] dddd [at] LT',
11128
- sameElse : 'L'
11129
- },
11130
- relativeTime : {
11131
- future : 'in %s',
11132
- past : '%s ago',
11133
- s : 'a few seconds',
11134
- m : 'a minute',
11135
- mm : '%d minutes',
11136
- h : 'an hour',
11137
- hh : '%d hours',
11138
- d : 'a day',
11139
- dd : '%d days',
11140
- M : 'a month',
11141
- MM : '%d months',
11142
- y : 'a year',
11143
- yy : '%d years'
11144
- },
11145
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
11146
- ordinal : function (number) {
11147
- var b = number % 10,
11148
- output = (~~(number % 100 / 10) === 1) ? 'th' :
11149
- (b === 1) ? 'st' :
11150
- (b === 2) ? 'nd' :
11151
- (b === 3) ? 'rd' : 'th';
11152
- return number + output;
11153
- }
11154
- });
11155
-
11156
- return enIl;
11157
-
11158
- })));
11159
-
11160
-
11161
- /***/ }),
11162
-
11163
- /***/ "./node_modules/moment/locale/en-nz.js":
11164
- /*!*********************************************!*\
11165
- !*** ./node_modules/moment/locale/en-nz.js ***!
11166
- \*********************************************/
11167
- /*! no static exports found */
11168
- /***/ (function(module, exports, __webpack_require__) {
11169
-
11170
- //! moment.js locale configuration
11171
-
11172
- ;(function (global, factory) {
11173
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11174
- undefined
11175
- }(this, (function (moment) { 'use strict';
11176
-
11177
-
11178
- var enNz = moment.defineLocale('en-nz', {
11179
- months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
11180
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
11181
- weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11182
- weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
11183
- weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
11184
- longDateFormat : {
11185
- LT : 'h:mm A',
11186
- LTS : 'h:mm:ss A',
11187
- L : 'DD/MM/YYYY',
11188
- LL : 'D MMMM YYYY',
11189
- LLL : 'D MMMM YYYY h:mm A',
11190
- LLLL : 'dddd, D MMMM YYYY h:mm A'
11191
- },
11192
- calendar : {
11193
- sameDay : '[Today at] LT',
11194
- nextDay : '[Tomorrow at] LT',
11195
- nextWeek : 'dddd [at] LT',
11196
- lastDay : '[Yesterday at] LT',
11197
- lastWeek : '[Last] dddd [at] LT',
11198
- sameElse : 'L'
11199
- },
11200
- relativeTime : {
11201
- future : 'in %s',
11202
- past : '%s ago',
11203
- s : 'a few seconds',
11204
- ss : '%d seconds',
11205
- m : 'a minute',
11206
- mm : '%d minutes',
11207
- h : 'an hour',
11208
- hh : '%d hours',
11209
- d : 'a day',
11210
- dd : '%d days',
11211
- M : 'a month',
11212
- MM : '%d months',
11213
- y : 'a year',
11214
- yy : '%d years'
11215
- },
11216
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
11217
- ordinal : function (number) {
11218
- var b = number % 10,
11219
- output = (~~(number % 100 / 10) === 1) ? 'th' :
11220
- (b === 1) ? 'st' :
11221
- (b === 2) ? 'nd' :
11222
- (b === 3) ? 'rd' : 'th';
11223
- return number + output;
11224
- },
11225
- week : {
11226
- dow : 1, // Monday is the first day of the week.
11227
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11228
- }
11229
- });
11230
-
11231
- return enNz;
11232
-
11233
- })));
11234
-
11235
-
11236
- /***/ }),
11237
-
11238
- /***/ "./node_modules/moment/locale/eo.js":
11239
- /*!******************************************!*\
11240
- !*** ./node_modules/moment/locale/eo.js ***!
11241
- \******************************************/
11242
- /*! no static exports found */
11243
- /***/ (function(module, exports, __webpack_require__) {
11244
-
11245
- //! moment.js locale configuration
11246
-
11247
- ;(function (global, factory) {
11248
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11249
- undefined
11250
- }(this, (function (moment) { 'use strict';
11251
-
11252
-
11253
- var eo = moment.defineLocale('eo', {
11254
- months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
11255
- monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
11256
- weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
11257
- weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
11258
- weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
11259
- longDateFormat : {
11260
- LT : 'HH:mm',
11261
- LTS : 'HH:mm:ss',
11262
- L : 'YYYY-MM-DD',
11263
- LL : 'D[-a de] MMMM, YYYY',
11264
- LLL : 'D[-a de] MMMM, YYYY HH:mm',
11265
- LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
11266
- },
11267
- meridiemParse: /[ap]\.t\.m/i,
11268
- isPM: function (input) {
11269
- return input.charAt(0).toLowerCase() === 'p';
11270
- },
11271
- meridiem : function (hours, minutes, isLower) {
11272
- if (hours > 11) {
11273
- return isLower ? 'p.t.m.' : 'P.T.M.';
11274
- } else {
11275
- return isLower ? 'a.t.m.' : 'A.T.M.';
11276
- }
11277
- },
11278
- calendar : {
11279
- sameDay : '[Hodiaŭ je] LT',
11280
- nextDay : '[Morgaŭ je] LT',
11281
- nextWeek : 'dddd [je] LT',
11282
- lastDay : '[Hieraŭ je] LT',
11283
- lastWeek : '[pasinta] dddd [je] LT',
11284
- sameElse : 'L'
11285
- },
11286
- relativeTime : {
11287
- future : 'post %s',
11288
- past : 'antaŭ %s',
11289
- s : 'sekundoj',
11290
- ss : '%d sekundoj',
11291
- m : 'minuto',
11292
- mm : '%d minutoj',
11293
- h : 'horo',
11294
- hh : '%d horoj',
11295
- d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
11296
- dd : '%d tagoj',
11297
- M : 'monato',
11298
- MM : '%d monatoj',
11299
- y : 'jaro',
11300
- yy : '%d jaroj'
11301
- },
11302
- dayOfMonthOrdinalParse: /\d{1,2}a/,
11303
- ordinal : '%da',
11304
- week : {
11305
- dow : 1, // Monday is the first day of the week.
11306
- doy : 7 // The week that contains Jan 7th is the first week of the year.
11307
- }
11308
- });
11309
-
11310
- return eo;
11311
-
11312
- })));
11313
-
11314
-
11315
- /***/ }),
11316
-
11317
- /***/ "./node_modules/moment/locale/es-do.js":
11318
- /*!*********************************************!*\
11319
- !*** ./node_modules/moment/locale/es-do.js ***!
11320
- \*********************************************/
11321
- /*! no static exports found */
11322
- /***/ (function(module, exports, __webpack_require__) {
11323
-
11324
- //! moment.js locale configuration
11325
-
11326
- ;(function (global, factory) {
11327
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11328
- undefined
11329
- }(this, (function (moment) { 'use strict';
11330
-
11331
-
11332
- var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
11333
- monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
11334
-
11335
- var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
11336
- var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
11337
-
11338
- var esDo = moment.defineLocale('es-do', {
11339
- months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
11340
- monthsShort : function (m, format) {
11341
- if (!m) {
11342
- return monthsShortDot;
11343
- } else if (/-MMM-/.test(format)) {
11344
- return monthsShort[m.month()];
11345
- } else {
11346
- return monthsShortDot[m.month()];
11347
- }
11348
- },
11349
- monthsRegex: monthsRegex,
11350
- monthsShortRegex: monthsRegex,
11351
- monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
11352
- monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
11353
- monthsParse: monthsParse,
11354
- longMonthsParse: monthsParse,
11355
- shortMonthsParse: monthsParse,
11356
- weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
11357
- weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
11358
- weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
11359
- weekdaysParseExact : true,
11360
- longDateFormat : {
11361
- LT : 'h:mm A',
11362
- LTS : 'h:mm:ss A',
11363
- L : 'DD/MM/YYYY',
11364
- LL : 'D [de] MMMM [de] YYYY',
11365
- LLL : 'D [de] MMMM [de] YYYY h:mm A',
11366
- LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
11367
- },
11368
- calendar : {
11369
- sameDay : function () {
11370
- return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11371
- },
11372
- nextDay : function () {
11373
- return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11374
- },
11375
- nextWeek : function () {
11376
- return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11377
- },
11378
- lastDay : function () {
11379
- return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11380
- },
11381
- lastWeek : function () {
11382
- return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11383
- },
11384
- sameElse : 'L'
11385
- },
11386
- relativeTime : {
11387
- future : 'en %s',
11388
- past : 'hace %s',
11389
- s : 'unos segundos',
11390
- ss : '%d segundos',
11391
- m : 'un minuto',
11392
- mm : '%d minutos',
11393
- h : 'una hora',
11394
- hh : '%d horas',
11395
- d : 'un día',
11396
- dd : '%d días',
11397
- M : 'un mes',
11398
- MM : '%d meses',
11399
- y : 'un año',
11400
- yy : '%d años'
11401
- },
11402
- dayOfMonthOrdinalParse : /\d{1,2}º/,
11403
- ordinal : '%dº',
11404
- week : {
11405
- dow : 1, // Monday is the first day of the week.
11406
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11407
- }
11408
- });
11409
-
11410
- return esDo;
11411
-
11412
- })));
11413
-
11414
-
11415
- /***/ }),
11416
-
11417
- /***/ "./node_modules/moment/locale/es-us.js":
11418
- /*!*********************************************!*\
11419
- !*** ./node_modules/moment/locale/es-us.js ***!
11420
- \*********************************************/
11421
- /*! no static exports found */
11422
- /***/ (function(module, exports, __webpack_require__) {
11423
-
11424
- //! moment.js locale configuration
11425
-
11426
- ;(function (global, factory) {
11427
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11428
- undefined
11429
- }(this, (function (moment) { 'use strict';
11430
-
11431
-
11432
- var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
11433
- monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
11434
-
11435
- var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
11436
- var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
11437
-
11438
- var esUs = moment.defineLocale('es-us', {
11439
- months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
11440
- monthsShort : function (m, format) {
11441
- if (!m) {
11442
- return monthsShortDot;
11443
- } else if (/-MMM-/.test(format)) {
11444
- return monthsShort[m.month()];
11445
- } else {
11446
- return monthsShortDot[m.month()];
11447
- }
11448
- },
11449
- monthsRegex: monthsRegex,
11450
- monthsShortRegex: monthsRegex,
11451
- monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
11452
- monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
11453
- monthsParse: monthsParse,
11454
- longMonthsParse: monthsParse,
11455
- shortMonthsParse: monthsParse,
11456
- weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
11457
- weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
11458
- weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
11459
- weekdaysParseExact : true,
11460
- longDateFormat : {
11461
- LT : 'h:mm A',
11462
- LTS : 'h:mm:ss A',
11463
- L : 'MM/DD/YYYY',
11464
- LL : 'D [de] MMMM [de] YYYY',
11465
- LLL : 'D [de] MMMM [de] YYYY h:mm A',
11466
- LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
11467
- },
11468
- calendar : {
11469
- sameDay : function () {
11470
- return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11471
- },
11472
- nextDay : function () {
11473
- return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11474
- },
11475
- nextWeek : function () {
11476
- return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11477
- },
11478
- lastDay : function () {
11479
- return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11480
- },
11481
- lastWeek : function () {
11482
- return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11483
- },
11484
- sameElse : 'L'
11485
- },
11486
- relativeTime : {
11487
- future : 'en %s',
11488
- past : 'hace %s',
11489
- s : 'unos segundos',
11490
- ss : '%d segundos',
11491
- m : 'un minuto',
11492
- mm : '%d minutos',
11493
- h : 'una hora',
11494
- hh : '%d horas',
11495
- d : 'un día',
11496
- dd : '%d días',
11497
- M : 'un mes',
11498
- MM : '%d meses',
11499
- y : 'un año',
11500
- yy : '%d años'
11501
- },
11502
- dayOfMonthOrdinalParse : /\d{1,2}º/,
11503
- ordinal : '%dº',
11504
- week : {
11505
- dow : 0, // Sunday is the first day of the week.
11506
- doy : 6 // The week that contains Jan 6th is the first week of the year.
11507
- }
11508
- });
11509
-
11510
- return esUs;
11511
-
11512
- })));
11513
-
11514
-
11515
- /***/ }),
11516
-
11517
- /***/ "./node_modules/moment/locale/es.js":
11518
- /*!******************************************!*\
11519
- !*** ./node_modules/moment/locale/es.js ***!
11520
- \******************************************/
11521
- /*! no static exports found */
11522
- /***/ (function(module, exports, __webpack_require__) {
11523
-
11524
- //! moment.js locale configuration
11525
-
11526
- ;(function (global, factory) {
11527
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11528
- undefined
11529
- }(this, (function (moment) { 'use strict';
11530
-
11531
-
11532
- var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
11533
- monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
11534
-
11535
- var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
11536
- var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
11537
-
11538
- var es = moment.defineLocale('es', {
11539
- months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
11540
- monthsShort : function (m, format) {
11541
- if (!m) {
11542
- return monthsShortDot;
11543
- } else if (/-MMM-/.test(format)) {
11544
- return monthsShort[m.month()];
11545
- } else {
11546
- return monthsShortDot[m.month()];
11547
- }
11548
- },
11549
- monthsRegex : monthsRegex,
11550
- monthsShortRegex : monthsRegex,
11551
- monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
11552
- monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
11553
- monthsParse : monthsParse,
11554
- longMonthsParse : monthsParse,
11555
- shortMonthsParse : monthsParse,
11556
- weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
11557
- weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
11558
- weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
11559
- weekdaysParseExact : true,
11560
- longDateFormat : {
11561
- LT : 'H:mm',
11562
- LTS : 'H:mm:ss',
11563
- L : 'DD/MM/YYYY',
11564
- LL : 'D [de] MMMM [de] YYYY',
11565
- LLL : 'D [de] MMMM [de] YYYY H:mm',
11566
- LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
11567
- },
11568
- calendar : {
11569
- sameDay : function () {
11570
- return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11571
- },
11572
- nextDay : function () {
11573
- return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11574
- },
11575
- nextWeek : function () {
11576
- return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11577
- },
11578
- lastDay : function () {
11579
- return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11580
- },
11581
- lastWeek : function () {
11582
- return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
11583
- },
11584
- sameElse : 'L'
11585
- },
11586
- relativeTime : {
11587
- future : 'en %s',
11588
- past : 'hace %s',
11589
- s : 'unos segundos',
11590
- ss : '%d segundos',
11591
- m : 'un minuto',
11592
- mm : '%d minutos',
11593
- h : 'una hora',
11594
- hh : '%d horas',
11595
- d : 'un día',
11596
- dd : '%d días',
11597
- M : 'un mes',
11598
- MM : '%d meses',
11599
- y : 'un año',
11600
- yy : '%d años'
11601
- },
11602
- dayOfMonthOrdinalParse : /\d{1,2}º/,
11603
- ordinal : '%dº',
11604
- week : {
11605
- dow : 1, // Monday is the first day of the week.
11606
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11607
- }
11608
- });
11609
-
11610
- return es;
11611
-
11612
- })));
11613
-
11614
-
11615
- /***/ }),
11616
-
11617
- /***/ "./node_modules/moment/locale/et.js":
11618
- /*!******************************************!*\
11619
- !*** ./node_modules/moment/locale/et.js ***!
11620
- \******************************************/
11621
- /*! no static exports found */
11622
- /***/ (function(module, exports, __webpack_require__) {
11623
-
11624
- //! moment.js locale configuration
11625
-
11626
- ;(function (global, factory) {
11627
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11628
- undefined
11629
- }(this, (function (moment) { 'use strict';
11630
-
11631
-
11632
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
11633
- var format = {
11634
- 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
11635
- 'ss': [number + 'sekundi', number + 'sekundit'],
11636
- 'm' : ['ühe minuti', 'üks minut'],
11637
- 'mm': [number + ' minuti', number + ' minutit'],
11638
- 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
11639
- 'hh': [number + ' tunni', number + ' tundi'],
11640
- 'd' : ['ühe päeva', 'üks päev'],
11641
- 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
11642
- 'MM': [number + ' kuu', number + ' kuud'],
11643
- 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
11644
- 'yy': [number + ' aasta', number + ' aastat']
11645
- };
11646
- if (withoutSuffix) {
11647
- return format[key][2] ? format[key][2] : format[key][1];
11648
- }
11649
- return isFuture ? format[key][0] : format[key][1];
11650
- }
11651
-
11652
- var et = moment.defineLocale('et', {
11653
- months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
11654
- monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
11655
- weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
11656
- weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
11657
- weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
11658
- longDateFormat : {
11659
- LT : 'H:mm',
11660
- LTS : 'H:mm:ss',
11661
- L : 'DD.MM.YYYY',
11662
- LL : 'D. MMMM YYYY',
11663
- LLL : 'D. MMMM YYYY H:mm',
11664
- LLLL : 'dddd, D. MMMM YYYY H:mm'
11665
- },
11666
- calendar : {
11667
- sameDay : '[Täna,] LT',
11668
- nextDay : '[Homme,] LT',
11669
- nextWeek : '[Järgmine] dddd LT',
11670
- lastDay : '[Eile,] LT',
11671
- lastWeek : '[Eelmine] dddd LT',
11672
- sameElse : 'L'
11673
- },
11674
- relativeTime : {
11675
- future : '%s pärast',
11676
- past : '%s tagasi',
11677
- s : processRelativeTime,
11678
- ss : processRelativeTime,
11679
- m : processRelativeTime,
11680
- mm : processRelativeTime,
11681
- h : processRelativeTime,
11682
- hh : processRelativeTime,
11683
- d : processRelativeTime,
11684
- dd : '%d päeva',
11685
- M : processRelativeTime,
11686
- MM : processRelativeTime,
11687
- y : processRelativeTime,
11688
- yy : processRelativeTime
11689
- },
11690
- dayOfMonthOrdinalParse: /\d{1,2}\./,
11691
- ordinal : '%d.',
11692
- week : {
11693
- dow : 1, // Monday is the first day of the week.
11694
- doy : 4 // The week that contains Jan 4th is the first week of the year.
11695
- }
11696
- });
11697
-
11698
- return et;
11699
-
11700
- })));
11701
-
11702
-
11703
- /***/ }),
11704
-
11705
- /***/ "./node_modules/moment/locale/eu.js":
11706
- /*!******************************************!*\
11707
- !*** ./node_modules/moment/locale/eu.js ***!
11708
- \******************************************/
11709
- /*! no static exports found */
11710
- /***/ (function(module, exports, __webpack_require__) {
11711
-
11712
- //! moment.js locale configuration
11713
-
11714
- ;(function (global, factory) {
11715
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11716
- undefined
11717
- }(this, (function (moment) { 'use strict';
11718
-
11719
-
11720
- var eu = moment.defineLocale('eu', {
11721
- months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
11722
- monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
11723
- monthsParseExact : true,
11724
- weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
11725
- weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
11726
- weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
11727
- weekdaysParseExact : true,
11728
- longDateFormat : {
11729
- LT : 'HH:mm',
11730
- LTS : 'HH:mm:ss',
11731
- L : 'YYYY-MM-DD',
11732
- LL : 'YYYY[ko] MMMM[ren] D[a]',
11733
- LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
11734
- LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
11735
- l : 'YYYY-M-D',
11736
- ll : 'YYYY[ko] MMM D[a]',
11737
- lll : 'YYYY[ko] MMM D[a] HH:mm',
11738
- llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
11739
- },
11740
- calendar : {
11741
- sameDay : '[gaur] LT[etan]',
11742
- nextDay : '[bihar] LT[etan]',
11743
- nextWeek : 'dddd LT[etan]',
11744
- lastDay : '[atzo] LT[etan]',
11745
- lastWeek : '[aurreko] dddd LT[etan]',
11746
- sameElse : 'L'
11747
- },
11748
- relativeTime : {
11749
- future : '%s barru',
11750
- past : 'duela %s',
11751
- s : 'segundo batzuk',
11752
- ss : '%d segundo',
11753
- m : 'minutu bat',
11754
- mm : '%d minutu',
11755
- h : 'ordu bat',
11756
- hh : '%d ordu',
11757
- d : 'egun bat',
11758
- dd : '%d egun',
11759
- M : 'hilabete bat',
11760
- MM : '%d hilabete',
11761
- y : 'urte bat',
11762
- yy : '%d urte'
11763
- },
11764
- dayOfMonthOrdinalParse: /\d{1,2}\./,
11765
- ordinal : '%d.',
11766
- week : {
11767
- dow : 1, // Monday is the first day of the week.
11768
- doy : 7 // The week that contains Jan 7th is the first week of the year.
11769
- }
11770
- });
11771
-
11772
- return eu;
11773
-
11774
- })));
11775
-
11776
-
11777
- /***/ }),
11778
-
11779
- /***/ "./node_modules/moment/locale/fa.js":
11780
- /*!******************************************!*\
11781
- !*** ./node_modules/moment/locale/fa.js ***!
11782
- \******************************************/
11783
- /*! no static exports found */
11784
- /***/ (function(module, exports, __webpack_require__) {
11785
-
11786
- //! moment.js locale configuration
11787
-
11788
- ;(function (global, factory) {
11789
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11790
- undefined
11791
- }(this, (function (moment) { 'use strict';
11792
-
11793
-
11794
- var symbolMap = {
11795
- '1': '۱',
11796
- '2': '۲',
11797
- '3': '۳',
11798
- '4': '۴',
11799
- '5': '۵',
11800
- '6': '۶',
11801
- '7': '۷',
11802
- '8': '۸',
11803
- '9': '۹',
11804
- '0': '۰'
11805
- }, numberMap = {
11806
- '۱': '1',
11807
- '۲': '2',
11808
- '۳': '3',
11809
- '۴': '4',
11810
- '۵': '5',
11811
- '۶': '6',
11812
- '۷': '7',
11813
- '۸': '8',
11814
- '۹': '9',
11815
- '۰': '0'
11816
- };
11817
-
11818
- var fa = moment.defineLocale('fa', {
11819
- months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
11820
- monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
11821
- weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
11822
- weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
11823
- weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
11824
- weekdaysParseExact : true,
11825
- longDateFormat : {
11826
- LT : 'HH:mm',
11827
- LTS : 'HH:mm:ss',
11828
- L : 'DD/MM/YYYY',
11829
- LL : 'D MMMM YYYY',
11830
- LLL : 'D MMMM YYYY HH:mm',
11831
- LLLL : 'dddd, D MMMM YYYY HH:mm'
11832
- },
11833
- meridiemParse: /قبل از ظهر|بعد از ظهر/,
11834
- isPM: function (input) {
11835
- return /بعد از ظهر/.test(input);
11836
- },
11837
- meridiem : function (hour, minute, isLower) {
11838
- if (hour < 12) {
11839
- return 'قبل از ظهر';
11840
- } else {
11841
- return 'بعد از ظهر';
11842
- }
11843
- },
11844
- calendar : {
11845
- sameDay : '[امروز ساعت] LT',
11846
- nextDay : '[فردا ساعت] LT',
11847
- nextWeek : 'dddd [ساعت] LT',
11848
- lastDay : '[دیروز ساعت] LT',
11849
- lastWeek : 'dddd [پیش] [ساعت] LT',
11850
- sameElse : 'L'
11851
- },
11852
- relativeTime : {
11853
- future : 'در %s',
11854
- past : '%s پیش',
11855
- s : 'چند ثانیه',
11856
- ss : 'ثانیه d%',
11857
- m : 'یک دقیقه',
11858
- mm : '%d دقیقه',
11859
- h : 'یک ساعت',
11860
- hh : '%d ساعت',
11861
- d : 'یک روز',
11862
- dd : '%d روز',
11863
- M : 'یک ماه',
11864
- MM : '%d ماه',
11865
- y : 'یک سال',
11866
- yy : '%d سال'
11867
- },
11868
- preparse: function (string) {
11869
- return string.replace(/[۰-۹]/g, function (match) {
11870
- return numberMap[match];
11871
- }).replace(/،/g, ',');
11872
- },
11873
- postformat: function (string) {
11874
- return string.replace(/\d/g, function (match) {
11875
- return symbolMap[match];
11876
- }).replace(/,/g, '،');
11877
- },
11878
- dayOfMonthOrdinalParse: /\d{1,2}م/,
11879
- ordinal : '%dم',
11880
- week : {
11881
- dow : 6, // Saturday is the first day of the week.
11882
- doy : 12 // The week that contains Jan 12th is the first week of the year.
11883
- }
11884
- });
11885
-
11886
- return fa;
11887
-
11888
- })));
11889
-
11890
-
11891
- /***/ }),
11892
-
11893
- /***/ "./node_modules/moment/locale/fi.js":
11894
- /*!******************************************!*\
11895
- !*** ./node_modules/moment/locale/fi.js ***!
11896
- \******************************************/
11897
- /*! no static exports found */
11898
- /***/ (function(module, exports, __webpack_require__) {
11899
-
11900
- //! moment.js locale configuration
11901
-
11902
- ;(function (global, factory) {
11903
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
11904
- undefined
11905
- }(this, (function (moment) { 'use strict';
11906
-
11907
-
11908
- var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
11909
- numbersFuture = [
11910
- 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
11911
- numbersPast[7], numbersPast[8], numbersPast[9]
11912
- ];
11913
- function translate(number, withoutSuffix, key, isFuture) {
11914
- var result = '';
11915
- switch (key) {
11916
- case 's':
11917
- return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
11918
- case 'ss':
11919
- return isFuture ? 'sekunnin' : 'sekuntia';
11920
- case 'm':
11921
- return isFuture ? 'minuutin' : 'minuutti';
11922
- case 'mm':
11923
- result = isFuture ? 'minuutin' : 'minuuttia';
11924
- break;
11925
- case 'h':
11926
- return isFuture ? 'tunnin' : 'tunti';
11927
- case 'hh':
11928
- result = isFuture ? 'tunnin' : 'tuntia';
11929
- break;
11930
- case 'd':
11931
- return isFuture ? 'päivän' : 'päivä';
11932
- case 'dd':
11933
- result = isFuture ? 'päivän' : 'päivää';
11934
- break;
11935
- case 'M':
11936
- return isFuture ? 'kuukauden' : 'kuukausi';
11937
- case 'MM':
11938
- result = isFuture ? 'kuukauden' : 'kuukautta';
11939
- break;
11940
- case 'y':
11941
- return isFuture ? 'vuoden' : 'vuosi';
11942
- case 'yy':
11943
- result = isFuture ? 'vuoden' : 'vuotta';
11944
- break;
11945
- }
11946
- result = verbalNumber(number, isFuture) + ' ' + result;
11947
- return result;
11948
- }
11949
- function verbalNumber(number, isFuture) {
11950
- return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
11951
- }
11952
-
11953
- var fi = moment.defineLocale('fi', {
11954
- months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
11955
- monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
11956
- weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
11957
- weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
11958
- weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
11959
- longDateFormat : {
11960
- LT : 'HH.mm',
11961
- LTS : 'HH.mm.ss',
11962
- L : 'DD.MM.YYYY',
11963
- LL : 'Do MMMM[ta] YYYY',
11964
- LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
11965
- LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
11966
- l : 'D.M.YYYY',
11967
- ll : 'Do MMM YYYY',
11968
- lll : 'Do MMM YYYY, [klo] HH.mm',
11969
- llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
11970
- },
11971
- calendar : {
11972
- sameDay : '[tänään] [klo] LT',
11973
- nextDay : '[huomenna] [klo] LT',
11974
- nextWeek : 'dddd [klo] LT',
11975
- lastDay : '[eilen] [klo] LT',
11976
- lastWeek : '[viime] dddd[na] [klo] LT',
11977
- sameElse : 'L'
11978
- },
11979
- relativeTime : {
11980
- future : '%s päästä',
11981
- past : '%s sitten',
11982
- s : translate,
11983
- ss : translate,
11984
- m : translate,
11985
- mm : translate,
11986
- h : translate,
11987
- hh : translate,
11988
- d : translate,
11989
- dd : translate,
11990
- M : translate,
11991
- MM : translate,
11992
- y : translate,
11993
- yy : translate
11994
- },
11995
- dayOfMonthOrdinalParse: /\d{1,2}\./,
11996
- ordinal : '%d.',
11997
- week : {
11998
- dow : 1, // Monday is the first day of the week.
11999
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12000
- }
12001
- });
12002
-
12003
- return fi;
12004
-
12005
- })));
12006
-
12007
-
12008
- /***/ }),
12009
-
12010
- /***/ "./node_modules/moment/locale/fo.js":
12011
- /*!******************************************!*\
12012
- !*** ./node_modules/moment/locale/fo.js ***!
12013
- \******************************************/
12014
- /*! no static exports found */
12015
- /***/ (function(module, exports, __webpack_require__) {
12016
-
12017
- //! moment.js locale configuration
12018
-
12019
- ;(function (global, factory) {
12020
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12021
- undefined
12022
- }(this, (function (moment) { 'use strict';
12023
-
12024
-
12025
- var fo = moment.defineLocale('fo', {
12026
- months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
12027
- monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
12028
- weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
12029
- weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
12030
- weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
12031
- longDateFormat : {
12032
- LT : 'HH:mm',
12033
- LTS : 'HH:mm:ss',
12034
- L : 'DD/MM/YYYY',
12035
- LL : 'D MMMM YYYY',
12036
- LLL : 'D MMMM YYYY HH:mm',
12037
- LLLL : 'dddd D. MMMM, YYYY HH:mm'
12038
- },
12039
- calendar : {
12040
- sameDay : '[Í dag kl.] LT',
12041
- nextDay : '[Í morgin kl.] LT',
12042
- nextWeek : 'dddd [kl.] LT',
12043
- lastDay : '[Í gjár kl.] LT',
12044
- lastWeek : '[síðstu] dddd [kl] LT',
12045
- sameElse : 'L'
12046
- },
12047
- relativeTime : {
12048
- future : 'um %s',
12049
- past : '%s síðani',
12050
- s : 'fá sekund',
12051
- ss : '%d sekundir',
12052
- m : 'ein minuttur',
12053
- mm : '%d minuttir',
12054
- h : 'ein tími',
12055
- hh : '%d tímar',
12056
- d : 'ein dagur',
12057
- dd : '%d dagar',
12058
- M : 'ein mánaður',
12059
- MM : '%d mánaðir',
12060
- y : 'eitt ár',
12061
- yy : '%d ár'
12062
- },
12063
- dayOfMonthOrdinalParse: /\d{1,2}\./,
12064
- ordinal : '%d.',
12065
- week : {
12066
- dow : 1, // Monday is the first day of the week.
12067
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12068
- }
12069
- });
12070
-
12071
- return fo;
12072
-
12073
- })));
12074
-
12075
-
12076
- /***/ }),
12077
-
12078
- /***/ "./node_modules/moment/locale/fr-ca.js":
12079
- /*!*********************************************!*\
12080
- !*** ./node_modules/moment/locale/fr-ca.js ***!
12081
- \*********************************************/
12082
- /*! no static exports found */
12083
- /***/ (function(module, exports, __webpack_require__) {
12084
-
12085
- //! moment.js locale configuration
12086
-
12087
- ;(function (global, factory) {
12088
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12089
- undefined
12090
- }(this, (function (moment) { 'use strict';
12091
-
12092
-
12093
- var frCa = moment.defineLocale('fr-ca', {
12094
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
12095
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
12096
- monthsParseExact : true,
12097
- weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
12098
- weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
12099
- weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
12100
- weekdaysParseExact : true,
12101
- longDateFormat : {
12102
- LT : 'HH:mm',
12103
- LTS : 'HH:mm:ss',
12104
- L : 'YYYY-MM-DD',
12105
- LL : 'D MMMM YYYY',
12106
- LLL : 'D MMMM YYYY HH:mm',
12107
- LLLL : 'dddd D MMMM YYYY HH:mm'
12108
- },
12109
- calendar : {
12110
- sameDay : '[Aujourd’hui à] LT',
12111
- nextDay : '[Demain à] LT',
12112
- nextWeek : 'dddd [à] LT',
12113
- lastDay : '[Hier à] LT',
12114
- lastWeek : 'dddd [dernier à] LT',
12115
- sameElse : 'L'
12116
- },
12117
- relativeTime : {
12118
- future : 'dans %s',
12119
- past : 'il y a %s',
12120
- s : 'quelques secondes',
12121
- ss : '%d secondes',
12122
- m : 'une minute',
12123
- mm : '%d minutes',
12124
- h : 'une heure',
12125
- hh : '%d heures',
12126
- d : 'un jour',
12127
- dd : '%d jours',
12128
- M : 'un mois',
12129
- MM : '%d mois',
12130
- y : 'un an',
12131
- yy : '%d ans'
12132
- },
12133
- dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
12134
- ordinal : function (number, period) {
12135
- switch (period) {
12136
- // Words with masculine grammatical gender: mois, trimestre, jour
12137
- default:
12138
- case 'M':
12139
- case 'Q':
12140
- case 'D':
12141
- case 'DDD':
12142
- case 'd':
12143
- return number + (number === 1 ? 'er' : 'e');
12144
-
12145
- // Words with feminine grammatical gender: semaine
12146
- case 'w':
12147
- case 'W':
12148
- return number + (number === 1 ? 're' : 'e');
12149
- }
12150
- }
12151
- });
12152
-
12153
- return frCa;
12154
-
12155
- })));
12156
-
12157
-
12158
- /***/ }),
12159
-
12160
- /***/ "./node_modules/moment/locale/fr-ch.js":
12161
- /*!*********************************************!*\
12162
- !*** ./node_modules/moment/locale/fr-ch.js ***!
12163
- \*********************************************/
12164
- /*! no static exports found */
12165
- /***/ (function(module, exports, __webpack_require__) {
12166
-
12167
- //! moment.js locale configuration
12168
-
12169
- ;(function (global, factory) {
12170
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12171
- undefined
12172
- }(this, (function (moment) { 'use strict';
12173
-
12174
-
12175
- var frCh = moment.defineLocale('fr-ch', {
12176
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
12177
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
12178
- monthsParseExact : true,
12179
- weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
12180
- weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
12181
- weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
12182
- weekdaysParseExact : true,
12183
- longDateFormat : {
12184
- LT : 'HH:mm',
12185
- LTS : 'HH:mm:ss',
12186
- L : 'DD.MM.YYYY',
12187
- LL : 'D MMMM YYYY',
12188
- LLL : 'D MMMM YYYY HH:mm',
12189
- LLLL : 'dddd D MMMM YYYY HH:mm'
12190
- },
12191
- calendar : {
12192
- sameDay : '[Aujourd’hui à] LT',
12193
- nextDay : '[Demain à] LT',
12194
- nextWeek : 'dddd [à] LT',
12195
- lastDay : '[Hier à] LT',
12196
- lastWeek : 'dddd [dernier à] LT',
12197
- sameElse : 'L'
12198
- },
12199
- relativeTime : {
12200
- future : 'dans %s',
12201
- past : 'il y a %s',
12202
- s : 'quelques secondes',
12203
- ss : '%d secondes',
12204
- m : 'une minute',
12205
- mm : '%d minutes',
12206
- h : 'une heure',
12207
- hh : '%d heures',
12208
- d : 'un jour',
12209
- dd : '%d jours',
12210
- M : 'un mois',
12211
- MM : '%d mois',
12212
- y : 'un an',
12213
- yy : '%d ans'
12214
- },
12215
- dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
12216
- ordinal : function (number, period) {
12217
- switch (period) {
12218
- // Words with masculine grammatical gender: mois, trimestre, jour
12219
- default:
12220
- case 'M':
12221
- case 'Q':
12222
- case 'D':
12223
- case 'DDD':
12224
- case 'd':
12225
- return number + (number === 1 ? 'er' : 'e');
12226
-
12227
- // Words with feminine grammatical gender: semaine
12228
- case 'w':
12229
- case 'W':
12230
- return number + (number === 1 ? 're' : 'e');
12231
- }
12232
- },
12233
- week : {
12234
- dow : 1, // Monday is the first day of the week.
12235
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12236
- }
12237
- });
12238
-
12239
- return frCh;
12240
-
12241
- })));
12242
-
12243
-
12244
- /***/ }),
12245
-
12246
- /***/ "./node_modules/moment/locale/fr.js":
12247
- /*!******************************************!*\
12248
- !*** ./node_modules/moment/locale/fr.js ***!
12249
- \******************************************/
12250
- /*! no static exports found */
12251
- /***/ (function(module, exports, __webpack_require__) {
12252
-
12253
- //! moment.js locale configuration
12254
-
12255
- ;(function (global, factory) {
12256
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12257
- undefined
12258
- }(this, (function (moment) { 'use strict';
12259
-
12260
-
12261
- var fr = moment.defineLocale('fr', {
12262
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
12263
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
12264
- monthsParseExact : true,
12265
- weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
12266
- weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
12267
- weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
12268
- weekdaysParseExact : true,
12269
- longDateFormat : {
12270
- LT : 'HH:mm',
12271
- LTS : 'HH:mm:ss',
12272
- L : 'DD/MM/YYYY',
12273
- LL : 'D MMMM YYYY',
12274
- LLL : 'D MMMM YYYY HH:mm',
12275
- LLLL : 'dddd D MMMM YYYY HH:mm'
12276
- },
12277
- calendar : {
12278
- sameDay : '[Aujourd’hui à] LT',
12279
- nextDay : '[Demain à] LT',
12280
- nextWeek : 'dddd [à] LT',
12281
- lastDay : '[Hier à] LT',
12282
- lastWeek : 'dddd [dernier à] LT',
12283
- sameElse : 'L'
12284
- },
12285
- relativeTime : {
12286
- future : 'dans %s',
12287
- past : 'il y a %s',
12288
- s : 'quelques secondes',
12289
- ss : '%d secondes',
12290
- m : 'une minute',
12291
- mm : '%d minutes',
12292
- h : 'une heure',
12293
- hh : '%d heures',
12294
- d : 'un jour',
12295
- dd : '%d jours',
12296
- M : 'un mois',
12297
- MM : '%d mois',
12298
- y : 'un an',
12299
- yy : '%d ans'
12300
- },
12301
- dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
12302
- ordinal : function (number, period) {
12303
- switch (period) {
12304
- // TODO: Return 'e' when day of month > 1. Move this case inside
12305
- // block for masculine words below.
12306
- // See https://github.com/moment/moment/issues/3375
12307
- case 'D':
12308
- return number + (number === 1 ? 'er' : '');
12309
-
12310
- // Words with masculine grammatical gender: mois, trimestre, jour
12311
- default:
12312
- case 'M':
12313
- case 'Q':
12314
- case 'DDD':
12315
- case 'd':
12316
- return number + (number === 1 ? 'er' : 'e');
12317
-
12318
- // Words with feminine grammatical gender: semaine
12319
- case 'w':
12320
- case 'W':
12321
- return number + (number === 1 ? 're' : 'e');
12322
- }
12323
- },
12324
- week : {
12325
- dow : 1, // Monday is the first day of the week.
12326
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12327
- }
12328
- });
12329
-
12330
- return fr;
12331
-
12332
- })));
12333
-
12334
-
12335
- /***/ }),
12336
-
12337
- /***/ "./node_modules/moment/locale/fy.js":
12338
- /*!******************************************!*\
12339
- !*** ./node_modules/moment/locale/fy.js ***!
12340
- \******************************************/
12341
- /*! no static exports found */
12342
- /***/ (function(module, exports, __webpack_require__) {
12343
-
12344
- //! moment.js locale configuration
12345
-
12346
- ;(function (global, factory) {
12347
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12348
- undefined
12349
- }(this, (function (moment) { 'use strict';
12350
-
12351
-
12352
- var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
12353
- monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
12354
-
12355
- var fy = moment.defineLocale('fy', {
12356
- months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
12357
- monthsShort : function (m, format) {
12358
- if (!m) {
12359
- return monthsShortWithDots;
12360
- } else if (/-MMM-/.test(format)) {
12361
- return monthsShortWithoutDots[m.month()];
12362
- } else {
12363
- return monthsShortWithDots[m.month()];
12364
- }
12365
- },
12366
- monthsParseExact : true,
12367
- weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
12368
- weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
12369
- weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
12370
- weekdaysParseExact : true,
12371
- longDateFormat : {
12372
- LT : 'HH:mm',
12373
- LTS : 'HH:mm:ss',
12374
- L : 'DD-MM-YYYY',
12375
- LL : 'D MMMM YYYY',
12376
- LLL : 'D MMMM YYYY HH:mm',
12377
- LLLL : 'dddd D MMMM YYYY HH:mm'
12378
- },
12379
- calendar : {
12380
- sameDay: '[hjoed om] LT',
12381
- nextDay: '[moarn om] LT',
12382
- nextWeek: 'dddd [om] LT',
12383
- lastDay: '[juster om] LT',
12384
- lastWeek: '[ôfrûne] dddd [om] LT',
12385
- sameElse: 'L'
12386
- },
12387
- relativeTime : {
12388
- future : 'oer %s',
12389
- past : '%s lyn',
12390
- s : 'in pear sekonden',
12391
- ss : '%d sekonden',
12392
- m : 'ien minút',
12393
- mm : '%d minuten',
12394
- h : 'ien oere',
12395
- hh : '%d oeren',
12396
- d : 'ien dei',
12397
- dd : '%d dagen',
12398
- M : 'ien moanne',
12399
- MM : '%d moannen',
12400
- y : 'ien jier',
12401
- yy : '%d jierren'
12402
- },
12403
- dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
12404
- ordinal : function (number) {
12405
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
12406
- },
12407
- week : {
12408
- dow : 1, // Monday is the first day of the week.
12409
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12410
- }
12411
- });
12412
-
12413
- return fy;
12414
-
12415
- })));
12416
-
12417
-
12418
- /***/ }),
12419
-
12420
- /***/ "./node_modules/moment/locale/ga.js":
12421
- /*!******************************************!*\
12422
- !*** ./node_modules/moment/locale/ga.js ***!
12423
- \******************************************/
12424
- /*! no static exports found */
12425
- /***/ (function(module, exports, __webpack_require__) {
12426
-
12427
- //! moment.js locale configuration
12428
-
12429
- ;(function (global, factory) {
12430
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12431
- undefined
12432
- }(this, (function (moment) { 'use strict';
12433
-
12434
-
12435
-
12436
- var months = [
12437
- 'Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Méitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deaireadh Fómhair', 'Samhain', 'Nollaig'
12438
- ];
12439
-
12440
- var monthsShort = ['Eaná', 'Feab', 'Márt', 'Aibr', 'Beal', 'Méit', 'Iúil', 'Lúna', 'Meán', 'Deai', 'Samh', 'Noll'];
12441
-
12442
- var weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Satharn'];
12443
-
12444
- var weekdaysShort = ['Dom', 'Lua', 'Mái', 'Céa', 'Déa', 'hAo', 'Sat'];
12445
-
12446
- var weekdaysMin = ['Do', 'Lu', 'Má', 'Ce', 'Dé', 'hA', 'Sa'];
12447
-
12448
- var ga = moment.defineLocale('ga', {
12449
- months: months,
12450
- monthsShort: monthsShort,
12451
- monthsParseExact: true,
12452
- weekdays: weekdays,
12453
- weekdaysShort: weekdaysShort,
12454
- weekdaysMin: weekdaysMin,
12455
- longDateFormat: {
12456
- LT: 'HH:mm',
12457
- LTS: 'HH:mm:ss',
12458
- L: 'DD/MM/YYYY',
12459
- LL: 'D MMMM YYYY',
12460
- LLL: 'D MMMM YYYY HH:mm',
12461
- LLLL: 'dddd, D MMMM YYYY HH:mm'
12462
- },
12463
- calendar: {
12464
- sameDay: '[Inniu ag] LT',
12465
- nextDay: '[Amárach ag] LT',
12466
- nextWeek: 'dddd [ag] LT',
12467
- lastDay: '[Inné aig] LT',
12468
- lastWeek: 'dddd [seo caite] [ag] LT',
12469
- sameElse: 'L'
12470
- },
12471
- relativeTime: {
12472
- future: 'i %s',
12473
- past: '%s ó shin',
12474
- s: 'cúpla soicind',
12475
- ss: '%d soicind',
12476
- m: 'nóiméad',
12477
- mm: '%d nóiméad',
12478
- h: 'uair an chloig',
12479
- hh: '%d uair an chloig',
12480
- d: 'lá',
12481
- dd: '%d lá',
12482
- M: 'mí',
12483
- MM: '%d mí',
12484
- y: 'bliain',
12485
- yy: '%d bliain'
12486
- },
12487
- dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
12488
- ordinal: function (number) {
12489
- var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
12490
- return number + output;
12491
- },
12492
- week: {
12493
- dow: 1, // Monday is the first day of the week.
12494
- doy: 4 // The week that contains Jan 4th is the first week of the year.
12495
- }
12496
- });
12497
-
12498
- return ga;
12499
-
12500
- })));
12501
-
12502
-
12503
- /***/ }),
12504
-
12505
- /***/ "./node_modules/moment/locale/gd.js":
12506
- /*!******************************************!*\
12507
- !*** ./node_modules/moment/locale/gd.js ***!
12508
- \******************************************/
12509
- /*! no static exports found */
12510
- /***/ (function(module, exports, __webpack_require__) {
12511
-
12512
- //! moment.js locale configuration
12513
-
12514
- ;(function (global, factory) {
12515
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12516
- undefined
12517
- }(this, (function (moment) { 'use strict';
12518
-
12519
-
12520
- var months = [
12521
- 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
12522
- ];
12523
-
12524
- var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
12525
-
12526
- var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
12527
-
12528
- var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
12529
-
12530
- var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
12531
-
12532
- var gd = moment.defineLocale('gd', {
12533
- months : months,
12534
- monthsShort : monthsShort,
12535
- monthsParseExact : true,
12536
- weekdays : weekdays,
12537
- weekdaysShort : weekdaysShort,
12538
- weekdaysMin : weekdaysMin,
12539
- longDateFormat : {
12540
- LT : 'HH:mm',
12541
- LTS : 'HH:mm:ss',
12542
- L : 'DD/MM/YYYY',
12543
- LL : 'D MMMM YYYY',
12544
- LLL : 'D MMMM YYYY HH:mm',
12545
- LLLL : 'dddd, D MMMM YYYY HH:mm'
12546
- },
12547
- calendar : {
12548
- sameDay : '[An-diugh aig] LT',
12549
- nextDay : '[A-màireach aig] LT',
12550
- nextWeek : 'dddd [aig] LT',
12551
- lastDay : '[An-dè aig] LT',
12552
- lastWeek : 'dddd [seo chaidh] [aig] LT',
12553
- sameElse : 'L'
12554
- },
12555
- relativeTime : {
12556
- future : 'ann an %s',
12557
- past : 'bho chionn %s',
12558
- s : 'beagan diogan',
12559
- ss : '%d diogan',
12560
- m : 'mionaid',
12561
- mm : '%d mionaidean',
12562
- h : 'uair',
12563
- hh : '%d uairean',
12564
- d : 'latha',
12565
- dd : '%d latha',
12566
- M : 'mìos',
12567
- MM : '%d mìosan',
12568
- y : 'bliadhna',
12569
- yy : '%d bliadhna'
12570
- },
12571
- dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
12572
- ordinal : function (number) {
12573
- var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
12574
- return number + output;
12575
- },
12576
- week : {
12577
- dow : 1, // Monday is the first day of the week.
12578
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12579
- }
12580
- });
12581
-
12582
- return gd;
12583
-
12584
- })));
12585
-
12586
-
12587
- /***/ }),
12588
-
12589
- /***/ "./node_modules/moment/locale/gl.js":
12590
- /*!******************************************!*\
12591
- !*** ./node_modules/moment/locale/gl.js ***!
12592
- \******************************************/
12593
- /*! no static exports found */
12594
- /***/ (function(module, exports, __webpack_require__) {
12595
-
12596
- //! moment.js locale configuration
12597
-
12598
- ;(function (global, factory) {
12599
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12600
- undefined
12601
- }(this, (function (moment) { 'use strict';
12602
-
12603
-
12604
- var gl = moment.defineLocale('gl', {
12605
- months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
12606
- monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
12607
- monthsParseExact: true,
12608
- weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
12609
- weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
12610
- weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
12611
- weekdaysParseExact : true,
12612
- longDateFormat : {
12613
- LT : 'H:mm',
12614
- LTS : 'H:mm:ss',
12615
- L : 'DD/MM/YYYY',
12616
- LL : 'D [de] MMMM [de] YYYY',
12617
- LLL : 'D [de] MMMM [de] YYYY H:mm',
12618
- LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
12619
- },
12620
- calendar : {
12621
- sameDay : function () {
12622
- return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
12623
- },
12624
- nextDay : function () {
12625
- return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
12626
- },
12627
- nextWeek : function () {
12628
- return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
12629
- },
12630
- lastDay : function () {
12631
- return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
12632
- },
12633
- lastWeek : function () {
12634
- return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
12635
- },
12636
- sameElse : 'L'
12637
- },
12638
- relativeTime : {
12639
- future : function (str) {
12640
- if (str.indexOf('un') === 0) {
12641
- return 'n' + str;
12642
- }
12643
- return 'en ' + str;
12644
- },
12645
- past : 'hai %s',
12646
- s : 'uns segundos',
12647
- ss : '%d segundos',
12648
- m : 'un minuto',
12649
- mm : '%d minutos',
12650
- h : 'unha hora',
12651
- hh : '%d horas',
12652
- d : 'un día',
12653
- dd : '%d días',
12654
- M : 'un mes',
12655
- MM : '%d meses',
12656
- y : 'un ano',
12657
- yy : '%d anos'
12658
- },
12659
- dayOfMonthOrdinalParse : /\d{1,2}º/,
12660
- ordinal : '%dº',
12661
- week : {
12662
- dow : 1, // Monday is the first day of the week.
12663
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12664
- }
12665
- });
12666
-
12667
- return gl;
12668
-
12669
- })));
12670
-
12671
-
12672
- /***/ }),
12673
-
12674
- /***/ "./node_modules/moment/locale/gom-latn.js":
12675
- /*!************************************************!*\
12676
- !*** ./node_modules/moment/locale/gom-latn.js ***!
12677
- \************************************************/
12678
- /*! no static exports found */
12679
- /***/ (function(module, exports, __webpack_require__) {
12680
-
12681
- //! moment.js locale configuration
12682
-
12683
- ;(function (global, factory) {
12684
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12685
- undefined
12686
- }(this, (function (moment) { 'use strict';
12687
-
12688
-
12689
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
12690
- var format = {
12691
- 's': ['thodde secondanim', 'thodde second'],
12692
- 'ss': [number + ' secondanim', number + ' second'],
12693
- 'm': ['eka mintan', 'ek minute'],
12694
- 'mm': [number + ' mintanim', number + ' mintam'],
12695
- 'h': ['eka voran', 'ek vor'],
12696
- 'hh': [number + ' voranim', number + ' voram'],
12697
- 'd': ['eka disan', 'ek dis'],
12698
- 'dd': [number + ' disanim', number + ' dis'],
12699
- 'M': ['eka mhoinean', 'ek mhoino'],
12700
- 'MM': [number + ' mhoineanim', number + ' mhoine'],
12701
- 'y': ['eka vorsan', 'ek voros'],
12702
- 'yy': [number + ' vorsanim', number + ' vorsam']
12703
- };
12704
- return withoutSuffix ? format[key][0] : format[key][1];
12705
- }
12706
-
12707
- var gomLatn = moment.defineLocale('gom-latn', {
12708
- months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
12709
- monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
12710
- monthsParseExact : true,
12711
- weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
12712
- weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
12713
- weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
12714
- weekdaysParseExact : true,
12715
- longDateFormat : {
12716
- LT : 'A h:mm [vazta]',
12717
- LTS : 'A h:mm:ss [vazta]',
12718
- L : 'DD-MM-YYYY',
12719
- LL : 'D MMMM YYYY',
12720
- LLL : 'D MMMM YYYY A h:mm [vazta]',
12721
- LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
12722
- llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
12723
- },
12724
- calendar : {
12725
- sameDay: '[Aiz] LT',
12726
- nextDay: '[Faleam] LT',
12727
- nextWeek: '[Ieta to] dddd[,] LT',
12728
- lastDay: '[Kal] LT',
12729
- lastWeek: '[Fatlo] dddd[,] LT',
12730
- sameElse: 'L'
12731
- },
12732
- relativeTime : {
12733
- future : '%s',
12734
- past : '%s adim',
12735
- s : processRelativeTime,
12736
- ss : processRelativeTime,
12737
- m : processRelativeTime,
12738
- mm : processRelativeTime,
12739
- h : processRelativeTime,
12740
- hh : processRelativeTime,
12741
- d : processRelativeTime,
12742
- dd : processRelativeTime,
12743
- M : processRelativeTime,
12744
- MM : processRelativeTime,
12745
- y : processRelativeTime,
12746
- yy : processRelativeTime
12747
- },
12748
- dayOfMonthOrdinalParse : /\d{1,2}(er)/,
12749
- ordinal : function (number, period) {
12750
- switch (period) {
12751
- // the ordinal 'er' only applies to day of the month
12752
- case 'D':
12753
- return number + 'er';
12754
- default:
12755
- case 'M':
12756
- case 'Q':
12757
- case 'DDD':
12758
- case 'd':
12759
- case 'w':
12760
- case 'W':
12761
- return number;
12762
- }
12763
- },
12764
- week : {
12765
- dow : 1, // Monday is the first day of the week.
12766
- doy : 4 // The week that contains Jan 4th is the first week of the year.
12767
- },
12768
- meridiemParse: /rati|sokalli|donparam|sanje/,
12769
- meridiemHour : function (hour, meridiem) {
12770
- if (hour === 12) {
12771
- hour = 0;
12772
- }
12773
- if (meridiem === 'rati') {
12774
- return hour < 4 ? hour : hour + 12;
12775
- } else if (meridiem === 'sokalli') {
12776
- return hour;
12777
- } else if (meridiem === 'donparam') {
12778
- return hour > 12 ? hour : hour + 12;
12779
- } else if (meridiem === 'sanje') {
12780
- return hour + 12;
12781
- }
12782
- },
12783
- meridiem : function (hour, minute, isLower) {
12784
- if (hour < 4) {
12785
- return 'rati';
12786
- } else if (hour < 12) {
12787
- return 'sokalli';
12788
- } else if (hour < 16) {
12789
- return 'donparam';
12790
- } else if (hour < 20) {
12791
- return 'sanje';
12792
- } else {
12793
- return 'rati';
12794
- }
12795
- }
12796
- });
12797
-
12798
- return gomLatn;
12799
-
12800
- })));
12801
-
12802
-
12803
- /***/ }),
12804
-
12805
- /***/ "./node_modules/moment/locale/gu.js":
12806
- /*!******************************************!*\
12807
- !*** ./node_modules/moment/locale/gu.js ***!
12808
- \******************************************/
12809
- /*! no static exports found */
12810
- /***/ (function(module, exports, __webpack_require__) {
12811
-
12812
- //! moment.js locale configuration
12813
-
12814
- ;(function (global, factory) {
12815
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12816
- undefined
12817
- }(this, (function (moment) { 'use strict';
12818
-
12819
-
12820
- var symbolMap = {
12821
- '1': '૧',
12822
- '2': '૨',
12823
- '3': '૩',
12824
- '4': '૪',
12825
- '5': '૫',
12826
- '6': '૬',
12827
- '7': '૭',
12828
- '8': '૮',
12829
- '9': '૯',
12830
- '0': '૦'
12831
- },
12832
- numberMap = {
12833
- '૧': '1',
12834
- '૨': '2',
12835
- '૩': '3',
12836
- '૪': '4',
12837
- '૫': '5',
12838
- '૬': '6',
12839
- '૭': '7',
12840
- '૮': '8',
12841
- '૯': '9',
12842
- '૦': '0'
12843
- };
12844
-
12845
- var gu = moment.defineLocale('gu', {
12846
- months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
12847
- monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
12848
- monthsParseExact: true,
12849
- weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
12850
- weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
12851
- weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
12852
- longDateFormat: {
12853
- LT: 'A h:mm વાગ્યે',
12854
- LTS: 'A h:mm:ss વાગ્યે',
12855
- L: 'DD/MM/YYYY',
12856
- LL: 'D MMMM YYYY',
12857
- LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
12858
- LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
12859
- },
12860
- calendar: {
12861
- sameDay: '[આજ] LT',
12862
- nextDay: '[કાલે] LT',
12863
- nextWeek: 'dddd, LT',
12864
- lastDay: '[ગઇકાલે] LT',
12865
- lastWeek: '[પાછલા] dddd, LT',
12866
- sameElse: 'L'
12867
- },
12868
- relativeTime: {
12869
- future: '%s મા',
12870
- past: '%s પેહલા',
12871
- s: 'અમુક પળો',
12872
- ss: '%d સેકંડ',
12873
- m: 'એક મિનિટ',
12874
- mm: '%d મિનિટ',
12875
- h: 'એક કલાક',
12876
- hh: '%d કલાક',
12877
- d: 'એક દિવસ',
12878
- dd: '%d દિવસ',
12879
- M: 'એક મહિનો',
12880
- MM: '%d મહિનો',
12881
- y: 'એક વર્ષ',
12882
- yy: '%d વર્ષ'
12883
- },
12884
- preparse: function (string) {
12885
- return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
12886
- return numberMap[match];
12887
- });
12888
- },
12889
- postformat: function (string) {
12890
- return string.replace(/\d/g, function (match) {
12891
- return symbolMap[match];
12892
- });
12893
- },
12894
- // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
12895
- // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
12896
- meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
12897
- meridiemHour: function (hour, meridiem) {
12898
- if (hour === 12) {
12899
- hour = 0;
12900
- }
12901
- if (meridiem === 'રાત') {
12902
- return hour < 4 ? hour : hour + 12;
12903
- } else if (meridiem === 'સવાર') {
12904
- return hour;
12905
- } else if (meridiem === 'બપોર') {
12906
- return hour >= 10 ? hour : hour + 12;
12907
- } else if (meridiem === 'સાંજ') {
12908
- return hour + 12;
12909
- }
12910
- },
12911
- meridiem: function (hour, minute, isLower) {
12912
- if (hour < 4) {
12913
- return 'રાત';
12914
- } else if (hour < 10) {
12915
- return 'સવાર';
12916
- } else if (hour < 17) {
12917
- return 'બપોર';
12918
- } else if (hour < 20) {
12919
- return 'સાંજ';
12920
- } else {
12921
- return 'રાત';
12922
- }
12923
- },
12924
- week: {
12925
- dow: 0, // Sunday is the first day of the week.
12926
- doy: 6 // The week that contains Jan 6th is the first week of the year.
12927
- }
12928
- });
12929
-
12930
- return gu;
12931
-
12932
- })));
12933
-
12934
-
12935
- /***/ }),
12936
-
12937
- /***/ "./node_modules/moment/locale/he.js":
12938
- /*!******************************************!*\
12939
- !*** ./node_modules/moment/locale/he.js ***!
12940
- \******************************************/
12941
- /*! no static exports found */
12942
- /***/ (function(module, exports, __webpack_require__) {
12943
-
12944
- //! moment.js locale configuration
12945
-
12946
- ;(function (global, factory) {
12947
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
12948
- undefined
12949
- }(this, (function (moment) { 'use strict';
12950
-
12951
-
12952
- var he = moment.defineLocale('he', {
12953
- months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
12954
- monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
12955
- weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
12956
- weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
12957
- weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
12958
- longDateFormat : {
12959
- LT : 'HH:mm',
12960
- LTS : 'HH:mm:ss',
12961
- L : 'DD/MM/YYYY',
12962
- LL : 'D [ב]MMMM YYYY',
12963
- LLL : 'D [ב]MMMM YYYY HH:mm',
12964
- LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
12965
- l : 'D/M/YYYY',
12966
- ll : 'D MMM YYYY',
12967
- lll : 'D MMM YYYY HH:mm',
12968
- llll : 'ddd, D MMM YYYY HH:mm'
12969
- },
12970
- calendar : {
12971
- sameDay : '[היום ב־]LT',
12972
- nextDay : '[מחר ב־]LT',
12973
- nextWeek : 'dddd [בשעה] LT',
12974
- lastDay : '[אתמול ב־]LT',
12975
- lastWeek : '[ביום] dddd [האחרון בשעה] LT',
12976
- sameElse : 'L'
12977
- },
12978
- relativeTime : {
12979
- future : 'בעוד %s',
12980
- past : 'לפני %s',
12981
- s : 'מספר שניות',
12982
- ss : '%d שניות',
12983
- m : 'דקה',
12984
- mm : '%d דקות',
12985
- h : 'שעה',
12986
- hh : function (number) {
12987
- if (number === 2) {
12988
- return 'שעתיים';
12989
- }
12990
- return number + ' שעות';
12991
- },
12992
- d : 'יום',
12993
- dd : function (number) {
12994
- if (number === 2) {
12995
- return 'יומיים';
12996
- }
12997
- return number + ' ימים';
12998
- },
12999
- M : 'חודש',
13000
- MM : function (number) {
13001
- if (number === 2) {
13002
- return 'חודשיים';
13003
- }
13004
- return number + ' חודשים';
13005
- },
13006
- y : 'שנה',
13007
- yy : function (number) {
13008
- if (number === 2) {
13009
- return 'שנתיים';
13010
- } else if (number % 10 === 0 && number !== 10) {
13011
- return number + ' שנה';
13012
- }
13013
- return number + ' שנים';
13014
- }
13015
- },
13016
- meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
13017
- isPM : function (input) {
13018
- return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
13019
- },
13020
- meridiem : function (hour, minute, isLower) {
13021
- if (hour < 5) {
13022
- return 'לפנות בוקר';
13023
- } else if (hour < 10) {
13024
- return 'בבוקר';
13025
- } else if (hour < 12) {
13026
- return isLower ? 'לפנה"צ' : 'לפני הצהריים';
13027
- } else if (hour < 18) {
13028
- return isLower ? 'אחה"צ' : 'אחרי הצהריים';
13029
- } else {
13030
- return 'בערב';
13031
- }
13032
- }
13033
- });
13034
-
13035
- return he;
13036
-
13037
- })));
13038
-
13039
-
13040
- /***/ }),
13041
-
13042
- /***/ "./node_modules/moment/locale/hi.js":
13043
- /*!******************************************!*\
13044
- !*** ./node_modules/moment/locale/hi.js ***!
13045
- \******************************************/
13046
- /*! no static exports found */
13047
- /***/ (function(module, exports, __webpack_require__) {
13048
-
13049
- //! moment.js locale configuration
13050
-
13051
- ;(function (global, factory) {
13052
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13053
- undefined
13054
- }(this, (function (moment) { 'use strict';
13055
-
13056
-
13057
- var symbolMap = {
13058
- '1': '१',
13059
- '2': '२',
13060
- '3': '३',
13061
- '4': '४',
13062
- '5': '५',
13063
- '6': '६',
13064
- '7': '७',
13065
- '8': '८',
13066
- '9': '९',
13067
- '0': '०'
13068
- },
13069
- numberMap = {
13070
- '१': '1',
13071
- '२': '2',
13072
- '३': '3',
13073
- '४': '4',
13074
- '५': '5',
13075
- '६': '6',
13076
- '७': '7',
13077
- '८': '8',
13078
- '९': '9',
13079
- '०': '0'
13080
- };
13081
-
13082
- var hi = moment.defineLocale('hi', {
13083
- months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
13084
- monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
13085
- monthsParseExact: true,
13086
- weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
13087
- weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
13088
- weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
13089
- longDateFormat : {
13090
- LT : 'A h:mm बजे',
13091
- LTS : 'A h:mm:ss बजे',
13092
- L : 'DD/MM/YYYY',
13093
- LL : 'D MMMM YYYY',
13094
- LLL : 'D MMMM YYYY, A h:mm बजे',
13095
- LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
13096
- },
13097
- calendar : {
13098
- sameDay : '[आज] LT',
13099
- nextDay : '[कल] LT',
13100
- nextWeek : 'dddd, LT',
13101
- lastDay : '[कल] LT',
13102
- lastWeek : '[पिछले] dddd, LT',
13103
- sameElse : 'L'
13104
- },
13105
- relativeTime : {
13106
- future : '%s में',
13107
- past : '%s पहले',
13108
- s : 'कुछ ही क्षण',
13109
- ss : '%d सेकंड',
13110
- m : 'एक मिनट',
13111
- mm : '%d मिनट',
13112
- h : 'एक घंटा',
13113
- hh : '%d घंटे',
13114
- d : 'एक दिन',
13115
- dd : '%d दिन',
13116
- M : 'एक महीने',
13117
- MM : '%d महीने',
13118
- y : 'एक वर्ष',
13119
- yy : '%d वर्ष'
13120
- },
13121
- preparse: function (string) {
13122
- return string.replace(/[१२३४५६७८९०]/g, function (match) {
13123
- return numberMap[match];
13124
- });
13125
- },
13126
- postformat: function (string) {
13127
- return string.replace(/\d/g, function (match) {
13128
- return symbolMap[match];
13129
- });
13130
- },
13131
- // Hindi notation for meridiems are quite fuzzy in practice. While there exists
13132
- // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
13133
- meridiemParse: /रात|सुबह|दोपहर|शाम/,
13134
- meridiemHour : function (hour, meridiem) {
13135
- if (hour === 12) {
13136
- hour = 0;
13137
- }
13138
- if (meridiem === 'रात') {
13139
- return hour < 4 ? hour : hour + 12;
13140
- } else if (meridiem === 'सुबह') {
13141
- return hour;
13142
- } else if (meridiem === 'दोपहर') {
13143
- return hour >= 10 ? hour : hour + 12;
13144
- } else if (meridiem === 'शाम') {
13145
- return hour + 12;
13146
- }
13147
- },
13148
- meridiem : function (hour, minute, isLower) {
13149
- if (hour < 4) {
13150
- return 'रात';
13151
- } else if (hour < 10) {
13152
- return 'सुबह';
13153
- } else if (hour < 17) {
13154
- return 'दोपहर';
13155
- } else if (hour < 20) {
13156
- return 'शाम';
13157
- } else {
13158
- return 'रात';
13159
- }
13160
- },
13161
- week : {
13162
- dow : 0, // Sunday is the first day of the week.
13163
- doy : 6 // The week that contains Jan 6th is the first week of the year.
13164
- }
13165
- });
13166
-
13167
- return hi;
13168
-
13169
- })));
13170
-
13171
-
13172
- /***/ }),
13173
-
13174
- /***/ "./node_modules/moment/locale/hr.js":
13175
- /*!******************************************!*\
13176
- !*** ./node_modules/moment/locale/hr.js ***!
13177
- \******************************************/
13178
- /*! no static exports found */
13179
- /***/ (function(module, exports, __webpack_require__) {
13180
-
13181
- //! moment.js locale configuration
13182
-
13183
- ;(function (global, factory) {
13184
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13185
- undefined
13186
- }(this, (function (moment) { 'use strict';
13187
-
13188
-
13189
- function translate(number, withoutSuffix, key) {
13190
- var result = number + ' ';
13191
- switch (key) {
13192
- case 'ss':
13193
- if (number === 1) {
13194
- result += 'sekunda';
13195
- } else if (number === 2 || number === 3 || number === 4) {
13196
- result += 'sekunde';
13197
- } else {
13198
- result += 'sekundi';
13199
- }
13200
- return result;
13201
- case 'm':
13202
- return withoutSuffix ? 'jedna minuta' : 'jedne minute';
13203
- case 'mm':
13204
- if (number === 1) {
13205
- result += 'minuta';
13206
- } else if (number === 2 || number === 3 || number === 4) {
13207
- result += 'minute';
13208
- } else {
13209
- result += 'minuta';
13210
- }
13211
- return result;
13212
- case 'h':
13213
- return withoutSuffix ? 'jedan sat' : 'jednog sata';
13214
- case 'hh':
13215
- if (number === 1) {
13216
- result += 'sat';
13217
- } else if (number === 2 || number === 3 || number === 4) {
13218
- result += 'sata';
13219
- } else {
13220
- result += 'sati';
13221
- }
13222
- return result;
13223
- case 'dd':
13224
- if (number === 1) {
13225
- result += 'dan';
13226
- } else {
13227
- result += 'dana';
13228
- }
13229
- return result;
13230
- case 'MM':
13231
- if (number === 1) {
13232
- result += 'mjesec';
13233
- } else if (number === 2 || number === 3 || number === 4) {
13234
- result += 'mjeseca';
13235
- } else {
13236
- result += 'mjeseci';
13237
- }
13238
- return result;
13239
- case 'yy':
13240
- if (number === 1) {
13241
- result += 'godina';
13242
- } else if (number === 2 || number === 3 || number === 4) {
13243
- result += 'godine';
13244
- } else {
13245
- result += 'godina';
13246
- }
13247
- return result;
13248
- }
13249
- }
13250
-
13251
- var hr = moment.defineLocale('hr', {
13252
- months : {
13253
- format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
13254
- standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
13255
- },
13256
- monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
13257
- monthsParseExact: true,
13258
- weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
13259
- weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
13260
- weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
13261
- weekdaysParseExact : true,
13262
- longDateFormat : {
13263
- LT : 'H:mm',
13264
- LTS : 'H:mm:ss',
13265
- L : 'DD.MM.YYYY',
13266
- LL : 'D. MMMM YYYY',
13267
- LLL : 'D. MMMM YYYY H:mm',
13268
- LLLL : 'dddd, D. MMMM YYYY H:mm'
13269
- },
13270
- calendar : {
13271
- sameDay : '[danas u] LT',
13272
- nextDay : '[sutra u] LT',
13273
- nextWeek : function () {
13274
- switch (this.day()) {
13275
- case 0:
13276
- return '[u] [nedjelju] [u] LT';
13277
- case 3:
13278
- return '[u] [srijedu] [u] LT';
13279
- case 6:
13280
- return '[u] [subotu] [u] LT';
13281
- case 1:
13282
- case 2:
13283
- case 4:
13284
- case 5:
13285
- return '[u] dddd [u] LT';
13286
- }
13287
- },
13288
- lastDay : '[jučer u] LT',
13289
- lastWeek : function () {
13290
- switch (this.day()) {
13291
- case 0:
13292
- case 3:
13293
- return '[prošlu] dddd [u] LT';
13294
- case 6:
13295
- return '[prošle] [subote] [u] LT';
13296
- case 1:
13297
- case 2:
13298
- case 4:
13299
- case 5:
13300
- return '[prošli] dddd [u] LT';
13301
- }
13302
- },
13303
- sameElse : 'L'
13304
- },
13305
- relativeTime : {
13306
- future : 'za %s',
13307
- past : 'prije %s',
13308
- s : 'par sekundi',
13309
- ss : translate,
13310
- m : translate,
13311
- mm : translate,
13312
- h : translate,
13313
- hh : translate,
13314
- d : 'dan',
13315
- dd : translate,
13316
- M : 'mjesec',
13317
- MM : translate,
13318
- y : 'godinu',
13319
- yy : translate
13320
- },
13321
- dayOfMonthOrdinalParse: /\d{1,2}\./,
13322
- ordinal : '%d.',
13323
- week : {
13324
- dow : 1, // Monday is the first day of the week.
13325
- doy : 7 // The week that contains Jan 7th is the first week of the year.
13326
- }
13327
- });
13328
-
13329
- return hr;
13330
-
13331
- })));
13332
-
13333
-
13334
- /***/ }),
13335
-
13336
- /***/ "./node_modules/moment/locale/hu.js":
13337
- /*!******************************************!*\
13338
- !*** ./node_modules/moment/locale/hu.js ***!
13339
- \******************************************/
13340
- /*! no static exports found */
13341
- /***/ (function(module, exports, __webpack_require__) {
13342
-
13343
- //! moment.js locale configuration
13344
-
13345
- ;(function (global, factory) {
13346
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13347
- undefined
13348
- }(this, (function (moment) { 'use strict';
13349
-
13350
-
13351
- var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
13352
- function translate(number, withoutSuffix, key, isFuture) {
13353
- var num = number;
13354
- switch (key) {
13355
- case 's':
13356
- return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
13357
- case 'ss':
13358
- return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
13359
- case 'm':
13360
- return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
13361
- case 'mm':
13362
- return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
13363
- case 'h':
13364
- return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
13365
- case 'hh':
13366
- return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
13367
- case 'd':
13368
- return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
13369
- case 'dd':
13370
- return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
13371
- case 'M':
13372
- return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
13373
- case 'MM':
13374
- return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
13375
- case 'y':
13376
- return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
13377
- case 'yy':
13378
- return num + (isFuture || withoutSuffix ? ' év' : ' éve');
13379
- }
13380
- return '';
13381
- }
13382
- function week(isFuture) {
13383
- return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
13384
- }
13385
-
13386
- var hu = moment.defineLocale('hu', {
13387
- months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
13388
- monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
13389
- weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
13390
- weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
13391
- weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
13392
- longDateFormat : {
13393
- LT : 'H:mm',
13394
- LTS : 'H:mm:ss',
13395
- L : 'YYYY.MM.DD.',
13396
- LL : 'YYYY. MMMM D.',
13397
- LLL : 'YYYY. MMMM D. H:mm',
13398
- LLLL : 'YYYY. MMMM D., dddd H:mm'
13399
- },
13400
- meridiemParse: /de|du/i,
13401
- isPM: function (input) {
13402
- return input.charAt(1).toLowerCase() === 'u';
13403
- },
13404
- meridiem : function (hours, minutes, isLower) {
13405
- if (hours < 12) {
13406
- return isLower === true ? 'de' : 'DE';
13407
- } else {
13408
- return isLower === true ? 'du' : 'DU';
13409
- }
13410
- },
13411
- calendar : {
13412
- sameDay : '[ma] LT[-kor]',
13413
- nextDay : '[holnap] LT[-kor]',
13414
- nextWeek : function () {
13415
- return week.call(this, true);
13416
- },
13417
- lastDay : '[tegnap] LT[-kor]',
13418
- lastWeek : function () {
13419
- return week.call(this, false);
13420
- },
13421
- sameElse : 'L'
13422
- },
13423
- relativeTime : {
13424
- future : '%s múlva',
13425
- past : '%s',
13426
- s : translate,
13427
- ss : translate,
13428
- m : translate,
13429
- mm : translate,
13430
- h : translate,
13431
- hh : translate,
13432
- d : translate,
13433
- dd : translate,
13434
- M : translate,
13435
- MM : translate,
13436
- y : translate,
13437
- yy : translate
13438
- },
13439
- dayOfMonthOrdinalParse: /\d{1,2}\./,
13440
- ordinal : '%d.',
13441
- week : {
13442
- dow : 1, // Monday is the first day of the week.
13443
- doy : 4 // The week that contains Jan 4th is the first week of the year.
13444
- }
13445
- });
13446
-
13447
- return hu;
13448
-
13449
- })));
13450
-
13451
-
13452
- /***/ }),
13453
-
13454
- /***/ "./node_modules/moment/locale/hy-am.js":
13455
- /*!*********************************************!*\
13456
- !*** ./node_modules/moment/locale/hy-am.js ***!
13457
- \*********************************************/
13458
- /*! no static exports found */
13459
- /***/ (function(module, exports, __webpack_require__) {
13460
-
13461
- //! moment.js locale configuration
13462
-
13463
- ;(function (global, factory) {
13464
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13465
- undefined
13466
- }(this, (function (moment) { 'use strict';
13467
-
13468
-
13469
- var hyAm = moment.defineLocale('hy-am', {
13470
- months : {
13471
- format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
13472
- standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
13473
- },
13474
- monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
13475
- weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
13476
- weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
13477
- weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
13478
- longDateFormat : {
13479
- LT : 'HH:mm',
13480
- LTS : 'HH:mm:ss',
13481
- L : 'DD.MM.YYYY',
13482
- LL : 'D MMMM YYYY թ.',
13483
- LLL : 'D MMMM YYYY թ., HH:mm',
13484
- LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
13485
- },
13486
- calendar : {
13487
- sameDay: '[այսօր] LT',
13488
- nextDay: '[վաղը] LT',
13489
- lastDay: '[երեկ] LT',
13490
- nextWeek: function () {
13491
- return 'dddd [օրը ժամը] LT';
13492
- },
13493
- lastWeek: function () {
13494
- return '[անցած] dddd [օրը ժամը] LT';
13495
- },
13496
- sameElse: 'L'
13497
- },
13498
- relativeTime : {
13499
- future : '%s հետո',
13500
- past : '%s առաջ',
13501
- s : 'մի քանի վայրկյան',
13502
- ss : '%d վայրկյան',
13503
- m : 'րոպե',
13504
- mm : '%d րոպե',
13505
- h : 'ժամ',
13506
- hh : '%d ժամ',
13507
- d : 'օր',
13508
- dd : '%d օր',
13509
- M : 'ամիս',
13510
- MM : '%d ամիս',
13511
- y : 'տարի',
13512
- yy : '%d տարի'
13513
- },
13514
- meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
13515
- isPM: function (input) {
13516
- return /^(ցերեկվա|երեկոյան)$/.test(input);
13517
- },
13518
- meridiem : function (hour) {
13519
- if (hour < 4) {
13520
- return 'գիշերվա';
13521
- } else if (hour < 12) {
13522
- return 'առավոտվա';
13523
- } else if (hour < 17) {
13524
- return 'ցերեկվա';
13525
- } else {
13526
- return 'երեկոյան';
13527
- }
13528
- },
13529
- dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
13530
- ordinal: function (number, period) {
13531
- switch (period) {
13532
- case 'DDD':
13533
- case 'w':
13534
- case 'W':
13535
- case 'DDDo':
13536
- if (number === 1) {
13537
- return number + '-ին';
13538
- }
13539
- return number + '-րդ';
13540
- default:
13541
- return number;
13542
- }
13543
- },
13544
- week : {
13545
- dow : 1, // Monday is the first day of the week.
13546
- doy : 7 // The week that contains Jan 7th is the first week of the year.
13547
- }
13548
- });
13549
-
13550
- return hyAm;
13551
-
13552
- })));
13553
-
13554
-
13555
- /***/ }),
13556
-
13557
- /***/ "./node_modules/moment/locale/id.js":
13558
- /*!******************************************!*\
13559
- !*** ./node_modules/moment/locale/id.js ***!
13560
- \******************************************/
13561
- /*! no static exports found */
13562
- /***/ (function(module, exports, __webpack_require__) {
13563
-
13564
- //! moment.js locale configuration
13565
-
13566
- ;(function (global, factory) {
13567
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13568
- undefined
13569
- }(this, (function (moment) { 'use strict';
13570
-
13571
-
13572
- var id = moment.defineLocale('id', {
13573
- months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
13574
- monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
13575
- weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
13576
- weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
13577
- weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
13578
- longDateFormat : {
13579
- LT : 'HH.mm',
13580
- LTS : 'HH.mm.ss',
13581
- L : 'DD/MM/YYYY',
13582
- LL : 'D MMMM YYYY',
13583
- LLL : 'D MMMM YYYY [pukul] HH.mm',
13584
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
13585
- },
13586
- meridiemParse: /pagi|siang|sore|malam/,
13587
- meridiemHour : function (hour, meridiem) {
13588
- if (hour === 12) {
13589
- hour = 0;
13590
- }
13591
- if (meridiem === 'pagi') {
13592
- return hour;
13593
- } else if (meridiem === 'siang') {
13594
- return hour >= 11 ? hour : hour + 12;
13595
- } else if (meridiem === 'sore' || meridiem === 'malam') {
13596
- return hour + 12;
13597
- }
13598
- },
13599
- meridiem : function (hours, minutes, isLower) {
13600
- if (hours < 11) {
13601
- return 'pagi';
13602
- } else if (hours < 15) {
13603
- return 'siang';
13604
- } else if (hours < 19) {
13605
- return 'sore';
13606
- } else {
13607
- return 'malam';
13608
- }
13609
- },
13610
- calendar : {
13611
- sameDay : '[Hari ini pukul] LT',
13612
- nextDay : '[Besok pukul] LT',
13613
- nextWeek : 'dddd [pukul] LT',
13614
- lastDay : '[Kemarin pukul] LT',
13615
- lastWeek : 'dddd [lalu pukul] LT',
13616
- sameElse : 'L'
13617
- },
13618
- relativeTime : {
13619
- future : 'dalam %s',
13620
- past : '%s yang lalu',
13621
- s : 'beberapa detik',
13622
- ss : '%d detik',
13623
- m : 'semenit',
13624
- mm : '%d menit',
13625
- h : 'sejam',
13626
- hh : '%d jam',
13627
- d : 'sehari',
13628
- dd : '%d hari',
13629
- M : 'sebulan',
13630
- MM : '%d bulan',
13631
- y : 'setahun',
13632
- yy : '%d tahun'
13633
- },
13634
- week : {
13635
- dow : 1, // Monday is the first day of the week.
13636
- doy : 7 // The week that contains Jan 7th is the first week of the year.
13637
- }
13638
- });
13639
-
13640
- return id;
13641
-
13642
- })));
13643
-
13644
-
13645
- /***/ }),
13646
-
13647
- /***/ "./node_modules/moment/locale/is.js":
13648
- /*!******************************************!*\
13649
- !*** ./node_modules/moment/locale/is.js ***!
13650
- \******************************************/
13651
- /*! no static exports found */
13652
- /***/ (function(module, exports, __webpack_require__) {
13653
-
13654
- //! moment.js locale configuration
13655
-
13656
- ;(function (global, factory) {
13657
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13658
- undefined
13659
- }(this, (function (moment) { 'use strict';
13660
-
13661
-
13662
- function plural(n) {
13663
- if (n % 100 === 11) {
13664
- return true;
13665
- } else if (n % 10 === 1) {
13666
- return false;
13667
- }
13668
- return true;
13669
- }
13670
- function translate(number, withoutSuffix, key, isFuture) {
13671
- var result = number + ' ';
13672
- switch (key) {
13673
- case 's':
13674
- return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
13675
- case 'ss':
13676
- if (plural(number)) {
13677
- return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
13678
- }
13679
- return result + 'sekúnda';
13680
- case 'm':
13681
- return withoutSuffix ? 'mínúta' : 'mínútu';
13682
- case 'mm':
13683
- if (plural(number)) {
13684
- return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
13685
- } else if (withoutSuffix) {
13686
- return result + 'mínúta';
13687
- }
13688
- return result + 'mínútu';
13689
- case 'hh':
13690
- if (plural(number)) {
13691
- return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
13692
- }
13693
- return result + 'klukkustund';
13694
- case 'd':
13695
- if (withoutSuffix) {
13696
- return 'dagur';
13697
- }
13698
- return isFuture ? 'dag' : 'degi';
13699
- case 'dd':
13700
- if (plural(number)) {
13701
- if (withoutSuffix) {
13702
- return result + 'dagar';
13703
- }
13704
- return result + (isFuture ? 'daga' : 'dögum');
13705
- } else if (withoutSuffix) {
13706
- return result + 'dagur';
13707
- }
13708
- return result + (isFuture ? 'dag' : 'degi');
13709
- case 'M':
13710
- if (withoutSuffix) {
13711
- return 'mánuður';
13712
- }
13713
- return isFuture ? 'mánuð' : 'mánuði';
13714
- case 'MM':
13715
- if (plural(number)) {
13716
- if (withoutSuffix) {
13717
- return result + 'mánuðir';
13718
- }
13719
- return result + (isFuture ? 'mánuði' : 'mánuðum');
13720
- } else if (withoutSuffix) {
13721
- return result + 'mánuður';
13722
- }
13723
- return result + (isFuture ? 'mánuð' : 'mánuði');
13724
- case 'y':
13725
- return withoutSuffix || isFuture ? 'ár' : 'ári';
13726
- case 'yy':
13727
- if (plural(number)) {
13728
- return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
13729
- }
13730
- return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
13731
- }
13732
- }
13733
-
13734
- var is = moment.defineLocale('is', {
13735
- months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
13736
- monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
13737
- weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
13738
- weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
13739
- weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
13740
- longDateFormat : {
13741
- LT : 'H:mm',
13742
- LTS : 'H:mm:ss',
13743
- L : 'DD.MM.YYYY',
13744
- LL : 'D. MMMM YYYY',
13745
- LLL : 'D. MMMM YYYY [kl.] H:mm',
13746
- LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
13747
- },
13748
- calendar : {
13749
- sameDay : '[í dag kl.] LT',
13750
- nextDay : '[á morgun kl.] LT',
13751
- nextWeek : 'dddd [kl.] LT',
13752
- lastDay : '[í gær kl.] LT',
13753
- lastWeek : '[síðasta] dddd [kl.] LT',
13754
- sameElse : 'L'
13755
- },
13756
- relativeTime : {
13757
- future : 'eftir %s',
13758
- past : 'fyrir %s síðan',
13759
- s : translate,
13760
- ss : translate,
13761
- m : translate,
13762
- mm : translate,
13763
- h : 'klukkustund',
13764
- hh : translate,
13765
- d : translate,
13766
- dd : translate,
13767
- M : translate,
13768
- MM : translate,
13769
- y : translate,
13770
- yy : translate
13771
- },
13772
- dayOfMonthOrdinalParse: /\d{1,2}\./,
13773
- ordinal : '%d.',
13774
- week : {
13775
- dow : 1, // Monday is the first day of the week.
13776
- doy : 4 // The week that contains Jan 4th is the first week of the year.
13777
- }
13778
- });
13779
-
13780
- return is;
13781
-
13782
- })));
13783
-
13784
-
13785
- /***/ }),
13786
-
13787
- /***/ "./node_modules/moment/locale/it-ch.js":
13788
- /*!*********************************************!*\
13789
- !*** ./node_modules/moment/locale/it-ch.js ***!
13790
- \*********************************************/
13791
- /*! no static exports found */
13792
- /***/ (function(module, exports, __webpack_require__) {
13793
-
13794
- //! moment.js locale configuration
13795
-
13796
- ;(function (global, factory) {
13797
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13798
- undefined
13799
- }(this, (function (moment) { 'use strict';
13800
-
13801
-
13802
- var itCh = moment.defineLocale('it-ch', {
13803
- months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
13804
- monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
13805
- weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
13806
- weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
13807
- weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
13808
- longDateFormat : {
13809
- LT : 'HH:mm',
13810
- LTS : 'HH:mm:ss',
13811
- L : 'DD.MM.YYYY',
13812
- LL : 'D MMMM YYYY',
13813
- LLL : 'D MMMM YYYY HH:mm',
13814
- LLLL : 'dddd D MMMM YYYY HH:mm'
13815
- },
13816
- calendar : {
13817
- sameDay: '[Oggi alle] LT',
13818
- nextDay: '[Domani alle] LT',
13819
- nextWeek: 'dddd [alle] LT',
13820
- lastDay: '[Ieri alle] LT',
13821
- lastWeek: function () {
13822
- switch (this.day()) {
13823
- case 0:
13824
- return '[la scorsa] dddd [alle] LT';
13825
- default:
13826
- return '[lo scorso] dddd [alle] LT';
13827
- }
13828
- },
13829
- sameElse: 'L'
13830
- },
13831
- relativeTime : {
13832
- future : function (s) {
13833
- return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
13834
- },
13835
- past : '%s fa',
13836
- s : 'alcuni secondi',
13837
- ss : '%d secondi',
13838
- m : 'un minuto',
13839
- mm : '%d minuti',
13840
- h : 'un\'ora',
13841
- hh : '%d ore',
13842
- d : 'un giorno',
13843
- dd : '%d giorni',
13844
- M : 'un mese',
13845
- MM : '%d mesi',
13846
- y : 'un anno',
13847
- yy : '%d anni'
13848
- },
13849
- dayOfMonthOrdinalParse : /\d{1,2}º/,
13850
- ordinal: '%dº',
13851
- week : {
13852
- dow : 1, // Monday is the first day of the week.
13853
- doy : 4 // The week that contains Jan 4th is the first week of the year.
13854
- }
13855
- });
13856
-
13857
- return itCh;
13858
-
13859
- })));
13860
-
13861
-
13862
- /***/ }),
13863
-
13864
- /***/ "./node_modules/moment/locale/it.js":
13865
- /*!******************************************!*\
13866
- !*** ./node_modules/moment/locale/it.js ***!
13867
- \******************************************/
13868
- /*! no static exports found */
13869
- /***/ (function(module, exports, __webpack_require__) {
13870
-
13871
- //! moment.js locale configuration
13872
-
13873
- ;(function (global, factory) {
13874
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13875
- undefined
13876
- }(this, (function (moment) { 'use strict';
13877
-
13878
-
13879
- var it = moment.defineLocale('it', {
13880
- months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
13881
- monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
13882
- weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
13883
- weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
13884
- weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
13885
- longDateFormat : {
13886
- LT : 'HH:mm',
13887
- LTS : 'HH:mm:ss',
13888
- L : 'DD/MM/YYYY',
13889
- LL : 'D MMMM YYYY',
13890
- LLL : 'D MMMM YYYY HH:mm',
13891
- LLLL : 'dddd D MMMM YYYY HH:mm'
13892
- },
13893
- calendar : {
13894
- sameDay: '[Oggi alle] LT',
13895
- nextDay: '[Domani alle] LT',
13896
- nextWeek: 'dddd [alle] LT',
13897
- lastDay: '[Ieri alle] LT',
13898
- lastWeek: function () {
13899
- switch (this.day()) {
13900
- case 0:
13901
- return '[la scorsa] dddd [alle] LT';
13902
- default:
13903
- return '[lo scorso] dddd [alle] LT';
13904
- }
13905
- },
13906
- sameElse: 'L'
13907
- },
13908
- relativeTime : {
13909
- future : function (s) {
13910
- return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
13911
- },
13912
- past : '%s fa',
13913
- s : 'alcuni secondi',
13914
- ss : '%d secondi',
13915
- m : 'un minuto',
13916
- mm : '%d minuti',
13917
- h : 'un\'ora',
13918
- hh : '%d ore',
13919
- d : 'un giorno',
13920
- dd : '%d giorni',
13921
- M : 'un mese',
13922
- MM : '%d mesi',
13923
- y : 'un anno',
13924
- yy : '%d anni'
13925
- },
13926
- dayOfMonthOrdinalParse : /\d{1,2}º/,
13927
- ordinal: '%dº',
13928
- week : {
13929
- dow : 1, // Monday is the first day of the week.
13930
- doy : 4 // The week that contains Jan 4th is the first week of the year.
13931
- }
13932
- });
13933
-
13934
- return it;
13935
-
13936
- })));
13937
-
13938
-
13939
- /***/ }),
13940
-
13941
- /***/ "./node_modules/moment/locale/ja.js":
13942
- /*!******************************************!*\
13943
- !*** ./node_modules/moment/locale/ja.js ***!
13944
- \******************************************/
13945
- /*! no static exports found */
13946
- /***/ (function(module, exports, __webpack_require__) {
13947
-
13948
- //! moment.js locale configuration
13949
-
13950
- ;(function (global, factory) {
13951
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
13952
- undefined
13953
- }(this, (function (moment) { 'use strict';
13954
-
13955
-
13956
- var ja = moment.defineLocale('ja', {
13957
- months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
13958
- monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
13959
- weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
13960
- weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
13961
- weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
13962
- longDateFormat : {
13963
- LT : 'HH:mm',
13964
- LTS : 'HH:mm:ss',
13965
- L : 'YYYY/MM/DD',
13966
- LL : 'YYYY年M月D日',
13967
- LLL : 'YYYY年M月D日 HH:mm',
13968
- LLLL : 'YYYY年M月D日 dddd HH:mm',
13969
- l : 'YYYY/MM/DD',
13970
- ll : 'YYYY年M月D日',
13971
- lll : 'YYYY年M月D日 HH:mm',
13972
- llll : 'YYYY年M月D日(ddd) HH:mm'
13973
- },
13974
- meridiemParse: /午前|午後/i,
13975
- isPM : function (input) {
13976
- return input === '午後';
13977
- },
13978
- meridiem : function (hour, minute, isLower) {
13979
- if (hour < 12) {
13980
- return '午前';
13981
- } else {
13982
- return '午後';
13983
- }
13984
- },
13985
- calendar : {
13986
- sameDay : '[今日] LT',
13987
- nextDay : '[明日] LT',
13988
- nextWeek : function (now) {
13989
- if (now.week() < this.week()) {
13990
- return '[来週]dddd LT';
13991
- } else {
13992
- return 'dddd LT';
13993
- }
13994
- },
13995
- lastDay : '[昨日] LT',
13996
- lastWeek : function (now) {
13997
- if (this.week() < now.week()) {
13998
- return '[先週]dddd LT';
13999
- } else {
14000
- return 'dddd LT';
14001
- }
14002
- },
14003
- sameElse : 'L'
14004
- },
14005
- dayOfMonthOrdinalParse : /\d{1,2}日/,
14006
- ordinal : function (number, period) {
14007
- switch (period) {
14008
- case 'd':
14009
- case 'D':
14010
- case 'DDD':
14011
- return number + '日';
14012
- default:
14013
- return number;
14014
- }
14015
- },
14016
- relativeTime : {
14017
- future : '%s後',
14018
- past : '%s前',
14019
- s : '数秒',
14020
- ss : '%d秒',
14021
- m : '1分',
14022
- mm : '%d分',
14023
- h : '1時間',
14024
- hh : '%d時間',
14025
- d : '1日',
14026
- dd : '%d日',
14027
- M : '1ヶ月',
14028
- MM : '%dヶ月',
14029
- y : '1年',
14030
- yy : '%d年'
14031
- }
14032
- });
14033
-
14034
- return ja;
14035
-
14036
- })));
14037
-
14038
-
14039
- /***/ }),
14040
-
14041
- /***/ "./node_modules/moment/locale/jv.js":
14042
- /*!******************************************!*\
14043
- !*** ./node_modules/moment/locale/jv.js ***!
14044
- \******************************************/
14045
- /*! no static exports found */
14046
- /***/ (function(module, exports, __webpack_require__) {
14047
-
14048
- //! moment.js locale configuration
14049
-
14050
- ;(function (global, factory) {
14051
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14052
- undefined
14053
- }(this, (function (moment) { 'use strict';
14054
-
14055
-
14056
- var jv = moment.defineLocale('jv', {
14057
- months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
14058
- monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
14059
- weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
14060
- weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
14061
- weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
14062
- longDateFormat : {
14063
- LT : 'HH.mm',
14064
- LTS : 'HH.mm.ss',
14065
- L : 'DD/MM/YYYY',
14066
- LL : 'D MMMM YYYY',
14067
- LLL : 'D MMMM YYYY [pukul] HH.mm',
14068
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
14069
- },
14070
- meridiemParse: /enjing|siyang|sonten|ndalu/,
14071
- meridiemHour : function (hour, meridiem) {
14072
- if (hour === 12) {
14073
- hour = 0;
14074
- }
14075
- if (meridiem === 'enjing') {
14076
- return hour;
14077
- } else if (meridiem === 'siyang') {
14078
- return hour >= 11 ? hour : hour + 12;
14079
- } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
14080
- return hour + 12;
14081
- }
14082
- },
14083
- meridiem : function (hours, minutes, isLower) {
14084
- if (hours < 11) {
14085
- return 'enjing';
14086
- } else if (hours < 15) {
14087
- return 'siyang';
14088
- } else if (hours < 19) {
14089
- return 'sonten';
14090
- } else {
14091
- return 'ndalu';
14092
- }
14093
- },
14094
- calendar : {
14095
- sameDay : '[Dinten puniko pukul] LT',
14096
- nextDay : '[Mbenjang pukul] LT',
14097
- nextWeek : 'dddd [pukul] LT',
14098
- lastDay : '[Kala wingi pukul] LT',
14099
- lastWeek : 'dddd [kepengker pukul] LT',
14100
- sameElse : 'L'
14101
- },
14102
- relativeTime : {
14103
- future : 'wonten ing %s',
14104
- past : '%s ingkang kepengker',
14105
- s : 'sawetawis detik',
14106
- ss : '%d detik',
14107
- m : 'setunggal menit',
14108
- mm : '%d menit',
14109
- h : 'setunggal jam',
14110
- hh : '%d jam',
14111
- d : 'sedinten',
14112
- dd : '%d dinten',
14113
- M : 'sewulan',
14114
- MM : '%d wulan',
14115
- y : 'setaun',
14116
- yy : '%d taun'
14117
- },
14118
- week : {
14119
- dow : 1, // Monday is the first day of the week.
14120
- doy : 7 // The week that contains Jan 7th is the first week of the year.
14121
- }
14122
- });
14123
-
14124
- return jv;
14125
-
14126
- })));
14127
-
14128
-
14129
- /***/ }),
14130
-
14131
- /***/ "./node_modules/moment/locale/ka.js":
14132
- /*!******************************************!*\
14133
- !*** ./node_modules/moment/locale/ka.js ***!
14134
- \******************************************/
14135
- /*! no static exports found */
14136
- /***/ (function(module, exports, __webpack_require__) {
14137
-
14138
- //! moment.js locale configuration
14139
-
14140
- ;(function (global, factory) {
14141
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14142
- undefined
14143
- }(this, (function (moment) { 'use strict';
14144
-
14145
-
14146
- var ka = moment.defineLocale('ka', {
14147
- months : {
14148
- standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
14149
- format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
14150
- },
14151
- monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
14152
- weekdays : {
14153
- standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
14154
- format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
14155
- isFormat: /(წინა|შემდეგ)/
14156
- },
14157
- weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
14158
- weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
14159
- longDateFormat : {
14160
- LT : 'h:mm A',
14161
- LTS : 'h:mm:ss A',
14162
- L : 'DD/MM/YYYY',
14163
- LL : 'D MMMM YYYY',
14164
- LLL : 'D MMMM YYYY h:mm A',
14165
- LLLL : 'dddd, D MMMM YYYY h:mm A'
14166
- },
14167
- calendar : {
14168
- sameDay : '[დღეს] LT[-ზე]',
14169
- nextDay : '[ხვალ] LT[-ზე]',
14170
- lastDay : '[გუშინ] LT[-ზე]',
14171
- nextWeek : '[შემდეგ] dddd LT[-ზე]',
14172
- lastWeek : '[წინა] dddd LT-ზე',
14173
- sameElse : 'L'
14174
- },
14175
- relativeTime : {
14176
- future : function (s) {
14177
- return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
14178
- s.replace(/ი$/, 'ში') :
14179
- s + 'ში';
14180
- },
14181
- past : function (s) {
14182
- if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
14183
- return s.replace(/(ი|ე)$/, 'ის წინ');
14184
- }
14185
- if ((/წელი/).test(s)) {
14186
- return s.replace(/წელი$/, 'წლის წინ');
14187
- }
14188
- },
14189
- s : 'რამდენიმე წამი',
14190
- ss : '%d წამი',
14191
- m : 'წუთი',
14192
- mm : '%d წუთი',
14193
- h : 'საათი',
14194
- hh : '%d საათი',
14195
- d : 'დღე',
14196
- dd : '%d დღე',
14197
- M : 'თვე',
14198
- MM : '%d თვე',
14199
- y : 'წელი',
14200
- yy : '%d წელი'
14201
- },
14202
- dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
14203
- ordinal : function (number) {
14204
- if (number === 0) {
14205
- return number;
14206
- }
14207
- if (number === 1) {
14208
- return number + '-ლი';
14209
- }
14210
- if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
14211
- return 'მე-' + number;
14212
- }
14213
- return number + '-ე';
14214
- },
14215
- week : {
14216
- dow : 1,
14217
- doy : 7
14218
- }
14219
- });
14220
-
14221
- return ka;
14222
-
14223
- })));
14224
-
14225
-
14226
- /***/ }),
14227
-
14228
- /***/ "./node_modules/moment/locale/kk.js":
14229
- /*!******************************************!*\
14230
- !*** ./node_modules/moment/locale/kk.js ***!
14231
- \******************************************/
14232
- /*! no static exports found */
14233
- /***/ (function(module, exports, __webpack_require__) {
14234
-
14235
- //! moment.js locale configuration
14236
-
14237
- ;(function (global, factory) {
14238
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14239
- undefined
14240
- }(this, (function (moment) { 'use strict';
14241
-
14242
-
14243
- var suffixes = {
14244
- 0: '-ші',
14245
- 1: '-ші',
14246
- 2: '-ші',
14247
- 3: '-ші',
14248
- 4: '-ші',
14249
- 5: '-ші',
14250
- 6: '-шы',
14251
- 7: '-ші',
14252
- 8: '-ші',
14253
- 9: '-шы',
14254
- 10: '-шы',
14255
- 20: '-шы',
14256
- 30: '-шы',
14257
- 40: '-шы',
14258
- 50: '-ші',
14259
- 60: '-шы',
14260
- 70: '-ші',
14261
- 80: '-ші',
14262
- 90: '-шы',
14263
- 100: '-ші'
14264
- };
14265
-
14266
- var kk = moment.defineLocale('kk', {
14267
- months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
14268
- monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
14269
- weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
14270
- weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
14271
- weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
14272
- longDateFormat : {
14273
- LT : 'HH:mm',
14274
- LTS : 'HH:mm:ss',
14275
- L : 'DD.MM.YYYY',
14276
- LL : 'D MMMM YYYY',
14277
- LLL : 'D MMMM YYYY HH:mm',
14278
- LLLL : 'dddd, D MMMM YYYY HH:mm'
14279
- },
14280
- calendar : {
14281
- sameDay : '[Бүгін сағат] LT',
14282
- nextDay : '[Ертең сағат] LT',
14283
- nextWeek : 'dddd [сағат] LT',
14284
- lastDay : '[Кеше сағат] LT',
14285
- lastWeek : '[Өткен аптаның] dddd [сағат] LT',
14286
- sameElse : 'L'
14287
- },
14288
- relativeTime : {
14289
- future : '%s ішінде',
14290
- past : '%s бұрын',
14291
- s : 'бірнеше секунд',
14292
- ss : '%d секунд',
14293
- m : 'бір минут',
14294
- mm : '%d минут',
14295
- h : 'бір сағат',
14296
- hh : '%d сағат',
14297
- d : 'бір күн',
14298
- dd : '%d күн',
14299
- M : 'бір ай',
14300
- MM : '%d ай',
14301
- y : 'бір жыл',
14302
- yy : '%d жыл'
14303
- },
14304
- dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
14305
- ordinal : function (number) {
14306
- var a = number % 10,
14307
- b = number >= 100 ? 100 : null;
14308
- return number + (suffixes[number] || suffixes[a] || suffixes[b]);
14309
- },
14310
- week : {
14311
- dow : 1, // Monday is the first day of the week.
14312
- doy : 7 // The week that contains Jan 7th is the first week of the year.
14313
- }
14314
- });
14315
-
14316
- return kk;
14317
-
14318
- })));
14319
-
14320
-
14321
- /***/ }),
14322
-
14323
- /***/ "./node_modules/moment/locale/km.js":
14324
- /*!******************************************!*\
14325
- !*** ./node_modules/moment/locale/km.js ***!
14326
- \******************************************/
14327
- /*! no static exports found */
14328
- /***/ (function(module, exports, __webpack_require__) {
14329
-
14330
- //! moment.js locale configuration
14331
-
14332
- ;(function (global, factory) {
14333
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14334
- undefined
14335
- }(this, (function (moment) { 'use strict';
14336
-
14337
-
14338
- var symbolMap = {
14339
- '1': '១',
14340
- '2': '២',
14341
- '3': '៣',
14342
- '4': '៤',
14343
- '5': '៥',
14344
- '6': '៦',
14345
- '7': '៧',
14346
- '8': '៨',
14347
- '9': '៩',
14348
- '0': '០'
14349
- }, numberMap = {
14350
- '១': '1',
14351
- '២': '2',
14352
- '៣': '3',
14353
- '៤': '4',
14354
- '៥': '5',
14355
- '៦': '6',
14356
- '៧': '7',
14357
- '៨': '8',
14358
- '៩': '9',
14359
- '០': '0'
14360
- };
14361
-
14362
- var km = moment.defineLocale('km', {
14363
- months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
14364
- '_'
14365
- ),
14366
- monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
14367
- '_'
14368
- ),
14369
- weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
14370
- weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
14371
- weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
14372
- weekdaysParseExact: true,
14373
- longDateFormat: {
14374
- LT: 'HH:mm',
14375
- LTS: 'HH:mm:ss',
14376
- L: 'DD/MM/YYYY',
14377
- LL: 'D MMMM YYYY',
14378
- LLL: 'D MMMM YYYY HH:mm',
14379
- LLLL: 'dddd, D MMMM YYYY HH:mm'
14380
- },
14381
- meridiemParse: /ព្រឹក|ល្ងាច/,
14382
- isPM: function (input) {
14383
- return input === 'ល្ងាច';
14384
- },
14385
- meridiem: function (hour, minute, isLower) {
14386
- if (hour < 12) {
14387
- return 'ព្រឹក';
14388
- } else {
14389
- return 'ល្ងាច';
14390
- }
14391
- },
14392
- calendar: {
14393
- sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
14394
- nextDay: '[ស្អែក ម៉ោង] LT',
14395
- nextWeek: 'dddd [ម៉ោង] LT',
14396
- lastDay: '[ម្សិលមិញ ម៉ោង] LT',
14397
- lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
14398
- sameElse: 'L'
14399
- },
14400
- relativeTime: {
14401
- future: '%sទៀត',
14402
- past: '%sមុន',
14403
- s: 'ប៉ុន្មានវិនាទី',
14404
- ss: '%d វិនាទី',
14405
- m: 'មួយនាទី',
14406
- mm: '%d នាទី',
14407
- h: 'មួយម៉ោង',
14408
- hh: '%d ម៉ោង',
14409
- d: 'មួយថ្ងៃ',
14410
- dd: '%d ថ្ងៃ',
14411
- M: 'មួយខែ',
14412
- MM: '%d ខែ',
14413
- y: 'មួយឆ្នាំ',
14414
- yy: '%d ឆ្នាំ'
14415
- },
14416
- dayOfMonthOrdinalParse : /ទី\d{1,2}/,
14417
- ordinal : 'ទី%d',
14418
- preparse: function (string) {
14419
- return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
14420
- return numberMap[match];
14421
- });
14422
- },
14423
- postformat: function (string) {
14424
- return string.replace(/\d/g, function (match) {
14425
- return symbolMap[match];
14426
- });
14427
- },
14428
- week: {
14429
- dow: 1, // Monday is the first day of the week.
14430
- doy: 4 // The week that contains Jan 4th is the first week of the year.
14431
- }
14432
- });
14433
-
14434
- return km;
14435
-
14436
- })));
14437
-
14438
-
14439
- /***/ }),
14440
-
14441
- /***/ "./node_modules/moment/locale/kn.js":
14442
- /*!******************************************!*\
14443
- !*** ./node_modules/moment/locale/kn.js ***!
14444
- \******************************************/
14445
- /*! no static exports found */
14446
- /***/ (function(module, exports, __webpack_require__) {
14447
-
14448
- //! moment.js locale configuration
14449
-
14450
- ;(function (global, factory) {
14451
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14452
- undefined
14453
- }(this, (function (moment) { 'use strict';
14454
-
14455
-
14456
- var symbolMap = {
14457
- '1': '೧',
14458
- '2': '೨',
14459
- '3': '೩',
14460
- '4': '೪',
14461
- '5': '೫',
14462
- '6': '೬',
14463
- '7': '೭',
14464
- '8': '೮',
14465
- '9': '೯',
14466
- '0': '೦'
14467
- },
14468
- numberMap = {
14469
- '೧': '1',
14470
- '೨': '2',
14471
- '೩': '3',
14472
- '೪': '4',
14473
- '೫': '5',
14474
- '೬': '6',
14475
- '೭': '7',
14476
- '೮': '8',
14477
- '೯': '9',
14478
- '೦': '0'
14479
- };
14480
-
14481
- var kn = moment.defineLocale('kn', {
14482
- months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
14483
- monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
14484
- monthsParseExact: true,
14485
- weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
14486
- weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
14487
- weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
14488
- longDateFormat : {
14489
- LT : 'A h:mm',
14490
- LTS : 'A h:mm:ss',
14491
- L : 'DD/MM/YYYY',
14492
- LL : 'D MMMM YYYY',
14493
- LLL : 'D MMMM YYYY, A h:mm',
14494
- LLLL : 'dddd, D MMMM YYYY, A h:mm'
14495
- },
14496
- calendar : {
14497
- sameDay : '[ಇಂದು] LT',
14498
- nextDay : '[ನಾಳೆ] LT',
14499
- nextWeek : 'dddd, LT',
14500
- lastDay : '[ನಿನ್ನೆ] LT',
14501
- lastWeek : '[ಕೊನೆಯ] dddd, LT',
14502
- sameElse : 'L'
14503
- },
14504
- relativeTime : {
14505
- future : '%s ನಂತರ',
14506
- past : '%s ಹಿಂದೆ',
14507
- s : 'ಕೆಲವು ಕ್ಷಣಗಳು',
14508
- ss : '%d ಸೆಕೆಂಡುಗಳು',
14509
- m : 'ಒಂದು ನಿಮಿಷ',
14510
- mm : '%d ನಿಮಿಷ',
14511
- h : 'ಒಂದು ಗಂಟೆ',
14512
- hh : '%d ಗಂಟೆ',
14513
- d : 'ಒಂದು ದಿನ',
14514
- dd : '%d ದಿನ',
14515
- M : 'ಒಂದು ತಿಂಗಳು',
14516
- MM : '%d ತಿಂಗಳು',
14517
- y : 'ಒಂದು ವರ್ಷ',
14518
- yy : '%d ವರ್ಷ'
14519
- },
14520
- preparse: function (string) {
14521
- return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
14522
- return numberMap[match];
14523
- });
14524
- },
14525
- postformat: function (string) {
14526
- return string.replace(/\d/g, function (match) {
14527
- return symbolMap[match];
14528
- });
14529
- },
14530
- meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
14531
- meridiemHour : function (hour, meridiem) {
14532
- if (hour === 12) {
14533
- hour = 0;
14534
- }
14535
- if (meridiem === 'ರಾತ್ರಿ') {
14536
- return hour < 4 ? hour : hour + 12;
14537
- } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
14538
- return hour;
14539
- } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
14540
- return hour >= 10 ? hour : hour + 12;
14541
- } else if (meridiem === 'ಸಂಜೆ') {
14542
- return hour + 12;
14543
- }
14544
- },
14545
- meridiem : function (hour, minute, isLower) {
14546
- if (hour < 4) {
14547
- return 'ರಾತ್ರಿ';
14548
- } else if (hour < 10) {
14549
- return 'ಬೆಳಿಗ್ಗೆ';
14550
- } else if (hour < 17) {
14551
- return 'ಮಧ್ಯಾಹ್ನ';
14552
- } else if (hour < 20) {
14553
- return 'ಸಂಜೆ';
14554
- } else {
14555
- return 'ರಾತ್ರಿ';
14556
- }
14557
- },
14558
- dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
14559
- ordinal : function (number) {
14560
- return number + 'ನೇ';
14561
- },
14562
- week : {
14563
- dow : 0, // Sunday is the first day of the week.
14564
- doy : 6 // The week that contains Jan 6th is the first week of the year.
14565
- }
14566
- });
14567
-
14568
- return kn;
14569
-
14570
- })));
14571
-
14572
-
14573
- /***/ }),
14574
-
14575
- /***/ "./node_modules/moment/locale/ko.js":
14576
- /*!******************************************!*\
14577
- !*** ./node_modules/moment/locale/ko.js ***!
14578
- \******************************************/
14579
- /*! no static exports found */
14580
- /***/ (function(module, exports, __webpack_require__) {
14581
-
14582
- //! moment.js locale configuration
14583
-
14584
- ;(function (global, factory) {
14585
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14586
- undefined
14587
- }(this, (function (moment) { 'use strict';
14588
-
14589
-
14590
- var ko = moment.defineLocale('ko', {
14591
- months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
14592
- monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
14593
- weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
14594
- weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
14595
- weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
14596
- longDateFormat : {
14597
- LT : 'A h:mm',
14598
- LTS : 'A h:mm:ss',
14599
- L : 'YYYY.MM.DD.',
14600
- LL : 'YYYY년 MMMM D일',
14601
- LLL : 'YYYY년 MMMM D일 A h:mm',
14602
- LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
14603
- l : 'YYYY.MM.DD.',
14604
- ll : 'YYYY년 MMMM D일',
14605
- lll : 'YYYY년 MMMM D일 A h:mm',
14606
- llll : 'YYYY년 MMMM D일 dddd A h:mm'
14607
- },
14608
- calendar : {
14609
- sameDay : '오늘 LT',
14610
- nextDay : '내일 LT',
14611
- nextWeek : 'dddd LT',
14612
- lastDay : '어제 LT',
14613
- lastWeek : '지난주 dddd LT',
14614
- sameElse : 'L'
14615
- },
14616
- relativeTime : {
14617
- future : '%s 후',
14618
- past : '%s 전',
14619
- s : '몇 초',
14620
- ss : '%d초',
14621
- m : '1분',
14622
- mm : '%d분',
14623
- h : '한 시간',
14624
- hh : '%d시간',
14625
- d : '하루',
14626
- dd : '%d일',
14627
- M : '한 달',
14628
- MM : '%d달',
14629
- y : '일 년',
14630
- yy : '%d년'
14631
- },
14632
- dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/,
14633
- ordinal : function (number, period) {
14634
- switch (period) {
14635
- case 'd':
14636
- case 'D':
14637
- case 'DDD':
14638
- return number + '일';
14639
- case 'M':
14640
- return number + '월';
14641
- case 'w':
14642
- case 'W':
14643
- return number + '주';
14644
- default:
14645
- return number;
14646
- }
14647
- },
14648
- meridiemParse : /오전|오후/,
14649
- isPM : function (token) {
14650
- return token === '오후';
14651
- },
14652
- meridiem : function (hour, minute, isUpper) {
14653
- return hour < 12 ? '오전' : '오후';
14654
- }
14655
- });
14656
-
14657
- return ko;
14658
-
14659
- })));
14660
-
14661
-
14662
- /***/ }),
14663
-
14664
- /***/ "./node_modules/moment/locale/ku.js":
14665
- /*!******************************************!*\
14666
- !*** ./node_modules/moment/locale/ku.js ***!
14667
- \******************************************/
14668
- /*! no static exports found */
14669
- /***/ (function(module, exports, __webpack_require__) {
14670
-
14671
- //! moment.js locale configuration
14672
-
14673
- ;(function (global, factory) {
14674
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14675
- undefined
14676
- }(this, (function (moment) { 'use strict';
14677
-
14678
-
14679
- var symbolMap = {
14680
- '1': '١',
14681
- '2': '٢',
14682
- '3': '٣',
14683
- '4': '٤',
14684
- '5': '٥',
14685
- '6': '٦',
14686
- '7': '٧',
14687
- '8': '٨',
14688
- '9': '٩',
14689
- '0': '٠'
14690
- }, numberMap = {
14691
- '١': '1',
14692
- '٢': '2',
14693
- '٣': '3',
14694
- '٤': '4',
14695
- '٥': '5',
14696
- '٦': '6',
14697
- '٧': '7',
14698
- '٨': '8',
14699
- '٩': '9',
14700
- '٠': '0'
14701
- },
14702
- months = [
14703
- 'کانونی دووەم',
14704
- 'شوبات',
14705
- 'ئازار',
14706
- 'نیسان',
14707
- 'ئایار',
14708
- 'حوزەیران',
14709
- 'تەمموز',
14710
- 'ئاب',
14711
- 'ئەیلوول',
14712
- 'تشرینی یەكەم',
14713
- 'تشرینی دووەم',
14714
- 'كانونی یەکەم'
14715
- ];
14716
-
14717
-
14718
- var ku = moment.defineLocale('ku', {
14719
- months : months,
14720
- monthsShort : months,
14721
- weekdays : 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split('_'),
14722
- weekdaysShort : 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
14723
- weekdaysMin : 'ی_د_س_چ_پ_ه_ش'.split('_'),
14724
- weekdaysParseExact : true,
14725
- longDateFormat : {
14726
- LT : 'HH:mm',
14727
- LTS : 'HH:mm:ss',
14728
- L : 'DD/MM/YYYY',
14729
- LL : 'D MMMM YYYY',
14730
- LLL : 'D MMMM YYYY HH:mm',
14731
- LLLL : 'dddd, D MMMM YYYY HH:mm'
14732
- },
14733
- meridiemParse: /ئێواره‌|به‌یانی/,
14734
- isPM: function (input) {
14735
- return /ئێواره‌/.test(input);
14736
- },
14737
- meridiem : function (hour, minute, isLower) {
14738
- if (hour < 12) {
14739
- return 'به‌یانی';
14740
- } else {
14741
- return 'ئێواره‌';
14742
- }
14743
- },
14744
- calendar : {
14745
- sameDay : '[ئه‌مرۆ كاتژمێر] LT',
14746
- nextDay : '[به‌یانی كاتژمێر] LT',
14747
- nextWeek : 'dddd [كاتژمێر] LT',
14748
- lastDay : '[دوێنێ كاتژمێر] LT',
14749
- lastWeek : 'dddd [كاتژمێر] LT',
14750
- sameElse : 'L'
14751
- },
14752
- relativeTime : {
14753
- future : 'له‌ %s',
14754
- past : '%s',
14755
- s : 'چه‌ند چركه‌یه‌ك',
14756
- ss : 'چركه‌ %d',
14757
- m : 'یه‌ك خوله‌ك',
14758
- mm : '%d خوله‌ك',
14759
- h : 'یه‌ك كاتژمێر',
14760
- hh : '%d كاتژمێر',
14761
- d : 'یه‌ك ڕۆژ',
14762
- dd : '%d ڕۆژ',
14763
- M : 'یه‌ك مانگ',
14764
- MM : '%d مانگ',
14765
- y : 'یه‌ك ساڵ',
14766
- yy : '%d ساڵ'
14767
- },
14768
- preparse: function (string) {
14769
- return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
14770
- return numberMap[match];
14771
- }).replace(/،/g, ',');
14772
- },
14773
- postformat: function (string) {
14774
- return string.replace(/\d/g, function (match) {
14775
- return symbolMap[match];
14776
- }).replace(/,/g, '،');
14777
- },
14778
- week : {
14779
- dow : 6, // Saturday is the first day of the week.
14780
- doy : 12 // The week that contains Jan 12th is the first week of the year.
14781
- }
14782
- });
14783
-
14784
- return ku;
14785
-
14786
- })));
14787
-
14788
-
14789
- /***/ }),
14790
-
14791
- /***/ "./node_modules/moment/locale/ky.js":
14792
- /*!******************************************!*\
14793
- !*** ./node_modules/moment/locale/ky.js ***!
14794
- \******************************************/
14795
- /*! no static exports found */
14796
- /***/ (function(module, exports, __webpack_require__) {
14797
-
14798
- //! moment.js locale configuration
14799
-
14800
- ;(function (global, factory) {
14801
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14802
- undefined
14803
- }(this, (function (moment) { 'use strict';
14804
-
14805
-
14806
- var suffixes = {
14807
- 0: '-чү',
14808
- 1: '-чи',
14809
- 2: '-чи',
14810
- 3: '-чү',
14811
- 4: '-чү',
14812
- 5: '-чи',
14813
- 6: '-чы',
14814
- 7: '-чи',
14815
- 8: '-чи',
14816
- 9: '-чу',
14817
- 10: '-чу',
14818
- 20: '-чы',
14819
- 30: '-чу',
14820
- 40: '-чы',
14821
- 50: '-чү',
14822
- 60: '-чы',
14823
- 70: '-чи',
14824
- 80: '-чи',
14825
- 90: '-чу',
14826
- 100: '-чү'
14827
- };
14828
-
14829
- var ky = moment.defineLocale('ky', {
14830
- months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
14831
- monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
14832
- weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
14833
- weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
14834
- weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
14835
- longDateFormat : {
14836
- LT : 'HH:mm',
14837
- LTS : 'HH:mm:ss',
14838
- L : 'DD.MM.YYYY',
14839
- LL : 'D MMMM YYYY',
14840
- LLL : 'D MMMM YYYY HH:mm',
14841
- LLLL : 'dddd, D MMMM YYYY HH:mm'
14842
- },
14843
- calendar : {
14844
- sameDay : '[Бүгүн саат] LT',
14845
- nextDay : '[Эртең саат] LT',
14846
- nextWeek : 'dddd [саат] LT',
14847
- lastDay : '[Кечээ саат] LT',
14848
- lastWeek : '[Өткөн аптанын] dddd [күнү] [саат] LT',
14849
- sameElse : 'L'
14850
- },
14851
- relativeTime : {
14852
- future : '%s ичинде',
14853
- past : '%s мурун',
14854
- s : 'бирнече секунд',
14855
- ss : '%d секунд',
14856
- m : 'бир мүнөт',
14857
- mm : '%d мүнөт',
14858
- h : 'бир саат',
14859
- hh : '%d саат',
14860
- d : 'бир күн',
14861
- dd : '%d күн',
14862
- M : 'бир ай',
14863
- MM : '%d ай',
14864
- y : 'бир жыл',
14865
- yy : '%d жыл'
14866
- },
14867
- dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
14868
- ordinal : function (number) {
14869
- var a = number % 10,
14870
- b = number >= 100 ? 100 : null;
14871
- return number + (suffixes[number] || suffixes[a] || suffixes[b]);
14872
- },
14873
- week : {
14874
- dow : 1, // Monday is the first day of the week.
14875
- doy : 7 // The week that contains Jan 7th is the first week of the year.
14876
- }
14877
- });
14878
-
14879
- return ky;
14880
-
14881
- })));
14882
-
14883
-
14884
- /***/ }),
14885
-
14886
- /***/ "./node_modules/moment/locale/lb.js":
14887
- /*!******************************************!*\
14888
- !*** ./node_modules/moment/locale/lb.js ***!
14889
- \******************************************/
14890
- /*! no static exports found */
14891
- /***/ (function(module, exports, __webpack_require__) {
14892
-
14893
- //! moment.js locale configuration
14894
-
14895
- ;(function (global, factory) {
14896
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
14897
- undefined
14898
- }(this, (function (moment) { 'use strict';
14899
-
14900
-
14901
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
14902
- var format = {
14903
- 'm': ['eng Minutt', 'enger Minutt'],
14904
- 'h': ['eng Stonn', 'enger Stonn'],
14905
- 'd': ['een Dag', 'engem Dag'],
14906
- 'M': ['ee Mount', 'engem Mount'],
14907
- 'y': ['ee Joer', 'engem Joer']
14908
- };
14909
- return withoutSuffix ? format[key][0] : format[key][1];
14910
- }
14911
- function processFutureTime(string) {
14912
- var number = string.substr(0, string.indexOf(' '));
14913
- if (eifelerRegelAppliesToNumber(number)) {
14914
- return 'a ' + string;
14915
- }
14916
- return 'an ' + string;
14917
- }
14918
- function processPastTime(string) {
14919
- var number = string.substr(0, string.indexOf(' '));
14920
- if (eifelerRegelAppliesToNumber(number)) {
14921
- return 'viru ' + string;
14922
- }
14923
- return 'virun ' + string;
14924
- }
14925
- /**
14926
- * Returns true if the word before the given number loses the '-n' ending.
14927
- * e.g. 'an 10 Deeg' but 'a 5 Deeg'
14928
- *
14929
- * @param number {integer}
14930
- * @returns {boolean}
14931
- */
14932
- function eifelerRegelAppliesToNumber(number) {
14933
- number = parseInt(number, 10);
14934
- if (isNaN(number)) {
14935
- return false;
14936
- }
14937
- if (number < 0) {
14938
- // Negative Number --> always true
14939
- return true;
14940
- } else if (number < 10) {
14941
- // Only 1 digit
14942
- if (4 <= number && number <= 7) {
14943
- return true;
14944
- }
14945
- return false;
14946
- } else if (number < 100) {
14947
- // 2 digits
14948
- var lastDigit = number % 10, firstDigit = number / 10;
14949
- if (lastDigit === 0) {
14950
- return eifelerRegelAppliesToNumber(firstDigit);
14951
- }
14952
- return eifelerRegelAppliesToNumber(lastDigit);
14953
- } else if (number < 10000) {
14954
- // 3 or 4 digits --> recursively check first digit
14955
- while (number >= 10) {
14956
- number = number / 10;
14957
- }
14958
- return eifelerRegelAppliesToNumber(number);
14959
- } else {
14960
- // Anything larger than 4 digits: recursively check first n-3 digits
14961
- number = number / 1000;
14962
- return eifelerRegelAppliesToNumber(number);
14963
- }
14964
- }
14965
-
14966
- var lb = moment.defineLocale('lb', {
14967
- months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
14968
- monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
14969
- monthsParseExact : true,
14970
- weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
14971
- weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
14972
- weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
14973
- weekdaysParseExact : true,
14974
- longDateFormat: {
14975
- LT: 'H:mm [Auer]',
14976
- LTS: 'H:mm:ss [Auer]',
14977
- L: 'DD.MM.YYYY',
14978
- LL: 'D. MMMM YYYY',
14979
- LLL: 'D. MMMM YYYY H:mm [Auer]',
14980
- LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
14981
- },
14982
- calendar: {
14983
- sameDay: '[Haut um] LT',
14984
- sameElse: 'L',
14985
- nextDay: '[Muer um] LT',
14986
- nextWeek: 'dddd [um] LT',
14987
- lastDay: '[Gëschter um] LT',
14988
- lastWeek: function () {
14989
- // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
14990
- switch (this.day()) {
14991
- case 2:
14992
- case 4:
14993
- return '[Leschten] dddd [um] LT';
14994
- default:
14995
- return '[Leschte] dddd [um] LT';
14996
- }
14997
- }
14998
- },
14999
- relativeTime : {
15000
- future : processFutureTime,
15001
- past : processPastTime,
15002
- s : 'e puer Sekonnen',
15003
- ss : '%d Sekonnen',
15004
- m : processRelativeTime,
15005
- mm : '%d Minutten',
15006
- h : processRelativeTime,
15007
- hh : '%d Stonnen',
15008
- d : processRelativeTime,
15009
- dd : '%d Deeg',
15010
- M : processRelativeTime,
15011
- MM : '%d Méint',
15012
- y : processRelativeTime,
15013
- yy : '%d Joer'
15014
- },
15015
- dayOfMonthOrdinalParse: /\d{1,2}\./,
15016
- ordinal: '%d.',
15017
- week: {
15018
- dow: 1, // Monday is the first day of the week.
15019
- doy: 4 // The week that contains Jan 4th is the first week of the year.
15020
- }
15021
- });
15022
-
15023
- return lb;
15024
-
15025
- })));
15026
-
15027
-
15028
- /***/ }),
15029
-
15030
- /***/ "./node_modules/moment/locale/lo.js":
15031
- /*!******************************************!*\
15032
- !*** ./node_modules/moment/locale/lo.js ***!
15033
- \******************************************/
15034
- /*! no static exports found */
15035
- /***/ (function(module, exports, __webpack_require__) {
15036
-
15037
- //! moment.js locale configuration
15038
-
15039
- ;(function (global, factory) {
15040
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15041
- undefined
15042
- }(this, (function (moment) { 'use strict';
15043
-
15044
-
15045
- var lo = moment.defineLocale('lo', {
15046
- months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
15047
- monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
15048
- weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
15049
- weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
15050
- weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
15051
- weekdaysParseExact : true,
15052
- longDateFormat : {
15053
- LT : 'HH:mm',
15054
- LTS : 'HH:mm:ss',
15055
- L : 'DD/MM/YYYY',
15056
- LL : 'D MMMM YYYY',
15057
- LLL : 'D MMMM YYYY HH:mm',
15058
- LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
15059
- },
15060
- meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
15061
- isPM: function (input) {
15062
- return input === 'ຕອນແລງ';
15063
- },
15064
- meridiem : function (hour, minute, isLower) {
15065
- if (hour < 12) {
15066
- return 'ຕອນເຊົ້າ';
15067
- } else {
15068
- return 'ຕອນແລງ';
15069
- }
15070
- },
15071
- calendar : {
15072
- sameDay : '[ມື້ນີ້ເວລາ] LT',
15073
- nextDay : '[ມື້ອື່ນເວລາ] LT',
15074
- nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
15075
- lastDay : '[ມື້ວານນີ້ເວລາ] LT',
15076
- lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
15077
- sameElse : 'L'
15078
- },
15079
- relativeTime : {
15080
- future : 'ອີກ %s',
15081
- past : '%sຜ່ານມາ',
15082
- s : 'ບໍ່ເທົ່າໃດວິນາທີ',
15083
- ss : '%d ວິນາທີ' ,
15084
- m : '1 ນາທີ',
15085
- mm : '%d ນາທີ',
15086
- h : '1 ຊົ່ວໂມງ',
15087
- hh : '%d ຊົ່ວໂມງ',
15088
- d : '1 ມື້',
15089
- dd : '%d ມື້',
15090
- M : '1 ເດືອນ',
15091
- MM : '%d ເດືອນ',
15092
- y : '1 ປີ',
15093
- yy : '%d ປີ'
15094
- },
15095
- dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
15096
- ordinal : function (number) {
15097
- return 'ທີ່' + number;
15098
- }
15099
- });
15100
-
15101
- return lo;
15102
-
15103
- })));
15104
-
15105
-
15106
- /***/ }),
15107
-
15108
- /***/ "./node_modules/moment/locale/lt.js":
15109
- /*!******************************************!*\
15110
- !*** ./node_modules/moment/locale/lt.js ***!
15111
- \******************************************/
15112
- /*! no static exports found */
15113
- /***/ (function(module, exports, __webpack_require__) {
15114
-
15115
- //! moment.js locale configuration
15116
-
15117
- ;(function (global, factory) {
15118
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15119
- undefined
15120
- }(this, (function (moment) { 'use strict';
15121
-
15122
-
15123
- var units = {
15124
- 'ss' : 'sekundė_sekundžių_sekundes',
15125
- 'm' : 'minutė_minutės_minutę',
15126
- 'mm': 'minutės_minučių_minutes',
15127
- 'h' : 'valanda_valandos_valandą',
15128
- 'hh': 'valandos_valandų_valandas',
15129
- 'd' : 'diena_dienos_dieną',
15130
- 'dd': 'dienos_dienų_dienas',
15131
- 'M' : 'mėnuo_mėnesio_mėnesį',
15132
- 'MM': 'mėnesiai_mėnesių_mėnesius',
15133
- 'y' : 'metai_metų_metus',
15134
- 'yy': 'metai_metų_metus'
15135
- };
15136
- function translateSeconds(number, withoutSuffix, key, isFuture) {
15137
- if (withoutSuffix) {
15138
- return 'kelios sekundės';
15139
- } else {
15140
- return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
15141
- }
15142
- }
15143
- function translateSingular(number, withoutSuffix, key, isFuture) {
15144
- return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
15145
- }
15146
- function special(number) {
15147
- return number % 10 === 0 || (number > 10 && number < 20);
15148
- }
15149
- function forms(key) {
15150
- return units[key].split('_');
15151
- }
15152
- function translate(number, withoutSuffix, key, isFuture) {
15153
- var result = number + ' ';
15154
- if (number === 1) {
15155
- return result + translateSingular(number, withoutSuffix, key[0], isFuture);
15156
- } else if (withoutSuffix) {
15157
- return result + (special(number) ? forms(key)[1] : forms(key)[0]);
15158
- } else {
15159
- if (isFuture) {
15160
- return result + forms(key)[1];
15161
- } else {
15162
- return result + (special(number) ? forms(key)[1] : forms(key)[2]);
15163
- }
15164
- }
15165
- }
15166
- var lt = moment.defineLocale('lt', {
15167
- months : {
15168
- format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
15169
- standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
15170
- isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
15171
- },
15172
- monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
15173
- weekdays : {
15174
- format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
15175
- standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
15176
- isFormat: /dddd HH:mm/
15177
- },
15178
- weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
15179
- weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
15180
- weekdaysParseExact : true,
15181
- longDateFormat : {
15182
- LT : 'HH:mm',
15183
- LTS : 'HH:mm:ss',
15184
- L : 'YYYY-MM-DD',
15185
- LL : 'YYYY [m.] MMMM D [d.]',
15186
- LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
15187
- LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
15188
- l : 'YYYY-MM-DD',
15189
- ll : 'YYYY [m.] MMMM D [d.]',
15190
- lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
15191
- llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
15192
- },
15193
- calendar : {
15194
- sameDay : '[Šiandien] LT',
15195
- nextDay : '[Rytoj] LT',
15196
- nextWeek : 'dddd LT',
15197
- lastDay : '[Vakar] LT',
15198
- lastWeek : '[Praėjusį] dddd LT',
15199
- sameElse : 'L'
15200
- },
15201
- relativeTime : {
15202
- future : 'po %s',
15203
- past : 'prieš %s',
15204
- s : translateSeconds,
15205
- ss : translate,
15206
- m : translateSingular,
15207
- mm : translate,
15208
- h : translateSingular,
15209
- hh : translate,
15210
- d : translateSingular,
15211
- dd : translate,
15212
- M : translateSingular,
15213
- MM : translate,
15214
- y : translateSingular,
15215
- yy : translate
15216
- },
15217
- dayOfMonthOrdinalParse: /\d{1,2}-oji/,
15218
- ordinal : function (number) {
15219
- return number + '-oji';
15220
- },
15221
- week : {
15222
- dow : 1, // Monday is the first day of the week.
15223
- doy : 4 // The week that contains Jan 4th is the first week of the year.
15224
- }
15225
- });
15226
-
15227
- return lt;
15228
-
15229
- })));
15230
-
15231
-
15232
- /***/ }),
15233
-
15234
- /***/ "./node_modules/moment/locale/lv.js":
15235
- /*!******************************************!*\
15236
- !*** ./node_modules/moment/locale/lv.js ***!
15237
- \******************************************/
15238
- /*! no static exports found */
15239
- /***/ (function(module, exports, __webpack_require__) {
15240
-
15241
- //! moment.js locale configuration
15242
-
15243
- ;(function (global, factory) {
15244
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15245
- undefined
15246
- }(this, (function (moment) { 'use strict';
15247
-
15248
-
15249
- var units = {
15250
- 'ss': 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
15251
- 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
15252
- 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
15253
- 'h': 'stundas_stundām_stunda_stundas'.split('_'),
15254
- 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
15255
- 'd': 'dienas_dienām_diena_dienas'.split('_'),
15256
- 'dd': 'dienas_dienām_diena_dienas'.split('_'),
15257
- 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
15258
- 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
15259
- 'y': 'gada_gadiem_gads_gadi'.split('_'),
15260
- 'yy': 'gada_gadiem_gads_gadi'.split('_')
15261
- };
15262
- /**
15263
- * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
15264
- */
15265
- function format(forms, number, withoutSuffix) {
15266
- if (withoutSuffix) {
15267
- // E.g. "21 minūte", "3 minūtes".
15268
- return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
15269
- } else {
15270
- // E.g. "21 minūtes" as in "pēc 21 minūtes".
15271
- // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
15272
- return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
15273
- }
15274
- }
15275
- function relativeTimeWithPlural(number, withoutSuffix, key) {
15276
- return number + ' ' + format(units[key], number, withoutSuffix);
15277
- }
15278
- function relativeTimeWithSingular(number, withoutSuffix, key) {
15279
- return format(units[key], number, withoutSuffix);
15280
- }
15281
- function relativeSeconds(number, withoutSuffix) {
15282
- return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
15283
- }
15284
-
15285
- var lv = moment.defineLocale('lv', {
15286
- months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
15287
- monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
15288
- weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
15289
- weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
15290
- weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
15291
- weekdaysParseExact : true,
15292
- longDateFormat : {
15293
- LT : 'HH:mm',
15294
- LTS : 'HH:mm:ss',
15295
- L : 'DD.MM.YYYY.',
15296
- LL : 'YYYY. [gada] D. MMMM',
15297
- LLL : 'YYYY. [gada] D. MMMM, HH:mm',
15298
- LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
15299
- },
15300
- calendar : {
15301
- sameDay : '[Šodien pulksten] LT',
15302
- nextDay : '[Rīt pulksten] LT',
15303
- nextWeek : 'dddd [pulksten] LT',
15304
- lastDay : '[Vakar pulksten] LT',
15305
- lastWeek : '[Pagājušā] dddd [pulksten] LT',
15306
- sameElse : 'L'
15307
- },
15308
- relativeTime : {
15309
- future : 'pēc %s',
15310
- past : 'pirms %s',
15311
- s : relativeSeconds,
15312
- ss : relativeTimeWithPlural,
15313
- m : relativeTimeWithSingular,
15314
- mm : relativeTimeWithPlural,
15315
- h : relativeTimeWithSingular,
15316
- hh : relativeTimeWithPlural,
15317
- d : relativeTimeWithSingular,
15318
- dd : relativeTimeWithPlural,
15319
- M : relativeTimeWithSingular,
15320
- MM : relativeTimeWithPlural,
15321
- y : relativeTimeWithSingular,
15322
- yy : relativeTimeWithPlural
15323
- },
15324
- dayOfMonthOrdinalParse: /\d{1,2}\./,
15325
- ordinal : '%d.',
15326
- week : {
15327
- dow : 1, // Monday is the first day of the week.
15328
- doy : 4 // The week that contains Jan 4th is the first week of the year.
15329
- }
15330
- });
15331
-
15332
- return lv;
15333
-
15334
- })));
15335
-
15336
-
15337
- /***/ }),
15338
-
15339
- /***/ "./node_modules/moment/locale/me.js":
15340
- /*!******************************************!*\
15341
- !*** ./node_modules/moment/locale/me.js ***!
15342
- \******************************************/
15343
- /*! no static exports found */
15344
- /***/ (function(module, exports, __webpack_require__) {
15345
-
15346
- //! moment.js locale configuration
15347
-
15348
- ;(function (global, factory) {
15349
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15350
- undefined
15351
- }(this, (function (moment) { 'use strict';
15352
-
15353
-
15354
- var translator = {
15355
- words: { //Different grammatical cases
15356
- ss: ['sekund', 'sekunda', 'sekundi'],
15357
- m: ['jedan minut', 'jednog minuta'],
15358
- mm: ['minut', 'minuta', 'minuta'],
15359
- h: ['jedan sat', 'jednog sata'],
15360
- hh: ['sat', 'sata', 'sati'],
15361
- dd: ['dan', 'dana', 'dana'],
15362
- MM: ['mjesec', 'mjeseca', 'mjeseci'],
15363
- yy: ['godina', 'godine', 'godina']
15364
- },
15365
- correctGrammaticalCase: function (number, wordKey) {
15366
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
15367
- },
15368
- translate: function (number, withoutSuffix, key) {
15369
- var wordKey = translator.words[key];
15370
- if (key.length === 1) {
15371
- return withoutSuffix ? wordKey[0] : wordKey[1];
15372
- } else {
15373
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
15374
- }
15375
- }
15376
- };
15377
-
15378
- var me = moment.defineLocale('me', {
15379
- months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
15380
- monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
15381
- monthsParseExact : true,
15382
- weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
15383
- weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
15384
- weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
15385
- weekdaysParseExact : true,
15386
- longDateFormat: {
15387
- LT: 'H:mm',
15388
- LTS : 'H:mm:ss',
15389
- L: 'DD.MM.YYYY',
15390
- LL: 'D. MMMM YYYY',
15391
- LLL: 'D. MMMM YYYY H:mm',
15392
- LLLL: 'dddd, D. MMMM YYYY H:mm'
15393
- },
15394
- calendar: {
15395
- sameDay: '[danas u] LT',
15396
- nextDay: '[sjutra u] LT',
15397
-
15398
- nextWeek: function () {
15399
- switch (this.day()) {
15400
- case 0:
15401
- return '[u] [nedjelju] [u] LT';
15402
- case 3:
15403
- return '[u] [srijedu] [u] LT';
15404
- case 6:
15405
- return '[u] [subotu] [u] LT';
15406
- case 1:
15407
- case 2:
15408
- case 4:
15409
- case 5:
15410
- return '[u] dddd [u] LT';
15411
- }
15412
- },
15413
- lastDay : '[juče u] LT',
15414
- lastWeek : function () {
15415
- var lastWeekDays = [
15416
- '[prošle] [nedjelje] [u] LT',
15417
- '[prošlog] [ponedjeljka] [u] LT',
15418
- '[prošlog] [utorka] [u] LT',
15419
- '[prošle] [srijede] [u] LT',
15420
- '[prošlog] [četvrtka] [u] LT',
15421
- '[prošlog] [petka] [u] LT',
15422
- '[prošle] [subote] [u] LT'
15423
- ];
15424
- return lastWeekDays[this.day()];
15425
- },
15426
- sameElse : 'L'
15427
- },
15428
- relativeTime : {
15429
- future : 'za %s',
15430
- past : 'prije %s',
15431
- s : 'nekoliko sekundi',
15432
- ss : translator.translate,
15433
- m : translator.translate,
15434
- mm : translator.translate,
15435
- h : translator.translate,
15436
- hh : translator.translate,
15437
- d : 'dan',
15438
- dd : translator.translate,
15439
- M : 'mjesec',
15440
- MM : translator.translate,
15441
- y : 'godinu',
15442
- yy : translator.translate
15443
- },
15444
- dayOfMonthOrdinalParse: /\d{1,2}\./,
15445
- ordinal : '%d.',
15446
- week : {
15447
- dow : 1, // Monday is the first day of the week.
15448
- doy : 7 // The week that contains Jan 7th is the first week of the year.
15449
- }
15450
- });
15451
-
15452
- return me;
15453
-
15454
- })));
15455
-
15456
-
15457
- /***/ }),
15458
-
15459
- /***/ "./node_modules/moment/locale/mi.js":
15460
- /*!******************************************!*\
15461
- !*** ./node_modules/moment/locale/mi.js ***!
15462
- \******************************************/
15463
- /*! no static exports found */
15464
- /***/ (function(module, exports, __webpack_require__) {
15465
-
15466
- //! moment.js locale configuration
15467
-
15468
- ;(function (global, factory) {
15469
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15470
- undefined
15471
- }(this, (function (moment) { 'use strict';
15472
-
15473
-
15474
- var mi = moment.defineLocale('mi', {
15475
- months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
15476
- monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
15477
- monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
15478
- monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
15479
- monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
15480
- monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
15481
- weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
15482
- weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
15483
- weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
15484
- longDateFormat: {
15485
- LT: 'HH:mm',
15486
- LTS: 'HH:mm:ss',
15487
- L: 'DD/MM/YYYY',
15488
- LL: 'D MMMM YYYY',
15489
- LLL: 'D MMMM YYYY [i] HH:mm',
15490
- LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
15491
- },
15492
- calendar: {
15493
- sameDay: '[i teie mahana, i] LT',
15494
- nextDay: '[apopo i] LT',
15495
- nextWeek: 'dddd [i] LT',
15496
- lastDay: '[inanahi i] LT',
15497
- lastWeek: 'dddd [whakamutunga i] LT',
15498
- sameElse: 'L'
15499
- },
15500
- relativeTime: {
15501
- future: 'i roto i %s',
15502
- past: '%s i mua',
15503
- s: 'te hēkona ruarua',
15504
- ss: '%d hēkona',
15505
- m: 'he meneti',
15506
- mm: '%d meneti',
15507
- h: 'te haora',
15508
- hh: '%d haora',
15509
- d: 'he ra',
15510
- dd: '%d ra',
15511
- M: 'he marama',
15512
- MM: '%d marama',
15513
- y: 'he tau',
15514
- yy: '%d tau'
15515
- },
15516
- dayOfMonthOrdinalParse: /\d{1,2}º/,
15517
- ordinal: '%dº',
15518
- week : {
15519
- dow : 1, // Monday is the first day of the week.
15520
- doy : 4 // The week that contains Jan 4th is the first week of the year.
15521
- }
15522
- });
15523
-
15524
- return mi;
15525
-
15526
- })));
15527
-
15528
-
15529
- /***/ }),
15530
-
15531
- /***/ "./node_modules/moment/locale/mk.js":
15532
- /*!******************************************!*\
15533
- !*** ./node_modules/moment/locale/mk.js ***!
15534
- \******************************************/
15535
- /*! no static exports found */
15536
- /***/ (function(module, exports, __webpack_require__) {
15537
-
15538
- //! moment.js locale configuration
15539
-
15540
- ;(function (global, factory) {
15541
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15542
- undefined
15543
- }(this, (function (moment) { 'use strict';
15544
-
15545
-
15546
- var mk = moment.defineLocale('mk', {
15547
- months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
15548
- monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
15549
- weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
15550
- weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
15551
- weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
15552
- longDateFormat : {
15553
- LT : 'H:mm',
15554
- LTS : 'H:mm:ss',
15555
- L : 'D.MM.YYYY',
15556
- LL : 'D MMMM YYYY',
15557
- LLL : 'D MMMM YYYY H:mm',
15558
- LLLL : 'dddd, D MMMM YYYY H:mm'
15559
- },
15560
- calendar : {
15561
- sameDay : '[Денес во] LT',
15562
- nextDay : '[Утре во] LT',
15563
- nextWeek : '[Во] dddd [во] LT',
15564
- lastDay : '[Вчера во] LT',
15565
- lastWeek : function () {
15566
- switch (this.day()) {
15567
- case 0:
15568
- case 3:
15569
- case 6:
15570
- return '[Изминатата] dddd [во] LT';
15571
- case 1:
15572
- case 2:
15573
- case 4:
15574
- case 5:
15575
- return '[Изминатиот] dddd [во] LT';
15576
- }
15577
- },
15578
- sameElse : 'L'
15579
- },
15580
- relativeTime : {
15581
- future : 'после %s',
15582
- past : 'пред %s',
15583
- s : 'неколку секунди',
15584
- ss : '%d секунди',
15585
- m : 'минута',
15586
- mm : '%d минути',
15587
- h : 'час',
15588
- hh : '%d часа',
15589
- d : 'ден',
15590
- dd : '%d дена',
15591
- M : 'месец',
15592
- MM : '%d месеци',
15593
- y : 'година',
15594
- yy : '%d години'
15595
- },
15596
- dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
15597
- ordinal : function (number) {
15598
- var lastDigit = number % 10,
15599
- last2Digits = number % 100;
15600
- if (number === 0) {
15601
- return number + '-ев';
15602
- } else if (last2Digits === 0) {
15603
- return number + '-ен';
15604
- } else if (last2Digits > 10 && last2Digits < 20) {
15605
- return number + '-ти';
15606
- } else if (lastDigit === 1) {
15607
- return number + '-ви';
15608
- } else if (lastDigit === 2) {
15609
- return number + '-ри';
15610
- } else if (lastDigit === 7 || lastDigit === 8) {
15611
- return number + '-ми';
15612
- } else {
15613
- return number + '-ти';
15614
- }
15615
- },
15616
- week : {
15617
- dow : 1, // Monday is the first day of the week.
15618
- doy : 7 // The week that contains Jan 7th is the first week of the year.
15619
- }
15620
- });
15621
-
15622
- return mk;
15623
-
15624
- })));
15625
-
15626
-
15627
- /***/ }),
15628
-
15629
- /***/ "./node_modules/moment/locale/ml.js":
15630
- /*!******************************************!*\
15631
- !*** ./node_modules/moment/locale/ml.js ***!
15632
- \******************************************/
15633
- /*! no static exports found */
15634
- /***/ (function(module, exports, __webpack_require__) {
15635
-
15636
- //! moment.js locale configuration
15637
-
15638
- ;(function (global, factory) {
15639
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15640
- undefined
15641
- }(this, (function (moment) { 'use strict';
15642
-
15643
-
15644
- var ml = moment.defineLocale('ml', {
15645
- months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
15646
- monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
15647
- monthsParseExact : true,
15648
- weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
15649
- weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
15650
- weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
15651
- longDateFormat : {
15652
- LT : 'A h:mm -നു',
15653
- LTS : 'A h:mm:ss -നു',
15654
- L : 'DD/MM/YYYY',
15655
- LL : 'D MMMM YYYY',
15656
- LLL : 'D MMMM YYYY, A h:mm -നു',
15657
- LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
15658
- },
15659
- calendar : {
15660
- sameDay : '[ഇന്ന്] LT',
15661
- nextDay : '[നാളെ] LT',
15662
- nextWeek : 'dddd, LT',
15663
- lastDay : '[ഇന്നലെ] LT',
15664
- lastWeek : '[കഴിഞ്ഞ] dddd, LT',
15665
- sameElse : 'L'
15666
- },
15667
- relativeTime : {
15668
- future : '%s കഴിഞ്ഞ്',
15669
- past : '%s മുൻപ്',
15670
- s : 'അൽപ നിമിഷങ്ങൾ',
15671
- ss : '%d സെക്കൻഡ്',
15672
- m : 'ഒരു മിനിറ്റ്',
15673
- mm : '%d മിനിറ്റ്',
15674
- h : 'ഒരു മണിക്കൂർ',
15675
- hh : '%d മണിക്കൂർ',
15676
- d : 'ഒരു ദിവസം',
15677
- dd : '%d ദിവസം',
15678
- M : 'ഒരു മാസം',
15679
- MM : '%d മാസം',
15680
- y : 'ഒരു വർഷം',
15681
- yy : '%d വർഷം'
15682
- },
15683
- meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
15684
- meridiemHour : function (hour, meridiem) {
15685
- if (hour === 12) {
15686
- hour = 0;
15687
- }
15688
- if ((meridiem === 'രാത്രി' && hour >= 4) ||
15689
- meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
15690
- meridiem === 'വൈകുന്നേരം') {
15691
- return hour + 12;
15692
- } else {
15693
- return hour;
15694
- }
15695
- },
15696
- meridiem : function (hour, minute, isLower) {
15697
- if (hour < 4) {
15698
- return 'രാത്രി';
15699
- } else if (hour < 12) {
15700
- return 'രാവിലെ';
15701
- } else if (hour < 17) {
15702
- return 'ഉച്ച കഴിഞ്ഞ്';
15703
- } else if (hour < 20) {
15704
- return 'വൈകുന്നേരം';
15705
- } else {
15706
- return 'രാത്രി';
15707
- }
15708
- }
15709
- });
15710
-
15711
- return ml;
15712
-
15713
- })));
15714
-
15715
-
15716
- /***/ }),
15717
-
15718
- /***/ "./node_modules/moment/locale/mn.js":
15719
- /*!******************************************!*\
15720
- !*** ./node_modules/moment/locale/mn.js ***!
15721
- \******************************************/
15722
- /*! no static exports found */
15723
- /***/ (function(module, exports, __webpack_require__) {
15724
-
15725
- //! moment.js locale configuration
15726
-
15727
- ;(function (global, factory) {
15728
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15729
- undefined
15730
- }(this, (function (moment) { 'use strict';
15731
-
15732
-
15733
- function translate(number, withoutSuffix, key, isFuture) {
15734
- switch (key) {
15735
- case 's':
15736
- return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
15737
- case 'ss':
15738
- return number + (withoutSuffix ? ' секунд' : ' секундын');
15739
- case 'm':
15740
- case 'mm':
15741
- return number + (withoutSuffix ? ' минут' : ' минутын');
15742
- case 'h':
15743
- case 'hh':
15744
- return number + (withoutSuffix ? ' цаг' : ' цагийн');
15745
- case 'd':
15746
- case 'dd':
15747
- return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
15748
- case 'M':
15749
- case 'MM':
15750
- return number + (withoutSuffix ? ' сар' : ' сарын');
15751
- case 'y':
15752
- case 'yy':
15753
- return number + (withoutSuffix ? ' жил' : ' жилийн');
15754
- default:
15755
- return number;
15756
- }
15757
- }
15758
-
15759
- var mn = moment.defineLocale('mn', {
15760
- months : 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
15761
- monthsShort : '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
15762
- monthsParseExact : true,
15763
- weekdays : 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
15764
- weekdaysShort : 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
15765
- weekdaysMin : 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
15766
- weekdaysParseExact : true,
15767
- longDateFormat : {
15768
- LT : 'HH:mm',
15769
- LTS : 'HH:mm:ss',
15770
- L : 'YYYY-MM-DD',
15771
- LL : 'YYYY оны MMMMын D',
15772
- LLL : 'YYYY оны MMMMын D HH:mm',
15773
- LLLL : 'dddd, YYYY оны MMMMын D HH:mm'
15774
- },
15775
- meridiemParse: /ҮӨ|ҮХ/i,
15776
- isPM : function (input) {
15777
- return input === 'ҮХ';
15778
- },
15779
- meridiem : function (hour, minute, isLower) {
15780
- if (hour < 12) {
15781
- return 'ҮӨ';
15782
- } else {
15783
- return 'ҮХ';
15784
- }
15785
- },
15786
- calendar : {
15787
- sameDay : '[Өнөөдөр] LT',
15788
- nextDay : '[Маргааш] LT',
15789
- nextWeek : '[Ирэх] dddd LT',
15790
- lastDay : '[Өчигдөр] LT',
15791
- lastWeek : '[Өнгөрсөн] dddd LT',
15792
- sameElse : 'L'
15793
- },
15794
- relativeTime : {
15795
- future : '%s дараа',
15796
- past : '%s өмнө',
15797
- s : translate,
15798
- ss : translate,
15799
- m : translate,
15800
- mm : translate,
15801
- h : translate,
15802
- hh : translate,
15803
- d : translate,
15804
- dd : translate,
15805
- M : translate,
15806
- MM : translate,
15807
- y : translate,
15808
- yy : translate
15809
- },
15810
- dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
15811
- ordinal : function (number, period) {
15812
- switch (period) {
15813
- case 'd':
15814
- case 'D':
15815
- case 'DDD':
15816
- return number + ' өдөр';
15817
- default:
15818
- return number;
15819
- }
15820
- }
15821
- });
15822
-
15823
- return mn;
15824
-
15825
- })));
15826
-
15827
-
15828
- /***/ }),
15829
-
15830
- /***/ "./node_modules/moment/locale/mr.js":
15831
- /*!******************************************!*\
15832
- !*** ./node_modules/moment/locale/mr.js ***!
15833
- \******************************************/
15834
- /*! no static exports found */
15835
- /***/ (function(module, exports, __webpack_require__) {
15836
-
15837
- //! moment.js locale configuration
15838
-
15839
- ;(function (global, factory) {
15840
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
15841
- undefined
15842
- }(this, (function (moment) { 'use strict';
15843
-
15844
-
15845
- var symbolMap = {
15846
- '1': '१',
15847
- '2': '२',
15848
- '3': '३',
15849
- '4': '४',
15850
- '5': '५',
15851
- '6': '६',
15852
- '7': '७',
15853
- '8': '८',
15854
- '9': '९',
15855
- '0': '०'
15856
- },
15857
- numberMap = {
15858
- '१': '1',
15859
- '२': '2',
15860
- '३': '3',
15861
- '४': '4',
15862
- '५': '5',
15863
- '६': '6',
15864
- '७': '7',
15865
- '८': '8',
15866
- '९': '9',
15867
- '०': '0'
15868
- };
15869
-
15870
- function relativeTimeMr(number, withoutSuffix, string, isFuture)
15871
- {
15872
- var output = '';
15873
- if (withoutSuffix) {
15874
- switch (string) {
15875
- case 's': output = 'काही सेकंद'; break;
15876
- case 'ss': output = '%d सेकंद'; break;
15877
- case 'm': output = 'एक मिनिट'; break;
15878
- case 'mm': output = '%d मिनिटे'; break;
15879
- case 'h': output = 'एक तास'; break;
15880
- case 'hh': output = '%d तास'; break;
15881
- case 'd': output = 'एक दिवस'; break;
15882
- case 'dd': output = '%d दिवस'; break;
15883
- case 'M': output = 'एक महिना'; break;
15884
- case 'MM': output = '%d महिने'; break;
15885
- case 'y': output = 'एक वर्ष'; break;
15886
- case 'yy': output = '%d वर्षे'; break;
15887
- }
15888
- }
15889
- else {
15890
- switch (string) {
15891
- case 's': output = 'काही सेकंदां'; break;
15892
- case 'ss': output = '%d सेकंदां'; break;
15893
- case 'm': output = 'एका मिनिटा'; break;
15894
- case 'mm': output = '%d मिनिटां'; break;
15895
- case 'h': output = 'एका तासा'; break;
15896
- case 'hh': output = '%d तासां'; break;
15897
- case 'd': output = 'एका दिवसा'; break;
15898
- case 'dd': output = '%d दिवसां'; break;
15899
- case 'M': output = 'एका महिन्या'; break;
15900
- case 'MM': output = '%d महिन्यां'; break;
15901
- case 'y': output = 'एका वर्षा'; break;
15902
- case 'yy': output = '%d वर्षां'; break;
15903
- }
15904
- }
15905
- return output.replace(/%d/i, number);
15906
- }
15907
-
15908
- var mr = moment.defineLocale('mr', {
15909
- months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
15910
- monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
15911
- monthsParseExact : true,
15912
- weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
15913
- weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
15914
- weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
15915
- longDateFormat : {
15916
- LT : 'A h:mm वाजता',
15917
- LTS : 'A h:mm:ss वाजता',
15918
- L : 'DD/MM/YYYY',
15919
- LL : 'D MMMM YYYY',
15920
- LLL : 'D MMMM YYYY, A h:mm वाजता',
15921
- LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
15922
- },
15923
- calendar : {
15924
- sameDay : '[आज] LT',
15925
- nextDay : '[उद्या] LT',
15926
- nextWeek : 'dddd, LT',
15927
- lastDay : '[काल] LT',
15928
- lastWeek: '[मागील] dddd, LT',
15929
- sameElse : 'L'
15930
- },
15931
- relativeTime : {
15932
- future: '%sमध्ये',
15933
- past: '%sपूर्वी',
15934
- s: relativeTimeMr,
15935
- ss: relativeTimeMr,
15936
- m: relativeTimeMr,
15937
- mm: relativeTimeMr,
15938
- h: relativeTimeMr,
15939
- hh: relativeTimeMr,
15940
- d: relativeTimeMr,
15941
- dd: relativeTimeMr,
15942
- M: relativeTimeMr,
15943
- MM: relativeTimeMr,
15944
- y: relativeTimeMr,
15945
- yy: relativeTimeMr
15946
- },
15947
- preparse: function (string) {
15948
- return string.replace(/[१२३४५६७८९०]/g, function (match) {
15949
- return numberMap[match];
15950
- });
15951
- },
15952
- postformat: function (string) {
15953
- return string.replace(/\d/g, function (match) {
15954
- return symbolMap[match];
15955
- });
15956
- },
15957
- meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
15958
- meridiemHour : function (hour, meridiem) {
15959
- if (hour === 12) {
15960
- hour = 0;
15961
- }
15962
- if (meridiem === 'रात्री') {
15963
- return hour < 4 ? hour : hour + 12;
15964
- } else if (meridiem === 'सकाळी') {
15965
- return hour;
15966
- } else if (meridiem === 'दुपारी') {
15967
- return hour >= 10 ? hour : hour + 12;
15968
- } else if (meridiem === 'सायंकाळी') {
15969
- return hour + 12;
15970
- }
15971
- },
15972
- meridiem: function (hour, minute, isLower) {
15973
- if (hour < 4) {
15974
- return 'रात्री';
15975
- } else if (hour < 10) {
15976
- return 'सकाळी';
15977
- } else if (hour < 17) {
15978
- return 'दुपारी';
15979
- } else if (hour < 20) {
15980
- return 'सायंकाळी';
15981
- } else {
15982
- return 'रात्री';
15983
- }
15984
- },
15985
- week : {
15986
- dow : 0, // Sunday is the first day of the week.
15987
- doy : 6 // The week that contains Jan 6th is the first week of the year.
15988
- }
15989
- });
15990
-
15991
- return mr;
15992
-
15993
- })));
15994
-
15995
-
15996
- /***/ }),
15997
-
15998
- /***/ "./node_modules/moment/locale/ms-my.js":
15999
- /*!*********************************************!*\
16000
- !*** ./node_modules/moment/locale/ms-my.js ***!
16001
- \*********************************************/
16002
- /*! no static exports found */
16003
- /***/ (function(module, exports, __webpack_require__) {
16004
-
16005
- //! moment.js locale configuration
16006
-
16007
- ;(function (global, factory) {
16008
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16009
- undefined
16010
- }(this, (function (moment) { 'use strict';
16011
-
16012
-
16013
- var msMy = moment.defineLocale('ms-my', {
16014
- months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
16015
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
16016
- weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
16017
- weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
16018
- weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
16019
- longDateFormat : {
16020
- LT : 'HH.mm',
16021
- LTS : 'HH.mm.ss',
16022
- L : 'DD/MM/YYYY',
16023
- LL : 'D MMMM YYYY',
16024
- LLL : 'D MMMM YYYY [pukul] HH.mm',
16025
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
16026
- },
16027
- meridiemParse: /pagi|tengahari|petang|malam/,
16028
- meridiemHour: function (hour, meridiem) {
16029
- if (hour === 12) {
16030
- hour = 0;
16031
- }
16032
- if (meridiem === 'pagi') {
16033
- return hour;
16034
- } else if (meridiem === 'tengahari') {
16035
- return hour >= 11 ? hour : hour + 12;
16036
- } else if (meridiem === 'petang' || meridiem === 'malam') {
16037
- return hour + 12;
16038
- }
16039
- },
16040
- meridiem : function (hours, minutes, isLower) {
16041
- if (hours < 11) {
16042
- return 'pagi';
16043
- } else if (hours < 15) {
16044
- return 'tengahari';
16045
- } else if (hours < 19) {
16046
- return 'petang';
16047
- } else {
16048
- return 'malam';
16049
- }
16050
- },
16051
- calendar : {
16052
- sameDay : '[Hari ini pukul] LT',
16053
- nextDay : '[Esok pukul] LT',
16054
- nextWeek : 'dddd [pukul] LT',
16055
- lastDay : '[Kelmarin pukul] LT',
16056
- lastWeek : 'dddd [lepas pukul] LT',
16057
- sameElse : 'L'
16058
- },
16059
- relativeTime : {
16060
- future : 'dalam %s',
16061
- past : '%s yang lepas',
16062
- s : 'beberapa saat',
16063
- ss : '%d saat',
16064
- m : 'seminit',
16065
- mm : '%d minit',
16066
- h : 'sejam',
16067
- hh : '%d jam',
16068
- d : 'sehari',
16069
- dd : '%d hari',
16070
- M : 'sebulan',
16071
- MM : '%d bulan',
16072
- y : 'setahun',
16073
- yy : '%d tahun'
16074
- },
16075
- week : {
16076
- dow : 1, // Monday is the first day of the week.
16077
- doy : 7 // The week that contains Jan 7th is the first week of the year.
16078
- }
16079
- });
16080
-
16081
- return msMy;
16082
-
16083
- })));
16084
-
16085
-
16086
- /***/ }),
16087
-
16088
- /***/ "./node_modules/moment/locale/ms.js":
16089
- /*!******************************************!*\
16090
- !*** ./node_modules/moment/locale/ms.js ***!
16091
- \******************************************/
16092
- /*! no static exports found */
16093
- /***/ (function(module, exports, __webpack_require__) {
16094
-
16095
- //! moment.js locale configuration
16096
-
16097
- ;(function (global, factory) {
16098
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16099
- undefined
16100
- }(this, (function (moment) { 'use strict';
16101
-
16102
-
16103
- var ms = moment.defineLocale('ms', {
16104
- months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
16105
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
16106
- weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
16107
- weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
16108
- weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
16109
- longDateFormat : {
16110
- LT : 'HH.mm',
16111
- LTS : 'HH.mm.ss',
16112
- L : 'DD/MM/YYYY',
16113
- LL : 'D MMMM YYYY',
16114
- LLL : 'D MMMM YYYY [pukul] HH.mm',
16115
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
16116
- },
16117
- meridiemParse: /pagi|tengahari|petang|malam/,
16118
- meridiemHour: function (hour, meridiem) {
16119
- if (hour === 12) {
16120
- hour = 0;
16121
- }
16122
- if (meridiem === 'pagi') {
16123
- return hour;
16124
- } else if (meridiem === 'tengahari') {
16125
- return hour >= 11 ? hour : hour + 12;
16126
- } else if (meridiem === 'petang' || meridiem === 'malam') {
16127
- return hour + 12;
16128
- }
16129
- },
16130
- meridiem : function (hours, minutes, isLower) {
16131
- if (hours < 11) {
16132
- return 'pagi';
16133
- } else if (hours < 15) {
16134
- return 'tengahari';
16135
- } else if (hours < 19) {
16136
- return 'petang';
16137
- } else {
16138
- return 'malam';
16139
- }
16140
- },
16141
- calendar : {
16142
- sameDay : '[Hari ini pukul] LT',
16143
- nextDay : '[Esok pukul] LT',
16144
- nextWeek : 'dddd [pukul] LT',
16145
- lastDay : '[Kelmarin pukul] LT',
16146
- lastWeek : 'dddd [lepas pukul] LT',
16147
- sameElse : 'L'
16148
- },
16149
- relativeTime : {
16150
- future : 'dalam %s',
16151
- past : '%s yang lepas',
16152
- s : 'beberapa saat',
16153
- ss : '%d saat',
16154
- m : 'seminit',
16155
- mm : '%d minit',
16156
- h : 'sejam',
16157
- hh : '%d jam',
16158
- d : 'sehari',
16159
- dd : '%d hari',
16160
- M : 'sebulan',
16161
- MM : '%d bulan',
16162
- y : 'setahun',
16163
- yy : '%d tahun'
16164
- },
16165
- week : {
16166
- dow : 1, // Monday is the first day of the week.
16167
- doy : 7 // The week that contains Jan 7th is the first week of the year.
16168
- }
16169
- });
16170
-
16171
- return ms;
16172
-
16173
- })));
16174
-
16175
-
16176
- /***/ }),
16177
-
16178
- /***/ "./node_modules/moment/locale/mt.js":
16179
- /*!******************************************!*\
16180
- !*** ./node_modules/moment/locale/mt.js ***!
16181
- \******************************************/
16182
- /*! no static exports found */
16183
- /***/ (function(module, exports, __webpack_require__) {
16184
-
16185
- //! moment.js locale configuration
16186
-
16187
- ;(function (global, factory) {
16188
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16189
- undefined
16190
- }(this, (function (moment) { 'use strict';
16191
-
16192
-
16193
- var mt = moment.defineLocale('mt', {
16194
- months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
16195
- monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
16196
- weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
16197
- weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
16198
- weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
16199
- longDateFormat : {
16200
- LT : 'HH:mm',
16201
- LTS : 'HH:mm:ss',
16202
- L : 'DD/MM/YYYY',
16203
- LL : 'D MMMM YYYY',
16204
- LLL : 'D MMMM YYYY HH:mm',
16205
- LLLL : 'dddd, D MMMM YYYY HH:mm'
16206
- },
16207
- calendar : {
16208
- sameDay : '[Illum fil-]LT',
16209
- nextDay : '[Għada fil-]LT',
16210
- nextWeek : 'dddd [fil-]LT',
16211
- lastDay : '[Il-bieraħ fil-]LT',
16212
- lastWeek : 'dddd [li għadda] [fil-]LT',
16213
- sameElse : 'L'
16214
- },
16215
- relativeTime : {
16216
- future : 'f’ %s',
16217
- past : '%s ilu',
16218
- s : 'ftit sekondi',
16219
- ss : '%d sekondi',
16220
- m : 'minuta',
16221
- mm : '%d minuti',
16222
- h : 'siegħa',
16223
- hh : '%d siegħat',
16224
- d : 'ġurnata',
16225
- dd : '%d ġranet',
16226
- M : 'xahar',
16227
- MM : '%d xhur',
16228
- y : 'sena',
16229
- yy : '%d sni'
16230
- },
16231
- dayOfMonthOrdinalParse : /\d{1,2}º/,
16232
- ordinal: '%dº',
16233
- week : {
16234
- dow : 1, // Monday is the first day of the week.
16235
- doy : 4 // The week that contains Jan 4th is the first week of the year.
16236
- }
16237
- });
16238
-
16239
- return mt;
16240
-
16241
- })));
16242
-
16243
-
16244
- /***/ }),
16245
-
16246
- /***/ "./node_modules/moment/locale/my.js":
16247
- /*!******************************************!*\
16248
- !*** ./node_modules/moment/locale/my.js ***!
16249
- \******************************************/
16250
- /*! no static exports found */
16251
- /***/ (function(module, exports, __webpack_require__) {
16252
-
16253
- //! moment.js locale configuration
16254
-
16255
- ;(function (global, factory) {
16256
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16257
- undefined
16258
- }(this, (function (moment) { 'use strict';
16259
-
16260
-
16261
- var symbolMap = {
16262
- '1': '၁',
16263
- '2': '၂',
16264
- '3': '၃',
16265
- '4': '၄',
16266
- '5': '၅',
16267
- '6': '၆',
16268
- '7': '၇',
16269
- '8': '၈',
16270
- '9': '၉',
16271
- '0': '၀'
16272
- }, numberMap = {
16273
- '၁': '1',
16274
- '၂': '2',
16275
- '၃': '3',
16276
- '၄': '4',
16277
- '၅': '5',
16278
- '၆': '6',
16279
- '၇': '7',
16280
- '၈': '8',
16281
- '၉': '9',
16282
- '၀': '0'
16283
- };
16284
-
16285
- var my = moment.defineLocale('my', {
16286
- months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
16287
- monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
16288
- weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
16289
- weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
16290
- weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
16291
-
16292
- longDateFormat: {
16293
- LT: 'HH:mm',
16294
- LTS: 'HH:mm:ss',
16295
- L: 'DD/MM/YYYY',
16296
- LL: 'D MMMM YYYY',
16297
- LLL: 'D MMMM YYYY HH:mm',
16298
- LLLL: 'dddd D MMMM YYYY HH:mm'
16299
- },
16300
- calendar: {
16301
- sameDay: '[ယနေ.] LT [မှာ]',
16302
- nextDay: '[မနက်ဖြန်] LT [မှာ]',
16303
- nextWeek: 'dddd LT [မှာ]',
16304
- lastDay: '[မနေ.က] LT [မှာ]',
16305
- lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
16306
- sameElse: 'L'
16307
- },
16308
- relativeTime: {
16309
- future: 'လာမည့် %s မှာ',
16310
- past: 'လွန်ခဲ့သော %s က',
16311
- s: 'စက္ကန်.အနည်းငယ်',
16312
- ss : '%d စက္ကန့်',
16313
- m: 'တစ်မိနစ်',
16314
- mm: '%d မိနစ်',
16315
- h: 'တစ်နာရီ',
16316
- hh: '%d နာရီ',
16317
- d: 'တစ်ရက်',
16318
- dd: '%d ရက်',
16319
- M: 'တစ်လ',
16320
- MM: '%d လ',
16321
- y: 'တစ်နှစ်',
16322
- yy: '%d နှစ်'
16323
- },
16324
- preparse: function (string) {
16325
- return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
16326
- return numberMap[match];
16327
- });
16328
- },
16329
- postformat: function (string) {
16330
- return string.replace(/\d/g, function (match) {
16331
- return symbolMap[match];
16332
- });
16333
- },
16334
- week: {
16335
- dow: 1, // Monday is the first day of the week.
16336
- doy: 4 // The week that contains Jan 4th is the first week of the year.
16337
- }
16338
- });
16339
-
16340
- return my;
16341
-
16342
- })));
16343
-
16344
-
16345
- /***/ }),
16346
-
16347
- /***/ "./node_modules/moment/locale/nb.js":
16348
- /*!******************************************!*\
16349
- !*** ./node_modules/moment/locale/nb.js ***!
16350
- \******************************************/
16351
- /*! no static exports found */
16352
- /***/ (function(module, exports, __webpack_require__) {
16353
-
16354
- //! moment.js locale configuration
16355
-
16356
- ;(function (global, factory) {
16357
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16358
- undefined
16359
- }(this, (function (moment) { 'use strict';
16360
-
16361
-
16362
- var nb = moment.defineLocale('nb', {
16363
- months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
16364
- monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
16365
- monthsParseExact : true,
16366
- weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
16367
- weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
16368
- weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
16369
- weekdaysParseExact : true,
16370
- longDateFormat : {
16371
- LT : 'HH:mm',
16372
- LTS : 'HH:mm:ss',
16373
- L : 'DD.MM.YYYY',
16374
- LL : 'D. MMMM YYYY',
16375
- LLL : 'D. MMMM YYYY [kl.] HH:mm',
16376
- LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
16377
- },
16378
- calendar : {
16379
- sameDay: '[i dag kl.] LT',
16380
- nextDay: '[i morgen kl.] LT',
16381
- nextWeek: 'dddd [kl.] LT',
16382
- lastDay: '[i går kl.] LT',
16383
- lastWeek: '[forrige] dddd [kl.] LT',
16384
- sameElse: 'L'
16385
- },
16386
- relativeTime : {
16387
- future : 'om %s',
16388
- past : '%s siden',
16389
- s : 'noen sekunder',
16390
- ss : '%d sekunder',
16391
- m : 'ett minutt',
16392
- mm : '%d minutter',
16393
- h : 'en time',
16394
- hh : '%d timer',
16395
- d : 'en dag',
16396
- dd : '%d dager',
16397
- M : 'en måned',
16398
- MM : '%d måneder',
16399
- y : 'ett år',
16400
- yy : '%d år'
16401
- },
16402
- dayOfMonthOrdinalParse: /\d{1,2}\./,
16403
- ordinal : '%d.',
16404
- week : {
16405
- dow : 1, // Monday is the first day of the week.
16406
- doy : 4 // The week that contains Jan 4th is the first week of the year.
16407
- }
16408
- });
16409
-
16410
- return nb;
16411
-
16412
- })));
16413
-
16414
-
16415
- /***/ }),
16416
-
16417
- /***/ "./node_modules/moment/locale/ne.js":
16418
- /*!******************************************!*\
16419
- !*** ./node_modules/moment/locale/ne.js ***!
16420
- \******************************************/
16421
- /*! no static exports found */
16422
- /***/ (function(module, exports, __webpack_require__) {
16423
-
16424
- //! moment.js locale configuration
16425
-
16426
- ;(function (global, factory) {
16427
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16428
- undefined
16429
- }(this, (function (moment) { 'use strict';
16430
-
16431
-
16432
- var symbolMap = {
16433
- '1': '१',
16434
- '2': '२',
16435
- '3': '३',
16436
- '4': '४',
16437
- '5': '५',
16438
- '6': '६',
16439
- '7': '७',
16440
- '8': '८',
16441
- '9': '९',
16442
- '0': '०'
16443
- },
16444
- numberMap = {
16445
- '१': '1',
16446
- '२': '2',
16447
- '३': '3',
16448
- '४': '4',
16449
- '५': '5',
16450
- '६': '6',
16451
- '७': '7',
16452
- '८': '8',
16453
- '९': '9',
16454
- '०': '0'
16455
- };
16456
-
16457
- var ne = moment.defineLocale('ne', {
16458
- months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
16459
- monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
16460
- monthsParseExact : true,
16461
- weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
16462
- weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
16463
- weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
16464
- weekdaysParseExact : true,
16465
- longDateFormat : {
16466
- LT : 'Aको h:mm बजे',
16467
- LTS : 'Aको h:mm:ss बजे',
16468
- L : 'DD/MM/YYYY',
16469
- LL : 'D MMMM YYYY',
16470
- LLL : 'D MMMM YYYY, Aको h:mm बजे',
16471
- LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
16472
- },
16473
- preparse: function (string) {
16474
- return string.replace(/[१२३४५६७८९०]/g, function (match) {
16475
- return numberMap[match];
16476
- });
16477
- },
16478
- postformat: function (string) {
16479
- return string.replace(/\d/g, function (match) {
16480
- return symbolMap[match];
16481
- });
16482
- },
16483
- meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
16484
- meridiemHour : function (hour, meridiem) {
16485
- if (hour === 12) {
16486
- hour = 0;
16487
- }
16488
- if (meridiem === 'राति') {
16489
- return hour < 4 ? hour : hour + 12;
16490
- } else if (meridiem === 'बिहान') {
16491
- return hour;
16492
- } else if (meridiem === 'दिउँसो') {
16493
- return hour >= 10 ? hour : hour + 12;
16494
- } else if (meridiem === 'साँझ') {
16495
- return hour + 12;
16496
- }
16497
- },
16498
- meridiem : function (hour, minute, isLower) {
16499
- if (hour < 3) {
16500
- return 'राति';
16501
- } else if (hour < 12) {
16502
- return 'बिहान';
16503
- } else if (hour < 16) {
16504
- return 'दिउँसो';
16505
- } else if (hour < 20) {
16506
- return 'साँझ';
16507
- } else {
16508
- return 'राति';
16509
- }
16510
- },
16511
- calendar : {
16512
- sameDay : '[आज] LT',
16513
- nextDay : '[भोलि] LT',
16514
- nextWeek : '[आउँदो] dddd[,] LT',
16515
- lastDay : '[हिजो] LT',
16516
- lastWeek : '[गएको] dddd[,] LT',
16517
- sameElse : 'L'
16518
- },
16519
- relativeTime : {
16520
- future : '%sमा',
16521
- past : '%s अगाडि',
16522
- s : 'केही क्षण',
16523
- ss : '%d सेकेण्ड',
16524
- m : 'एक मिनेट',
16525
- mm : '%d मिनेट',
16526
- h : 'एक घण्टा',
16527
- hh : '%d घण्टा',
16528
- d : 'एक दिन',
16529
- dd : '%d दिन',
16530
- M : 'एक महिना',
16531
- MM : '%d महिना',
16532
- y : 'एक बर्ष',
16533
- yy : '%d बर्ष'
16534
- },
16535
- week : {
16536
- dow : 0, // Sunday is the first day of the week.
16537
- doy : 6 // The week that contains Jan 6th is the first week of the year.
16538
- }
16539
- });
16540
-
16541
- return ne;
16542
-
16543
- })));
16544
-
16545
-
16546
- /***/ }),
16547
-
16548
- /***/ "./node_modules/moment/locale/nl-be.js":
16549
- /*!*********************************************!*\
16550
- !*** ./node_modules/moment/locale/nl-be.js ***!
16551
- \*********************************************/
16552
- /*! no static exports found */
16553
- /***/ (function(module, exports, __webpack_require__) {
16554
-
16555
- //! moment.js locale configuration
16556
-
16557
- ;(function (global, factory) {
16558
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16559
- undefined
16560
- }(this, (function (moment) { 'use strict';
16561
-
16562
-
16563
- var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
16564
- monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
16565
-
16566
- var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
16567
- var monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
16568
-
16569
- var nlBe = moment.defineLocale('nl-be', {
16570
- months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
16571
- monthsShort : function (m, format) {
16572
- if (!m) {
16573
- return monthsShortWithDots;
16574
- } else if (/-MMM-/.test(format)) {
16575
- return monthsShortWithoutDots[m.month()];
16576
- } else {
16577
- return monthsShortWithDots[m.month()];
16578
- }
16579
- },
16580
-
16581
- monthsRegex: monthsRegex,
16582
- monthsShortRegex: monthsRegex,
16583
- monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
16584
- monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
16585
-
16586
- monthsParse : monthsParse,
16587
- longMonthsParse : monthsParse,
16588
- shortMonthsParse : monthsParse,
16589
-
16590
- weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
16591
- weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
16592
- weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
16593
- weekdaysParseExact : true,
16594
- longDateFormat : {
16595
- LT : 'HH:mm',
16596
- LTS : 'HH:mm:ss',
16597
- L : 'DD/MM/YYYY',
16598
- LL : 'D MMMM YYYY',
16599
- LLL : 'D MMMM YYYY HH:mm',
16600
- LLLL : 'dddd D MMMM YYYY HH:mm'
16601
- },
16602
- calendar : {
16603
- sameDay: '[vandaag om] LT',
16604
- nextDay: '[morgen om] LT',
16605
- nextWeek: 'dddd [om] LT',
16606
- lastDay: '[gisteren om] LT',
16607
- lastWeek: '[afgelopen] dddd [om] LT',
16608
- sameElse: 'L'
16609
- },
16610
- relativeTime : {
16611
- future : 'over %s',
16612
- past : '%s geleden',
16613
- s : 'een paar seconden',
16614
- ss : '%d seconden',
16615
- m : 'één minuut',
16616
- mm : '%d minuten',
16617
- h : 'één uur',
16618
- hh : '%d uur',
16619
- d : 'één dag',
16620
- dd : '%d dagen',
16621
- M : 'één maand',
16622
- MM : '%d maanden',
16623
- y : 'één jaar',
16624
- yy : '%d jaar'
16625
- },
16626
- dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
16627
- ordinal : function (number) {
16628
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
16629
- },
16630
- week : {
16631
- dow : 1, // Monday is the first day of the week.
16632
- doy : 4 // The week that contains Jan 4th is the first week of the year.
16633
- }
16634
- });
16635
-
16636
- return nlBe;
16637
-
16638
- })));
16639
-
16640
-
16641
- /***/ }),
16642
-
16643
- /***/ "./node_modules/moment/locale/nl.js":
16644
- /*!******************************************!*\
16645
- !*** ./node_modules/moment/locale/nl.js ***!
16646
- \******************************************/
16647
- /*! no static exports found */
16648
- /***/ (function(module, exports, __webpack_require__) {
16649
-
16650
- //! moment.js locale configuration
16651
-
16652
- ;(function (global, factory) {
16653
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16654
- undefined
16655
- }(this, (function (moment) { 'use strict';
16656
-
16657
-
16658
- var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
16659
- monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
16660
-
16661
- var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
16662
- var monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
16663
-
16664
- var nl = moment.defineLocale('nl', {
16665
- months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
16666
- monthsShort : function (m, format) {
16667
- if (!m) {
16668
- return monthsShortWithDots;
16669
- } else if (/-MMM-/.test(format)) {
16670
- return monthsShortWithoutDots[m.month()];
16671
- } else {
16672
- return monthsShortWithDots[m.month()];
16673
- }
16674
- },
16675
-
16676
- monthsRegex: monthsRegex,
16677
- monthsShortRegex: monthsRegex,
16678
- monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
16679
- monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
16680
-
16681
- monthsParse : monthsParse,
16682
- longMonthsParse : monthsParse,
16683
- shortMonthsParse : monthsParse,
16684
-
16685
- weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
16686
- weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
16687
- weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
16688
- weekdaysParseExact : true,
16689
- longDateFormat : {
16690
- LT : 'HH:mm',
16691
- LTS : 'HH:mm:ss',
16692
- L : 'DD-MM-YYYY',
16693
- LL : 'D MMMM YYYY',
16694
- LLL : 'D MMMM YYYY HH:mm',
16695
- LLLL : 'dddd D MMMM YYYY HH:mm'
16696
- },
16697
- calendar : {
16698
- sameDay: '[vandaag om] LT',
16699
- nextDay: '[morgen om] LT',
16700
- nextWeek: 'dddd [om] LT',
16701
- lastDay: '[gisteren om] LT',
16702
- lastWeek: '[afgelopen] dddd [om] LT',
16703
- sameElse: 'L'
16704
- },
16705
- relativeTime : {
16706
- future : 'over %s',
16707
- past : '%s geleden',
16708
- s : 'een paar seconden',
16709
- ss : '%d seconden',
16710
- m : 'één minuut',
16711
- mm : '%d minuten',
16712
- h : 'één uur',
16713
- hh : '%d uur',
16714
- d : 'één dag',
16715
- dd : '%d dagen',
16716
- M : 'één maand',
16717
- MM : '%d maanden',
16718
- y : 'één jaar',
16719
- yy : '%d jaar'
16720
- },
16721
- dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
16722
- ordinal : function (number) {
16723
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
16724
- },
16725
- week : {
16726
- dow : 1, // Monday is the first day of the week.
16727
- doy : 4 // The week that contains Jan 4th is the first week of the year.
16728
- }
16729
- });
16730
-
16731
- return nl;
16732
-
16733
- })));
16734
-
16735
-
16736
- /***/ }),
16737
-
16738
- /***/ "./node_modules/moment/locale/nn.js":
16739
- /*!******************************************!*\
16740
- !*** ./node_modules/moment/locale/nn.js ***!
16741
- \******************************************/
16742
- /*! no static exports found */
16743
- /***/ (function(module, exports, __webpack_require__) {
16744
-
16745
- //! moment.js locale configuration
16746
-
16747
- ;(function (global, factory) {
16748
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16749
- undefined
16750
- }(this, (function (moment) { 'use strict';
16751
-
16752
-
16753
- var nn = moment.defineLocale('nn', {
16754
- months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
16755
- monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
16756
- weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
16757
- weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
16758
- weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
16759
- longDateFormat : {
16760
- LT : 'HH:mm',
16761
- LTS : 'HH:mm:ss',
16762
- L : 'DD.MM.YYYY',
16763
- LL : 'D. MMMM YYYY',
16764
- LLL : 'D. MMMM YYYY [kl.] H:mm',
16765
- LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
16766
- },
16767
- calendar : {
16768
- sameDay: '[I dag klokka] LT',
16769
- nextDay: '[I morgon klokka] LT',
16770
- nextWeek: 'dddd [klokka] LT',
16771
- lastDay: '[I går klokka] LT',
16772
- lastWeek: '[Føregåande] dddd [klokka] LT',
16773
- sameElse: 'L'
16774
- },
16775
- relativeTime : {
16776
- future : 'om %s',
16777
- past : '%s sidan',
16778
- s : 'nokre sekund',
16779
- ss : '%d sekund',
16780
- m : 'eit minutt',
16781
- mm : '%d minutt',
16782
- h : 'ein time',
16783
- hh : '%d timar',
16784
- d : 'ein dag',
16785
- dd : '%d dagar',
16786
- M : 'ein månad',
16787
- MM : '%d månader',
16788
- y : 'eit år',
16789
- yy : '%d år'
16790
- },
16791
- dayOfMonthOrdinalParse: /\d{1,2}\./,
16792
- ordinal : '%d.',
16793
- week : {
16794
- dow : 1, // Monday is the first day of the week.
16795
- doy : 4 // The week that contains Jan 4th is the first week of the year.
16796
- }
16797
- });
16798
-
16799
- return nn;
16800
-
16801
- })));
16802
-
16803
-
16804
- /***/ }),
16805
-
16806
- /***/ "./node_modules/moment/locale/pa-in.js":
16807
- /*!*********************************************!*\
16808
- !*** ./node_modules/moment/locale/pa-in.js ***!
16809
- \*********************************************/
16810
- /*! no static exports found */
16811
- /***/ (function(module, exports, __webpack_require__) {
16812
-
16813
- //! moment.js locale configuration
16814
-
16815
- ;(function (global, factory) {
16816
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16817
- undefined
16818
- }(this, (function (moment) { 'use strict';
16819
-
16820
-
16821
- var symbolMap = {
16822
- '1': '੧',
16823
- '2': '੨',
16824
- '3': '੩',
16825
- '4': '੪',
16826
- '5': '੫',
16827
- '6': '੬',
16828
- '7': '੭',
16829
- '8': '੮',
16830
- '9': '੯',
16831
- '0': '੦'
16832
- },
16833
- numberMap = {
16834
- '੧': '1',
16835
- '੨': '2',
16836
- '੩': '3',
16837
- '੪': '4',
16838
- '੫': '5',
16839
- '੬': '6',
16840
- '੭': '7',
16841
- '੮': '8',
16842
- '੯': '9',
16843
- '੦': '0'
16844
- };
16845
-
16846
- var paIn = moment.defineLocale('pa-in', {
16847
- // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
16848
- months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
16849
- monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
16850
- weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
16851
- weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
16852
- weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
16853
- longDateFormat : {
16854
- LT : 'A h:mm ਵਜੇ',
16855
- LTS : 'A h:mm:ss ਵਜੇ',
16856
- L : 'DD/MM/YYYY',
16857
- LL : 'D MMMM YYYY',
16858
- LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
16859
- LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
16860
- },
16861
- calendar : {
16862
- sameDay : '[ਅਜ] LT',
16863
- nextDay : '[ਕਲ] LT',
16864
- nextWeek : '[ਅਗਲਾ] dddd, LT',
16865
- lastDay : '[ਕਲ] LT',
16866
- lastWeek : '[ਪਿਛਲੇ] dddd, LT',
16867
- sameElse : 'L'
16868
- },
16869
- relativeTime : {
16870
- future : '%s ਵਿੱਚ',
16871
- past : '%s ਪਿਛਲੇ',
16872
- s : 'ਕੁਝ ਸਕਿੰਟ',
16873
- ss : '%d ਸਕਿੰਟ',
16874
- m : 'ਇਕ ਮਿੰਟ',
16875
- mm : '%d ਮਿੰਟ',
16876
- h : 'ਇੱਕ ਘੰਟਾ',
16877
- hh : '%d ਘੰਟੇ',
16878
- d : 'ਇੱਕ ਦਿਨ',
16879
- dd : '%d ਦਿਨ',
16880
- M : 'ਇੱਕ ਮਹੀਨਾ',
16881
- MM : '%d ਮਹੀਨੇ',
16882
- y : 'ਇੱਕ ਸਾਲ',
16883
- yy : '%d ਸਾਲ'
16884
- },
16885
- preparse: function (string) {
16886
- return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
16887
- return numberMap[match];
16888
- });
16889
- },
16890
- postformat: function (string) {
16891
- return string.replace(/\d/g, function (match) {
16892
- return symbolMap[match];
16893
- });
16894
- },
16895
- // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
16896
- // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
16897
- meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
16898
- meridiemHour : function (hour, meridiem) {
16899
- if (hour === 12) {
16900
- hour = 0;
16901
- }
16902
- if (meridiem === 'ਰਾਤ') {
16903
- return hour < 4 ? hour : hour + 12;
16904
- } else if (meridiem === 'ਸਵੇਰ') {
16905
- return hour;
16906
- } else if (meridiem === 'ਦੁਪਹਿਰ') {
16907
- return hour >= 10 ? hour : hour + 12;
16908
- } else if (meridiem === 'ਸ਼ਾਮ') {
16909
- return hour + 12;
16910
- }
16911
- },
16912
- meridiem : function (hour, minute, isLower) {
16913
- if (hour < 4) {
16914
- return 'ਰਾਤ';
16915
- } else if (hour < 10) {
16916
- return 'ਸਵੇਰ';
16917
- } else if (hour < 17) {
16918
- return 'ਦੁਪਹਿਰ';
16919
- } else if (hour < 20) {
16920
- return 'ਸ਼ਾਮ';
16921
- } else {
16922
- return 'ਰਾਤ';
16923
- }
16924
- },
16925
- week : {
16926
- dow : 0, // Sunday is the first day of the week.
16927
- doy : 6 // The week that contains Jan 6th is the first week of the year.
16928
- }
16929
- });
16930
-
16931
- return paIn;
16932
-
16933
- })));
16934
-
16935
-
16936
- /***/ }),
16937
-
16938
- /***/ "./node_modules/moment/locale/pl.js":
16939
- /*!******************************************!*\
16940
- !*** ./node_modules/moment/locale/pl.js ***!
16941
- \******************************************/
16942
- /*! no static exports found */
16943
- /***/ (function(module, exports, __webpack_require__) {
16944
-
16945
- //! moment.js locale configuration
16946
-
16947
- ;(function (global, factory) {
16948
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
16949
- undefined
16950
- }(this, (function (moment) { 'use strict';
16951
-
16952
-
16953
- var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
16954
- monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
16955
- function plural(n) {
16956
- return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
16957
- }
16958
- function translate(number, withoutSuffix, key) {
16959
- var result = number + ' ';
16960
- switch (key) {
16961
- case 'ss':
16962
- return result + (plural(number) ? 'sekundy' : 'sekund');
16963
- case 'm':
16964
- return withoutSuffix ? 'minuta' : 'minutę';
16965
- case 'mm':
16966
- return result + (plural(number) ? 'minuty' : 'minut');
16967
- case 'h':
16968
- return withoutSuffix ? 'godzina' : 'godzinę';
16969
- case 'hh':
16970
- return result + (plural(number) ? 'godziny' : 'godzin');
16971
- case 'MM':
16972
- return result + (plural(number) ? 'miesiące' : 'miesięcy');
16973
- case 'yy':
16974
- return result + (plural(number) ? 'lata' : 'lat');
16975
- }
16976
- }
16977
-
16978
- var pl = moment.defineLocale('pl', {
16979
- months : function (momentToFormat, format) {
16980
- if (!momentToFormat) {
16981
- return monthsNominative;
16982
- } else if (format === '') {
16983
- // Hack: if format empty we know this is used to generate
16984
- // RegExp by moment. Give then back both valid forms of months
16985
- // in RegExp ready format.
16986
- return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
16987
- } else if (/D MMMM/.test(format)) {
16988
- return monthsSubjective[momentToFormat.month()];
16989
- } else {
16990
- return monthsNominative[momentToFormat.month()];
16991
- }
16992
- },
16993
- monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
16994
- weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
16995
- weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
16996
- weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
16997
- longDateFormat : {
16998
- LT : 'HH:mm',
16999
- LTS : 'HH:mm:ss',
17000
- L : 'DD.MM.YYYY',
17001
- LL : 'D MMMM YYYY',
17002
- LLL : 'D MMMM YYYY HH:mm',
17003
- LLLL : 'dddd, D MMMM YYYY HH:mm'
17004
- },
17005
- calendar : {
17006
- sameDay: '[Dziś o] LT',
17007
- nextDay: '[Jutro o] LT',
17008
- nextWeek: function () {
17009
- switch (this.day()) {
17010
- case 0:
17011
- return '[W niedzielę o] LT';
17012
-
17013
- case 2:
17014
- return '[We wtorek o] LT';
17015
-
17016
- case 3:
17017
- return '[W środę o] LT';
17018
-
17019
- case 6:
17020
- return '[W sobotę o] LT';
17021
-
17022
- default:
17023
- return '[W] dddd [o] LT';
17024
- }
17025
- },
17026
- lastDay: '[Wczoraj o] LT',
17027
- lastWeek: function () {
17028
- switch (this.day()) {
17029
- case 0:
17030
- return '[W zeszłą niedzielę o] LT';
17031
- case 3:
17032
- return '[W zeszłą środę o] LT';
17033
- case 6:
17034
- return '[W zeszłą sobotę o] LT';
17035
- default:
17036
- return '[W zeszły] dddd [o] LT';
17037
- }
17038
- },
17039
- sameElse: 'L'
17040
- },
17041
- relativeTime : {
17042
- future : 'za %s',
17043
- past : '%s temu',
17044
- s : 'kilka sekund',
17045
- ss : translate,
17046
- m : translate,
17047
- mm : translate,
17048
- h : translate,
17049
- hh : translate,
17050
- d : '1 dzień',
17051
- dd : '%d dni',
17052
- M : 'miesiąc',
17053
- MM : translate,
17054
- y : 'rok',
17055
- yy : translate
17056
- },
17057
- dayOfMonthOrdinalParse: /\d{1,2}\./,
17058
- ordinal : '%d.',
17059
- week : {
17060
- dow : 1, // Monday is the first day of the week.
17061
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17062
- }
17063
- });
17064
-
17065
- return pl;
17066
-
17067
- })));
17068
-
17069
-
17070
- /***/ }),
17071
-
17072
- /***/ "./node_modules/moment/locale/pt-br.js":
17073
- /*!*********************************************!*\
17074
- !*** ./node_modules/moment/locale/pt-br.js ***!
17075
- \*********************************************/
17076
- /*! no static exports found */
17077
- /***/ (function(module, exports, __webpack_require__) {
17078
-
17079
- //! moment.js locale configuration
17080
-
17081
- ;(function (global, factory) {
17082
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17083
- undefined
17084
- }(this, (function (moment) { 'use strict';
17085
-
17086
-
17087
- var ptBr = moment.defineLocale('pt-br', {
17088
- months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
17089
- monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
17090
- weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
17091
- weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
17092
- weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
17093
- weekdaysParseExact : true,
17094
- longDateFormat : {
17095
- LT : 'HH:mm',
17096
- LTS : 'HH:mm:ss',
17097
- L : 'DD/MM/YYYY',
17098
- LL : 'D [de] MMMM [de] YYYY',
17099
- LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
17100
- LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
17101
- },
17102
- calendar : {
17103
- sameDay: '[Hoje às] LT',
17104
- nextDay: '[Amanhã às] LT',
17105
- nextWeek: 'dddd [às] LT',
17106
- lastDay: '[Ontem às] LT',
17107
- lastWeek: function () {
17108
- return (this.day() === 0 || this.day() === 6) ?
17109
- '[Último] dddd [às] LT' : // Saturday + Sunday
17110
- '[Última] dddd [às] LT'; // Monday - Friday
17111
- },
17112
- sameElse: 'L'
17113
- },
17114
- relativeTime : {
17115
- future : 'em %s',
17116
- past : 'há %s',
17117
- s : 'poucos segundos',
17118
- ss : '%d segundos',
17119
- m : 'um minuto',
17120
- mm : '%d minutos',
17121
- h : 'uma hora',
17122
- hh : '%d horas',
17123
- d : 'um dia',
17124
- dd : '%d dias',
17125
- M : 'um mês',
17126
- MM : '%d meses',
17127
- y : 'um ano',
17128
- yy : '%d anos'
17129
- },
17130
- dayOfMonthOrdinalParse: /\d{1,2}º/,
17131
- ordinal : '%dº'
17132
- });
17133
-
17134
- return ptBr;
17135
-
17136
- })));
17137
-
17138
-
17139
- /***/ }),
17140
-
17141
- /***/ "./node_modules/moment/locale/pt.js":
17142
- /*!******************************************!*\
17143
- !*** ./node_modules/moment/locale/pt.js ***!
17144
- \******************************************/
17145
- /*! no static exports found */
17146
- /***/ (function(module, exports, __webpack_require__) {
17147
-
17148
- //! moment.js locale configuration
17149
-
17150
- ;(function (global, factory) {
17151
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17152
- undefined
17153
- }(this, (function (moment) { 'use strict';
17154
-
17155
-
17156
- var pt = moment.defineLocale('pt', {
17157
- months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
17158
- monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
17159
- weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
17160
- weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
17161
- weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
17162
- weekdaysParseExact : true,
17163
- longDateFormat : {
17164
- LT : 'HH:mm',
17165
- LTS : 'HH:mm:ss',
17166
- L : 'DD/MM/YYYY',
17167
- LL : 'D [de] MMMM [de] YYYY',
17168
- LLL : 'D [de] MMMM [de] YYYY HH:mm',
17169
- LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
17170
- },
17171
- calendar : {
17172
- sameDay: '[Hoje às] LT',
17173
- nextDay: '[Amanhã às] LT',
17174
- nextWeek: 'dddd [às] LT',
17175
- lastDay: '[Ontem às] LT',
17176
- lastWeek: function () {
17177
- return (this.day() === 0 || this.day() === 6) ?
17178
- '[Último] dddd [às] LT' : // Saturday + Sunday
17179
- '[Última] dddd [às] LT'; // Monday - Friday
17180
- },
17181
- sameElse: 'L'
17182
- },
17183
- relativeTime : {
17184
- future : 'em %s',
17185
- past : 'há %s',
17186
- s : 'segundos',
17187
- ss : '%d segundos',
17188
- m : 'um minuto',
17189
- mm : '%d minutos',
17190
- h : 'uma hora',
17191
- hh : '%d horas',
17192
- d : 'um dia',
17193
- dd : '%d dias',
17194
- M : 'um mês',
17195
- MM : '%d meses',
17196
- y : 'um ano',
17197
- yy : '%d anos'
17198
- },
17199
- dayOfMonthOrdinalParse: /\d{1,2}º/,
17200
- ordinal : '%dº',
17201
- week : {
17202
- dow : 1, // Monday is the first day of the week.
17203
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17204
- }
17205
- });
17206
-
17207
- return pt;
17208
-
17209
- })));
17210
-
17211
-
17212
- /***/ }),
17213
-
17214
- /***/ "./node_modules/moment/locale/ro.js":
17215
- /*!******************************************!*\
17216
- !*** ./node_modules/moment/locale/ro.js ***!
17217
- \******************************************/
17218
- /*! no static exports found */
17219
- /***/ (function(module, exports, __webpack_require__) {
17220
-
17221
- //! moment.js locale configuration
17222
-
17223
- ;(function (global, factory) {
17224
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17225
- undefined
17226
- }(this, (function (moment) { 'use strict';
17227
-
17228
-
17229
- function relativeTimeWithPlural(number, withoutSuffix, key) {
17230
- var format = {
17231
- 'ss': 'secunde',
17232
- 'mm': 'minute',
17233
- 'hh': 'ore',
17234
- 'dd': 'zile',
17235
- 'MM': 'luni',
17236
- 'yy': 'ani'
17237
- },
17238
- separator = ' ';
17239
- if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
17240
- separator = ' de ';
17241
- }
17242
- return number + separator + format[key];
17243
- }
17244
-
17245
- var ro = moment.defineLocale('ro', {
17246
- months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
17247
- monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
17248
- monthsParseExact: true,
17249
- weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
17250
- weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
17251
- weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
17252
- longDateFormat : {
17253
- LT : 'H:mm',
17254
- LTS : 'H:mm:ss',
17255
- L : 'DD.MM.YYYY',
17256
- LL : 'D MMMM YYYY',
17257
- LLL : 'D MMMM YYYY H:mm',
17258
- LLLL : 'dddd, D MMMM YYYY H:mm'
17259
- },
17260
- calendar : {
17261
- sameDay: '[azi la] LT',
17262
- nextDay: '[mâine la] LT',
17263
- nextWeek: 'dddd [la] LT',
17264
- lastDay: '[ieri la] LT',
17265
- lastWeek: '[fosta] dddd [la] LT',
17266
- sameElse: 'L'
17267
- },
17268
- relativeTime : {
17269
- future : 'peste %s',
17270
- past : '%s în urmă',
17271
- s : 'câteva secunde',
17272
- ss : relativeTimeWithPlural,
17273
- m : 'un minut',
17274
- mm : relativeTimeWithPlural,
17275
- h : 'o oră',
17276
- hh : relativeTimeWithPlural,
17277
- d : 'o zi',
17278
- dd : relativeTimeWithPlural,
17279
- M : 'o lună',
17280
- MM : relativeTimeWithPlural,
17281
- y : 'un an',
17282
- yy : relativeTimeWithPlural
17283
- },
17284
- week : {
17285
- dow : 1, // Monday is the first day of the week.
17286
- doy : 7 // The week that contains Jan 7th is the first week of the year.
17287
- }
17288
- });
17289
-
17290
- return ro;
17291
-
17292
- })));
17293
-
17294
-
17295
- /***/ }),
17296
-
17297
- /***/ "./node_modules/moment/locale/ru.js":
17298
- /*!******************************************!*\
17299
- !*** ./node_modules/moment/locale/ru.js ***!
17300
- \******************************************/
17301
- /*! no static exports found */
17302
- /***/ (function(module, exports, __webpack_require__) {
17303
-
17304
- //! moment.js locale configuration
17305
-
17306
- ;(function (global, factory) {
17307
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17308
- undefined
17309
- }(this, (function (moment) { 'use strict';
17310
-
17311
-
17312
- function plural(word, num) {
17313
- var forms = word.split('_');
17314
- return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
17315
- }
17316
- function relativeTimeWithPlural(number, withoutSuffix, key) {
17317
- var format = {
17318
- 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
17319
- 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
17320
- 'hh': 'час_часа_часов',
17321
- 'dd': 'день_дня_дней',
17322
- 'MM': 'месяц_месяца_месяцев',
17323
- 'yy': 'год_года_лет'
17324
- };
17325
- if (key === 'm') {
17326
- return withoutSuffix ? 'минута' : 'минуту';
17327
- }
17328
- else {
17329
- return number + ' ' + plural(format[key], +number);
17330
- }
17331
- }
17332
- var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
17333
-
17334
- // http://new.gramota.ru/spravka/rules/139-prop : § 103
17335
- // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
17336
- // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
17337
- var ru = moment.defineLocale('ru', {
17338
- months : {
17339
- format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
17340
- standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
17341
- },
17342
- monthsShort : {
17343
- // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
17344
- format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
17345
- standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
17346
- },
17347
- weekdays : {
17348
- standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
17349
- format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
17350
- isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
17351
- },
17352
- weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
17353
- weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
17354
- monthsParse : monthsParse,
17355
- longMonthsParse : monthsParse,
17356
- shortMonthsParse : monthsParse,
17357
-
17358
- // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
17359
- monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
17360
-
17361
- // копия предыдущего
17362
- monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
17363
-
17364
- // полные названия с падежами
17365
- monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
17366
-
17367
- // Выражение, которое соотвествует только сокращённым формам
17368
- monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
17369
- longDateFormat : {
17370
- LT : 'H:mm',
17371
- LTS : 'H:mm:ss',
17372
- L : 'DD.MM.YYYY',
17373
- LL : 'D MMMM YYYY г.',
17374
- LLL : 'D MMMM YYYY г., H:mm',
17375
- LLLL : 'dddd, D MMMM YYYY г., H:mm'
17376
- },
17377
- calendar : {
17378
- sameDay: '[Сегодня, в] LT',
17379
- nextDay: '[Завтра, в] LT',
17380
- lastDay: '[Вчера, в] LT',
17381
- nextWeek: function (now) {
17382
- if (now.week() !== this.week()) {
17383
- switch (this.day()) {
17384
- case 0:
17385
- return '[В следующее] dddd, [в] LT';
17386
- case 1:
17387
- case 2:
17388
- case 4:
17389
- return '[В следующий] dddd, [в] LT';
17390
- case 3:
17391
- case 5:
17392
- case 6:
17393
- return '[В следующую] dddd, [в] LT';
17394
- }
17395
- } else {
17396
- if (this.day() === 2) {
17397
- return '[Во] dddd, [в] LT';
17398
- } else {
17399
- return '[В] dddd, [в] LT';
17400
- }
17401
- }
17402
- },
17403
- lastWeek: function (now) {
17404
- if (now.week() !== this.week()) {
17405
- switch (this.day()) {
17406
- case 0:
17407
- return '[В прошлое] dddd, [в] LT';
17408
- case 1:
17409
- case 2:
17410
- case 4:
17411
- return '[В прошлый] dddd, [в] LT';
17412
- case 3:
17413
- case 5:
17414
- case 6:
17415
- return '[В прошлую] dddd, [в] LT';
17416
- }
17417
- } else {
17418
- if (this.day() === 2) {
17419
- return '[Во] dddd, [в] LT';
17420
- } else {
17421
- return '[В] dddd, [в] LT';
17422
- }
17423
- }
17424
- },
17425
- sameElse: 'L'
17426
- },
17427
- relativeTime : {
17428
- future : 'через %s',
17429
- past : '%s назад',
17430
- s : 'несколько секунд',
17431
- ss : relativeTimeWithPlural,
17432
- m : relativeTimeWithPlural,
17433
- mm : relativeTimeWithPlural,
17434
- h : 'час',
17435
- hh : relativeTimeWithPlural,
17436
- d : 'день',
17437
- dd : relativeTimeWithPlural,
17438
- M : 'месяц',
17439
- MM : relativeTimeWithPlural,
17440
- y : 'год',
17441
- yy : relativeTimeWithPlural
17442
- },
17443
- meridiemParse: /ночи|утра|дня|вечера/i,
17444
- isPM : function (input) {
17445
- return /^(дня|вечера)$/.test(input);
17446
- },
17447
- meridiem : function (hour, minute, isLower) {
17448
- if (hour < 4) {
17449
- return 'ночи';
17450
- } else if (hour < 12) {
17451
- return 'утра';
17452
- } else if (hour < 17) {
17453
- return 'дня';
17454
- } else {
17455
- return 'вечера';
17456
- }
17457
- },
17458
- dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
17459
- ordinal: function (number, period) {
17460
- switch (period) {
17461
- case 'M':
17462
- case 'd':
17463
- case 'DDD':
17464
- return number + '-й';
17465
- case 'D':
17466
- return number + '-го';
17467
- case 'w':
17468
- case 'W':
17469
- return number + '-я';
17470
- default:
17471
- return number;
17472
- }
17473
- },
17474
- week : {
17475
- dow : 1, // Monday is the first day of the week.
17476
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17477
- }
17478
- });
17479
-
17480
- return ru;
17481
-
17482
- })));
17483
-
17484
-
17485
- /***/ }),
17486
-
17487
- /***/ "./node_modules/moment/locale/sd.js":
17488
- /*!******************************************!*\
17489
- !*** ./node_modules/moment/locale/sd.js ***!
17490
- \******************************************/
17491
- /*! no static exports found */
17492
- /***/ (function(module, exports, __webpack_require__) {
17493
-
17494
- //! moment.js locale configuration
17495
-
17496
- ;(function (global, factory) {
17497
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17498
- undefined
17499
- }(this, (function (moment) { 'use strict';
17500
-
17501
-
17502
- var months = [
17503
- 'جنوري',
17504
- 'فيبروري',
17505
- 'مارچ',
17506
- 'اپريل',
17507
- 'مئي',
17508
- 'جون',
17509
- 'جولاءِ',
17510
- 'آگسٽ',
17511
- 'سيپٽمبر',
17512
- 'آڪٽوبر',
17513
- 'نومبر',
17514
- 'ڊسمبر'
17515
- ];
17516
- var days = [
17517
- 'آچر',
17518
- 'سومر',
17519
- 'اڱارو',
17520
- 'اربع',
17521
- 'خميس',
17522
- 'جمع',
17523
- 'ڇنڇر'
17524
- ];
17525
-
17526
- var sd = moment.defineLocale('sd', {
17527
- months : months,
17528
- monthsShort : months,
17529
- weekdays : days,
17530
- weekdaysShort : days,
17531
- weekdaysMin : days,
17532
- longDateFormat : {
17533
- LT : 'HH:mm',
17534
- LTS : 'HH:mm:ss',
17535
- L : 'DD/MM/YYYY',
17536
- LL : 'D MMMM YYYY',
17537
- LLL : 'D MMMM YYYY HH:mm',
17538
- LLLL : 'dddd، D MMMM YYYY HH:mm'
17539
- },
17540
- meridiemParse: /صبح|شام/,
17541
- isPM : function (input) {
17542
- return 'شام' === input;
17543
- },
17544
- meridiem : function (hour, minute, isLower) {
17545
- if (hour < 12) {
17546
- return 'صبح';
17547
- }
17548
- return 'شام';
17549
- },
17550
- calendar : {
17551
- sameDay : '[اڄ] LT',
17552
- nextDay : '[سڀاڻي] LT',
17553
- nextWeek : 'dddd [اڳين هفتي تي] LT',
17554
- lastDay : '[ڪالهه] LT',
17555
- lastWeek : '[گزريل هفتي] dddd [تي] LT',
17556
- sameElse : 'L'
17557
- },
17558
- relativeTime : {
17559
- future : '%s پوء',
17560
- past : '%s اڳ',
17561
- s : 'چند سيڪنڊ',
17562
- ss : '%d سيڪنڊ',
17563
- m : 'هڪ منٽ',
17564
- mm : '%d منٽ',
17565
- h : 'هڪ ڪلاڪ',
17566
- hh : '%d ڪلاڪ',
17567
- d : 'هڪ ڏينهن',
17568
- dd : '%d ڏينهن',
17569
- M : 'هڪ مهينو',
17570
- MM : '%d مهينا',
17571
- y : 'هڪ سال',
17572
- yy : '%d سال'
17573
- },
17574
- preparse: function (string) {
17575
- return string.replace(/،/g, ',');
17576
- },
17577
- postformat: function (string) {
17578
- return string.replace(/,/g, '،');
17579
- },
17580
- week : {
17581
- dow : 1, // Monday is the first day of the week.
17582
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17583
- }
17584
- });
17585
-
17586
- return sd;
17587
-
17588
- })));
17589
-
17590
-
17591
- /***/ }),
17592
-
17593
- /***/ "./node_modules/moment/locale/se.js":
17594
- /*!******************************************!*\
17595
- !*** ./node_modules/moment/locale/se.js ***!
17596
- \******************************************/
17597
- /*! no static exports found */
17598
- /***/ (function(module, exports, __webpack_require__) {
17599
-
17600
- //! moment.js locale configuration
17601
-
17602
- ;(function (global, factory) {
17603
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17604
- undefined
17605
- }(this, (function (moment) { 'use strict';
17606
-
17607
-
17608
- var se = moment.defineLocale('se', {
17609
- months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
17610
- monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
17611
- weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
17612
- weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
17613
- weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
17614
- longDateFormat : {
17615
- LT : 'HH:mm',
17616
- LTS : 'HH:mm:ss',
17617
- L : 'DD.MM.YYYY',
17618
- LL : 'MMMM D. [b.] YYYY',
17619
- LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
17620
- LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
17621
- },
17622
- calendar : {
17623
- sameDay: '[otne ti] LT',
17624
- nextDay: '[ihttin ti] LT',
17625
- nextWeek: 'dddd [ti] LT',
17626
- lastDay: '[ikte ti] LT',
17627
- lastWeek: '[ovddit] dddd [ti] LT',
17628
- sameElse: 'L'
17629
- },
17630
- relativeTime : {
17631
- future : '%s geažes',
17632
- past : 'maŋit %s',
17633
- s : 'moadde sekunddat',
17634
- ss: '%d sekunddat',
17635
- m : 'okta minuhta',
17636
- mm : '%d minuhtat',
17637
- h : 'okta diimmu',
17638
- hh : '%d diimmut',
17639
- d : 'okta beaivi',
17640
- dd : '%d beaivvit',
17641
- M : 'okta mánnu',
17642
- MM : '%d mánut',
17643
- y : 'okta jahki',
17644
- yy : '%d jagit'
17645
- },
17646
- dayOfMonthOrdinalParse: /\d{1,2}\./,
17647
- ordinal : '%d.',
17648
- week : {
17649
- dow : 1, // Monday is the first day of the week.
17650
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17651
- }
17652
- });
17653
-
17654
- return se;
17655
-
17656
- })));
17657
-
17658
-
17659
- /***/ }),
17660
-
17661
- /***/ "./node_modules/moment/locale/si.js":
17662
- /*!******************************************!*\
17663
- !*** ./node_modules/moment/locale/si.js ***!
17664
- \******************************************/
17665
- /*! no static exports found */
17666
- /***/ (function(module, exports, __webpack_require__) {
17667
-
17668
- //! moment.js locale configuration
17669
-
17670
- ;(function (global, factory) {
17671
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17672
- undefined
17673
- }(this, (function (moment) { 'use strict';
17674
-
17675
-
17676
- /*jshint -W100*/
17677
- var si = moment.defineLocale('si', {
17678
- months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
17679
- monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
17680
- weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
17681
- weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
17682
- weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
17683
- weekdaysParseExact : true,
17684
- longDateFormat : {
17685
- LT : 'a h:mm',
17686
- LTS : 'a h:mm:ss',
17687
- L : 'YYYY/MM/DD',
17688
- LL : 'YYYY MMMM D',
17689
- LLL : 'YYYY MMMM D, a h:mm',
17690
- LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
17691
- },
17692
- calendar : {
17693
- sameDay : '[අද] LT[ට]',
17694
- nextDay : '[හෙට] LT[ට]',
17695
- nextWeek : 'dddd LT[ට]',
17696
- lastDay : '[ඊයේ] LT[ට]',
17697
- lastWeek : '[පසුගිය] dddd LT[ට]',
17698
- sameElse : 'L'
17699
- },
17700
- relativeTime : {
17701
- future : '%sකින්',
17702
- past : '%sකට පෙර',
17703
- s : 'තත්පර කිහිපය',
17704
- ss : 'තත්පර %d',
17705
- m : 'මිනිත්තුව',
17706
- mm : 'මිනිත්තු %d',
17707
- h : 'පැය',
17708
- hh : 'පැය %d',
17709
- d : 'දිනය',
17710
- dd : 'දින %d',
17711
- M : 'මාසය',
17712
- MM : 'මාස %d',
17713
- y : 'වසර',
17714
- yy : 'වසර %d'
17715
- },
17716
- dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
17717
- ordinal : function (number) {
17718
- return number + ' වැනි';
17719
- },
17720
- meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
17721
- isPM : function (input) {
17722
- return input === 'ප.ව.' || input === 'පස් වරු';
17723
- },
17724
- meridiem : function (hours, minutes, isLower) {
17725
- if (hours > 11) {
17726
- return isLower ? 'ප.ව.' : 'පස් වරු';
17727
- } else {
17728
- return isLower ? 'පෙ.ව.' : 'පෙර වරු';
17729
- }
17730
- }
17731
- });
17732
-
17733
- return si;
17734
-
17735
- })));
17736
-
17737
-
17738
- /***/ }),
17739
-
17740
- /***/ "./node_modules/moment/locale/sk.js":
17741
- /*!******************************************!*\
17742
- !*** ./node_modules/moment/locale/sk.js ***!
17743
- \******************************************/
17744
- /*! no static exports found */
17745
- /***/ (function(module, exports, __webpack_require__) {
17746
-
17747
- //! moment.js locale configuration
17748
-
17749
- ;(function (global, factory) {
17750
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17751
- undefined
17752
- }(this, (function (moment) { 'use strict';
17753
-
17754
-
17755
- var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
17756
- monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
17757
- function plural(n) {
17758
- return (n > 1) && (n < 5);
17759
- }
17760
- function translate(number, withoutSuffix, key, isFuture) {
17761
- var result = number + ' ';
17762
- switch (key) {
17763
- case 's': // a few seconds / in a few seconds / a few seconds ago
17764
- return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
17765
- case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
17766
- if (withoutSuffix || isFuture) {
17767
- return result + (plural(number) ? 'sekundy' : 'sekúnd');
17768
- } else {
17769
- return result + 'sekundami';
17770
- }
17771
- break;
17772
- case 'm': // a minute / in a minute / a minute ago
17773
- return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
17774
- case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
17775
- if (withoutSuffix || isFuture) {
17776
- return result + (plural(number) ? 'minúty' : 'minút');
17777
- } else {
17778
- return result + 'minútami';
17779
- }
17780
- break;
17781
- case 'h': // an hour / in an hour / an hour ago
17782
- return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
17783
- case 'hh': // 9 hours / in 9 hours / 9 hours ago
17784
- if (withoutSuffix || isFuture) {
17785
- return result + (plural(number) ? 'hodiny' : 'hodín');
17786
- } else {
17787
- return result + 'hodinami';
17788
- }
17789
- break;
17790
- case 'd': // a day / in a day / a day ago
17791
- return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
17792
- case 'dd': // 9 days / in 9 days / 9 days ago
17793
- if (withoutSuffix || isFuture) {
17794
- return result + (plural(number) ? 'dni' : 'dní');
17795
- } else {
17796
- return result + 'dňami';
17797
- }
17798
- break;
17799
- case 'M': // a month / in a month / a month ago
17800
- return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
17801
- case 'MM': // 9 months / in 9 months / 9 months ago
17802
- if (withoutSuffix || isFuture) {
17803
- return result + (plural(number) ? 'mesiace' : 'mesiacov');
17804
- } else {
17805
- return result + 'mesiacmi';
17806
- }
17807
- break;
17808
- case 'y': // a year / in a year / a year ago
17809
- return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
17810
- case 'yy': // 9 years / in 9 years / 9 years ago
17811
- if (withoutSuffix || isFuture) {
17812
- return result + (plural(number) ? 'roky' : 'rokov');
17813
- } else {
17814
- return result + 'rokmi';
17815
- }
17816
- break;
17817
- }
17818
- }
17819
-
17820
- var sk = moment.defineLocale('sk', {
17821
- months : months,
17822
- monthsShort : monthsShort,
17823
- weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
17824
- weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
17825
- weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
17826
- longDateFormat : {
17827
- LT: 'H:mm',
17828
- LTS : 'H:mm:ss',
17829
- L : 'DD.MM.YYYY',
17830
- LL : 'D. MMMM YYYY',
17831
- LLL : 'D. MMMM YYYY H:mm',
17832
- LLLL : 'dddd D. MMMM YYYY H:mm'
17833
- },
17834
- calendar : {
17835
- sameDay: '[dnes o] LT',
17836
- nextDay: '[zajtra o] LT',
17837
- nextWeek: function () {
17838
- switch (this.day()) {
17839
- case 0:
17840
- return '[v nedeľu o] LT';
17841
- case 1:
17842
- case 2:
17843
- return '[v] dddd [o] LT';
17844
- case 3:
17845
- return '[v stredu o] LT';
17846
- case 4:
17847
- return '[vo štvrtok o] LT';
17848
- case 5:
17849
- return '[v piatok o] LT';
17850
- case 6:
17851
- return '[v sobotu o] LT';
17852
- }
17853
- },
17854
- lastDay: '[včera o] LT',
17855
- lastWeek: function () {
17856
- switch (this.day()) {
17857
- case 0:
17858
- return '[minulú nedeľu o] LT';
17859
- case 1:
17860
- case 2:
17861
- return '[minulý] dddd [o] LT';
17862
- case 3:
17863
- return '[minulú stredu o] LT';
17864
- case 4:
17865
- case 5:
17866
- return '[minulý] dddd [o] LT';
17867
- case 6:
17868
- return '[minulú sobotu o] LT';
17869
- }
17870
- },
17871
- sameElse: 'L'
17872
- },
17873
- relativeTime : {
17874
- future : 'za %s',
17875
- past : 'pred %s',
17876
- s : translate,
17877
- ss : translate,
17878
- m : translate,
17879
- mm : translate,
17880
- h : translate,
17881
- hh : translate,
17882
- d : translate,
17883
- dd : translate,
17884
- M : translate,
17885
- MM : translate,
17886
- y : translate,
17887
- yy : translate
17888
- },
17889
- dayOfMonthOrdinalParse: /\d{1,2}\./,
17890
- ordinal : '%d.',
17891
- week : {
17892
- dow : 1, // Monday is the first day of the week.
17893
- doy : 4 // The week that contains Jan 4th is the first week of the year.
17894
- }
17895
- });
17896
-
17897
- return sk;
17898
-
17899
- })));
17900
-
17901
-
17902
- /***/ }),
17903
-
17904
- /***/ "./node_modules/moment/locale/sl.js":
17905
- /*!******************************************!*\
17906
- !*** ./node_modules/moment/locale/sl.js ***!
17907
- \******************************************/
17908
- /*! no static exports found */
17909
- /***/ (function(module, exports, __webpack_require__) {
17910
-
17911
- //! moment.js locale configuration
17912
-
17913
- ;(function (global, factory) {
17914
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
17915
- undefined
17916
- }(this, (function (moment) { 'use strict';
17917
-
17918
-
17919
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
17920
- var result = number + ' ';
17921
- switch (key) {
17922
- case 's':
17923
- return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
17924
- case 'ss':
17925
- if (number === 1) {
17926
- result += withoutSuffix ? 'sekundo' : 'sekundi';
17927
- } else if (number === 2) {
17928
- result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
17929
- } else if (number < 5) {
17930
- result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
17931
- } else {
17932
- result += 'sekund';
17933
- }
17934
- return result;
17935
- case 'm':
17936
- return withoutSuffix ? 'ena minuta' : 'eno minuto';
17937
- case 'mm':
17938
- if (number === 1) {
17939
- result += withoutSuffix ? 'minuta' : 'minuto';
17940
- } else if (number === 2) {
17941
- result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
17942
- } else if (number < 5) {
17943
- result += withoutSuffix || isFuture ? 'minute' : 'minutami';
17944
- } else {
17945
- result += withoutSuffix || isFuture ? 'minut' : 'minutami';
17946
- }
17947
- return result;
17948
- case 'h':
17949
- return withoutSuffix ? 'ena ura' : 'eno uro';
17950
- case 'hh':
17951
- if (number === 1) {
17952
- result += withoutSuffix ? 'ura' : 'uro';
17953
- } else if (number === 2) {
17954
- result += withoutSuffix || isFuture ? 'uri' : 'urama';
17955
- } else if (number < 5) {
17956
- result += withoutSuffix || isFuture ? 'ure' : 'urami';
17957
- } else {
17958
- result += withoutSuffix || isFuture ? 'ur' : 'urami';
17959
- }
17960
- return result;
17961
- case 'd':
17962
- return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
17963
- case 'dd':
17964
- if (number === 1) {
17965
- result += withoutSuffix || isFuture ? 'dan' : 'dnem';
17966
- } else if (number === 2) {
17967
- result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
17968
- } else {
17969
- result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
17970
- }
17971
- return result;
17972
- case 'M':
17973
- return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
17974
- case 'MM':
17975
- if (number === 1) {
17976
- result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
17977
- } else if (number === 2) {
17978
- result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
17979
- } else if (number < 5) {
17980
- result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
17981
- } else {
17982
- result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
17983
- }
17984
- return result;
17985
- case 'y':
17986
- return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
17987
- case 'yy':
17988
- if (number === 1) {
17989
- result += withoutSuffix || isFuture ? 'leto' : 'letom';
17990
- } else if (number === 2) {
17991
- result += withoutSuffix || isFuture ? 'leti' : 'letoma';
17992
- } else if (number < 5) {
17993
- result += withoutSuffix || isFuture ? 'leta' : 'leti';
17994
- } else {
17995
- result += withoutSuffix || isFuture ? 'let' : 'leti';
17996
- }
17997
- return result;
17998
- }
17999
- }
18000
-
18001
- var sl = moment.defineLocale('sl', {
18002
- months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
18003
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
18004
- monthsParseExact: true,
18005
- weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
18006
- weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
18007
- weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
18008
- weekdaysParseExact : true,
18009
- longDateFormat : {
18010
- LT : 'H:mm',
18011
- LTS : 'H:mm:ss',
18012
- L : 'DD.MM.YYYY',
18013
- LL : 'D. MMMM YYYY',
18014
- LLL : 'D. MMMM YYYY H:mm',
18015
- LLLL : 'dddd, D. MMMM YYYY H:mm'
18016
- },
18017
- calendar : {
18018
- sameDay : '[danes ob] LT',
18019
- nextDay : '[jutri ob] LT',
18020
-
18021
- nextWeek : function () {
18022
- switch (this.day()) {
18023
- case 0:
18024
- return '[v] [nedeljo] [ob] LT';
18025
- case 3:
18026
- return '[v] [sredo] [ob] LT';
18027
- case 6:
18028
- return '[v] [soboto] [ob] LT';
18029
- case 1:
18030
- case 2:
18031
- case 4:
18032
- case 5:
18033
- return '[v] dddd [ob] LT';
18034
- }
18035
- },
18036
- lastDay : '[včeraj ob] LT',
18037
- lastWeek : function () {
18038
- switch (this.day()) {
18039
- case 0:
18040
- return '[prejšnjo] [nedeljo] [ob] LT';
18041
- case 3:
18042
- return '[prejšnjo] [sredo] [ob] LT';
18043
- case 6:
18044
- return '[prejšnjo] [soboto] [ob] LT';
18045
- case 1:
18046
- case 2:
18047
- case 4:
18048
- case 5:
18049
- return '[prejšnji] dddd [ob] LT';
18050
- }
18051
- },
18052
- sameElse : 'L'
18053
- },
18054
- relativeTime : {
18055
- future : 'čez %s',
18056
- past : 'pred %s',
18057
- s : processRelativeTime,
18058
- ss : processRelativeTime,
18059
- m : processRelativeTime,
18060
- mm : processRelativeTime,
18061
- h : processRelativeTime,
18062
- hh : processRelativeTime,
18063
- d : processRelativeTime,
18064
- dd : processRelativeTime,
18065
- M : processRelativeTime,
18066
- MM : processRelativeTime,
18067
- y : processRelativeTime,
18068
- yy : processRelativeTime
18069
- },
18070
- dayOfMonthOrdinalParse: /\d{1,2}\./,
18071
- ordinal : '%d.',
18072
- week : {
18073
- dow : 1, // Monday is the first day of the week.
18074
- doy : 7 // The week that contains Jan 7th is the first week of the year.
18075
- }
18076
- });
18077
-
18078
- return sl;
18079
-
18080
- })));
18081
-
18082
-
18083
- /***/ }),
18084
-
18085
- /***/ "./node_modules/moment/locale/sq.js":
18086
- /*!******************************************!*\
18087
- !*** ./node_modules/moment/locale/sq.js ***!
18088
- \******************************************/
18089
- /*! no static exports found */
18090
- /***/ (function(module, exports, __webpack_require__) {
18091
-
18092
- //! moment.js locale configuration
18093
-
18094
- ;(function (global, factory) {
18095
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18096
- undefined
18097
- }(this, (function (moment) { 'use strict';
18098
-
18099
-
18100
- var sq = moment.defineLocale('sq', {
18101
- months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
18102
- monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
18103
- weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
18104
- weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
18105
- weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
18106
- weekdaysParseExact : true,
18107
- meridiemParse: /PD|MD/,
18108
- isPM: function (input) {
18109
- return input.charAt(0) === 'M';
18110
- },
18111
- meridiem : function (hours, minutes, isLower) {
18112
- return hours < 12 ? 'PD' : 'MD';
18113
- },
18114
- longDateFormat : {
18115
- LT : 'HH:mm',
18116
- LTS : 'HH:mm:ss',
18117
- L : 'DD/MM/YYYY',
18118
- LL : 'D MMMM YYYY',
18119
- LLL : 'D MMMM YYYY HH:mm',
18120
- LLLL : 'dddd, D MMMM YYYY HH:mm'
18121
- },
18122
- calendar : {
18123
- sameDay : '[Sot në] LT',
18124
- nextDay : '[Nesër në] LT',
18125
- nextWeek : 'dddd [në] LT',
18126
- lastDay : '[Dje në] LT',
18127
- lastWeek : 'dddd [e kaluar në] LT',
18128
- sameElse : 'L'
18129
- },
18130
- relativeTime : {
18131
- future : 'në %s',
18132
- past : '%s më parë',
18133
- s : 'disa sekonda',
18134
- ss : '%d sekonda',
18135
- m : 'një minutë',
18136
- mm : '%d minuta',
18137
- h : 'një orë',
18138
- hh : '%d orë',
18139
- d : 'një ditë',
18140
- dd : '%d ditë',
18141
- M : 'një muaj',
18142
- MM : '%d muaj',
18143
- y : 'një vit',
18144
- yy : '%d vite'
18145
- },
18146
- dayOfMonthOrdinalParse: /\d{1,2}\./,
18147
- ordinal : '%d.',
18148
- week : {
18149
- dow : 1, // Monday is the first day of the week.
18150
- doy : 4 // The week that contains Jan 4th is the first week of the year.
18151
- }
18152
- });
18153
-
18154
- return sq;
18155
-
18156
- })));
18157
-
18158
-
18159
- /***/ }),
18160
-
18161
- /***/ "./node_modules/moment/locale/sr-cyrl.js":
18162
- /*!***********************************************!*\
18163
- !*** ./node_modules/moment/locale/sr-cyrl.js ***!
18164
- \***********************************************/
18165
- /*! no static exports found */
18166
- /***/ (function(module, exports, __webpack_require__) {
18167
-
18168
- //! moment.js locale configuration
18169
-
18170
- ;(function (global, factory) {
18171
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18172
- undefined
18173
- }(this, (function (moment) { 'use strict';
18174
-
18175
-
18176
- var translator = {
18177
- words: { //Different grammatical cases
18178
- ss: ['секунда', 'секунде', 'секунди'],
18179
- m: ['један минут', 'једне минуте'],
18180
- mm: ['минут', 'минуте', 'минута'],
18181
- h: ['један сат', 'једног сата'],
18182
- hh: ['сат', 'сата', 'сати'],
18183
- dd: ['дан', 'дана', 'дана'],
18184
- MM: ['месец', 'месеца', 'месеци'],
18185
- yy: ['година', 'године', 'година']
18186
- },
18187
- correctGrammaticalCase: function (number, wordKey) {
18188
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
18189
- },
18190
- translate: function (number, withoutSuffix, key) {
18191
- var wordKey = translator.words[key];
18192
- if (key.length === 1) {
18193
- return withoutSuffix ? wordKey[0] : wordKey[1];
18194
- } else {
18195
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
18196
- }
18197
- }
18198
- };
18199
-
18200
- var srCyrl = moment.defineLocale('sr-cyrl', {
18201
- months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
18202
- monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
18203
- monthsParseExact: true,
18204
- weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
18205
- weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
18206
- weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
18207
- weekdaysParseExact : true,
18208
- longDateFormat: {
18209
- LT: 'H:mm',
18210
- LTS : 'H:mm:ss',
18211
- L: 'DD.MM.YYYY',
18212
- LL: 'D. MMMM YYYY',
18213
- LLL: 'D. MMMM YYYY H:mm',
18214
- LLLL: 'dddd, D. MMMM YYYY H:mm'
18215
- },
18216
- calendar: {
18217
- sameDay: '[данас у] LT',
18218
- nextDay: '[сутра у] LT',
18219
- nextWeek: function () {
18220
- switch (this.day()) {
18221
- case 0:
18222
- return '[у] [недељу] [у] LT';
18223
- case 3:
18224
- return '[у] [среду] [у] LT';
18225
- case 6:
18226
- return '[у] [суботу] [у] LT';
18227
- case 1:
18228
- case 2:
18229
- case 4:
18230
- case 5:
18231
- return '[у] dddd [у] LT';
18232
- }
18233
- },
18234
- lastDay : '[јуче у] LT',
18235
- lastWeek : function () {
18236
- var lastWeekDays = [
18237
- '[прошле] [недеље] [у] LT',
18238
- '[прошлог] [понедељка] [у] LT',
18239
- '[прошлог] [уторка] [у] LT',
18240
- '[прошле] [среде] [у] LT',
18241
- '[прошлог] [четвртка] [у] LT',
18242
- '[прошлог] [петка] [у] LT',
18243
- '[прошле] [суботе] [у] LT'
18244
- ];
18245
- return lastWeekDays[this.day()];
18246
- },
18247
- sameElse : 'L'
18248
- },
18249
- relativeTime : {
18250
- future : 'за %s',
18251
- past : 'пре %s',
18252
- s : 'неколико секунди',
18253
- ss : translator.translate,
18254
- m : translator.translate,
18255
- mm : translator.translate,
18256
- h : translator.translate,
18257
- hh : translator.translate,
18258
- d : 'дан',
18259
- dd : translator.translate,
18260
- M : 'месец',
18261
- MM : translator.translate,
18262
- y : 'годину',
18263
- yy : translator.translate
18264
- },
18265
- dayOfMonthOrdinalParse: /\d{1,2}\./,
18266
- ordinal : '%d.',
18267
- week : {
18268
- dow : 1, // Monday is the first day of the week.
18269
- doy : 7 // The week that contains Jan 7th is the first week of the year.
18270
- }
18271
- });
18272
-
18273
- return srCyrl;
18274
-
18275
- })));
18276
-
18277
-
18278
- /***/ }),
18279
-
18280
- /***/ "./node_modules/moment/locale/sr.js":
18281
- /*!******************************************!*\
18282
- !*** ./node_modules/moment/locale/sr.js ***!
18283
- \******************************************/
18284
- /*! no static exports found */
18285
- /***/ (function(module, exports, __webpack_require__) {
18286
-
18287
- //! moment.js locale configuration
18288
-
18289
- ;(function (global, factory) {
18290
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18291
- undefined
18292
- }(this, (function (moment) { 'use strict';
18293
-
18294
-
18295
- var translator = {
18296
- words: { //Different grammatical cases
18297
- ss: ['sekunda', 'sekunde', 'sekundi'],
18298
- m: ['jedan minut', 'jedne minute'],
18299
- mm: ['minut', 'minute', 'minuta'],
18300
- h: ['jedan sat', 'jednog sata'],
18301
- hh: ['sat', 'sata', 'sati'],
18302
- dd: ['dan', 'dana', 'dana'],
18303
- MM: ['mesec', 'meseca', 'meseci'],
18304
- yy: ['godina', 'godine', 'godina']
18305
- },
18306
- correctGrammaticalCase: function (number, wordKey) {
18307
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
18308
- },
18309
- translate: function (number, withoutSuffix, key) {
18310
- var wordKey = translator.words[key];
18311
- if (key.length === 1) {
18312
- return withoutSuffix ? wordKey[0] : wordKey[1];
18313
- } else {
18314
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
18315
- }
18316
- }
18317
- };
18318
-
18319
- var sr = moment.defineLocale('sr', {
18320
- months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
18321
- monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
18322
- monthsParseExact: true,
18323
- weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
18324
- weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
18325
- weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
18326
- weekdaysParseExact : true,
18327
- longDateFormat: {
18328
- LT: 'H:mm',
18329
- LTS : 'H:mm:ss',
18330
- L: 'DD.MM.YYYY',
18331
- LL: 'D. MMMM YYYY',
18332
- LLL: 'D. MMMM YYYY H:mm',
18333
- LLLL: 'dddd, D. MMMM YYYY H:mm'
18334
- },
18335
- calendar: {
18336
- sameDay: '[danas u] LT',
18337
- nextDay: '[sutra u] LT',
18338
- nextWeek: function () {
18339
- switch (this.day()) {
18340
- case 0:
18341
- return '[u] [nedelju] [u] LT';
18342
- case 3:
18343
- return '[u] [sredu] [u] LT';
18344
- case 6:
18345
- return '[u] [subotu] [u] LT';
18346
- case 1:
18347
- case 2:
18348
- case 4:
18349
- case 5:
18350
- return '[u] dddd [u] LT';
18351
- }
18352
- },
18353
- lastDay : '[juče u] LT',
18354
- lastWeek : function () {
18355
- var lastWeekDays = [
18356
- '[prošle] [nedelje] [u] LT',
18357
- '[prošlog] [ponedeljka] [u] LT',
18358
- '[prošlog] [utorka] [u] LT',
18359
- '[prošle] [srede] [u] LT',
18360
- '[prošlog] [četvrtka] [u] LT',
18361
- '[prošlog] [petka] [u] LT',
18362
- '[prošle] [subote] [u] LT'
18363
- ];
18364
- return lastWeekDays[this.day()];
18365
- },
18366
- sameElse : 'L'
18367
- },
18368
- relativeTime : {
18369
- future : 'za %s',
18370
- past : 'pre %s',
18371
- s : 'nekoliko sekundi',
18372
- ss : translator.translate,
18373
- m : translator.translate,
18374
- mm : translator.translate,
18375
- h : translator.translate,
18376
- hh : translator.translate,
18377
- d : 'dan',
18378
- dd : translator.translate,
18379
- M : 'mesec',
18380
- MM : translator.translate,
18381
- y : 'godinu',
18382
- yy : translator.translate
18383
- },
18384
- dayOfMonthOrdinalParse: /\d{1,2}\./,
18385
- ordinal : '%d.',
18386
- week : {
18387
- dow : 1, // Monday is the first day of the week.
18388
- doy : 7 // The week that contains Jan 7th is the first week of the year.
18389
- }
18390
- });
18391
-
18392
- return sr;
18393
-
18394
- })));
18395
-
18396
-
18397
- /***/ }),
18398
-
18399
- /***/ "./node_modules/moment/locale/ss.js":
18400
- /*!******************************************!*\
18401
- !*** ./node_modules/moment/locale/ss.js ***!
18402
- \******************************************/
18403
- /*! no static exports found */
18404
- /***/ (function(module, exports, __webpack_require__) {
18405
-
18406
- //! moment.js locale configuration
18407
-
18408
- ;(function (global, factory) {
18409
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18410
- undefined
18411
- }(this, (function (moment) { 'use strict';
18412
-
18413
-
18414
- var ss = moment.defineLocale('ss', {
18415
- months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
18416
- monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
18417
- weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
18418
- weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
18419
- weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
18420
- weekdaysParseExact : true,
18421
- longDateFormat : {
18422
- LT : 'h:mm A',
18423
- LTS : 'h:mm:ss A',
18424
- L : 'DD/MM/YYYY',
18425
- LL : 'D MMMM YYYY',
18426
- LLL : 'D MMMM YYYY h:mm A',
18427
- LLLL : 'dddd, D MMMM YYYY h:mm A'
18428
- },
18429
- calendar : {
18430
- sameDay : '[Namuhla nga] LT',
18431
- nextDay : '[Kusasa nga] LT',
18432
- nextWeek : 'dddd [nga] LT',
18433
- lastDay : '[Itolo nga] LT',
18434
- lastWeek : 'dddd [leliphelile] [nga] LT',
18435
- sameElse : 'L'
18436
- },
18437
- relativeTime : {
18438
- future : 'nga %s',
18439
- past : 'wenteka nga %s',
18440
- s : 'emizuzwana lomcane',
18441
- ss : '%d mzuzwana',
18442
- m : 'umzuzu',
18443
- mm : '%d emizuzu',
18444
- h : 'lihora',
18445
- hh : '%d emahora',
18446
- d : 'lilanga',
18447
- dd : '%d emalanga',
18448
- M : 'inyanga',
18449
- MM : '%d tinyanga',
18450
- y : 'umnyaka',
18451
- yy : '%d iminyaka'
18452
- },
18453
- meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
18454
- meridiem : function (hours, minutes, isLower) {
18455
- if (hours < 11) {
18456
- return 'ekuseni';
18457
- } else if (hours < 15) {
18458
- return 'emini';
18459
- } else if (hours < 19) {
18460
- return 'entsambama';
18461
- } else {
18462
- return 'ebusuku';
18463
- }
18464
- },
18465
- meridiemHour : function (hour, meridiem) {
18466
- if (hour === 12) {
18467
- hour = 0;
18468
- }
18469
- if (meridiem === 'ekuseni') {
18470
- return hour;
18471
- } else if (meridiem === 'emini') {
18472
- return hour >= 11 ? hour : hour + 12;
18473
- } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
18474
- if (hour === 0) {
18475
- return 0;
18476
- }
18477
- return hour + 12;
18478
- }
18479
- },
18480
- dayOfMonthOrdinalParse: /\d{1,2}/,
18481
- ordinal : '%d',
18482
- week : {
18483
- dow : 1, // Monday is the first day of the week.
18484
- doy : 4 // The week that contains Jan 4th is the first week of the year.
18485
- }
18486
- });
18487
-
18488
- return ss;
18489
-
18490
- })));
18491
-
18492
-
18493
- /***/ }),
18494
-
18495
- /***/ "./node_modules/moment/locale/sv.js":
18496
- /*!******************************************!*\
18497
- !*** ./node_modules/moment/locale/sv.js ***!
18498
- \******************************************/
18499
- /*! no static exports found */
18500
- /***/ (function(module, exports, __webpack_require__) {
18501
-
18502
- //! moment.js locale configuration
18503
-
18504
- ;(function (global, factory) {
18505
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18506
- undefined
18507
- }(this, (function (moment) { 'use strict';
18508
-
18509
-
18510
- var sv = moment.defineLocale('sv', {
18511
- months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
18512
- monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
18513
- weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
18514
- weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
18515
- weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
18516
- longDateFormat : {
18517
- LT : 'HH:mm',
18518
- LTS : 'HH:mm:ss',
18519
- L : 'YYYY-MM-DD',
18520
- LL : 'D MMMM YYYY',
18521
- LLL : 'D MMMM YYYY [kl.] HH:mm',
18522
- LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
18523
- lll : 'D MMM YYYY HH:mm',
18524
- llll : 'ddd D MMM YYYY HH:mm'
18525
- },
18526
- calendar : {
18527
- sameDay: '[Idag] LT',
18528
- nextDay: '[Imorgon] LT',
18529
- lastDay: '[Igår] LT',
18530
- nextWeek: '[På] dddd LT',
18531
- lastWeek: '[I] dddd[s] LT',
18532
- sameElse: 'L'
18533
- },
18534
- relativeTime : {
18535
- future : 'om %s',
18536
- past : 'för %s sedan',
18537
- s : 'några sekunder',
18538
- ss : '%d sekunder',
18539
- m : 'en minut',
18540
- mm : '%d minuter',
18541
- h : 'en timme',
18542
- hh : '%d timmar',
18543
- d : 'en dag',
18544
- dd : '%d dagar',
18545
- M : 'en månad',
18546
- MM : '%d månader',
18547
- y : 'ett år',
18548
- yy : '%d år'
18549
- },
18550
- dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
18551
- ordinal : function (number) {
18552
- var b = number % 10,
18553
- output = (~~(number % 100 / 10) === 1) ? 'e' :
18554
- (b === 1) ? 'a' :
18555
- (b === 2) ? 'a' :
18556
- (b === 3) ? 'e' : 'e';
18557
- return number + output;
18558
- },
18559
- week : {
18560
- dow : 1, // Monday is the first day of the week.
18561
- doy : 4 // The week that contains Jan 4th is the first week of the year.
18562
- }
18563
- });
18564
-
18565
- return sv;
18566
-
18567
- })));
18568
-
18569
-
18570
- /***/ }),
18571
-
18572
- /***/ "./node_modules/moment/locale/sw.js":
18573
- /*!******************************************!*\
18574
- !*** ./node_modules/moment/locale/sw.js ***!
18575
- \******************************************/
18576
- /*! no static exports found */
18577
- /***/ (function(module, exports, __webpack_require__) {
18578
-
18579
- //! moment.js locale configuration
18580
-
18581
- ;(function (global, factory) {
18582
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18583
- undefined
18584
- }(this, (function (moment) { 'use strict';
18585
-
18586
-
18587
- var sw = moment.defineLocale('sw', {
18588
- months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
18589
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
18590
- weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
18591
- weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
18592
- weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
18593
- weekdaysParseExact : true,
18594
- longDateFormat : {
18595
- LT : 'HH:mm',
18596
- LTS : 'HH:mm:ss',
18597
- L : 'DD.MM.YYYY',
18598
- LL : 'D MMMM YYYY',
18599
- LLL : 'D MMMM YYYY HH:mm',
18600
- LLLL : 'dddd, D MMMM YYYY HH:mm'
18601
- },
18602
- calendar : {
18603
- sameDay : '[leo saa] LT',
18604
- nextDay : '[kesho saa] LT',
18605
- nextWeek : '[wiki ijayo] dddd [saat] LT',
18606
- lastDay : '[jana] LT',
18607
- lastWeek : '[wiki iliyopita] dddd [saat] LT',
18608
- sameElse : 'L'
18609
- },
18610
- relativeTime : {
18611
- future : '%s baadaye',
18612
- past : 'tokea %s',
18613
- s : 'hivi punde',
18614
- ss : 'sekunde %d',
18615
- m : 'dakika moja',
18616
- mm : 'dakika %d',
18617
- h : 'saa limoja',
18618
- hh : 'masaa %d',
18619
- d : 'siku moja',
18620
- dd : 'masiku %d',
18621
- M : 'mwezi mmoja',
18622
- MM : 'miezi %d',
18623
- y : 'mwaka mmoja',
18624
- yy : 'miaka %d'
18625
- },
18626
- week : {
18627
- dow : 1, // Monday is the first day of the week.
18628
- doy : 7 // The week that contains Jan 7th is the first week of the year.
18629
- }
18630
- });
18631
-
18632
- return sw;
18633
-
18634
- })));
18635
-
18636
-
18637
- /***/ }),
18638
-
18639
- /***/ "./node_modules/moment/locale/ta.js":
18640
- /*!******************************************!*\
18641
- !*** ./node_modules/moment/locale/ta.js ***!
18642
- \******************************************/
18643
- /*! no static exports found */
18644
- /***/ (function(module, exports, __webpack_require__) {
18645
-
18646
- //! moment.js locale configuration
18647
-
18648
- ;(function (global, factory) {
18649
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18650
- undefined
18651
- }(this, (function (moment) { 'use strict';
18652
-
18653
-
18654
- var symbolMap = {
18655
- '1': '௧',
18656
- '2': '௨',
18657
- '3': '௩',
18658
- '4': '௪',
18659
- '5': '௫',
18660
- '6': '௬',
18661
- '7': '௭',
18662
- '8': '௮',
18663
- '9': '௯',
18664
- '0': '௦'
18665
- }, numberMap = {
18666
- '௧': '1',
18667
- '௨': '2',
18668
- '௩': '3',
18669
- '௪': '4',
18670
- '௫': '5',
18671
- '௬': '6',
18672
- '௭': '7',
18673
- '௮': '8',
18674
- '௯': '9',
18675
- '௦': '0'
18676
- };
18677
-
18678
- var ta = moment.defineLocale('ta', {
18679
- months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
18680
- monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
18681
- weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
18682
- weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
18683
- weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
18684
- longDateFormat : {
18685
- LT : 'HH:mm',
18686
- LTS : 'HH:mm:ss',
18687
- L : 'DD/MM/YYYY',
18688
- LL : 'D MMMM YYYY',
18689
- LLL : 'D MMMM YYYY, HH:mm',
18690
- LLLL : 'dddd, D MMMM YYYY, HH:mm'
18691
- },
18692
- calendar : {
18693
- sameDay : '[இன்று] LT',
18694
- nextDay : '[நாளை] LT',
18695
- nextWeek : 'dddd, LT',
18696
- lastDay : '[நேற்று] LT',
18697
- lastWeek : '[கடந்த வாரம்] dddd, LT',
18698
- sameElse : 'L'
18699
- },
18700
- relativeTime : {
18701
- future : '%s இல்',
18702
- past : '%s முன்',
18703
- s : 'ஒரு சில விநாடிகள்',
18704
- ss : '%d விநாடிகள்',
18705
- m : 'ஒரு நிமிடம்',
18706
- mm : '%d நிமிடங்கள்',
18707
- h : 'ஒரு மணி நேரம்',
18708
- hh : '%d மணி நேரம்',
18709
- d : 'ஒரு நாள்',
18710
- dd : '%d நாட்கள்',
18711
- M : 'ஒரு மாதம்',
18712
- MM : '%d மாதங்கள்',
18713
- y : 'ஒரு வருடம்',
18714
- yy : '%d ஆண்டுகள்'
18715
- },
18716
- dayOfMonthOrdinalParse: /\d{1,2}வது/,
18717
- ordinal : function (number) {
18718
- return number + 'வது';
18719
- },
18720
- preparse: function (string) {
18721
- return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
18722
- return numberMap[match];
18723
- });
18724
- },
18725
- postformat: function (string) {
18726
- return string.replace(/\d/g, function (match) {
18727
- return symbolMap[match];
18728
- });
18729
- },
18730
- // refer http://ta.wikipedia.org/s/1er1
18731
- meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
18732
- meridiem : function (hour, minute, isLower) {
18733
- if (hour < 2) {
18734
- return ' யாமம்';
18735
- } else if (hour < 6) {
18736
- return ' வைகறை'; // வைகறை
18737
- } else if (hour < 10) {
18738
- return ' காலை'; // காலை
18739
- } else if (hour < 14) {
18740
- return ' நண்பகல்'; // நண்பகல்
18741
- } else if (hour < 18) {
18742
- return ' எற்பாடு'; // எற்பாடு
18743
- } else if (hour < 22) {
18744
- return ' மாலை'; // மாலை
18745
- } else {
18746
- return ' யாமம்';
18747
- }
18748
- },
18749
- meridiemHour : function (hour, meridiem) {
18750
- if (hour === 12) {
18751
- hour = 0;
18752
- }
18753
- if (meridiem === 'யாமம்') {
18754
- return hour < 2 ? hour : hour + 12;
18755
- } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
18756
- return hour;
18757
- } else if (meridiem === 'நண்பகல்') {
18758
- return hour >= 10 ? hour : hour + 12;
18759
- } else {
18760
- return hour + 12;
18761
- }
18762
- },
18763
- week : {
18764
- dow : 0, // Sunday is the first day of the week.
18765
- doy : 6 // The week that contains Jan 6th is the first week of the year.
18766
- }
18767
- });
18768
-
18769
- return ta;
18770
-
18771
- })));
18772
-
18773
-
18774
- /***/ }),
18775
-
18776
- /***/ "./node_modules/moment/locale/te.js":
18777
- /*!******************************************!*\
18778
- !*** ./node_modules/moment/locale/te.js ***!
18779
- \******************************************/
18780
- /*! no static exports found */
18781
- /***/ (function(module, exports, __webpack_require__) {
18782
-
18783
- //! moment.js locale configuration
18784
-
18785
- ;(function (global, factory) {
18786
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18787
- undefined
18788
- }(this, (function (moment) { 'use strict';
18789
-
18790
-
18791
- var te = moment.defineLocale('te', {
18792
- months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
18793
- monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
18794
- monthsParseExact : true,
18795
- weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
18796
- weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
18797
- weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
18798
- longDateFormat : {
18799
- LT : 'A h:mm',
18800
- LTS : 'A h:mm:ss',
18801
- L : 'DD/MM/YYYY',
18802
- LL : 'D MMMM YYYY',
18803
- LLL : 'D MMMM YYYY, A h:mm',
18804
- LLLL : 'dddd, D MMMM YYYY, A h:mm'
18805
- },
18806
- calendar : {
18807
- sameDay : '[నేడు] LT',
18808
- nextDay : '[రేపు] LT',
18809
- nextWeek : 'dddd, LT',
18810
- lastDay : '[నిన్న] LT',
18811
- lastWeek : '[గత] dddd, LT',
18812
- sameElse : 'L'
18813
- },
18814
- relativeTime : {
18815
- future : '%s లో',
18816
- past : '%s క్రితం',
18817
- s : 'కొన్ని క్షణాలు',
18818
- ss : '%d సెకన్లు',
18819
- m : 'ఒక నిమిషం',
18820
- mm : '%d నిమిషాలు',
18821
- h : 'ఒక గంట',
18822
- hh : '%d గంటలు',
18823
- d : 'ఒక రోజు',
18824
- dd : '%d రోజులు',
18825
- M : 'ఒక నెల',
18826
- MM : '%d నెలలు',
18827
- y : 'ఒక సంవత్సరం',
18828
- yy : '%d సంవత్సరాలు'
18829
- },
18830
- dayOfMonthOrdinalParse : /\d{1,2}వ/,
18831
- ordinal : '%dవ',
18832
- meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
18833
- meridiemHour : function (hour, meridiem) {
18834
- if (hour === 12) {
18835
- hour = 0;
18836
- }
18837
- if (meridiem === 'రాత్రి') {
18838
- return hour < 4 ? hour : hour + 12;
18839
- } else if (meridiem === 'ఉదయం') {
18840
- return hour;
18841
- } else if (meridiem === 'మధ్యాహ్నం') {
18842
- return hour >= 10 ? hour : hour + 12;
18843
- } else if (meridiem === 'సాయంత్రం') {
18844
- return hour + 12;
18845
- }
18846
- },
18847
- meridiem : function (hour, minute, isLower) {
18848
- if (hour < 4) {
18849
- return 'రాత్రి';
18850
- } else if (hour < 10) {
18851
- return 'ఉదయం';
18852
- } else if (hour < 17) {
18853
- return 'మధ్యాహ్నం';
18854
- } else if (hour < 20) {
18855
- return 'సాయంత్రం';
18856
- } else {
18857
- return 'రాత్రి';
18858
- }
18859
- },
18860
- week : {
18861
- dow : 0, // Sunday is the first day of the week.
18862
- doy : 6 // The week that contains Jan 6th is the first week of the year.
18863
- }
18864
- });
18865
-
18866
- return te;
18867
-
18868
- })));
18869
-
18870
-
18871
- /***/ }),
18872
-
18873
- /***/ "./node_modules/moment/locale/tet.js":
18874
- /*!*******************************************!*\
18875
- !*** ./node_modules/moment/locale/tet.js ***!
18876
- \*******************************************/
18877
- /*! no static exports found */
18878
- /***/ (function(module, exports, __webpack_require__) {
18879
-
18880
- //! moment.js locale configuration
18881
-
18882
- ;(function (global, factory) {
18883
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18884
- undefined
18885
- }(this, (function (moment) { 'use strict';
18886
-
18887
-
18888
- var tet = moment.defineLocale('tet', {
18889
- months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
18890
- monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
18891
- weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
18892
- weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
18893
- weekdaysMin : 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
18894
- longDateFormat : {
18895
- LT : 'HH:mm',
18896
- LTS : 'HH:mm:ss',
18897
- L : 'DD/MM/YYYY',
18898
- LL : 'D MMMM YYYY',
18899
- LLL : 'D MMMM YYYY HH:mm',
18900
- LLLL : 'dddd, D MMMM YYYY HH:mm'
18901
- },
18902
- calendar : {
18903
- sameDay: '[Ohin iha] LT',
18904
- nextDay: '[Aban iha] LT',
18905
- nextWeek: 'dddd [iha] LT',
18906
- lastDay: '[Horiseik iha] LT',
18907
- lastWeek: 'dddd [semana kotuk] [iha] LT',
18908
- sameElse: 'L'
18909
- },
18910
- relativeTime : {
18911
- future : 'iha %s',
18912
- past : '%s liuba',
18913
- s : 'minutu balun',
18914
- ss : 'minutu %d',
18915
- m : 'minutu ida',
18916
- mm : 'minutu %d',
18917
- h : 'oras ida',
18918
- hh : 'oras %d',
18919
- d : 'loron ida',
18920
- dd : 'loron %d',
18921
- M : 'fulan ida',
18922
- MM : 'fulan %d',
18923
- y : 'tinan ida',
18924
- yy : 'tinan %d'
18925
- },
18926
- dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
18927
- ordinal : function (number) {
18928
- var b = number % 10,
18929
- output = (~~(number % 100 / 10) === 1) ? 'th' :
18930
- (b === 1) ? 'st' :
18931
- (b === 2) ? 'nd' :
18932
- (b === 3) ? 'rd' : 'th';
18933
- return number + output;
18934
- },
18935
- week : {
18936
- dow : 1, // Monday is the first day of the week.
18937
- doy : 4 // The week that contains Jan 4th is the first week of the year.
18938
- }
18939
- });
18940
-
18941
- return tet;
18942
-
18943
- })));
18944
-
18945
-
18946
- /***/ }),
18947
-
18948
- /***/ "./node_modules/moment/locale/tg.js":
18949
- /*!******************************************!*\
18950
- !*** ./node_modules/moment/locale/tg.js ***!
18951
- \******************************************/
18952
- /*! no static exports found */
18953
- /***/ (function(module, exports, __webpack_require__) {
18954
-
18955
- //! moment.js locale configuration
18956
-
18957
- ;(function (global, factory) {
18958
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
18959
- undefined
18960
- }(this, (function (moment) { 'use strict';
18961
-
18962
-
18963
- var suffixes = {
18964
- 0: '-ум',
18965
- 1: '-ум',
18966
- 2: '-юм',
18967
- 3: '-юм',
18968
- 4: '-ум',
18969
- 5: '-ум',
18970
- 6: '-ум',
18971
- 7: '-ум',
18972
- 8: '-ум',
18973
- 9: '-ум',
18974
- 10: '-ум',
18975
- 12: '-ум',
18976
- 13: '-ум',
18977
- 20: '-ум',
18978
- 30: '-юм',
18979
- 40: '-ум',
18980
- 50: '-ум',
18981
- 60: '-ум',
18982
- 70: '-ум',
18983
- 80: '-ум',
18984
- 90: '-ум',
18985
- 100: '-ум'
18986
- };
18987
-
18988
- var tg = moment.defineLocale('tg', {
18989
- months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
18990
- monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
18991
- weekdays : 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),
18992
- weekdaysShort : 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
18993
- weekdaysMin : 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
18994
- longDateFormat : {
18995
- LT : 'HH:mm',
18996
- LTS : 'HH:mm:ss',
18997
- L : 'DD/MM/YYYY',
18998
- LL : 'D MMMM YYYY',
18999
- LLL : 'D MMMM YYYY HH:mm',
19000
- LLLL : 'dddd, D MMMM YYYY HH:mm'
19001
- },
19002
- calendar : {
19003
- sameDay : '[Имрӯз соати] LT',
19004
- nextDay : '[Пагоҳ соати] LT',
19005
- lastDay : '[Дирӯз соати] LT',
19006
- nextWeek : 'dddd[и] [ҳафтаи оянда соати] LT',
19007
- lastWeek : 'dddd[и] [ҳафтаи гузашта соати] LT',
19008
- sameElse : 'L'
19009
- },
19010
- relativeTime : {
19011
- future : 'баъди %s',
19012
- past : '%s пеш',
19013
- s : 'якчанд сония',
19014
- m : 'як дақиқа',
19015
- mm : '%d дақиқа',
19016
- h : 'як соат',
19017
- hh : '%d соат',
19018
- d : 'як рӯз',
19019
- dd : '%d рӯз',
19020
- M : 'як моҳ',
19021
- MM : '%d моҳ',
19022
- y : 'як сол',
19023
- yy : '%d сол'
19024
- },
19025
- meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
19026
- meridiemHour: function (hour, meridiem) {
19027
- if (hour === 12) {
19028
- hour = 0;
19029
- }
19030
- if (meridiem === 'шаб') {
19031
- return hour < 4 ? hour : hour + 12;
19032
- } else if (meridiem === 'субҳ') {
19033
- return hour;
19034
- } else if (meridiem === 'рӯз') {
19035
- return hour >= 11 ? hour : hour + 12;
19036
- } else if (meridiem === 'бегоҳ') {
19037
- return hour + 12;
19038
- }
19039
- },
19040
- meridiem: function (hour, minute, isLower) {
19041
- if (hour < 4) {
19042
- return 'шаб';
19043
- } else if (hour < 11) {
19044
- return 'субҳ';
19045
- } else if (hour < 16) {
19046
- return 'рӯз';
19047
- } else if (hour < 19) {
19048
- return 'бегоҳ';
19049
- } else {
19050
- return 'шаб';
19051
- }
19052
- },
19053
- dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
19054
- ordinal: function (number) {
19055
- var a = number % 10,
19056
- b = number >= 100 ? 100 : null;
19057
- return number + (suffixes[number] || suffixes[a] || suffixes[b]);
19058
- },
19059
- week : {
19060
- dow : 1, // Monday is the first day of the week.
19061
- doy : 7 // The week that contains Jan 1th is the first week of the year.
19062
- }
19063
- });
19064
-
19065
- return tg;
19066
-
19067
- })));
19068
-
19069
-
19070
- /***/ }),
19071
-
19072
- /***/ "./node_modules/moment/locale/th.js":
19073
- /*!******************************************!*\
19074
- !*** ./node_modules/moment/locale/th.js ***!
19075
- \******************************************/
19076
- /*! no static exports found */
19077
- /***/ (function(module, exports, __webpack_require__) {
19078
-
19079
- //! moment.js locale configuration
19080
-
19081
- ;(function (global, factory) {
19082
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19083
- undefined
19084
- }(this, (function (moment) { 'use strict';
19085
-
19086
-
19087
- var th = moment.defineLocale('th', {
19088
- months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
19089
- monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
19090
- monthsParseExact: true,
19091
- weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
19092
- weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
19093
- weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
19094
- weekdaysParseExact : true,
19095
- longDateFormat : {
19096
- LT : 'H:mm',
19097
- LTS : 'H:mm:ss',
19098
- L : 'DD/MM/YYYY',
19099
- LL : 'D MMMM YYYY',
19100
- LLL : 'D MMMM YYYY เวลา H:mm',
19101
- LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
19102
- },
19103
- meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
19104
- isPM: function (input) {
19105
- return input === 'หลังเที่ยง';
19106
- },
19107
- meridiem : function (hour, minute, isLower) {
19108
- if (hour < 12) {
19109
- return 'ก่อนเที่ยง';
19110
- } else {
19111
- return 'หลังเที่ยง';
19112
- }
19113
- },
19114
- calendar : {
19115
- sameDay : '[วันนี้ เวลา] LT',
19116
- nextDay : '[พรุ่งนี้ เวลา] LT',
19117
- nextWeek : 'dddd[หน้า เวลา] LT',
19118
- lastDay : '[เมื่อวานนี้ เวลา] LT',
19119
- lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
19120
- sameElse : 'L'
19121
- },
19122
- relativeTime : {
19123
- future : 'อีก %s',
19124
- past : '%sที่แล้ว',
19125
- s : 'ไม่กี่วินาที',
19126
- ss : '%d วินาที',
19127
- m : '1 นาที',
19128
- mm : '%d นาที',
19129
- h : '1 ชั่วโมง',
19130
- hh : '%d ชั่วโมง',
19131
- d : '1 วัน',
19132
- dd : '%d วัน',
19133
- M : '1 เดือน',
19134
- MM : '%d เดือน',
19135
- y : '1 ปี',
19136
- yy : '%d ปี'
19137
- }
19138
- });
19139
-
19140
- return th;
19141
-
19142
- })));
19143
-
19144
-
19145
- /***/ }),
19146
-
19147
- /***/ "./node_modules/moment/locale/tl-ph.js":
19148
- /*!*********************************************!*\
19149
- !*** ./node_modules/moment/locale/tl-ph.js ***!
19150
- \*********************************************/
19151
- /*! no static exports found */
19152
- /***/ (function(module, exports, __webpack_require__) {
19153
-
19154
- //! moment.js locale configuration
19155
-
19156
- ;(function (global, factory) {
19157
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19158
- undefined
19159
- }(this, (function (moment) { 'use strict';
19160
-
19161
-
19162
- var tlPh = moment.defineLocale('tl-ph', {
19163
- months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
19164
- monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
19165
- weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
19166
- weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
19167
- weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
19168
- longDateFormat : {
19169
- LT : 'HH:mm',
19170
- LTS : 'HH:mm:ss',
19171
- L : 'MM/D/YYYY',
19172
- LL : 'MMMM D, YYYY',
19173
- LLL : 'MMMM D, YYYY HH:mm',
19174
- LLLL : 'dddd, MMMM DD, YYYY HH:mm'
19175
- },
19176
- calendar : {
19177
- sameDay: 'LT [ngayong araw]',
19178
- nextDay: '[Bukas ng] LT',
19179
- nextWeek: 'LT [sa susunod na] dddd',
19180
- lastDay: 'LT [kahapon]',
19181
- lastWeek: 'LT [noong nakaraang] dddd',
19182
- sameElse: 'L'
19183
- },
19184
- relativeTime : {
19185
- future : 'sa loob ng %s',
19186
- past : '%s ang nakalipas',
19187
- s : 'ilang segundo',
19188
- ss : '%d segundo',
19189
- m : 'isang minuto',
19190
- mm : '%d minuto',
19191
- h : 'isang oras',
19192
- hh : '%d oras',
19193
- d : 'isang araw',
19194
- dd : '%d araw',
19195
- M : 'isang buwan',
19196
- MM : '%d buwan',
19197
- y : 'isang taon',
19198
- yy : '%d taon'
19199
- },
19200
- dayOfMonthOrdinalParse: /\d{1,2}/,
19201
- ordinal : function (number) {
19202
- return number;
19203
- },
19204
- week : {
19205
- dow : 1, // Monday is the first day of the week.
19206
- doy : 4 // The week that contains Jan 4th is the first week of the year.
19207
- }
19208
- });
19209
-
19210
- return tlPh;
19211
-
19212
- })));
19213
-
19214
-
19215
- /***/ }),
19216
-
19217
- /***/ "./node_modules/moment/locale/tlh.js":
19218
- /*!*******************************************!*\
19219
- !*** ./node_modules/moment/locale/tlh.js ***!
19220
- \*******************************************/
19221
- /*! no static exports found */
19222
- /***/ (function(module, exports, __webpack_require__) {
19223
-
19224
- //! moment.js locale configuration
19225
-
19226
- ;(function (global, factory) {
19227
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19228
- undefined
19229
- }(this, (function (moment) { 'use strict';
19230
-
19231
-
19232
- var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
19233
-
19234
- function translateFuture(output) {
19235
- var time = output;
19236
- time = (output.indexOf('jaj') !== -1) ?
19237
- time.slice(0, -3) + 'leS' :
19238
- (output.indexOf('jar') !== -1) ?
19239
- time.slice(0, -3) + 'waQ' :
19240
- (output.indexOf('DIS') !== -1) ?
19241
- time.slice(0, -3) + 'nem' :
19242
- time + ' pIq';
19243
- return time;
19244
- }
19245
-
19246
- function translatePast(output) {
19247
- var time = output;
19248
- time = (output.indexOf('jaj') !== -1) ?
19249
- time.slice(0, -3) + 'Hu’' :
19250
- (output.indexOf('jar') !== -1) ?
19251
- time.slice(0, -3) + 'wen' :
19252
- (output.indexOf('DIS') !== -1) ?
19253
- time.slice(0, -3) + 'ben' :
19254
- time + ' ret';
19255
- return time;
19256
- }
19257
-
19258
- function translate(number, withoutSuffix, string, isFuture) {
19259
- var numberNoun = numberAsNoun(number);
19260
- switch (string) {
19261
- case 'ss':
19262
- return numberNoun + ' lup';
19263
- case 'mm':
19264
- return numberNoun + ' tup';
19265
- case 'hh':
19266
- return numberNoun + ' rep';
19267
- case 'dd':
19268
- return numberNoun + ' jaj';
19269
- case 'MM':
19270
- return numberNoun + ' jar';
19271
- case 'yy':
19272
- return numberNoun + ' DIS';
19273
- }
19274
- }
19275
-
19276
- function numberAsNoun(number) {
19277
- var hundred = Math.floor((number % 1000) / 100),
19278
- ten = Math.floor((number % 100) / 10),
19279
- one = number % 10,
19280
- word = '';
19281
- if (hundred > 0) {
19282
- word += numbersNouns[hundred] + 'vatlh';
19283
- }
19284
- if (ten > 0) {
19285
- word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
19286
- }
19287
- if (one > 0) {
19288
- word += ((word !== '') ? ' ' : '') + numbersNouns[one];
19289
- }
19290
- return (word === '') ? 'pagh' : word;
19291
- }
19292
-
19293
- var tlh = moment.defineLocale('tlh', {
19294
- months : 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),
19295
- monthsShort : 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),
19296
- monthsParseExact : true,
19297
- weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
19298
- weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
19299
- weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
19300
- longDateFormat : {
19301
- LT : 'HH:mm',
19302
- LTS : 'HH:mm:ss',
19303
- L : 'DD.MM.YYYY',
19304
- LL : 'D MMMM YYYY',
19305
- LLL : 'D MMMM YYYY HH:mm',
19306
- LLLL : 'dddd, D MMMM YYYY HH:mm'
19307
- },
19308
- calendar : {
19309
- sameDay: '[DaHjaj] LT',
19310
- nextDay: '[wa’leS] LT',
19311
- nextWeek: 'LLL',
19312
- lastDay: '[wa’Hu’] LT',
19313
- lastWeek: 'LLL',
19314
- sameElse: 'L'
19315
- },
19316
- relativeTime : {
19317
- future : translateFuture,
19318
- past : translatePast,
19319
- s : 'puS lup',
19320
- ss : translate,
19321
- m : 'wa’ tup',
19322
- mm : translate,
19323
- h : 'wa’ rep',
19324
- hh : translate,
19325
- d : 'wa’ jaj',
19326
- dd : translate,
19327
- M : 'wa’ jar',
19328
- MM : translate,
19329
- y : 'wa’ DIS',
19330
- yy : translate
19331
- },
19332
- dayOfMonthOrdinalParse: /\d{1,2}\./,
19333
- ordinal : '%d.',
19334
- week : {
19335
- dow : 1, // Monday is the first day of the week.
19336
- doy : 4 // The week that contains Jan 4th is the first week of the year.
19337
- }
19338
- });
19339
-
19340
- return tlh;
19341
-
19342
- })));
19343
-
19344
-
19345
- /***/ }),
19346
-
19347
- /***/ "./node_modules/moment/locale/tr.js":
19348
- /*!******************************************!*\
19349
- !*** ./node_modules/moment/locale/tr.js ***!
19350
- \******************************************/
19351
- /*! no static exports found */
19352
- /***/ (function(module, exports, __webpack_require__) {
19353
-
19354
-
19355
- ;(function (global, factory) {
19356
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19357
- undefined
19358
- }(this, (function (moment) { 'use strict';
19359
-
19360
- var suffixes = {
19361
- 1: '\'inci',
19362
- 5: '\'inci',
19363
- 8: '\'inci',
19364
- 70: '\'inci',
19365
- 80: '\'inci',
19366
- 2: '\'nci',
19367
- 7: '\'nci',
19368
- 20: '\'nci',
19369
- 50: '\'nci',
19370
- 3: '\'üncü',
19371
- 4: '\'üncü',
19372
- 100: '\'üncü',
19373
- 6: '\'ncı',
19374
- 9: '\'uncu',
19375
- 10: '\'uncu',
19376
- 30: '\'uncu',
19377
- 60: '\'ıncı',
19378
- 90: '\'ıncı'
19379
- };
19380
-
19381
- var tr = moment.defineLocale('tr', {
19382
- months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
19383
- monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
19384
- weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
19385
- weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
19386
- weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
19387
- longDateFormat : {
19388
- LT : 'HH:mm',
19389
- LTS : 'HH:mm:ss',
19390
- L : 'DD.MM.YYYY',
19391
- LL : 'D MMMM YYYY',
19392
- LLL : 'D MMMM YYYY HH:mm',
19393
- LLLL : 'dddd, D MMMM YYYY HH:mm'
19394
- },
19395
- calendar : {
19396
- sameDay : '[bugün saat] LT',
19397
- nextDay : '[yarın saat] LT',
19398
- nextWeek : '[gelecek] dddd [saat] LT',
19399
- lastDay : '[dün] LT',
19400
- lastWeek : '[geçen] dddd [saat] LT',
19401
- sameElse : 'L'
19402
- },
19403
- relativeTime : {
19404
- future : '%s sonra',
19405
- past : '%s önce',
19406
- s : 'birkaç saniye',
19407
- ss : '%d saniye',
19408
- m : 'bir dakika',
19409
- mm : '%d dakika',
19410
- h : 'bir saat',
19411
- hh : '%d saat',
19412
- d : 'bir gün',
19413
- dd : '%d gün',
19414
- M : 'bir ay',
19415
- MM : '%d ay',
19416
- y : 'bir yıl',
19417
- yy : '%d yıl'
19418
- },
19419
- ordinal: function (number, period) {
19420
- switch (period) {
19421
- case 'd':
19422
- case 'D':
19423
- case 'Do':
19424
- case 'DD':
19425
- return number;
19426
- default:
19427
- if (number === 0) { // special case for zero
19428
- return number + '\'ıncı';
19429
- }
19430
- var a = number % 10,
19431
- b = number % 100 - a,
19432
- c = number >= 100 ? 100 : null;
19433
- return number + (suffixes[a] || suffixes[b] || suffixes[c]);
19434
- }
19435
- },
19436
- week : {
19437
- dow : 1, // Monday is the first day of the week.
19438
- doy : 7 // The week that contains Jan 7th is the first week of the year.
19439
- }
19440
- });
19441
-
19442
- return tr;
19443
-
19444
- })));
19445
-
19446
-
19447
- /***/ }),
19448
-
19449
- /***/ "./node_modules/moment/locale/tzl.js":
19450
- /*!*******************************************!*\
19451
- !*** ./node_modules/moment/locale/tzl.js ***!
19452
- \*******************************************/
19453
- /*! no static exports found */
19454
- /***/ (function(module, exports, __webpack_require__) {
19455
-
19456
- //! moment.js locale configuration
19457
-
19458
- ;(function (global, factory) {
19459
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19460
- undefined
19461
- }(this, (function (moment) { 'use strict';
19462
-
19463
-
19464
- // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
19465
- // This is currently too difficult (maybe even impossible) to add.
19466
- var tzl = moment.defineLocale('tzl', {
19467
- months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
19468
- monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
19469
- weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
19470
- weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
19471
- weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
19472
- longDateFormat : {
19473
- LT : 'HH.mm',
19474
- LTS : 'HH.mm.ss',
19475
- L : 'DD.MM.YYYY',
19476
- LL : 'D. MMMM [dallas] YYYY',
19477
- LLL : 'D. MMMM [dallas] YYYY HH.mm',
19478
- LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
19479
- },
19480
- meridiemParse: /d\'o|d\'a/i,
19481
- isPM : function (input) {
19482
- return 'd\'o' === input.toLowerCase();
19483
- },
19484
- meridiem : function (hours, minutes, isLower) {
19485
- if (hours > 11) {
19486
- return isLower ? 'd\'o' : 'D\'O';
19487
- } else {
19488
- return isLower ? 'd\'a' : 'D\'A';
19489
- }
19490
- },
19491
- calendar : {
19492
- sameDay : '[oxhi à] LT',
19493
- nextDay : '[demà à] LT',
19494
- nextWeek : 'dddd [à] LT',
19495
- lastDay : '[ieiri à] LT',
19496
- lastWeek : '[sür el] dddd [lasteu à] LT',
19497
- sameElse : 'L'
19498
- },
19499
- relativeTime : {
19500
- future : 'osprei %s',
19501
- past : 'ja%s',
19502
- s : processRelativeTime,
19503
- ss : processRelativeTime,
19504
- m : processRelativeTime,
19505
- mm : processRelativeTime,
19506
- h : processRelativeTime,
19507
- hh : processRelativeTime,
19508
- d : processRelativeTime,
19509
- dd : processRelativeTime,
19510
- M : processRelativeTime,
19511
- MM : processRelativeTime,
19512
- y : processRelativeTime,
19513
- yy : processRelativeTime
19514
- },
19515
- dayOfMonthOrdinalParse: /\d{1,2}\./,
19516
- ordinal : '%d.',
19517
- week : {
19518
- dow : 1, // Monday is the first day of the week.
19519
- doy : 4 // The week that contains Jan 4th is the first week of the year.
19520
- }
19521
- });
19522
-
19523
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
19524
- var format = {
19525
- 's': ['viensas secunds', '\'iensas secunds'],
19526
- 'ss': [number + ' secunds', '' + number + ' secunds'],
19527
- 'm': ['\'n míut', '\'iens míut'],
19528
- 'mm': [number + ' míuts', '' + number + ' míuts'],
19529
- 'h': ['\'n þora', '\'iensa þora'],
19530
- 'hh': [number + ' þoras', '' + number + ' þoras'],
19531
- 'd': ['\'n ziua', '\'iensa ziua'],
19532
- 'dd': [number + ' ziuas', '' + number + ' ziuas'],
19533
- 'M': ['\'n mes', '\'iens mes'],
19534
- 'MM': [number + ' mesen', '' + number + ' mesen'],
19535
- 'y': ['\'n ar', '\'iens ar'],
19536
- 'yy': [number + ' ars', '' + number + ' ars']
19537
- };
19538
- return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
19539
- }
19540
-
19541
- return tzl;
19542
-
19543
- })));
19544
-
19545
-
19546
- /***/ }),
19547
-
19548
- /***/ "./node_modules/moment/locale/tzm-latn.js":
19549
- /*!************************************************!*\
19550
- !*** ./node_modules/moment/locale/tzm-latn.js ***!
19551
- \************************************************/
19552
- /*! no static exports found */
19553
- /***/ (function(module, exports, __webpack_require__) {
19554
-
19555
- //! moment.js locale configuration
19556
-
19557
- ;(function (global, factory) {
19558
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19559
- undefined
19560
- }(this, (function (moment) { 'use strict';
19561
-
19562
-
19563
- var tzmLatn = moment.defineLocale('tzm-latn', {
19564
- months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
19565
- monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
19566
- weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
19567
- weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
19568
- weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
19569
- longDateFormat : {
19570
- LT : 'HH:mm',
19571
- LTS : 'HH:mm:ss',
19572
- L : 'DD/MM/YYYY',
19573
- LL : 'D MMMM YYYY',
19574
- LLL : 'D MMMM YYYY HH:mm',
19575
- LLLL : 'dddd D MMMM YYYY HH:mm'
19576
- },
19577
- calendar : {
19578
- sameDay: '[asdkh g] LT',
19579
- nextDay: '[aska g] LT',
19580
- nextWeek: 'dddd [g] LT',
19581
- lastDay: '[assant g] LT',
19582
- lastWeek: 'dddd [g] LT',
19583
- sameElse: 'L'
19584
- },
19585
- relativeTime : {
19586
- future : 'dadkh s yan %s',
19587
- past : 'yan %s',
19588
- s : 'imik',
19589
- ss : '%d imik',
19590
- m : 'minuḍ',
19591
- mm : '%d minuḍ',
19592
- h : 'saɛa',
19593
- hh : '%d tassaɛin',
19594
- d : 'ass',
19595
- dd : '%d ossan',
19596
- M : 'ayowr',
19597
- MM : '%d iyyirn',
19598
- y : 'asgas',
19599
- yy : '%d isgasn'
19600
- },
19601
- week : {
19602
- dow : 6, // Saturday is the first day of the week.
19603
- doy : 12 // The week that contains Jan 12th is the first week of the year.
19604
- }
19605
- });
19606
-
19607
- return tzmLatn;
19608
-
19609
- })));
19610
-
19611
-
19612
- /***/ }),
19613
-
19614
- /***/ "./node_modules/moment/locale/tzm.js":
19615
- /*!*******************************************!*\
19616
- !*** ./node_modules/moment/locale/tzm.js ***!
19617
- \*******************************************/
19618
- /*! no static exports found */
19619
- /***/ (function(module, exports, __webpack_require__) {
19620
-
19621
- //! moment.js locale configuration
19622
-
19623
- ;(function (global, factory) {
19624
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19625
- undefined
19626
- }(this, (function (moment) { 'use strict';
19627
-
19628
-
19629
- var tzm = moment.defineLocale('tzm', {
19630
- months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
19631
- monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
19632
- weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
19633
- weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
19634
- weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
19635
- longDateFormat : {
19636
- LT : 'HH:mm',
19637
- LTS: 'HH:mm:ss',
19638
- L : 'DD/MM/YYYY',
19639
- LL : 'D MMMM YYYY',
19640
- LLL : 'D MMMM YYYY HH:mm',
19641
- LLLL : 'dddd D MMMM YYYY HH:mm'
19642
- },
19643
- calendar : {
19644
- sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
19645
- nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
19646
- nextWeek: 'dddd [ⴴ] LT',
19647
- lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
19648
- lastWeek: 'dddd [ⴴ] LT',
19649
- sameElse: 'L'
19650
- },
19651
- relativeTime : {
19652
- future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
19653
- past : 'ⵢⴰⵏ %s',
19654
- s : 'ⵉⵎⵉⴽ',
19655
- ss : '%d ⵉⵎⵉⴽ',
19656
- m : 'ⵎⵉⵏⵓⴺ',
19657
- mm : '%d ⵎⵉⵏⵓⴺ',
19658
- h : 'ⵙⴰⵄⴰ',
19659
- hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
19660
- d : 'ⴰⵙⵙ',
19661
- dd : '%d oⵙⵙⴰⵏ',
19662
- M : 'ⴰⵢoⵓⵔ',
19663
- MM : '%d ⵉⵢⵢⵉⵔⵏ',
19664
- y : 'ⴰⵙⴳⴰⵙ',
19665
- yy : '%d ⵉⵙⴳⴰⵙⵏ'
19666
- },
19667
- week : {
19668
- dow : 6, // Saturday is the first day of the week.
19669
- doy : 12 // The week that contains Jan 12th is the first week of the year.
19670
- }
19671
- });
19672
-
19673
- return tzm;
19674
-
19675
- })));
19676
-
19677
-
19678
- /***/ }),
19679
-
19680
- /***/ "./node_modules/moment/locale/ug-cn.js":
19681
- /*!*********************************************!*\
19682
- !*** ./node_modules/moment/locale/ug-cn.js ***!
19683
- \*********************************************/
19684
- /*! no static exports found */
19685
- /***/ (function(module, exports, __webpack_require__) {
19686
-
19687
- //! moment.js language configuration
19688
-
19689
- ;(function (global, factory) {
19690
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19691
- undefined
19692
- }(this, (function (moment) { 'use strict';
19693
-
19694
-
19695
- var ugCn = moment.defineLocale('ug-cn', {
19696
- months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
19697
- '_'
19698
- ),
19699
- monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
19700
- '_'
19701
- ),
19702
- weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
19703
- '_'
19704
- ),
19705
- weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
19706
- weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
19707
- longDateFormat: {
19708
- LT: 'HH:mm',
19709
- LTS: 'HH:mm:ss',
19710
- L: 'YYYY-MM-DD',
19711
- LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
19712
- LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
19713
- LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'
19714
- },
19715
- meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
19716
- meridiemHour: function (hour, meridiem) {
19717
- if (hour === 12) {
19718
- hour = 0;
19719
- }
19720
- if (
19721
- meridiem === 'يېرىم كېچە' ||
19722
- meridiem === 'سەھەر' ||
19723
- meridiem === 'چۈشتىن بۇرۇن'
19724
- ) {
19725
- return hour;
19726
- } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
19727
- return hour + 12;
19728
- } else {
19729
- return hour >= 11 ? hour : hour + 12;
19730
- }
19731
- },
19732
- meridiem: function (hour, minute, isLower) {
19733
- var hm = hour * 100 + minute;
19734
- if (hm < 600) {
19735
- return 'يېرىم كېچە';
19736
- } else if (hm < 900) {
19737
- return 'سەھەر';
19738
- } else if (hm < 1130) {
19739
- return 'چۈشتىن بۇرۇن';
19740
- } else if (hm < 1230) {
19741
- return 'چۈش';
19742
- } else if (hm < 1800) {
19743
- return 'چۈشتىن كېيىن';
19744
- } else {
19745
- return 'كەچ';
19746
- }
19747
- },
19748
- calendar: {
19749
- sameDay: '[بۈگۈن سائەت] LT',
19750
- nextDay: '[ئەتە سائەت] LT',
19751
- nextWeek: '[كېلەركى] dddd [سائەت] LT',
19752
- lastDay: '[تۆنۈگۈن] LT',
19753
- lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
19754
- sameElse: 'L'
19755
- },
19756
- relativeTime: {
19757
- future: '%s كېيىن',
19758
- past: '%s بۇرۇن',
19759
- s: 'نەچچە سېكونت',
19760
- ss: '%d سېكونت',
19761
- m: 'بىر مىنۇت',
19762
- mm: '%d مىنۇت',
19763
- h: 'بىر سائەت',
19764
- hh: '%d سائەت',
19765
- d: 'بىر كۈن',
19766
- dd: '%d كۈن',
19767
- M: 'بىر ئاي',
19768
- MM: '%d ئاي',
19769
- y: 'بىر يىل',
19770
- yy: '%d يىل'
19771
- },
19772
-
19773
- dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
19774
- ordinal: function (number, period) {
19775
- switch (period) {
19776
- case 'd':
19777
- case 'D':
19778
- case 'DDD':
19779
- return number + '-كۈنى';
19780
- case 'w':
19781
- case 'W':
19782
- return number + '-ھەپتە';
19783
- default:
19784
- return number;
19785
- }
19786
- },
19787
- preparse: function (string) {
19788
- return string.replace(/،/g, ',');
19789
- },
19790
- postformat: function (string) {
19791
- return string.replace(/,/g, '،');
19792
- },
19793
- week: {
19794
- // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
19795
- dow: 1, // Monday is the first day of the week.
19796
- doy: 7 // The week that contains Jan 1st is the first week of the year.
19797
- }
19798
- });
19799
-
19800
- return ugCn;
19801
-
19802
- })));
19803
-
19804
-
19805
- /***/ }),
19806
-
19807
- /***/ "./node_modules/moment/locale/uk.js":
19808
- /*!******************************************!*\
19809
- !*** ./node_modules/moment/locale/uk.js ***!
19810
- \******************************************/
19811
- /*! no static exports found */
19812
- /***/ (function(module, exports, __webpack_require__) {
19813
-
19814
- //! moment.js locale configuration
19815
-
19816
- ;(function (global, factory) {
19817
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19818
- undefined
19819
- }(this, (function (moment) { 'use strict';
19820
-
19821
-
19822
- function plural(word, num) {
19823
- var forms = word.split('_');
19824
- return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
19825
- }
19826
- function relativeTimeWithPlural(number, withoutSuffix, key) {
19827
- var format = {
19828
- 'ss': withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
19829
- 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
19830
- 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
19831
- 'dd': 'день_дні_днів',
19832
- 'MM': 'місяць_місяці_місяців',
19833
- 'yy': 'рік_роки_років'
19834
- };
19835
- if (key === 'm') {
19836
- return withoutSuffix ? 'хвилина' : 'хвилину';
19837
- }
19838
- else if (key === 'h') {
19839
- return withoutSuffix ? 'година' : 'годину';
19840
- }
19841
- else {
19842
- return number + ' ' + plural(format[key], +number);
19843
- }
19844
- }
19845
- function weekdaysCaseReplace(m, format) {
19846
- var weekdays = {
19847
- 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
19848
- 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
19849
- 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
19850
- };
19851
-
19852
- if (m === true) {
19853
- return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
19854
- }
19855
- if (!m) {
19856
- return weekdays['nominative'];
19857
- }
19858
-
19859
- var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
19860
- 'accusative' :
19861
- ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
19862
- 'genitive' :
19863
- 'nominative');
19864
- return weekdays[nounCase][m.day()];
19865
- }
19866
- function processHoursFunction(str) {
19867
- return function () {
19868
- return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
19869
- };
19870
- }
19871
-
19872
- var uk = moment.defineLocale('uk', {
19873
- months : {
19874
- 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
19875
- 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
19876
- },
19877
- monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
19878
- weekdays : weekdaysCaseReplace,
19879
- weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
19880
- weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
19881
- longDateFormat : {
19882
- LT : 'HH:mm',
19883
- LTS : 'HH:mm:ss',
19884
- L : 'DD.MM.YYYY',
19885
- LL : 'D MMMM YYYY р.',
19886
- LLL : 'D MMMM YYYY р., HH:mm',
19887
- LLLL : 'dddd, D MMMM YYYY р., HH:mm'
19888
- },
19889
- calendar : {
19890
- sameDay: processHoursFunction('[Сьогодні '),
19891
- nextDay: processHoursFunction('[Завтра '),
19892
- lastDay: processHoursFunction('[Вчора '),
19893
- nextWeek: processHoursFunction('[У] dddd ['),
19894
- lastWeek: function () {
19895
- switch (this.day()) {
19896
- case 0:
19897
- case 3:
19898
- case 5:
19899
- case 6:
19900
- return processHoursFunction('[Минулої] dddd [').call(this);
19901
- case 1:
19902
- case 2:
19903
- case 4:
19904
- return processHoursFunction('[Минулого] dddd [').call(this);
19905
- }
19906
- },
19907
- sameElse: 'L'
19908
- },
19909
- relativeTime : {
19910
- future : 'за %s',
19911
- past : '%s тому',
19912
- s : 'декілька секунд',
19913
- ss : relativeTimeWithPlural,
19914
- m : relativeTimeWithPlural,
19915
- mm : relativeTimeWithPlural,
19916
- h : 'годину',
19917
- hh : relativeTimeWithPlural,
19918
- d : 'день',
19919
- dd : relativeTimeWithPlural,
19920
- M : 'місяць',
19921
- MM : relativeTimeWithPlural,
19922
- y : 'рік',
19923
- yy : relativeTimeWithPlural
19924
- },
19925
- // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
19926
- meridiemParse: /ночі|ранку|дня|вечора/,
19927
- isPM: function (input) {
19928
- return /^(дня|вечора)$/.test(input);
19929
- },
19930
- meridiem : function (hour, minute, isLower) {
19931
- if (hour < 4) {
19932
- return 'ночі';
19933
- } else if (hour < 12) {
19934
- return 'ранку';
19935
- } else if (hour < 17) {
19936
- return 'дня';
19937
- } else {
19938
- return 'вечора';
19939
- }
19940
- },
19941
- dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
19942
- ordinal: function (number, period) {
19943
- switch (period) {
19944
- case 'M':
19945
- case 'd':
19946
- case 'DDD':
19947
- case 'w':
19948
- case 'W':
19949
- return number + '-й';
19950
- case 'D':
19951
- return number + '-го';
19952
- default:
19953
- return number;
19954
- }
19955
- },
19956
- week : {
19957
- dow : 1, // Monday is the first day of the week.
19958
- doy : 7 // The week that contains Jan 7th is the first week of the year.
19959
- }
19960
- });
19961
-
19962
- return uk;
19963
-
19964
- })));
19965
-
19966
-
19967
- /***/ }),
19968
-
19969
- /***/ "./node_modules/moment/locale/ur.js":
19970
- /*!******************************************!*\
19971
- !*** ./node_modules/moment/locale/ur.js ***!
19972
- \******************************************/
19973
- /*! no static exports found */
19974
- /***/ (function(module, exports, __webpack_require__) {
19975
-
19976
- //! moment.js locale configuration
19977
-
19978
- ;(function (global, factory) {
19979
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
19980
- undefined
19981
- }(this, (function (moment) { 'use strict';
19982
-
19983
-
19984
- var months = [
19985
- 'جنوری',
19986
- 'فروری',
19987
- 'مارچ',
19988
- 'اپریل',
19989
- 'مئی',
19990
- 'جون',
19991
- 'جولائی',
19992
- 'اگست',
19993
- 'ستمبر',
19994
- 'اکتوبر',
19995
- 'نومبر',
19996
- 'دسمبر'
19997
- ];
19998
- var days = [
19999
- 'اتوار',
20000
- 'پیر',
20001
- 'منگل',
20002
- 'بدھ',
20003
- 'جمعرات',
20004
- 'جمعہ',
20005
- 'ہفتہ'
20006
- ];
20007
-
20008
- var ur = moment.defineLocale('ur', {
20009
- months : months,
20010
- monthsShort : months,
20011
- weekdays : days,
20012
- weekdaysShort : days,
20013
- weekdaysMin : days,
20014
- longDateFormat : {
20015
- LT : 'HH:mm',
20016
- LTS : 'HH:mm:ss',
20017
- L : 'DD/MM/YYYY',
20018
- LL : 'D MMMM YYYY',
20019
- LLL : 'D MMMM YYYY HH:mm',
20020
- LLLL : 'dddd، D MMMM YYYY HH:mm'
20021
- },
20022
- meridiemParse: /صبح|شام/,
20023
- isPM : function (input) {
20024
- return 'شام' === input;
20025
- },
20026
- meridiem : function (hour, minute, isLower) {
20027
- if (hour < 12) {
20028
- return 'صبح';
20029
- }
20030
- return 'شام';
20031
- },
20032
- calendar : {
20033
- sameDay : '[آج بوقت] LT',
20034
- nextDay : '[کل بوقت] LT',
20035
- nextWeek : 'dddd [بوقت] LT',
20036
- lastDay : '[گذشتہ روز بوقت] LT',
20037
- lastWeek : '[گذشتہ] dddd [بوقت] LT',
20038
- sameElse : 'L'
20039
- },
20040
- relativeTime : {
20041
- future : '%s بعد',
20042
- past : '%s قبل',
20043
- s : 'چند سیکنڈ',
20044
- ss : '%d سیکنڈ',
20045
- m : 'ایک منٹ',
20046
- mm : '%d منٹ',
20047
- h : 'ایک گھنٹہ',
20048
- hh : '%d گھنٹے',
20049
- d : 'ایک دن',
20050
- dd : '%d دن',
20051
- M : 'ایک ماہ',
20052
- MM : '%d ماہ',
20053
- y : 'ایک سال',
20054
- yy : '%d سال'
20055
- },
20056
- preparse: function (string) {
20057
- return string.replace(/،/g, ',');
20058
- },
20059
- postformat: function (string) {
20060
- return string.replace(/,/g, '،');
20061
- },
20062
- week : {
20063
- dow : 1, // Monday is the first day of the week.
20064
- doy : 4 // The week that contains Jan 4th is the first week of the year.
20065
- }
20066
- });
20067
-
20068
- return ur;
20069
-
20070
- })));
20071
-
20072
-
20073
- /***/ }),
20074
-
20075
- /***/ "./node_modules/moment/locale/uz-latn.js":
20076
- /*!***********************************************!*\
20077
- !*** ./node_modules/moment/locale/uz-latn.js ***!
20078
- \***********************************************/
20079
- /*! no static exports found */
20080
- /***/ (function(module, exports, __webpack_require__) {
20081
-
20082
- //! moment.js locale configuration
20083
-
20084
- ;(function (global, factory) {
20085
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20086
- undefined
20087
- }(this, (function (moment) { 'use strict';
20088
-
20089
-
20090
- var uzLatn = moment.defineLocale('uz-latn', {
20091
- months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
20092
- monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
20093
- weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
20094
- weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
20095
- weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
20096
- longDateFormat : {
20097
- LT : 'HH:mm',
20098
- LTS : 'HH:mm:ss',
20099
- L : 'DD/MM/YYYY',
20100
- LL : 'D MMMM YYYY',
20101
- LLL : 'D MMMM YYYY HH:mm',
20102
- LLLL : 'D MMMM YYYY, dddd HH:mm'
20103
- },
20104
- calendar : {
20105
- sameDay : '[Bugun soat] LT [da]',
20106
- nextDay : '[Ertaga] LT [da]',
20107
- nextWeek : 'dddd [kuni soat] LT [da]',
20108
- lastDay : '[Kecha soat] LT [da]',
20109
- lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
20110
- sameElse : 'L'
20111
- },
20112
- relativeTime : {
20113
- future : 'Yaqin %s ichida',
20114
- past : 'Bir necha %s oldin',
20115
- s : 'soniya',
20116
- ss : '%d soniya',
20117
- m : 'bir daqiqa',
20118
- mm : '%d daqiqa',
20119
- h : 'bir soat',
20120
- hh : '%d soat',
20121
- d : 'bir kun',
20122
- dd : '%d kun',
20123
- M : 'bir oy',
20124
- MM : '%d oy',
20125
- y : 'bir yil',
20126
- yy : '%d yil'
20127
- },
20128
- week : {
20129
- dow : 1, // Monday is the first day of the week.
20130
- doy : 7 // The week that contains Jan 7th is the first week of the year.
20131
- }
20132
- });
20133
-
20134
- return uzLatn;
20135
-
20136
- })));
20137
-
20138
-
20139
- /***/ }),
20140
-
20141
- /***/ "./node_modules/moment/locale/uz.js":
20142
- /*!******************************************!*\
20143
- !*** ./node_modules/moment/locale/uz.js ***!
20144
- \******************************************/
20145
- /*! no static exports found */
20146
- /***/ (function(module, exports, __webpack_require__) {
20147
-
20148
- //! moment.js locale configuration
20149
-
20150
- ;(function (global, factory) {
20151
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20152
- undefined
20153
- }(this, (function (moment) { 'use strict';
20154
-
20155
-
20156
- var uz = moment.defineLocale('uz', {
20157
- months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
20158
- monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
20159
- weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
20160
- weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
20161
- weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
20162
- longDateFormat : {
20163
- LT : 'HH:mm',
20164
- LTS : 'HH:mm:ss',
20165
- L : 'DD/MM/YYYY',
20166
- LL : 'D MMMM YYYY',
20167
- LLL : 'D MMMM YYYY HH:mm',
20168
- LLLL : 'D MMMM YYYY, dddd HH:mm'
20169
- },
20170
- calendar : {
20171
- sameDay : '[Бугун соат] LT [да]',
20172
- nextDay : '[Эртага] LT [да]',
20173
- nextWeek : 'dddd [куни соат] LT [да]',
20174
- lastDay : '[Кеча соат] LT [да]',
20175
- lastWeek : '[Утган] dddd [куни соат] LT [да]',
20176
- sameElse : 'L'
20177
- },
20178
- relativeTime : {
20179
- future : 'Якин %s ичида',
20180
- past : 'Бир неча %s олдин',
20181
- s : 'фурсат',
20182
- ss : '%d фурсат',
20183
- m : 'бир дакика',
20184
- mm : '%d дакика',
20185
- h : 'бир соат',
20186
- hh : '%d соат',
20187
- d : 'бир кун',
20188
- dd : '%d кун',
20189
- M : 'бир ой',
20190
- MM : '%d ой',
20191
- y : 'бир йил',
20192
- yy : '%d йил'
20193
- },
20194
- week : {
20195
- dow : 1, // Monday is the first day of the week.
20196
- doy : 7 // The week that contains Jan 4th is the first week of the year.
20197
- }
20198
- });
20199
-
20200
- return uz;
20201
-
20202
- })));
20203
-
20204
-
20205
- /***/ }),
20206
-
20207
- /***/ "./node_modules/moment/locale/vi.js":
20208
- /*!******************************************!*\
20209
- !*** ./node_modules/moment/locale/vi.js ***!
20210
- \******************************************/
20211
- /*! no static exports found */
20212
- /***/ (function(module, exports, __webpack_require__) {
20213
-
20214
- //! moment.js locale configuration
20215
-
20216
- ;(function (global, factory) {
20217
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20218
- undefined
20219
- }(this, (function (moment) { 'use strict';
20220
-
20221
-
20222
- var vi = moment.defineLocale('vi', {
20223
- months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
20224
- monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
20225
- monthsParseExact : true,
20226
- weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
20227
- weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20228
- weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20229
- weekdaysParseExact : true,
20230
- meridiemParse: /sa|ch/i,
20231
- isPM : function (input) {
20232
- return /^ch$/i.test(input);
20233
- },
20234
- meridiem : function (hours, minutes, isLower) {
20235
- if (hours < 12) {
20236
- return isLower ? 'sa' : 'SA';
20237
- } else {
20238
- return isLower ? 'ch' : 'CH';
20239
- }
20240
- },
20241
- longDateFormat : {
20242
- LT : 'HH:mm',
20243
- LTS : 'HH:mm:ss',
20244
- L : 'DD/MM/YYYY',
20245
- LL : 'D MMMM [năm] YYYY',
20246
- LLL : 'D MMMM [năm] YYYY HH:mm',
20247
- LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
20248
- l : 'DD/M/YYYY',
20249
- ll : 'D MMM YYYY',
20250
- lll : 'D MMM YYYY HH:mm',
20251
- llll : 'ddd, D MMM YYYY HH:mm'
20252
- },
20253
- calendar : {
20254
- sameDay: '[Hôm nay lúc] LT',
20255
- nextDay: '[Ngày mai lúc] LT',
20256
- nextWeek: 'dddd [tuần tới lúc] LT',
20257
- lastDay: '[Hôm qua lúc] LT',
20258
- lastWeek: 'dddd [tuần rồi lúc] LT',
20259
- sameElse: 'L'
20260
- },
20261
- relativeTime : {
20262
- future : '%s tới',
20263
- past : '%s trước',
20264
- s : 'vài giây',
20265
- ss : '%d giây' ,
20266
- m : 'một phút',
20267
- mm : '%d phút',
20268
- h : 'một giờ',
20269
- hh : '%d giờ',
20270
- d : 'một ngày',
20271
- dd : '%d ngày',
20272
- M : 'một tháng',
20273
- MM : '%d tháng',
20274
- y : 'một năm',
20275
- yy : '%d năm'
20276
- },
20277
- dayOfMonthOrdinalParse: /\d{1,2}/,
20278
- ordinal : function (number) {
20279
- return number;
20280
- },
20281
- week : {
20282
- dow : 1, // Monday is the first day of the week.
20283
- doy : 4 // The week that contains Jan 4th is the first week of the year.
20284
- }
20285
- });
20286
-
20287
- return vi;
20288
-
20289
- })));
20290
-
20291
-
20292
- /***/ }),
20293
-
20294
- /***/ "./node_modules/moment/locale/x-pseudo.js":
20295
- /*!************************************************!*\
20296
- !*** ./node_modules/moment/locale/x-pseudo.js ***!
20297
- \************************************************/
20298
- /*! no static exports found */
20299
- /***/ (function(module, exports, __webpack_require__) {
20300
-
20301
- //! moment.js locale configuration
20302
-
20303
- ;(function (global, factory) {
20304
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20305
- undefined
20306
- }(this, (function (moment) { 'use strict';
20307
-
20308
-
20309
- var xPseudo = moment.defineLocale('x-pseudo', {
20310
- months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
20311
- monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
20312
- monthsParseExact : true,
20313
- weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
20314
- weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
20315
- weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
20316
- weekdaysParseExact : true,
20317
- longDateFormat : {
20318
- LT : 'HH:mm',
20319
- L : 'DD/MM/YYYY',
20320
- LL : 'D MMMM YYYY',
20321
- LLL : 'D MMMM YYYY HH:mm',
20322
- LLLL : 'dddd, D MMMM YYYY HH:mm'
20323
- },
20324
- calendar : {
20325
- sameDay : '[T~ódá~ý át] LT',
20326
- nextDay : '[T~ómó~rró~w át] LT',
20327
- nextWeek : 'dddd [át] LT',
20328
- lastDay : '[Ý~ést~érdá~ý át] LT',
20329
- lastWeek : '[L~ást] dddd [át] LT',
20330
- sameElse : 'L'
20331
- },
20332
- relativeTime : {
20333
- future : 'í~ñ %s',
20334
- past : '%s á~gó',
20335
- s : 'á ~féw ~sécó~ñds',
20336
- ss : '%d s~écóñ~ds',
20337
- m : 'á ~míñ~úté',
20338
- mm : '%d m~íñú~tés',
20339
- h : 'á~ñ hó~úr',
20340
- hh : '%d h~óúrs',
20341
- d : 'á ~dáý',
20342
- dd : '%d d~áýs',
20343
- M : 'á ~móñ~th',
20344
- MM : '%d m~óñt~hs',
20345
- y : 'á ~ýéár',
20346
- yy : '%d ý~éárs'
20347
- },
20348
- dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
20349
- ordinal : function (number) {
20350
- var b = number % 10,
20351
- output = (~~(number % 100 / 10) === 1) ? 'th' :
20352
- (b === 1) ? 'st' :
20353
- (b === 2) ? 'nd' :
20354
- (b === 3) ? 'rd' : 'th';
20355
- return number + output;
20356
- },
20357
- week : {
20358
- dow : 1, // Monday is the first day of the week.
20359
- doy : 4 // The week that contains Jan 4th is the first week of the year.
20360
- }
20361
- });
20362
-
20363
- return xPseudo;
20364
-
20365
- })));
20366
-
20367
-
20368
- /***/ }),
20369
-
20370
- /***/ "./node_modules/moment/locale/yo.js":
20371
- /*!******************************************!*\
20372
- !*** ./node_modules/moment/locale/yo.js ***!
20373
- \******************************************/
20374
- /*! no static exports found */
20375
- /***/ (function(module, exports, __webpack_require__) {
20376
-
20377
- //! moment.js locale configuration
20378
-
20379
- ;(function (global, factory) {
20380
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20381
- undefined
20382
- }(this, (function (moment) { 'use strict';
20383
-
20384
-
20385
- var yo = moment.defineLocale('yo', {
20386
- months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
20387
- monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
20388
- weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
20389
- weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
20390
- weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
20391
- longDateFormat : {
20392
- LT : 'h:mm A',
20393
- LTS : 'h:mm:ss A',
20394
- L : 'DD/MM/YYYY',
20395
- LL : 'D MMMM YYYY',
20396
- LLL : 'D MMMM YYYY h:mm A',
20397
- LLLL : 'dddd, D MMMM YYYY h:mm A'
20398
- },
20399
- calendar : {
20400
- sameDay : '[Ònì ni] LT',
20401
- nextDay : '[Ọ̀la ni] LT',
20402
- nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
20403
- lastDay : '[Àna ni] LT',
20404
- lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
20405
- sameElse : 'L'
20406
- },
20407
- relativeTime : {
20408
- future : 'ní %s',
20409
- past : '%s kọjá',
20410
- s : 'ìsẹjú aayá die',
20411
- ss :'aayá %d',
20412
- m : 'ìsẹjú kan',
20413
- mm : 'ìsẹjú %d',
20414
- h : 'wákati kan',
20415
- hh : 'wákati %d',
20416
- d : 'ọjọ́ kan',
20417
- dd : 'ọjọ́ %d',
20418
- M : 'osù kan',
20419
- MM : 'osù %d',
20420
- y : 'ọdún kan',
20421
- yy : 'ọdún %d'
20422
- },
20423
- dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
20424
- ordinal : 'ọjọ́ %d',
20425
- week : {
20426
- dow : 1, // Monday is the first day of the week.
20427
- doy : 4 // The week that contains Jan 4th is the first week of the year.
20428
- }
20429
- });
20430
-
20431
- return yo;
20432
-
20433
- })));
20434
-
20435
-
20436
- /***/ }),
20437
-
20438
- /***/ "./node_modules/moment/locale/zh-cn.js":
20439
- /*!*********************************************!*\
20440
- !*** ./node_modules/moment/locale/zh-cn.js ***!
20441
- \*********************************************/
20442
- /*! no static exports found */
20443
- /***/ (function(module, exports, __webpack_require__) {
20444
-
20445
- //! moment.js locale configuration
20446
-
20447
- ;(function (global, factory) {
20448
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20449
- undefined
20450
- }(this, (function (moment) { 'use strict';
20451
-
20452
-
20453
- var zhCn = moment.defineLocale('zh-cn', {
20454
- months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
20455
- monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
20456
- weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
20457
- weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
20458
- weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
20459
- longDateFormat : {
20460
- LT : 'HH:mm',
20461
- LTS : 'HH:mm:ss',
20462
- L : 'YYYY/MM/DD',
20463
- LL : 'YYYY年M月D日',
20464
- LLL : 'YYYY年M月D日Ah点mm分',
20465
- LLLL : 'YYYY年M月D日ddddAh点mm分',
20466
- l : 'YYYY/M/D',
20467
- ll : 'YYYY年M月D日',
20468
- lll : 'YYYY年M月D日 HH:mm',
20469
- llll : 'YYYY年M月D日dddd HH:mm'
20470
- },
20471
- meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
20472
- meridiemHour: function (hour, meridiem) {
20473
- if (hour === 12) {
20474
- hour = 0;
20475
- }
20476
- if (meridiem === '凌晨' || meridiem === '早上' ||
20477
- meridiem === '上午') {
20478
- return hour;
20479
- } else if (meridiem === '下午' || meridiem === '晚上') {
20480
- return hour + 12;
20481
- } else {
20482
- // '中午'
20483
- return hour >= 11 ? hour : hour + 12;
20484
- }
20485
- },
20486
- meridiem : function (hour, minute, isLower) {
20487
- var hm = hour * 100 + minute;
20488
- if (hm < 600) {
20489
- return '凌晨';
20490
- } else if (hm < 900) {
20491
- return '早上';
20492
- } else if (hm < 1130) {
20493
- return '上午';
20494
- } else if (hm < 1230) {
20495
- return '中午';
20496
- } else if (hm < 1800) {
20497
- return '下午';
20498
- } else {
20499
- return '晚上';
20500
- }
20501
- },
20502
- calendar : {
20503
- sameDay : '[今天]LT',
20504
- nextDay : '[明天]LT',
20505
- nextWeek : '[下]ddddLT',
20506
- lastDay : '[昨天]LT',
20507
- lastWeek : '[上]ddddLT',
20508
- sameElse : 'L'
20509
- },
20510
- dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
20511
- ordinal : function (number, period) {
20512
- switch (period) {
20513
- case 'd':
20514
- case 'D':
20515
- case 'DDD':
20516
- return number + '日';
20517
- case 'M':
20518
- return number + '月';
20519
- case 'w':
20520
- case 'W':
20521
- return number + '周';
20522
- default:
20523
- return number;
20524
- }
20525
- },
20526
- relativeTime : {
20527
- future : '%s内',
20528
- past : '%s前',
20529
- s : '几秒',
20530
- ss : '%d 秒',
20531
- m : '1 分钟',
20532
- mm : '%d 分钟',
20533
- h : '1 小时',
20534
- hh : '%d 小时',
20535
- d : '1 天',
20536
- dd : '%d 天',
20537
- M : '1 个月',
20538
- MM : '%d 个月',
20539
- y : '1 年',
20540
- yy : '%d 年'
20541
- },
20542
- week : {
20543
- // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
20544
- dow : 1, // Monday is the first day of the week.
20545
- doy : 4 // The week that contains Jan 4th is the first week of the year.
20546
- }
20547
- });
20548
-
20549
- return zhCn;
20550
-
20551
- })));
20552
-
20553
-
20554
- /***/ }),
20555
-
20556
- /***/ "./node_modules/moment/locale/zh-hk.js":
20557
- /*!*********************************************!*\
20558
- !*** ./node_modules/moment/locale/zh-hk.js ***!
20559
- \*********************************************/
20560
- /*! no static exports found */
20561
- /***/ (function(module, exports, __webpack_require__) {
20562
-
20563
- //! moment.js locale configuration
20564
-
20565
- ;(function (global, factory) {
20566
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20567
- undefined
20568
- }(this, (function (moment) { 'use strict';
20569
-
20570
-
20571
- var zhHk = moment.defineLocale('zh-hk', {
20572
- months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
20573
- monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
20574
- weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
20575
- weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
20576
- weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
20577
- longDateFormat : {
20578
- LT : 'HH:mm',
20579
- LTS : 'HH:mm:ss',
20580
- L : 'YYYY/MM/DD',
20581
- LL : 'YYYY年M月D日',
20582
- LLL : 'YYYY年M月D日 HH:mm',
20583
- LLLL : 'YYYY年M月D日dddd HH:mm',
20584
- l : 'YYYY/M/D',
20585
- ll : 'YYYY年M月D日',
20586
- lll : 'YYYY年M月D日 HH:mm',
20587
- llll : 'YYYY年M月D日dddd HH:mm'
20588
- },
20589
- meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
20590
- meridiemHour : function (hour, meridiem) {
20591
- if (hour === 12) {
20592
- hour = 0;
20593
- }
20594
- if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
20595
- return hour;
20596
- } else if (meridiem === '中午') {
20597
- return hour >= 11 ? hour : hour + 12;
20598
- } else if (meridiem === '下午' || meridiem === '晚上') {
20599
- return hour + 12;
20600
- }
20601
- },
20602
- meridiem : function (hour, minute, isLower) {
20603
- var hm = hour * 100 + minute;
20604
- if (hm < 600) {
20605
- return '凌晨';
20606
- } else if (hm < 900) {
20607
- return '早上';
20608
- } else if (hm < 1130) {
20609
- return '上午';
20610
- } else if (hm < 1230) {
20611
- return '中午';
20612
- } else if (hm < 1800) {
20613
- return '下午';
20614
- } else {
20615
- return '晚上';
20616
- }
20617
- },
20618
- calendar : {
20619
- sameDay : '[今天]LT',
20620
- nextDay : '[明天]LT',
20621
- nextWeek : '[下]ddddLT',
20622
- lastDay : '[昨天]LT',
20623
- lastWeek : '[上]ddddLT',
20624
- sameElse : 'L'
20625
- },
20626
- dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
20627
- ordinal : function (number, period) {
20628
- switch (period) {
20629
- case 'd' :
20630
- case 'D' :
20631
- case 'DDD' :
20632
- return number + '日';
20633
- case 'M' :
20634
- return number + '月';
20635
- case 'w' :
20636
- case 'W' :
20637
- return number + '週';
20638
- default :
20639
- return number;
20640
- }
20641
- },
20642
- relativeTime : {
20643
- future : '%s內',
20644
- past : '%s前',
20645
- s : '幾秒',
20646
- ss : '%d 秒',
20647
- m : '1 分鐘',
20648
- mm : '%d 分鐘',
20649
- h : '1 小時',
20650
- hh : '%d 小時',
20651
- d : '1 天',
20652
- dd : '%d 天',
20653
- M : '1 個月',
20654
- MM : '%d 個月',
20655
- y : '1 年',
20656
- yy : '%d 年'
20657
- }
20658
- });
20659
-
20660
- return zhHk;
20661
-
20662
- })));
20663
-
20664
-
20665
- /***/ }),
20666
-
20667
- /***/ "./node_modules/moment/locale/zh-tw.js":
20668
- /*!*********************************************!*\
20669
- !*** ./node_modules/moment/locale/zh-tw.js ***!
20670
- \*********************************************/
20671
- /*! no static exports found */
20672
- /***/ (function(module, exports, __webpack_require__) {
20673
-
20674
- //! moment.js locale configuration
20675
-
20676
- ;(function (global, factory) {
20677
- true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
20678
- undefined
20679
- }(this, (function (moment) { 'use strict';
20680
-
20681
-
20682
- var zhTw = moment.defineLocale('zh-tw', {
20683
- months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
20684
- monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
20685
- weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
20686
- weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
20687
- weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
20688
- longDateFormat : {
20689
- LT : 'HH:mm',
20690
- LTS : 'HH:mm:ss',
20691
- L : 'YYYY/MM/DD',
20692
- LL : 'YYYY年M月D日',
20693
- LLL : 'YYYY年M月D日 HH:mm',
20694
- LLLL : 'YYYY年M月D日dddd HH:mm',
20695
- l : 'YYYY/M/D',
20696
- ll : 'YYYY年M月D日',
20697
- lll : 'YYYY年M月D日 HH:mm',
20698
- llll : 'YYYY年M月D日dddd HH:mm'
20699
- },
20700
- meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
20701
- meridiemHour : function (hour, meridiem) {
20702
- if (hour === 12) {
20703
- hour = 0;
20704
- }
20705
- if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
20706
- return hour;
20707
- } else if (meridiem === '中午') {
20708
- return hour >= 11 ? hour : hour + 12;
20709
- } else if (meridiem === '下午' || meridiem === '晚上') {
20710
- return hour + 12;
20711
- }
20712
- },
20713
- meridiem : function (hour, minute, isLower) {
20714
- var hm = hour * 100 + minute;
20715
- if (hm < 600) {
20716
- return '凌晨';
20717
- } else if (hm < 900) {
20718
- return '早上';
20719
- } else if (hm < 1130) {
20720
- return '上午';
20721
- } else if (hm < 1230) {
20722
- return '中午';
20723
- } else if (hm < 1800) {
20724
- return '下午';
20725
- } else {
20726
- return '晚上';
20727
- }
20728
- },
20729
- calendar : {
20730
- sameDay : '[今天] LT',
20731
- nextDay : '[明天] LT',
20732
- nextWeek : '[下]dddd LT',
20733
- lastDay : '[昨天] LT',
20734
- lastWeek : '[上]dddd LT',
20735
- sameElse : 'L'
20736
- },
20737
- dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
20738
- ordinal : function (number, period) {
20739
- switch (period) {
20740
- case 'd' :
20741
- case 'D' :
20742
- case 'DDD' :
20743
- return number + '日';
20744
- case 'M' :
20745
- return number + '月';
20746
- case 'w' :
20747
- case 'W' :
20748
- return number + '週';
20749
- default :
20750
- return number;
20751
- }
20752
- },
20753
- relativeTime : {
20754
- future : '%s內',
20755
- past : '%s前',
20756
- s : '幾秒',
20757
- ss : '%d 秒',
20758
- m : '1 分鐘',
20759
- mm : '%d 分鐘',
20760
- h : '1 小時',
20761
- hh : '%d 小時',
20762
- d : '1 天',
20763
- dd : '%d 天',
20764
- M : '1 個月',
20765
- MM : '%d 個月',
20766
- y : '1 年',
20767
- yy : '%d 年'
20768
- }
20769
- });
20770
-
20771
- return zhTw;
20772
-
20773
- })));
20774
-
20775
-
20776
- /***/ }),
20777
-
20778
- /***/ "./node_modules/moment/moment.js":
20779
- /*!***************************************!*\
20780
- !*** ./node_modules/moment/moment.js ***!
20781
- \***************************************/
20782
- /*! no static exports found */
20783
- /***/ (function(module, exports, __webpack_require__) {
20784
-
20785
- /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
20786
-
20787
- ;(function (global, factory) {
20788
- true ? module.exports = factory() :
20789
- undefined
20790
- }(this, (function () { 'use strict';
20791
-
20792
- var hookCallback;
20793
-
20794
- function hooks () {
20795
- return hookCallback.apply(null, arguments);
20796
- }
20797
-
20798
- // This is done to register the method called with moment()
20799
- // without creating circular dependencies.
20800
- function setHookCallback (callback) {
20801
- hookCallback = callback;
20802
- }
20803
-
20804
- function isArray(input) {
20805
- return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
20806
- }
20807
-
20808
- function isObject(input) {
20809
- // IE8 will treat undefined and null as object if it wasn't for
20810
- // input != null
20811
- return input != null && Object.prototype.toString.call(input) === '[object Object]';
20812
- }
20813
-
20814
- function isObjectEmpty(obj) {
20815
- if (Object.getOwnPropertyNames) {
20816
- return (Object.getOwnPropertyNames(obj).length === 0);
20817
- } else {
20818
- var k;
20819
- for (k in obj) {
20820
- if (obj.hasOwnProperty(k)) {
20821
- return false;
20822
- }
20823
- }
20824
- return true;
20825
- }
20826
- }
20827
-
20828
- function isUndefined(input) {
20829
- return input === void 0;
20830
- }
20831
-
20832
- function isNumber(input) {
20833
- return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
20834
- }
20835
-
20836
- function isDate(input) {
20837
- return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
20838
- }
20839
-
20840
- function map(arr, fn) {
20841
- var res = [], i;
20842
- for (i = 0; i < arr.length; ++i) {
20843
- res.push(fn(arr[i], i));
20844
- }
20845
- return res;
20846
- }
20847
-
20848
- function hasOwnProp(a, b) {
20849
- return Object.prototype.hasOwnProperty.call(a, b);
20850
- }
20851
-
20852
- function extend(a, b) {
20853
- for (var i in b) {
20854
- if (hasOwnProp(b, i)) {
20855
- a[i] = b[i];
20856
- }
20857
- }
20858
-
20859
- if (hasOwnProp(b, 'toString')) {
20860
- a.toString = b.toString;
20861
- }
20862
-
20863
- if (hasOwnProp(b, 'valueOf')) {
20864
- a.valueOf = b.valueOf;
20865
- }
20866
-
20867
- return a;
20868
- }
20869
-
20870
- function createUTC (input, format, locale, strict) {
20871
- return createLocalOrUTC(input, format, locale, strict, true).utc();
20872
- }
20873
-
20874
- function defaultParsingFlags() {
20875
- // We need to deep clone this object.
20876
- return {
20877
- empty : false,
20878
- unusedTokens : [],
20879
- unusedInput : [],
20880
- overflow : -2,
20881
- charsLeftOver : 0,
20882
- nullInput : false,
20883
- invalidMonth : null,
20884
- invalidFormat : false,
20885
- userInvalidated : false,
20886
- iso : false,
20887
- parsedDateParts : [],
20888
- meridiem : null,
20889
- rfc2822 : false,
20890
- weekdayMismatch : false
20891
- };
20892
- }
20893
-
20894
- function getParsingFlags(m) {
20895
- if (m._pf == null) {
20896
- m._pf = defaultParsingFlags();
20897
- }
20898
- return m._pf;
20899
- }
20900
-
20901
- var some;
20902
- if (Array.prototype.some) {
20903
- some = Array.prototype.some;
20904
- } else {
20905
- some = function (fun) {
20906
- var t = Object(this);
20907
- var len = t.length >>> 0;
20908
-
20909
- for (var i = 0; i < len; i++) {
20910
- if (i in t && fun.call(this, t[i], i, t)) {
20911
- return true;
20912
- }
20913
- }
20914
-
20915
- return false;
20916
- };
20917
- }
20918
-
20919
- function isValid(m) {
20920
- if (m._isValid == null) {
20921
- var flags = getParsingFlags(m);
20922
- var parsedParts = some.call(flags.parsedDateParts, function (i) {
20923
- return i != null;
20924
- });
20925
- var isNowValid = !isNaN(m._d.getTime()) &&
20926
- flags.overflow < 0 &&
20927
- !flags.empty &&
20928
- !flags.invalidMonth &&
20929
- !flags.invalidWeekday &&
20930
- !flags.weekdayMismatch &&
20931
- !flags.nullInput &&
20932
- !flags.invalidFormat &&
20933
- !flags.userInvalidated &&
20934
- (!flags.meridiem || (flags.meridiem && parsedParts));
20935
-
20936
- if (m._strict) {
20937
- isNowValid = isNowValid &&
20938
- flags.charsLeftOver === 0 &&
20939
- flags.unusedTokens.length === 0 &&
20940
- flags.bigHour === undefined;
20941
- }
20942
-
20943
- if (Object.isFrozen == null || !Object.isFrozen(m)) {
20944
- m._isValid = isNowValid;
20945
- }
20946
- else {
20947
- return isNowValid;
20948
- }
20949
- }
20950
- return m._isValid;
20951
- }
20952
-
20953
- function createInvalid (flags) {
20954
- var m = createUTC(NaN);
20955
- if (flags != null) {
20956
- extend(getParsingFlags(m), flags);
20957
- }
20958
- else {
20959
- getParsingFlags(m).userInvalidated = true;
20960
- }
20961
-
20962
- return m;
20963
- }
20964
-
20965
- // Plugins that add properties should also add the key here (null value),
20966
- // so we can properly clone ourselves.
20967
- var momentProperties = hooks.momentProperties = [];
20968
-
20969
- function copyConfig(to, from) {
20970
- var i, prop, val;
20971
-
20972
- if (!isUndefined(from._isAMomentObject)) {
20973
- to._isAMomentObject = from._isAMomentObject;
20974
- }
20975
- if (!isUndefined(from._i)) {
20976
- to._i = from._i;
20977
- }
20978
- if (!isUndefined(from._f)) {
20979
- to._f = from._f;
20980
- }
20981
- if (!isUndefined(from._l)) {
20982
- to._l = from._l;
20983
- }
20984
- if (!isUndefined(from._strict)) {
20985
- to._strict = from._strict;
20986
- }
20987
- if (!isUndefined(from._tzm)) {
20988
- to._tzm = from._tzm;
20989
- }
20990
- if (!isUndefined(from._isUTC)) {
20991
- to._isUTC = from._isUTC;
20992
- }
20993
- if (!isUndefined(from._offset)) {
20994
- to._offset = from._offset;
20995
- }
20996
- if (!isUndefined(from._pf)) {
20997
- to._pf = getParsingFlags(from);
20998
- }
20999
- if (!isUndefined(from._locale)) {
21000
- to._locale = from._locale;
21001
- }
21002
-
21003
- if (momentProperties.length > 0) {
21004
- for (i = 0; i < momentProperties.length; i++) {
21005
- prop = momentProperties[i];
21006
- val = from[prop];
21007
- if (!isUndefined(val)) {
21008
- to[prop] = val;
21009
- }
21010
- }
21011
- }
21012
-
21013
- return to;
21014
- }
21015
-
21016
- var updateInProgress = false;
21017
-
21018
- // Moment prototype object
21019
- function Moment(config) {
21020
- copyConfig(this, config);
21021
- this._d = new Date(config._d != null ? config._d.getTime() : NaN);
21022
- if (!this.isValid()) {
21023
- this._d = new Date(NaN);
21024
- }
21025
- // Prevent infinite loop in case updateOffset creates new moment
21026
- // objects.
21027
- if (updateInProgress === false) {
21028
- updateInProgress = true;
21029
- hooks.updateOffset(this);
21030
- updateInProgress = false;
21031
- }
21032
- }
21033
-
21034
- function isMoment (obj) {
21035
- return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
21036
- }
21037
-
21038
- function absFloor (number) {
21039
- if (number < 0) {
21040
- // -0 -> 0
21041
- return Math.ceil(number) || 0;
21042
- } else {
21043
- return Math.floor(number);
21044
- }
21045
- }
21046
-
21047
- function toInt(argumentForCoercion) {
21048
- var coercedNumber = +argumentForCoercion,
21049
- value = 0;
21050
-
21051
- if (coercedNumber !== 0 && isFinite(coercedNumber)) {
21052
- value = absFloor(coercedNumber);
21053
- }
21054
-
21055
- return value;
21056
- }
21057
-
21058
- // compare two arrays, return the number of differences
21059
- function compareArrays(array1, array2, dontConvert) {
21060
- var len = Math.min(array1.length, array2.length),
21061
- lengthDiff = Math.abs(array1.length - array2.length),
21062
- diffs = 0,
21063
- i;
21064
- for (i = 0; i < len; i++) {
21065
- if ((dontConvert && array1[i] !== array2[i]) ||
21066
- (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
21067
- diffs++;
21068
- }
21069
- }
21070
- return diffs + lengthDiff;
21071
- }
21072
-
21073
- function warn(msg) {
21074
- if (hooks.suppressDeprecationWarnings === false &&
21075
- (typeof console !== 'undefined') && console.warn) {
21076
- console.warn('Deprecation warning: ' + msg);
21077
- }
21078
- }
21079
-
21080
- function deprecate(msg, fn) {
21081
- var firstTime = true;
21082
-
21083
- return extend(function () {
21084
- if (hooks.deprecationHandler != null) {
21085
- hooks.deprecationHandler(null, msg);
21086
- }
21087
- if (firstTime) {
21088
- var args = [];
21089
- var arg;
21090
- for (var i = 0; i < arguments.length; i++) {
21091
- arg = '';
21092
- if (typeof arguments[i] === 'object') {
21093
- arg += '\n[' + i + '] ';
21094
- for (var key in arguments[0]) {
21095
- arg += key + ': ' + arguments[0][key] + ', ';
21096
- }
21097
- arg = arg.slice(0, -2); // Remove trailing comma and space
21098
- } else {
21099
- arg = arguments[i];
21100
- }
21101
- args.push(arg);
21102
- }
21103
- warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
21104
- firstTime = false;
21105
- }
21106
- return fn.apply(this, arguments);
21107
- }, fn);
21108
- }
21109
-
21110
- var deprecations = {};
21111
-
21112
- function deprecateSimple(name, msg) {
21113
- if (hooks.deprecationHandler != null) {
21114
- hooks.deprecationHandler(name, msg);
21115
- }
21116
- if (!deprecations[name]) {
21117
- warn(msg);
21118
- deprecations[name] = true;
21119
- }
21120
- }
21121
-
21122
- hooks.suppressDeprecationWarnings = false;
21123
- hooks.deprecationHandler = null;
21124
-
21125
- function isFunction(input) {
21126
- return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
21127
- }
21128
-
21129
- function set (config) {
21130
- var prop, i;
21131
- for (i in config) {
21132
- prop = config[i];
21133
- if (isFunction(prop)) {
21134
- this[i] = prop;
21135
- } else {
21136
- this['_' + i] = prop;
21137
- }
21138
- }
21139
- this._config = config;
21140
- // Lenient ordinal parsing accepts just a number in addition to
21141
- // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
21142
- // TODO: Remove "ordinalParse" fallback in next major release.
21143
- this._dayOfMonthOrdinalParseLenient = new RegExp(
21144
- (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
21145
- '|' + (/\d{1,2}/).source);
21146
- }
21147
-
21148
- function mergeConfigs(parentConfig, childConfig) {
21149
- var res = extend({}, parentConfig), prop;
21150
- for (prop in childConfig) {
21151
- if (hasOwnProp(childConfig, prop)) {
21152
- if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
21153
- res[prop] = {};
21154
- extend(res[prop], parentConfig[prop]);
21155
- extend(res[prop], childConfig[prop]);
21156
- } else if (childConfig[prop] != null) {
21157
- res[prop] = childConfig[prop];
21158
- } else {
21159
- delete res[prop];
21160
- }
21161
- }
21162
- }
21163
- for (prop in parentConfig) {
21164
- if (hasOwnProp(parentConfig, prop) &&
21165
- !hasOwnProp(childConfig, prop) &&
21166
- isObject(parentConfig[prop])) {
21167
- // make sure changes to properties don't modify parent config
21168
- res[prop] = extend({}, res[prop]);
21169
- }
21170
- }
21171
- return res;
21172
- }
21173
-
21174
- function Locale(config) {
21175
- if (config != null) {
21176
- this.set(config);
21177
- }
21178
- }
21179
-
21180
- var keys;
21181
-
21182
- if (Object.keys) {
21183
- keys = Object.keys;
21184
- } else {
21185
- keys = function (obj) {
21186
- var i, res = [];
21187
- for (i in obj) {
21188
- if (hasOwnProp(obj, i)) {
21189
- res.push(i);
21190
- }
21191
- }
21192
- return res;
21193
- };
21194
- }
21195
-
21196
- var defaultCalendar = {
21197
- sameDay : '[Today at] LT',
21198
- nextDay : '[Tomorrow at] LT',
21199
- nextWeek : 'dddd [at] LT',
21200
- lastDay : '[Yesterday at] LT',
21201
- lastWeek : '[Last] dddd [at] LT',
21202
- sameElse : 'L'
21203
- };
21204
-
21205
- function calendar (key, mom, now) {
21206
- var output = this._calendar[key] || this._calendar['sameElse'];
21207
- return isFunction(output) ? output.call(mom, now) : output;
21208
- }
21209
-
21210
- var defaultLongDateFormat = {
21211
- LTS : 'h:mm:ss A',
21212
- LT : 'h:mm A',
21213
- L : 'MM/DD/YYYY',
21214
- LL : 'MMMM D, YYYY',
21215
- LLL : 'MMMM D, YYYY h:mm A',
21216
- LLLL : 'dddd, MMMM D, YYYY h:mm A'
21217
- };
21218
-
21219
- function longDateFormat (key) {
21220
- var format = this._longDateFormat[key],
21221
- formatUpper = this._longDateFormat[key.toUpperCase()];
21222
-
21223
- if (format || !formatUpper) {
21224
- return format;
21225
- }
21226
-
21227
- this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
21228
- return val.slice(1);
21229
- });
21230
-
21231
- return this._longDateFormat[key];
21232
- }
21233
-
21234
- var defaultInvalidDate = 'Invalid date';
21235
-
21236
- function invalidDate () {
21237
- return this._invalidDate;
21238
- }
21239
-
21240
- var defaultOrdinal = '%d';
21241
- var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
21242
-
21243
- function ordinal (number) {
21244
- return this._ordinal.replace('%d', number);
21245
- }
21246
-
21247
- var defaultRelativeTime = {
21248
- future : 'in %s',
21249
- past : '%s ago',
21250
- s : 'a few seconds',
21251
- ss : '%d seconds',
21252
- m : 'a minute',
21253
- mm : '%d minutes',
21254
- h : 'an hour',
21255
- hh : '%d hours',
21256
- d : 'a day',
21257
- dd : '%d days',
21258
- M : 'a month',
21259
- MM : '%d months',
21260
- y : 'a year',
21261
- yy : '%d years'
21262
- };
21263
-
21264
- function relativeTime (number, withoutSuffix, string, isFuture) {
21265
- var output = this._relativeTime[string];
21266
- return (isFunction(output)) ?
21267
- output(number, withoutSuffix, string, isFuture) :
21268
- output.replace(/%d/i, number);
21269
- }
21270
-
21271
- function pastFuture (diff, output) {
21272
- var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
21273
- return isFunction(format) ? format(output) : format.replace(/%s/i, output);
21274
- }
21275
-
21276
- var aliases = {};
21277
-
21278
- function addUnitAlias (unit, shorthand) {
21279
- var lowerCase = unit.toLowerCase();
21280
- aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
21281
- }
21282
-
21283
- function normalizeUnits(units) {
21284
- return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
21285
- }
21286
-
21287
- function normalizeObjectUnits(inputObject) {
21288
- var normalizedInput = {},
21289
- normalizedProp,
21290
- prop;
21291
-
21292
- for (prop in inputObject) {
21293
- if (hasOwnProp(inputObject, prop)) {
21294
- normalizedProp = normalizeUnits(prop);
21295
- if (normalizedProp) {
21296
- normalizedInput[normalizedProp] = inputObject[prop];
21297
- }
21298
- }
21299
- }
21300
-
21301
- return normalizedInput;
21302
- }
21303
-
21304
- var priorities = {};
21305
-
21306
- function addUnitPriority(unit, priority) {
21307
- priorities[unit] = priority;
21308
- }
21309
-
21310
- function getPrioritizedUnits(unitsObj) {
21311
- var units = [];
21312
- for (var u in unitsObj) {
21313
- units.push({unit: u, priority: priorities[u]});
21314
- }
21315
- units.sort(function (a, b) {
21316
- return a.priority - b.priority;
21317
- });
21318
- return units;
21319
- }
21320
-
21321
- function zeroFill(number, targetLength, forceSign) {
21322
- var absNumber = '' + Math.abs(number),
21323
- zerosToFill = targetLength - absNumber.length,
21324
- sign = number >= 0;
21325
- return (sign ? (forceSign ? '+' : '') : '-') +
21326
- Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
21327
- }
21328
-
21329
- var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
21330
-
21331
- var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
21332
-
21333
- var formatFunctions = {};
21334
-
21335
- var formatTokenFunctions = {};
21336
-
21337
- // token: 'M'
21338
- // padded: ['MM', 2]
21339
- // ordinal: 'Mo'
21340
- // callback: function () { this.month() + 1 }
21341
- function addFormatToken (token, padded, ordinal, callback) {
21342
- var func = callback;
21343
- if (typeof callback === 'string') {
21344
- func = function () {
21345
- return this[callback]();
21346
- };
21347
- }
21348
- if (token) {
21349
- formatTokenFunctions[token] = func;
21350
- }
21351
- if (padded) {
21352
- formatTokenFunctions[padded[0]] = function () {
21353
- return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
21354
- };
21355
- }
21356
- if (ordinal) {
21357
- formatTokenFunctions[ordinal] = function () {
21358
- return this.localeData().ordinal(func.apply(this, arguments), token);
21359
- };
21360
- }
21361
- }
21362
-
21363
- function removeFormattingTokens(input) {
21364
- if (input.match(/\[[\s\S]/)) {
21365
- return input.replace(/^\[|\]$/g, '');
21366
- }
21367
- return input.replace(/\\/g, '');
21368
- }
21369
-
21370
- function makeFormatFunction(format) {
21371
- var array = format.match(formattingTokens), i, length;
21372
-
21373
- for (i = 0, length = array.length; i < length; i++) {
21374
- if (formatTokenFunctions[array[i]]) {
21375
- array[i] = formatTokenFunctions[array[i]];
21376
- } else {
21377
- array[i] = removeFormattingTokens(array[i]);
21378
- }
21379
- }
21380
-
21381
- return function (mom) {
21382
- var output = '', i;
21383
- for (i = 0; i < length; i++) {
21384
- output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
21385
- }
21386
- return output;
21387
- };
21388
- }
21389
-
21390
- // format date using native date object
21391
- function formatMoment(m, format) {
21392
- if (!m.isValid()) {
21393
- return m.localeData().invalidDate();
21394
- }
21395
-
21396
- format = expandFormat(format, m.localeData());
21397
- formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
21398
-
21399
- return formatFunctions[format](m);
21400
- }
21401
-
21402
- function expandFormat(format, locale) {
21403
- var i = 5;
21404
-
21405
- function replaceLongDateFormatTokens(input) {
21406
- return locale.longDateFormat(input) || input;
21407
- }
21408
-
21409
- localFormattingTokens.lastIndex = 0;
21410
- while (i >= 0 && localFormattingTokens.test(format)) {
21411
- format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
21412
- localFormattingTokens.lastIndex = 0;
21413
- i -= 1;
21414
- }
21415
-
21416
- return format;
21417
- }
21418
-
21419
- var match1 = /\d/; // 0 - 9
21420
- var match2 = /\d\d/; // 00 - 99
21421
- var match3 = /\d{3}/; // 000 - 999
21422
- var match4 = /\d{4}/; // 0000 - 9999
21423
- var match6 = /[+-]?\d{6}/; // -999999 - 999999
21424
- var match1to2 = /\d\d?/; // 0 - 99
21425
- var match3to4 = /\d\d\d\d?/; // 999 - 9999
21426
- var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
21427
- var match1to3 = /\d{1,3}/; // 0 - 999
21428
- var match1to4 = /\d{1,4}/; // 0 - 9999
21429
- var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
21430
-
21431
- var matchUnsigned = /\d+/; // 0 - inf
21432
- var matchSigned = /[+-]?\d+/; // -inf - inf
21433
-
21434
- var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
21435
- var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
21436
-
21437
- var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
21438
-
21439
- // any word (or two) characters or numbers including two/three word month in arabic.
21440
- // includes scottish gaelic two word and hyphenated months
21441
- var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
21442
-
21443
- var regexes = {};
21444
-
21445
- function addRegexToken (token, regex, strictRegex) {
21446
- regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
21447
- return (isStrict && strictRegex) ? strictRegex : regex;
21448
- };
21449
- }
21450
-
21451
- function getParseRegexForToken (token, config) {
21452
- if (!hasOwnProp(regexes, token)) {
21453
- return new RegExp(unescapeFormat(token));
21454
- }
21455
-
21456
- return regexes[token](config._strict, config._locale);
21457
- }
21458
-
21459
- // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
21460
- function unescapeFormat(s) {
21461
- return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
21462
- return p1 || p2 || p3 || p4;
21463
- }));
21464
- }
21465
-
21466
- function regexEscape(s) {
21467
- return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
21468
- }
21469
-
21470
- var tokens = {};
21471
-
21472
- function addParseToken (token, callback) {
21473
- var i, func = callback;
21474
- if (typeof token === 'string') {
21475
- token = [token];
21476
- }
21477
- if (isNumber(callback)) {
21478
- func = function (input, array) {
21479
- array[callback] = toInt(input);
21480
- };
21481
- }
21482
- for (i = 0; i < token.length; i++) {
21483
- tokens[token[i]] = func;
21484
- }
21485
- }
21486
-
21487
- function addWeekParseToken (token, callback) {
21488
- addParseToken(token, function (input, array, config, token) {
21489
- config._w = config._w || {};
21490
- callback(input, config._w, config, token);
21491
- });
21492
- }
21493
-
21494
- function addTimeToArrayFromToken(token, input, config) {
21495
- if (input != null && hasOwnProp(tokens, token)) {
21496
- tokens[token](input, config._a, config, token);
21497
- }
21498
- }
21499
-
21500
- var YEAR = 0;
21501
- var MONTH = 1;
21502
- var DATE = 2;
21503
- var HOUR = 3;
21504
- var MINUTE = 4;
21505
- var SECOND = 5;
21506
- var MILLISECOND = 6;
21507
- var WEEK = 7;
21508
- var WEEKDAY = 8;
21509
-
21510
- // FORMATTING
21511
-
21512
- addFormatToken('Y', 0, 0, function () {
21513
- var y = this.year();
21514
- return y <= 9999 ? '' + y : '+' + y;
21515
- });
21516
-
21517
- addFormatToken(0, ['YY', 2], 0, function () {
21518
- return this.year() % 100;
21519
- });
21520
-
21521
- addFormatToken(0, ['YYYY', 4], 0, 'year');
21522
- addFormatToken(0, ['YYYYY', 5], 0, 'year');
21523
- addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
21524
-
21525
- // ALIASES
21526
-
21527
- addUnitAlias('year', 'y');
21528
-
21529
- // PRIORITIES
21530
-
21531
- addUnitPriority('year', 1);
21532
-
21533
- // PARSING
21534
-
21535
- addRegexToken('Y', matchSigned);
21536
- addRegexToken('YY', match1to2, match2);
21537
- addRegexToken('YYYY', match1to4, match4);
21538
- addRegexToken('YYYYY', match1to6, match6);
21539
- addRegexToken('YYYYYY', match1to6, match6);
21540
-
21541
- addParseToken(['YYYYY', 'YYYYYY'], YEAR);
21542
- addParseToken('YYYY', function (input, array) {
21543
- array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
21544
- });
21545
- addParseToken('YY', function (input, array) {
21546
- array[YEAR] = hooks.parseTwoDigitYear(input);
21547
- });
21548
- addParseToken('Y', function (input, array) {
21549
- array[YEAR] = parseInt(input, 10);
21550
- });
21551
-
21552
- // HELPERS
21553
-
21554
- function daysInYear(year) {
21555
- return isLeapYear(year) ? 366 : 365;
21556
- }
21557
-
21558
- function isLeapYear(year) {
21559
- return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
21560
- }
21561
-
21562
- // HOOKS
21563
-
21564
- hooks.parseTwoDigitYear = function (input) {
21565
- return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
21566
- };
21567
-
21568
- // MOMENTS
21569
-
21570
- var getSetYear = makeGetSet('FullYear', true);
21571
-
21572
- function getIsLeapYear () {
21573
- return isLeapYear(this.year());
21574
- }
21575
-
21576
- function makeGetSet (unit, keepTime) {
21577
- return function (value) {
21578
- if (value != null) {
21579
- set$1(this, unit, value);
21580
- hooks.updateOffset(this, keepTime);
21581
- return this;
21582
- } else {
21583
- return get(this, unit);
21584
- }
21585
- };
21586
- }
21587
-
21588
- function get (mom, unit) {
21589
- return mom.isValid() ?
21590
- mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
21591
- }
21592
-
21593
- function set$1 (mom, unit, value) {
21594
- if (mom.isValid() && !isNaN(value)) {
21595
- if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
21596
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
21597
- }
21598
- else {
21599
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
21600
- }
21601
- }
21602
- }
21603
-
21604
- // MOMENTS
21605
-
21606
- function stringGet (units) {
21607
- units = normalizeUnits(units);
21608
- if (isFunction(this[units])) {
21609
- return this[units]();
21610
- }
21611
- return this;
21612
- }
21613
-
21614
-
21615
- function stringSet (units, value) {
21616
- if (typeof units === 'object') {
21617
- units = normalizeObjectUnits(units);
21618
- var prioritized = getPrioritizedUnits(units);
21619
- for (var i = 0; i < prioritized.length; i++) {
21620
- this[prioritized[i].unit](units[prioritized[i].unit]);
21621
- }
21622
- } else {
21623
- units = normalizeUnits(units);
21624
- if (isFunction(this[units])) {
21625
- return this[units](value);
21626
- }
21627
- }
21628
- return this;
21629
- }
21630
-
21631
- function mod(n, x) {
21632
- return ((n % x) + x) % x;
21633
- }
21634
-
21635
- var indexOf;
21636
-
21637
- if (Array.prototype.indexOf) {
21638
- indexOf = Array.prototype.indexOf;
21639
- } else {
21640
- indexOf = function (o) {
21641
- // I know
21642
- var i;
21643
- for (i = 0; i < this.length; ++i) {
21644
- if (this[i] === o) {
21645
- return i;
21646
- }
21647
- }
21648
- return -1;
21649
- };
21650
- }
21651
-
21652
- function daysInMonth(year, month) {
21653
- if (isNaN(year) || isNaN(month)) {
21654
- return NaN;
21655
- }
21656
- var modMonth = mod(month, 12);
21657
- year += (month - modMonth) / 12;
21658
- return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2);
21659
- }
21660
-
21661
- // FORMATTING
21662
-
21663
- addFormatToken('M', ['MM', 2], 'Mo', function () {
21664
- return this.month() + 1;
21665
- });
21666
-
21667
- addFormatToken('MMM', 0, 0, function (format) {
21668
- return this.localeData().monthsShort(this, format);
21669
- });
21670
-
21671
- addFormatToken('MMMM', 0, 0, function (format) {
21672
- return this.localeData().months(this, format);
21673
- });
21674
-
21675
- // ALIASES
21676
-
21677
- addUnitAlias('month', 'M');
21678
-
21679
- // PRIORITY
21680
-
21681
- addUnitPriority('month', 8);
21682
-
21683
- // PARSING
21684
-
21685
- addRegexToken('M', match1to2);
21686
- addRegexToken('MM', match1to2, match2);
21687
- addRegexToken('MMM', function (isStrict, locale) {
21688
- return locale.monthsShortRegex(isStrict);
21689
- });
21690
- addRegexToken('MMMM', function (isStrict, locale) {
21691
- return locale.monthsRegex(isStrict);
21692
- });
21693
-
21694
- addParseToken(['M', 'MM'], function (input, array) {
21695
- array[MONTH] = toInt(input) - 1;
21696
- });
21697
-
21698
- addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
21699
- var month = config._locale.monthsParse(input, token, config._strict);
21700
- // if we didn't find a month name, mark the date as invalid.
21701
- if (month != null) {
21702
- array[MONTH] = month;
21703
- } else {
21704
- getParsingFlags(config).invalidMonth = input;
21705
- }
21706
- });
21707
-
21708
- // LOCALES
21709
-
21710
- var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
21711
- var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
21712
- function localeMonths (m, format) {
21713
- if (!m) {
21714
- return isArray(this._months) ? this._months :
21715
- this._months['standalone'];
21716
- }
21717
- return isArray(this._months) ? this._months[m.month()] :
21718
- this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
21719
- }
21720
-
21721
- var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
21722
- function localeMonthsShort (m, format) {
21723
- if (!m) {
21724
- return isArray(this._monthsShort) ? this._monthsShort :
21725
- this._monthsShort['standalone'];
21726
- }
21727
- return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
21728
- this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
21729
- }
21730
-
21731
- function handleStrictParse(monthName, format, strict) {
21732
- var i, ii, mom, llc = monthName.toLocaleLowerCase();
21733
- if (!this._monthsParse) {
21734
- // this is not used
21735
- this._monthsParse = [];
21736
- this._longMonthsParse = [];
21737
- this._shortMonthsParse = [];
21738
- for (i = 0; i < 12; ++i) {
21739
- mom = createUTC([2000, i]);
21740
- this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
21741
- this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
21742
- }
21743
- }
21744
-
21745
- if (strict) {
21746
- if (format === 'MMM') {
21747
- ii = indexOf.call(this._shortMonthsParse, llc);
21748
- return ii !== -1 ? ii : null;
21749
- } else {
21750
- ii = indexOf.call(this._longMonthsParse, llc);
21751
- return ii !== -1 ? ii : null;
21752
- }
21753
- } else {
21754
- if (format === 'MMM') {
21755
- ii = indexOf.call(this._shortMonthsParse, llc);
21756
- if (ii !== -1) {
21757
- return ii;
21758
- }
21759
- ii = indexOf.call(this._longMonthsParse, llc);
21760
- return ii !== -1 ? ii : null;
21761
- } else {
21762
- ii = indexOf.call(this._longMonthsParse, llc);
21763
- if (ii !== -1) {
21764
- return ii;
21765
- }
21766
- ii = indexOf.call(this._shortMonthsParse, llc);
21767
- return ii !== -1 ? ii : null;
21768
- }
21769
- }
21770
- }
21771
-
21772
- function localeMonthsParse (monthName, format, strict) {
21773
- var i, mom, regex;
21774
-
21775
- if (this._monthsParseExact) {
21776
- return handleStrictParse.call(this, monthName, format, strict);
21777
- }
21778
-
21779
- if (!this._monthsParse) {
21780
- this._monthsParse = [];
21781
- this._longMonthsParse = [];
21782
- this._shortMonthsParse = [];
21783
- }
21784
-
21785
- // TODO: add sorting
21786
- // Sorting makes sure if one month (or abbr) is a prefix of another
21787
- // see sorting in computeMonthsParse
21788
- for (i = 0; i < 12; i++) {
21789
- // make the regex if we don't have it already
21790
- mom = createUTC([2000, i]);
21791
- if (strict && !this._longMonthsParse[i]) {
21792
- this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
21793
- this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
21794
- }
21795
- if (!strict && !this._monthsParse[i]) {
21796
- regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
21797
- this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
21798
- }
21799
- // test the regex
21800
- if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
21801
- return i;
21802
- } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
21803
- return i;
21804
- } else if (!strict && this._monthsParse[i].test(monthName)) {
21805
- return i;
21806
- }
21807
- }
21808
- }
21809
-
21810
- // MOMENTS
21811
-
21812
- function setMonth (mom, value) {
21813
- var dayOfMonth;
21814
-
21815
- if (!mom.isValid()) {
21816
- // No op
21817
- return mom;
21818
- }
21819
-
21820
- if (typeof value === 'string') {
21821
- if (/^\d+$/.test(value)) {
21822
- value = toInt(value);
21823
- } else {
21824
- value = mom.localeData().monthsParse(value);
21825
- // TODO: Another silent failure?
21826
- if (!isNumber(value)) {
21827
- return mom;
21828
- }
21829
- }
21830
- }
21831
-
21832
- dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
21833
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
21834
- return mom;
21835
- }
21836
-
21837
- function getSetMonth (value) {
21838
- if (value != null) {
21839
- setMonth(this, value);
21840
- hooks.updateOffset(this, true);
21841
- return this;
21842
- } else {
21843
- return get(this, 'Month');
21844
- }
21845
- }
21846
-
21847
- function getDaysInMonth () {
21848
- return daysInMonth(this.year(), this.month());
21849
- }
21850
-
21851
- var defaultMonthsShortRegex = matchWord;
21852
- function monthsShortRegex (isStrict) {
21853
- if (this._monthsParseExact) {
21854
- if (!hasOwnProp(this, '_monthsRegex')) {
21855
- computeMonthsParse.call(this);
21856
- }
21857
- if (isStrict) {
21858
- return this._monthsShortStrictRegex;
21859
- } else {
21860
- return this._monthsShortRegex;
21861
- }
21862
- } else {
21863
- if (!hasOwnProp(this, '_monthsShortRegex')) {
21864
- this._monthsShortRegex = defaultMonthsShortRegex;
21865
- }
21866
- return this._monthsShortStrictRegex && isStrict ?
21867
- this._monthsShortStrictRegex : this._monthsShortRegex;
21868
- }
21869
- }
21870
-
21871
- var defaultMonthsRegex = matchWord;
21872
- function monthsRegex (isStrict) {
21873
- if (this._monthsParseExact) {
21874
- if (!hasOwnProp(this, '_monthsRegex')) {
21875
- computeMonthsParse.call(this);
21876
- }
21877
- if (isStrict) {
21878
- return this._monthsStrictRegex;
21879
- } else {
21880
- return this._monthsRegex;
21881
- }
21882
- } else {
21883
- if (!hasOwnProp(this, '_monthsRegex')) {
21884
- this._monthsRegex = defaultMonthsRegex;
21885
- }
21886
- return this._monthsStrictRegex && isStrict ?
21887
- this._monthsStrictRegex : this._monthsRegex;
21888
- }
21889
- }
21890
-
21891
- function computeMonthsParse () {
21892
- function cmpLenRev(a, b) {
21893
- return b.length - a.length;
21894
- }
21895
-
21896
- var shortPieces = [], longPieces = [], mixedPieces = [],
21897
- i, mom;
21898
- for (i = 0; i < 12; i++) {
21899
- // make the regex if we don't have it already
21900
- mom = createUTC([2000, i]);
21901
- shortPieces.push(this.monthsShort(mom, ''));
21902
- longPieces.push(this.months(mom, ''));
21903
- mixedPieces.push(this.months(mom, ''));
21904
- mixedPieces.push(this.monthsShort(mom, ''));
21905
- }
21906
- // Sorting makes sure if one month (or abbr) is a prefix of another it
21907
- // will match the longer piece.
21908
- shortPieces.sort(cmpLenRev);
21909
- longPieces.sort(cmpLenRev);
21910
- mixedPieces.sort(cmpLenRev);
21911
- for (i = 0; i < 12; i++) {
21912
- shortPieces[i] = regexEscape(shortPieces[i]);
21913
- longPieces[i] = regexEscape(longPieces[i]);
21914
- }
21915
- for (i = 0; i < 24; i++) {
21916
- mixedPieces[i] = regexEscape(mixedPieces[i]);
21917
- }
21918
-
21919
- this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
21920
- this._monthsShortRegex = this._monthsRegex;
21921
- this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
21922
- this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
21923
- }
21924
-
21925
- function createDate (y, m, d, h, M, s, ms) {
21926
- // can't just apply() to create a date:
21927
- // https://stackoverflow.com/q/181348
21928
- var date;
21929
- // the date constructor remaps years 0-99 to 1900-1999
21930
- if (y < 100 && y >= 0) {
21931
- // preserve leap years using a full 400 year cycle, then reset
21932
- date = new Date(y + 400, m, d, h, M, s, ms);
21933
- if (isFinite(date.getFullYear())) {
21934
- date.setFullYear(y);
21935
- }
21936
- } else {
21937
- date = new Date(y, m, d, h, M, s, ms);
21938
- }
21939
-
21940
- return date;
21941
- }
21942
-
21943
- function createUTCDate (y) {
21944
- var date;
21945
- // the Date.UTC function remaps years 0-99 to 1900-1999
21946
- if (y < 100 && y >= 0) {
21947
- var args = Array.prototype.slice.call(arguments);
21948
- // preserve leap years using a full 400 year cycle, then reset
21949
- args[0] = y + 400;
21950
- date = new Date(Date.UTC.apply(null, args));
21951
- if (isFinite(date.getUTCFullYear())) {
21952
- date.setUTCFullYear(y);
21953
- }
21954
- } else {
21955
- date = new Date(Date.UTC.apply(null, arguments));
21956
- }
21957
-
21958
- return date;
21959
- }
21960
-
21961
- // start-of-first-week - start-of-year
21962
- function firstWeekOffset(year, dow, doy) {
21963
- var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
21964
- fwd = 7 + dow - doy,
21965
- // first-week day local weekday -- which local weekday is fwd
21966
- fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
21967
-
21968
- return -fwdlw + fwd - 1;
21969
- }
21970
-
21971
- // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
21972
- function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
21973
- var localWeekday = (7 + weekday - dow) % 7,
21974
- weekOffset = firstWeekOffset(year, dow, doy),
21975
- dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
21976
- resYear, resDayOfYear;
21977
-
21978
- if (dayOfYear <= 0) {
21979
- resYear = year - 1;
21980
- resDayOfYear = daysInYear(resYear) + dayOfYear;
21981
- } else if (dayOfYear > daysInYear(year)) {
21982
- resYear = year + 1;
21983
- resDayOfYear = dayOfYear - daysInYear(year);
21984
- } else {
21985
- resYear = year;
21986
- resDayOfYear = dayOfYear;
21987
- }
21988
-
21989
- return {
21990
- year: resYear,
21991
- dayOfYear: resDayOfYear
21992
- };
21993
- }
21994
-
21995
- function weekOfYear(mom, dow, doy) {
21996
- var weekOffset = firstWeekOffset(mom.year(), dow, doy),
21997
- week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
21998
- resWeek, resYear;
21999
-
22000
- if (week < 1) {
22001
- resYear = mom.year() - 1;
22002
- resWeek = week + weeksInYear(resYear, dow, doy);
22003
- } else if (week > weeksInYear(mom.year(), dow, doy)) {
22004
- resWeek = week - weeksInYear(mom.year(), dow, doy);
22005
- resYear = mom.year() + 1;
22006
- } else {
22007
- resYear = mom.year();
22008
- resWeek = week;
22009
- }
22010
-
22011
- return {
22012
- week: resWeek,
22013
- year: resYear
22014
- };
22015
- }
22016
-
22017
- function weeksInYear(year, dow, doy) {
22018
- var weekOffset = firstWeekOffset(year, dow, doy),
22019
- weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
22020
- return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
22021
- }
22022
-
22023
- // FORMATTING
22024
-
22025
- addFormatToken('w', ['ww', 2], 'wo', 'week');
22026
- addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
22027
-
22028
- // ALIASES
22029
-
22030
- addUnitAlias('week', 'w');
22031
- addUnitAlias('isoWeek', 'W');
22032
-
22033
- // PRIORITIES
22034
-
22035
- addUnitPriority('week', 5);
22036
- addUnitPriority('isoWeek', 5);
22037
-
22038
- // PARSING
22039
-
22040
- addRegexToken('w', match1to2);
22041
- addRegexToken('ww', match1to2, match2);
22042
- addRegexToken('W', match1to2);
22043
- addRegexToken('WW', match1to2, match2);
22044
-
22045
- addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
22046
- week[token.substr(0, 1)] = toInt(input);
22047
- });
22048
-
22049
- // HELPERS
22050
-
22051
- // LOCALES
22052
-
22053
- function localeWeek (mom) {
22054
- return weekOfYear(mom, this._week.dow, this._week.doy).week;
22055
- }
22056
-
22057
- var defaultLocaleWeek = {
22058
- dow : 0, // Sunday is the first day of the week.
22059
- doy : 6 // The week that contains Jan 6th is the first week of the year.
22060
- };
22061
-
22062
- function localeFirstDayOfWeek () {
22063
- return this._week.dow;
22064
- }
22065
-
22066
- function localeFirstDayOfYear () {
22067
- return this._week.doy;
22068
- }
22069
-
22070
- // MOMENTS
22071
-
22072
- function getSetWeek (input) {
22073
- var week = this.localeData().week(this);
22074
- return input == null ? week : this.add((input - week) * 7, 'd');
22075
- }
22076
-
22077
- function getSetISOWeek (input) {
22078
- var week = weekOfYear(this, 1, 4).week;
22079
- return input == null ? week : this.add((input - week) * 7, 'd');
22080
- }
22081
-
22082
- // FORMATTING
22083
-
22084
- addFormatToken('d', 0, 'do', 'day');
22085
-
22086
- addFormatToken('dd', 0, 0, function (format) {
22087
- return this.localeData().weekdaysMin(this, format);
22088
- });
22089
-
22090
- addFormatToken('ddd', 0, 0, function (format) {
22091
- return this.localeData().weekdaysShort(this, format);
22092
- });
22093
-
22094
- addFormatToken('dddd', 0, 0, function (format) {
22095
- return this.localeData().weekdays(this, format);
22096
- });
22097
-
22098
- addFormatToken('e', 0, 0, 'weekday');
22099
- addFormatToken('E', 0, 0, 'isoWeekday');
22100
-
22101
- // ALIASES
22102
-
22103
- addUnitAlias('day', 'd');
22104
- addUnitAlias('weekday', 'e');
22105
- addUnitAlias('isoWeekday', 'E');
22106
-
22107
- // PRIORITY
22108
- addUnitPriority('day', 11);
22109
- addUnitPriority('weekday', 11);
22110
- addUnitPriority('isoWeekday', 11);
22111
-
22112
- // PARSING
22113
-
22114
- addRegexToken('d', match1to2);
22115
- addRegexToken('e', match1to2);
22116
- addRegexToken('E', match1to2);
22117
- addRegexToken('dd', function (isStrict, locale) {
22118
- return locale.weekdaysMinRegex(isStrict);
22119
- });
22120
- addRegexToken('ddd', function (isStrict, locale) {
22121
- return locale.weekdaysShortRegex(isStrict);
22122
- });
22123
- addRegexToken('dddd', function (isStrict, locale) {
22124
- return locale.weekdaysRegex(isStrict);
22125
- });
22126
-
22127
- addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
22128
- var weekday = config._locale.weekdaysParse(input, token, config._strict);
22129
- // if we didn't get a weekday name, mark the date as invalid
22130
- if (weekday != null) {
22131
- week.d = weekday;
22132
- } else {
22133
- getParsingFlags(config).invalidWeekday = input;
22134
- }
22135
- });
22136
-
22137
- addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
22138
- week[token] = toInt(input);
22139
- });
22140
-
22141
- // HELPERS
22142
-
22143
- function parseWeekday(input, locale) {
22144
- if (typeof input !== 'string') {
22145
- return input;
22146
- }
22147
-
22148
- if (!isNaN(input)) {
22149
- return parseInt(input, 10);
22150
- }
22151
-
22152
- input = locale.weekdaysParse(input);
22153
- if (typeof input === 'number') {
22154
- return input;
22155
- }
22156
-
22157
- return null;
22158
- }
22159
-
22160
- function parseIsoWeekday(input, locale) {
22161
- if (typeof input === 'string') {
22162
- return locale.weekdaysParse(input) % 7 || 7;
22163
- }
22164
- return isNaN(input) ? null : input;
22165
- }
22166
-
22167
- // LOCALES
22168
- function shiftWeekdays (ws, n) {
22169
- return ws.slice(n, 7).concat(ws.slice(0, n));
22170
- }
22171
-
22172
- var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
22173
- function localeWeekdays (m, format) {
22174
- var weekdays = isArray(this._weekdays) ? this._weekdays :
22175
- this._weekdays[(m && m !== true && this._weekdays.isFormat.test(format)) ? 'format' : 'standalone'];
22176
- return (m === true) ? shiftWeekdays(weekdays, this._week.dow)
22177
- : (m) ? weekdays[m.day()] : weekdays;
22178
- }
22179
-
22180
- var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
22181
- function localeWeekdaysShort (m) {
22182
- return (m === true) ? shiftWeekdays(this._weekdaysShort, this._week.dow)
22183
- : (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
22184
- }
22185
-
22186
- var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
22187
- function localeWeekdaysMin (m) {
22188
- return (m === true) ? shiftWeekdays(this._weekdaysMin, this._week.dow)
22189
- : (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
22190
- }
22191
-
22192
- function handleStrictParse$1(weekdayName, format, strict) {
22193
- var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
22194
- if (!this._weekdaysParse) {
22195
- this._weekdaysParse = [];
22196
- this._shortWeekdaysParse = [];
22197
- this._minWeekdaysParse = [];
22198
-
22199
- for (i = 0; i < 7; ++i) {
22200
- mom = createUTC([2000, 1]).day(i);
22201
- this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
22202
- this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
22203
- this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
22204
- }
22205
- }
22206
-
22207
- if (strict) {
22208
- if (format === 'dddd') {
22209
- ii = indexOf.call(this._weekdaysParse, llc);
22210
- return ii !== -1 ? ii : null;
22211
- } else if (format === 'ddd') {
22212
- ii = indexOf.call(this._shortWeekdaysParse, llc);
22213
- return ii !== -1 ? ii : null;
22214
- } else {
22215
- ii = indexOf.call(this._minWeekdaysParse, llc);
22216
- return ii !== -1 ? ii : null;
22217
- }
22218
- } else {
22219
- if (format === 'dddd') {
22220
- ii = indexOf.call(this._weekdaysParse, llc);
22221
- if (ii !== -1) {
22222
- return ii;
22223
- }
22224
- ii = indexOf.call(this._shortWeekdaysParse, llc);
22225
- if (ii !== -1) {
22226
- return ii;
22227
- }
22228
- ii = indexOf.call(this._minWeekdaysParse, llc);
22229
- return ii !== -1 ? ii : null;
22230
- } else if (format === 'ddd') {
22231
- ii = indexOf.call(this._shortWeekdaysParse, llc);
22232
- if (ii !== -1) {
22233
- return ii;
22234
- }
22235
- ii = indexOf.call(this._weekdaysParse, llc);
22236
- if (ii !== -1) {
22237
- return ii;
22238
- }
22239
- ii = indexOf.call(this._minWeekdaysParse, llc);
22240
- return ii !== -1 ? ii : null;
22241
- } else {
22242
- ii = indexOf.call(this._minWeekdaysParse, llc);
22243
- if (ii !== -1) {
22244
- return ii;
22245
- }
22246
- ii = indexOf.call(this._weekdaysParse, llc);
22247
- if (ii !== -1) {
22248
- return ii;
22249
- }
22250
- ii = indexOf.call(this._shortWeekdaysParse, llc);
22251
- return ii !== -1 ? ii : null;
22252
- }
22253
- }
22254
- }
22255
-
22256
- function localeWeekdaysParse (weekdayName, format, strict) {
22257
- var i, mom, regex;
22258
-
22259
- if (this._weekdaysParseExact) {
22260
- return handleStrictParse$1.call(this, weekdayName, format, strict);
22261
- }
22262
-
22263
- if (!this._weekdaysParse) {
22264
- this._weekdaysParse = [];
22265
- this._minWeekdaysParse = [];
22266
- this._shortWeekdaysParse = [];
22267
- this._fullWeekdaysParse = [];
22268
- }
22269
-
22270
- for (i = 0; i < 7; i++) {
22271
- // make the regex if we don't have it already
22272
-
22273
- mom = createUTC([2000, 1]).day(i);
22274
- if (strict && !this._fullWeekdaysParse[i]) {
22275
- this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i');
22276
- this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i');
22277
- this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i');
22278
- }
22279
- if (!this._weekdaysParse[i]) {
22280
- regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
22281
- this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
22282
- }
22283
- // test the regex
22284
- if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
22285
- return i;
22286
- } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
22287
- return i;
22288
- } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
22289
- return i;
22290
- } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
22291
- return i;
22292
- }
22293
- }
22294
- }
22295
-
22296
- // MOMENTS
22297
-
22298
- function getSetDayOfWeek (input) {
22299
- if (!this.isValid()) {
22300
- return input != null ? this : NaN;
22301
- }
22302
- var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
22303
- if (input != null) {
22304
- input = parseWeekday(input, this.localeData());
22305
- return this.add(input - day, 'd');
22306
- } else {
22307
- return day;
22308
- }
22309
- }
22310
-
22311
- function getSetLocaleDayOfWeek (input) {
22312
- if (!this.isValid()) {
22313
- return input != null ? this : NaN;
22314
- }
22315
- var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
22316
- return input == null ? weekday : this.add(input - weekday, 'd');
22317
- }
22318
-
22319
- function getSetISODayOfWeek (input) {
22320
- if (!this.isValid()) {
22321
- return input != null ? this : NaN;
22322
- }
22323
-
22324
- // behaves the same as moment#day except
22325
- // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
22326
- // as a setter, sunday should belong to the previous week.
22327
-
22328
- if (input != null) {
22329
- var weekday = parseIsoWeekday(input, this.localeData());
22330
- return this.day(this.day() % 7 ? weekday : weekday - 7);
22331
- } else {
22332
- return this.day() || 7;
22333
- }
22334
- }
22335
-
22336
- var defaultWeekdaysRegex = matchWord;
22337
- function weekdaysRegex (isStrict) {
22338
- if (this._weekdaysParseExact) {
22339
- if (!hasOwnProp(this, '_weekdaysRegex')) {
22340
- computeWeekdaysParse.call(this);
22341
- }
22342
- if (isStrict) {
22343
- return this._weekdaysStrictRegex;
22344
- } else {
22345
- return this._weekdaysRegex;
22346
- }
22347
- } else {
22348
- if (!hasOwnProp(this, '_weekdaysRegex')) {
22349
- this._weekdaysRegex = defaultWeekdaysRegex;
22350
- }
22351
- return this._weekdaysStrictRegex && isStrict ?
22352
- this._weekdaysStrictRegex : this._weekdaysRegex;
22353
- }
22354
- }
22355
-
22356
- var defaultWeekdaysShortRegex = matchWord;
22357
- function weekdaysShortRegex (isStrict) {
22358
- if (this._weekdaysParseExact) {
22359
- if (!hasOwnProp(this, '_weekdaysRegex')) {
22360
- computeWeekdaysParse.call(this);
22361
- }
22362
- if (isStrict) {
22363
- return this._weekdaysShortStrictRegex;
22364
- } else {
22365
- return this._weekdaysShortRegex;
22366
- }
22367
- } else {
22368
- if (!hasOwnProp(this, '_weekdaysShortRegex')) {
22369
- this._weekdaysShortRegex = defaultWeekdaysShortRegex;
22370
- }
22371
- return this._weekdaysShortStrictRegex && isStrict ?
22372
- this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
22373
- }
22374
- }
22375
-
22376
- var defaultWeekdaysMinRegex = matchWord;
22377
- function weekdaysMinRegex (isStrict) {
22378
- if (this._weekdaysParseExact) {
22379
- if (!hasOwnProp(this, '_weekdaysRegex')) {
22380
- computeWeekdaysParse.call(this);
22381
- }
22382
- if (isStrict) {
22383
- return this._weekdaysMinStrictRegex;
22384
- } else {
22385
- return this._weekdaysMinRegex;
22386
- }
22387
- } else {
22388
- if (!hasOwnProp(this, '_weekdaysMinRegex')) {
22389
- this._weekdaysMinRegex = defaultWeekdaysMinRegex;
22390
- }
22391
- return this._weekdaysMinStrictRegex && isStrict ?
22392
- this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
22393
- }
22394
- }
22395
-
22396
-
22397
- function computeWeekdaysParse () {
22398
- function cmpLenRev(a, b) {
22399
- return b.length - a.length;
22400
- }
22401
-
22402
- var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
22403
- i, mom, minp, shortp, longp;
22404
- for (i = 0; i < 7; i++) {
22405
- // make the regex if we don't have it already
22406
- mom = createUTC([2000, 1]).day(i);
22407
- minp = this.weekdaysMin(mom, '');
22408
- shortp = this.weekdaysShort(mom, '');
22409
- longp = this.weekdays(mom, '');
22410
- minPieces.push(minp);
22411
- shortPieces.push(shortp);
22412
- longPieces.push(longp);
22413
- mixedPieces.push(minp);
22414
- mixedPieces.push(shortp);
22415
- mixedPieces.push(longp);
22416
- }
22417
- // Sorting makes sure if one weekday (or abbr) is a prefix of another it
22418
- // will match the longer piece.
22419
- minPieces.sort(cmpLenRev);
22420
- shortPieces.sort(cmpLenRev);
22421
- longPieces.sort(cmpLenRev);
22422
- mixedPieces.sort(cmpLenRev);
22423
- for (i = 0; i < 7; i++) {
22424
- shortPieces[i] = regexEscape(shortPieces[i]);
22425
- longPieces[i] = regexEscape(longPieces[i]);
22426
- mixedPieces[i] = regexEscape(mixedPieces[i]);
22427
- }
22428
-
22429
- this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
22430
- this._weekdaysShortRegex = this._weekdaysRegex;
22431
- this._weekdaysMinRegex = this._weekdaysRegex;
22432
-
22433
- this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
22434
- this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
22435
- this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
22436
- }
22437
-
22438
- // FORMATTING
22439
-
22440
- function hFormat() {
22441
- return this.hours() % 12 || 12;
22442
- }
22443
-
22444
- function kFormat() {
22445
- return this.hours() || 24;
22446
- }
22447
-
22448
- addFormatToken('H', ['HH', 2], 0, 'hour');
22449
- addFormatToken('h', ['hh', 2], 0, hFormat);
22450
- addFormatToken('k', ['kk', 2], 0, kFormat);
22451
-
22452
- addFormatToken('hmm', 0, 0, function () {
22453
- return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
22454
- });
22455
-
22456
- addFormatToken('hmmss', 0, 0, function () {
22457
- return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
22458
- zeroFill(this.seconds(), 2);
22459
- });
22460
-
22461
- addFormatToken('Hmm', 0, 0, function () {
22462
- return '' + this.hours() + zeroFill(this.minutes(), 2);
22463
- });
22464
-
22465
- addFormatToken('Hmmss', 0, 0, function () {
22466
- return '' + this.hours() + zeroFill(this.minutes(), 2) +
22467
- zeroFill(this.seconds(), 2);
22468
- });
22469
-
22470
- function meridiem (token, lowercase) {
22471
- addFormatToken(token, 0, 0, function () {
22472
- return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
22473
- });
22474
- }
22475
-
22476
- meridiem('a', true);
22477
- meridiem('A', false);
22478
-
22479
- // ALIASES
22480
-
22481
- addUnitAlias('hour', 'h');
22482
-
22483
- // PRIORITY
22484
- addUnitPriority('hour', 13);
22485
-
22486
- // PARSING
22487
-
22488
- function matchMeridiem (isStrict, locale) {
22489
- return locale._meridiemParse;
22490
- }
22491
-
22492
- addRegexToken('a', matchMeridiem);
22493
- addRegexToken('A', matchMeridiem);
22494
- addRegexToken('H', match1to2);
22495
- addRegexToken('h', match1to2);
22496
- addRegexToken('k', match1to2);
22497
- addRegexToken('HH', match1to2, match2);
22498
- addRegexToken('hh', match1to2, match2);
22499
- addRegexToken('kk', match1to2, match2);
22500
-
22501
- addRegexToken('hmm', match3to4);
22502
- addRegexToken('hmmss', match5to6);
22503
- addRegexToken('Hmm', match3to4);
22504
- addRegexToken('Hmmss', match5to6);
22505
-
22506
- addParseToken(['H', 'HH'], HOUR);
22507
- addParseToken(['k', 'kk'], function (input, array, config) {
22508
- var kInput = toInt(input);
22509
- array[HOUR] = kInput === 24 ? 0 : kInput;
22510
- });
22511
- addParseToken(['a', 'A'], function (input, array, config) {
22512
- config._isPm = config._locale.isPM(input);
22513
- config._meridiem = input;
22514
- });
22515
- addParseToken(['h', 'hh'], function (input, array, config) {
22516
- array[HOUR] = toInt(input);
22517
- getParsingFlags(config).bigHour = true;
22518
- });
22519
- addParseToken('hmm', function (input, array, config) {
22520
- var pos = input.length - 2;
22521
- array[HOUR] = toInt(input.substr(0, pos));
22522
- array[MINUTE] = toInt(input.substr(pos));
22523
- getParsingFlags(config).bigHour = true;
22524
- });
22525
- addParseToken('hmmss', function (input, array, config) {
22526
- var pos1 = input.length - 4;
22527
- var pos2 = input.length - 2;
22528
- array[HOUR] = toInt(input.substr(0, pos1));
22529
- array[MINUTE] = toInt(input.substr(pos1, 2));
22530
- array[SECOND] = toInt(input.substr(pos2));
22531
- getParsingFlags(config).bigHour = true;
22532
- });
22533
- addParseToken('Hmm', function (input, array, config) {
22534
- var pos = input.length - 2;
22535
- array[HOUR] = toInt(input.substr(0, pos));
22536
- array[MINUTE] = toInt(input.substr(pos));
22537
- });
22538
- addParseToken('Hmmss', function (input, array, config) {
22539
- var pos1 = input.length - 4;
22540
- var pos2 = input.length - 2;
22541
- array[HOUR] = toInt(input.substr(0, pos1));
22542
- array[MINUTE] = toInt(input.substr(pos1, 2));
22543
- array[SECOND] = toInt(input.substr(pos2));
22544
- });
22545
-
22546
- // LOCALES
22547
-
22548
- function localeIsPM (input) {
22549
- // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
22550
- // Using charAt should be more compatible.
22551
- return ((input + '').toLowerCase().charAt(0) === 'p');
22552
- }
22553
-
22554
- var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
22555
- function localeMeridiem (hours, minutes, isLower) {
22556
- if (hours > 11) {
22557
- return isLower ? 'pm' : 'PM';
22558
- } else {
22559
- return isLower ? 'am' : 'AM';
22560
- }
22561
- }
22562
-
22563
-
22564
- // MOMENTS
22565
-
22566
- // Setting the hour should keep the time, because the user explicitly
22567
- // specified which hour they want. So trying to maintain the same hour (in
22568
- // a new timezone) makes sense. Adding/subtracting hours does not follow
22569
- // this rule.
22570
- var getSetHour = makeGetSet('Hours', true);
22571
-
22572
- var baseConfig = {
22573
- calendar: defaultCalendar,
22574
- longDateFormat: defaultLongDateFormat,
22575
- invalidDate: defaultInvalidDate,
22576
- ordinal: defaultOrdinal,
22577
- dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
22578
- relativeTime: defaultRelativeTime,
22579
-
22580
- months: defaultLocaleMonths,
22581
- monthsShort: defaultLocaleMonthsShort,
22582
-
22583
- week: defaultLocaleWeek,
22584
-
22585
- weekdays: defaultLocaleWeekdays,
22586
- weekdaysMin: defaultLocaleWeekdaysMin,
22587
- weekdaysShort: defaultLocaleWeekdaysShort,
22588
-
22589
- meridiemParse: defaultLocaleMeridiemParse
22590
- };
22591
-
22592
- // internal storage for locale config files
22593
- var locales = {};
22594
- var localeFamilies = {};
22595
- var globalLocale;
22596
-
22597
- function normalizeLocale(key) {
22598
- return key ? key.toLowerCase().replace('_', '-') : key;
22599
- }
22600
-
22601
- // pick the locale from the array
22602
- // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
22603
- // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
22604
- function chooseLocale(names) {
22605
- var i = 0, j, next, locale, split;
22606
-
22607
- while (i < names.length) {
22608
- split = normalizeLocale(names[i]).split('-');
22609
- j = split.length;
22610
- next = normalizeLocale(names[i + 1]);
22611
- next = next ? next.split('-') : null;
22612
- while (j > 0) {
22613
- locale = loadLocale(split.slice(0, j).join('-'));
22614
- if (locale) {
22615
- return locale;
22616
- }
22617
- if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
22618
- //the next array item is better than a shallower substring of this one
22619
- break;
22620
- }
22621
- j--;
22622
- }
22623
- i++;
22624
- }
22625
- return globalLocale;
22626
- }
22627
-
22628
- function loadLocale(name) {
22629
- var oldLocale = null;
22630
- // TODO: Find a better way to register and load all the locales in Node
22631
- if (!locales[name] && (typeof module !== 'undefined') &&
22632
- module && module.exports) {
22633
- try {
22634
- oldLocale = globalLocale._abbr;
22635
- var aliasedRequire = require;
22636
- __webpack_require__("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./" + name);
22637
- getSetGlobalLocale(oldLocale);
22638
- } catch (e) {}
22639
- }
22640
- return locales[name];
22641
- }
22642
-
22643
- // This function will load locale and then set the global locale. If
22644
- // no arguments are passed in, it will simply return the current global
22645
- // locale key.
22646
- function getSetGlobalLocale (key, values) {
22647
- var data;
22648
- if (key) {
22649
- if (isUndefined(values)) {
22650
- data = getLocale(key);
22651
- }
22652
- else {
22653
- data = defineLocale(key, values);
22654
- }
22655
-
22656
- if (data) {
22657
- // moment.duration._locale = moment._locale = data;
22658
- globalLocale = data;
22659
- }
22660
- else {
22661
- if ((typeof console !== 'undefined') && console.warn) {
22662
- //warn user if arguments are passed but the locale could not be set
22663
- console.warn('Locale ' + key + ' not found. Did you forget to load it?');
22664
- }
22665
- }
22666
- }
22667
-
22668
- return globalLocale._abbr;
22669
- }
22670
-
22671
- function defineLocale (name, config) {
22672
- if (config !== null) {
22673
- var locale, parentConfig = baseConfig;
22674
- config.abbr = name;
22675
- if (locales[name] != null) {
22676
- deprecateSimple('defineLocaleOverride',
22677
- 'use moment.updateLocale(localeName, config) to change ' +
22678
- 'an existing locale. moment.defineLocale(localeName, ' +
22679
- 'config) should only be used for creating a new locale ' +
22680
- 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
22681
- parentConfig = locales[name]._config;
22682
- } else if (config.parentLocale != null) {
22683
- if (locales[config.parentLocale] != null) {
22684
- parentConfig = locales[config.parentLocale]._config;
22685
- } else {
22686
- locale = loadLocale(config.parentLocale);
22687
- if (locale != null) {
22688
- parentConfig = locale._config;
22689
- } else {
22690
- if (!localeFamilies[config.parentLocale]) {
22691
- localeFamilies[config.parentLocale] = [];
22692
- }
22693
- localeFamilies[config.parentLocale].push({
22694
- name: name,
22695
- config: config
22696
- });
22697
- return null;
22698
- }
22699
- }
22700
- }
22701
- locales[name] = new Locale(mergeConfigs(parentConfig, config));
22702
-
22703
- if (localeFamilies[name]) {
22704
- localeFamilies[name].forEach(function (x) {
22705
- defineLocale(x.name, x.config);
22706
- });
22707
- }
22708
-
22709
- // backwards compat for now: also set the locale
22710
- // make sure we set the locale AFTER all child locales have been
22711
- // created, so we won't end up with the child locale set.
22712
- getSetGlobalLocale(name);
22713
-
22714
-
22715
- return locales[name];
22716
- } else {
22717
- // useful for testing
22718
- delete locales[name];
22719
- return null;
22720
- }
22721
- }
22722
-
22723
- function updateLocale(name, config) {
22724
- if (config != null) {
22725
- var locale, tmpLocale, parentConfig = baseConfig;
22726
- // MERGE
22727
- tmpLocale = loadLocale(name);
22728
- if (tmpLocale != null) {
22729
- parentConfig = tmpLocale._config;
22730
- }
22731
- config = mergeConfigs(parentConfig, config);
22732
- locale = new Locale(config);
22733
- locale.parentLocale = locales[name];
22734
- locales[name] = locale;
22735
-
22736
- // backwards compat for now: also set the locale
22737
- getSetGlobalLocale(name);
22738
- } else {
22739
- // pass null for config to unupdate, useful for tests
22740
- if (locales[name] != null) {
22741
- if (locales[name].parentLocale != null) {
22742
- locales[name] = locales[name].parentLocale;
22743
- } else if (locales[name] != null) {
22744
- delete locales[name];
22745
- }
22746
- }
22747
- }
22748
- return locales[name];
22749
- }
22750
-
22751
- // returns locale data
22752
- function getLocale (key) {
22753
- var locale;
22754
-
22755
- if (key && key._locale && key._locale._abbr) {
22756
- key = key._locale._abbr;
22757
- }
22758
-
22759
- if (!key) {
22760
- return globalLocale;
22761
- }
22762
-
22763
- if (!isArray(key)) {
22764
- //short-circuit everything else
22765
- locale = loadLocale(key);
22766
- if (locale) {
22767
- return locale;
22768
- }
22769
- key = [key];
22770
- }
22771
-
22772
- return chooseLocale(key);
22773
- }
22774
-
22775
- function listLocales() {
22776
- return keys(locales);
22777
- }
22778
-
22779
- function checkOverflow (m) {
22780
- var overflow;
22781
- var a = m._a;
22782
-
22783
- if (a && getParsingFlags(m).overflow === -2) {
22784
- overflow =
22785
- a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
22786
- a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
22787
- a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
22788
- a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
22789
- a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
22790
- a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
22791
- -1;
22792
-
22793
- if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
22794
- overflow = DATE;
22795
- }
22796
- if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
22797
- overflow = WEEK;
22798
- }
22799
- if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
22800
- overflow = WEEKDAY;
22801
- }
22802
-
22803
- getParsingFlags(m).overflow = overflow;
22804
- }
22805
-
22806
- return m;
22807
- }
22808
-
22809
- // Pick the first defined of two or three arguments.
22810
- function defaults(a, b, c) {
22811
- if (a != null) {
22812
- return a;
22813
- }
22814
- if (b != null) {
22815
- return b;
22816
- }
22817
- return c;
22818
- }
22819
-
22820
- function currentDateArray(config) {
22821
- // hooks is actually the exported moment object
22822
- var nowValue = new Date(hooks.now());
22823
- if (config._useUTC) {
22824
- return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
22825
- }
22826
- return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
22827
- }
22828
-
22829
- // convert an array to a date.
22830
- // the array should mirror the parameters below
22831
- // note: all values past the year are optional and will default to the lowest possible value.
22832
- // [year, month, day , hour, minute, second, millisecond]
22833
- function configFromArray (config) {
22834
- var i, date, input = [], currentDate, expectedWeekday, yearToUse;
22835
-
22836
- if (config._d) {
22837
- return;
22838
- }
22839
-
22840
- currentDate = currentDateArray(config);
22841
-
22842
- //compute day of the year from weeks and weekdays
22843
- if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
22844
- dayOfYearFromWeekInfo(config);
22845
- }
22846
-
22847
- //if the day of the year is set, figure out what it is
22848
- if (config._dayOfYear != null) {
22849
- yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
22850
-
22851
- if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
22852
- getParsingFlags(config)._overflowDayOfYear = true;
22853
- }
22854
-
22855
- date = createUTCDate(yearToUse, 0, config._dayOfYear);
22856
- config._a[MONTH] = date.getUTCMonth();
22857
- config._a[DATE] = date.getUTCDate();
22858
- }
22859
-
22860
- // Default to current date.
22861
- // * if no year, month, day of month are given, default to today
22862
- // * if day of month is given, default month and year
22863
- // * if month is given, default only year
22864
- // * if year is given, don't default anything
22865
- for (i = 0; i < 3 && config._a[i] == null; ++i) {
22866
- config._a[i] = input[i] = currentDate[i];
22867
- }
22868
-
22869
- // Zero out whatever was not defaulted, including time
22870
- for (; i < 7; i++) {
22871
- config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
22872
- }
22873
-
22874
- // Check for 24:00:00.000
22875
- if (config._a[HOUR] === 24 &&
22876
- config._a[MINUTE] === 0 &&
22877
- config._a[SECOND] === 0 &&
22878
- config._a[MILLISECOND] === 0) {
22879
- config._nextDay = true;
22880
- config._a[HOUR] = 0;
22881
- }
22882
-
22883
- config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
22884
- expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
22885
-
22886
- // Apply timezone offset from input. The actual utcOffset can be changed
22887
- // with parseZone.
22888
- if (config._tzm != null) {
22889
- config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
22890
- }
22891
-
22892
- if (config._nextDay) {
22893
- config._a[HOUR] = 24;
22894
- }
22895
-
22896
- // check for mismatching day of week
22897
- if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
22898
- getParsingFlags(config).weekdayMismatch = true;
22899
- }
22900
- }
22901
-
22902
- function dayOfYearFromWeekInfo(config) {
22903
- var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
22904
-
22905
- w = config._w;
22906
- if (w.GG != null || w.W != null || w.E != null) {
22907
- dow = 1;
22908
- doy = 4;
22909
-
22910
- // TODO: We need to take the current isoWeekYear, but that depends on
22911
- // how we interpret now (local, utc, fixed offset). So create
22912
- // a now version of current config (take local/utc/offset flags, and
22913
- // create now).
22914
- weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
22915
- week = defaults(w.W, 1);
22916
- weekday = defaults(w.E, 1);
22917
- if (weekday < 1 || weekday > 7) {
22918
- weekdayOverflow = true;
22919
- }
22920
- } else {
22921
- dow = config._locale._week.dow;
22922
- doy = config._locale._week.doy;
22923
-
22924
- var curWeek = weekOfYear(createLocal(), dow, doy);
22925
-
22926
- weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
22927
-
22928
- // Default to current week.
22929
- week = defaults(w.w, curWeek.week);
22930
-
22931
- if (w.d != null) {
22932
- // weekday -- low day numbers are considered next week
22933
- weekday = w.d;
22934
- if (weekday < 0 || weekday > 6) {
22935
- weekdayOverflow = true;
22936
- }
22937
- } else if (w.e != null) {
22938
- // local weekday -- counting starts from beginning of week
22939
- weekday = w.e + dow;
22940
- if (w.e < 0 || w.e > 6) {
22941
- weekdayOverflow = true;
22942
- }
22943
- } else {
22944
- // default to beginning of week
22945
- weekday = dow;
22946
- }
22947
- }
22948
- if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
22949
- getParsingFlags(config)._overflowWeeks = true;
22950
- } else if (weekdayOverflow != null) {
22951
- getParsingFlags(config)._overflowWeekday = true;
22952
- } else {
22953
- temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
22954
- config._a[YEAR] = temp.year;
22955
- config._dayOfYear = temp.dayOfYear;
22956
- }
22957
- }
22958
-
22959
- // iso 8601 regex
22960
- // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
22961
- var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
22962
- var basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
22963
-
22964
- var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
22965
-
22966
- var isoDates = [
22967
- ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
22968
- ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
22969
- ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
22970
- ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
22971
- ['YYYY-DDD', /\d{4}-\d{3}/],
22972
- ['YYYY-MM', /\d{4}-\d\d/, false],
22973
- ['YYYYYYMMDD', /[+-]\d{10}/],
22974
- ['YYYYMMDD', /\d{8}/],
22975
- // YYYYMM is NOT allowed by the standard
22976
- ['GGGG[W]WWE', /\d{4}W\d{3}/],
22977
- ['GGGG[W]WW', /\d{4}W\d{2}/, false],
22978
- ['YYYYDDD', /\d{7}/]
22979
- ];
22980
-
22981
- // iso time formats and regexes
22982
- var isoTimes = [
22983
- ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
22984
- ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
22985
- ['HH:mm:ss', /\d\d:\d\d:\d\d/],
22986
- ['HH:mm', /\d\d:\d\d/],
22987
- ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
22988
- ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
22989
- ['HHmmss', /\d\d\d\d\d\d/],
22990
- ['HHmm', /\d\d\d\d/],
22991
- ['HH', /\d\d/]
22992
- ];
22993
-
22994
- var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
22995
-
22996
- // date from iso format
22997
- function configFromISO(config) {
22998
- var i, l,
22999
- string = config._i,
23000
- match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
23001
- allowTime, dateFormat, timeFormat, tzFormat;
23002
-
23003
- if (match) {
23004
- getParsingFlags(config).iso = true;
23005
-
23006
- for (i = 0, l = isoDates.length; i < l; i++) {
23007
- if (isoDates[i][1].exec(match[1])) {
23008
- dateFormat = isoDates[i][0];
23009
- allowTime = isoDates[i][2] !== false;
23010
- break;
23011
- }
23012
- }
23013
- if (dateFormat == null) {
23014
- config._isValid = false;
23015
- return;
23016
- }
23017
- if (match[3]) {
23018
- for (i = 0, l = isoTimes.length; i < l; i++) {
23019
- if (isoTimes[i][1].exec(match[3])) {
23020
- // match[2] should be 'T' or space
23021
- timeFormat = (match[2] || ' ') + isoTimes[i][0];
23022
- break;
23023
- }
23024
- }
23025
- if (timeFormat == null) {
23026
- config._isValid = false;
23027
- return;
23028
- }
23029
- }
23030
- if (!allowTime && timeFormat != null) {
23031
- config._isValid = false;
23032
- return;
23033
- }
23034
- if (match[4]) {
23035
- if (tzRegex.exec(match[4])) {
23036
- tzFormat = 'Z';
23037
- } else {
23038
- config._isValid = false;
23039
- return;
23040
- }
23041
- }
23042
- config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
23043
- configFromStringAndFormat(config);
23044
- } else {
23045
- config._isValid = false;
23046
- }
23047
- }
23048
-
23049
- // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
23050
- var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
23051
-
23052
- function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
23053
- var result = [
23054
- untruncateYear(yearStr),
23055
- defaultLocaleMonthsShort.indexOf(monthStr),
23056
- parseInt(dayStr, 10),
23057
- parseInt(hourStr, 10),
23058
- parseInt(minuteStr, 10)
23059
- ];
23060
-
23061
- if (secondStr) {
23062
- result.push(parseInt(secondStr, 10));
23063
- }
23064
-
23065
- return result;
23066
- }
23067
-
23068
- function untruncateYear(yearStr) {
23069
- var year = parseInt(yearStr, 10);
23070
- if (year <= 49) {
23071
- return 2000 + year;
23072
- } else if (year <= 999) {
23073
- return 1900 + year;
23074
- }
23075
- return year;
23076
- }
23077
-
23078
- function preprocessRFC2822(s) {
23079
- // Remove comments and folding whitespace and replace multiple-spaces with a single space
23080
- return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, '');
23081
- }
23082
-
23083
- function checkWeekday(weekdayStr, parsedInput, config) {
23084
- if (weekdayStr) {
23085
- // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
23086
- var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
23087
- weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
23088
- if (weekdayProvided !== weekdayActual) {
23089
- getParsingFlags(config).weekdayMismatch = true;
23090
- config._isValid = false;
23091
- return false;
23092
- }
23093
- }
23094
- return true;
23095
- }
23096
-
23097
- var obsOffsets = {
23098
- UT: 0,
23099
- GMT: 0,
23100
- EDT: -4 * 60,
23101
- EST: -5 * 60,
23102
- CDT: -5 * 60,
23103
- CST: -6 * 60,
23104
- MDT: -6 * 60,
23105
- MST: -7 * 60,
23106
- PDT: -7 * 60,
23107
- PST: -8 * 60
23108
- };
23109
-
23110
- function calculateOffset(obsOffset, militaryOffset, numOffset) {
23111
- if (obsOffset) {
23112
- return obsOffsets[obsOffset];
23113
- } else if (militaryOffset) {
23114
- // the only allowed military tz is Z
23115
- return 0;
23116
- } else {
23117
- var hm = parseInt(numOffset, 10);
23118
- var m = hm % 100, h = (hm - m) / 100;
23119
- return h * 60 + m;
23120
- }
23121
- }
23122
-
23123
- // date and time from ref 2822 format
23124
- function configFromRFC2822(config) {
23125
- var match = rfc2822.exec(preprocessRFC2822(config._i));
23126
- if (match) {
23127
- var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
23128
- if (!checkWeekday(match[1], parsedArray, config)) {
23129
- return;
23130
- }
23131
-
23132
- config._a = parsedArray;
23133
- config._tzm = calculateOffset(match[8], match[9], match[10]);
23134
-
23135
- config._d = createUTCDate.apply(null, config._a);
23136
- config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
23137
-
23138
- getParsingFlags(config).rfc2822 = true;
23139
- } else {
23140
- config._isValid = false;
23141
- }
23142
- }
23143
-
23144
- // date from iso format or fallback
23145
- function configFromString(config) {
23146
- var matched = aspNetJsonRegex.exec(config._i);
23147
-
23148
- if (matched !== null) {
23149
- config._d = new Date(+matched[1]);
23150
- return;
23151
- }
23152
-
23153
- configFromISO(config);
23154
- if (config._isValid === false) {
23155
- delete config._isValid;
23156
- } else {
23157
- return;
23158
- }
23159
-
23160
- configFromRFC2822(config);
23161
- if (config._isValid === false) {
23162
- delete config._isValid;
23163
- } else {
23164
- return;
23165
- }
23166
-
23167
- // Final attempt, use Input Fallback
23168
- hooks.createFromInputFallback(config);
23169
- }
23170
-
23171
- hooks.createFromInputFallback = deprecate(
23172
- 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
23173
- 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
23174
- 'discouraged and will be removed in an upcoming major release. Please refer to ' +
23175
- 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
23176
- function (config) {
23177
- config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
23178
- }
23179
- );
23180
-
23181
- // constant that refers to the ISO standard
23182
- hooks.ISO_8601 = function () {};
23183
-
23184
- // constant that refers to the RFC 2822 form
23185
- hooks.RFC_2822 = function () {};
23186
-
23187
- // date from string and format string
23188
- function configFromStringAndFormat(config) {
23189
- // TODO: Move this to another part of the creation flow to prevent circular deps
23190
- if (config._f === hooks.ISO_8601) {
23191
- configFromISO(config);
23192
- return;
23193
- }
23194
- if (config._f === hooks.RFC_2822) {
23195
- configFromRFC2822(config);
23196
- return;
23197
- }
23198
- config._a = [];
23199
- getParsingFlags(config).empty = true;
23200
-
23201
- // This array is used to make a Date, either with `new Date` or `Date.UTC`
23202
- var string = '' + config._i,
23203
- i, parsedInput, tokens, token, skipped,
23204
- stringLength = string.length,
23205
- totalParsedInputLength = 0;
23206
-
23207
- tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
23208
-
23209
- for (i = 0; i < tokens.length; i++) {
23210
- token = tokens[i];
23211
- parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
23212
- // console.log('token', token, 'parsedInput', parsedInput,
23213
- // 'regex', getParseRegexForToken(token, config));
23214
- if (parsedInput) {
23215
- skipped = string.substr(0, string.indexOf(parsedInput));
23216
- if (skipped.length > 0) {
23217
- getParsingFlags(config).unusedInput.push(skipped);
23218
- }
23219
- string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
23220
- totalParsedInputLength += parsedInput.length;
23221
- }
23222
- // don't parse if it's not a known token
23223
- if (formatTokenFunctions[token]) {
23224
- if (parsedInput) {
23225
- getParsingFlags(config).empty = false;
23226
- }
23227
- else {
23228
- getParsingFlags(config).unusedTokens.push(token);
23229
- }
23230
- addTimeToArrayFromToken(token, parsedInput, config);
23231
- }
23232
- else if (config._strict && !parsedInput) {
23233
- getParsingFlags(config).unusedTokens.push(token);
23234
- }
23235
- }
23236
-
23237
- // add remaining unparsed input length to the string
23238
- getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
23239
- if (string.length > 0) {
23240
- getParsingFlags(config).unusedInput.push(string);
23241
- }
23242
-
23243
- // clear _12h flag if hour is <= 12
23244
- if (config._a[HOUR] <= 12 &&
23245
- getParsingFlags(config).bigHour === true &&
23246
- config._a[HOUR] > 0) {
23247
- getParsingFlags(config).bigHour = undefined;
23248
- }
23249
-
23250
- getParsingFlags(config).parsedDateParts = config._a.slice(0);
23251
- getParsingFlags(config).meridiem = config._meridiem;
23252
- // handle meridiem
23253
- config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
23254
-
23255
- configFromArray(config);
23256
- checkOverflow(config);
23257
- }
23258
-
23259
-
23260
- function meridiemFixWrap (locale, hour, meridiem) {
23261
- var isPm;
23262
-
23263
- if (meridiem == null) {
23264
- // nothing to do
23265
- return hour;
23266
- }
23267
- if (locale.meridiemHour != null) {
23268
- return locale.meridiemHour(hour, meridiem);
23269
- } else if (locale.isPM != null) {
23270
- // Fallback
23271
- isPm = locale.isPM(meridiem);
23272
- if (isPm && hour < 12) {
23273
- hour += 12;
23274
- }
23275
- if (!isPm && hour === 12) {
23276
- hour = 0;
23277
- }
23278
- return hour;
23279
- } else {
23280
- // this is not supposed to happen
23281
- return hour;
23282
- }
23283
- }
23284
-
23285
- // date from string and array of format strings
23286
- function configFromStringAndArray(config) {
23287
- var tempConfig,
23288
- bestMoment,
23289
-
23290
- scoreToBeat,
23291
- i,
23292
- currentScore;
23293
-
23294
- if (config._f.length === 0) {
23295
- getParsingFlags(config).invalidFormat = true;
23296
- config._d = new Date(NaN);
23297
- return;
23298
- }
23299
-
23300
- for (i = 0; i < config._f.length; i++) {
23301
- currentScore = 0;
23302
- tempConfig = copyConfig({}, config);
23303
- if (config._useUTC != null) {
23304
- tempConfig._useUTC = config._useUTC;
23305
- }
23306
- tempConfig._f = config._f[i];
23307
- configFromStringAndFormat(tempConfig);
23308
-
23309
- if (!isValid(tempConfig)) {
23310
- continue;
23311
- }
23312
-
23313
- // if there is any input that was not parsed add a penalty for that format
23314
- currentScore += getParsingFlags(tempConfig).charsLeftOver;
23315
-
23316
- //or tokens
23317
- currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
23318
-
23319
- getParsingFlags(tempConfig).score = currentScore;
23320
-
23321
- if (scoreToBeat == null || currentScore < scoreToBeat) {
23322
- scoreToBeat = currentScore;
23323
- bestMoment = tempConfig;
23324
- }
23325
- }
23326
-
23327
- extend(config, bestMoment || tempConfig);
23328
- }
23329
-
23330
- function configFromObject(config) {
23331
- if (config._d) {
23332
- return;
23333
- }
23334
-
23335
- var i = normalizeObjectUnits(config._i);
23336
- config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
23337
- return obj && parseInt(obj, 10);
23338
- });
23339
-
23340
- configFromArray(config);
23341
- }
23342
-
23343
- function createFromConfig (config) {
23344
- var res = new Moment(checkOverflow(prepareConfig(config)));
23345
- if (res._nextDay) {
23346
- // Adding is smart enough around DST
23347
- res.add(1, 'd');
23348
- res._nextDay = undefined;
23349
- }
23350
-
23351
- return res;
23352
- }
23353
-
23354
- function prepareConfig (config) {
23355
- var input = config._i,
23356
- format = config._f;
23357
-
23358
- config._locale = config._locale || getLocale(config._l);
23359
-
23360
- if (input === null || (format === undefined && input === '')) {
23361
- return createInvalid({nullInput: true});
23362
- }
23363
-
23364
- if (typeof input === 'string') {
23365
- config._i = input = config._locale.preparse(input);
23366
- }
23367
-
23368
- if (isMoment(input)) {
23369
- return new Moment(checkOverflow(input));
23370
- } else if (isDate(input)) {
23371
- config._d = input;
23372
- } else if (isArray(format)) {
23373
- configFromStringAndArray(config);
23374
- } else if (format) {
23375
- configFromStringAndFormat(config);
23376
- } else {
23377
- configFromInput(config);
23378
- }
23379
-
23380
- if (!isValid(config)) {
23381
- config._d = null;
23382
- }
23383
-
23384
- return config;
23385
- }
23386
-
23387
- function configFromInput(config) {
23388
- var input = config._i;
23389
- if (isUndefined(input)) {
23390
- config._d = new Date(hooks.now());
23391
- } else if (isDate(input)) {
23392
- config._d = new Date(input.valueOf());
23393
- } else if (typeof input === 'string') {
23394
- configFromString(config);
23395
- } else if (isArray(input)) {
23396
- config._a = map(input.slice(0), function (obj) {
23397
- return parseInt(obj, 10);
23398
- });
23399
- configFromArray(config);
23400
- } else if (isObject(input)) {
23401
- configFromObject(config);
23402
- } else if (isNumber(input)) {
23403
- // from milliseconds
23404
- config._d = new Date(input);
23405
- } else {
23406
- hooks.createFromInputFallback(config);
23407
- }
23408
- }
23409
-
23410
- function createLocalOrUTC (input, format, locale, strict, isUTC) {
23411
- var c = {};
23412
-
23413
- if (locale === true || locale === false) {
23414
- strict = locale;
23415
- locale = undefined;
23416
- }
23417
-
23418
- if ((isObject(input) && isObjectEmpty(input)) ||
23419
- (isArray(input) && input.length === 0)) {
23420
- input = undefined;
23421
- }
23422
- // object construction must be done this way.
23423
- // https://github.com/moment/moment/issues/1423
23424
- c._isAMomentObject = true;
23425
- c._useUTC = c._isUTC = isUTC;
23426
- c._l = locale;
23427
- c._i = input;
23428
- c._f = format;
23429
- c._strict = strict;
23430
-
23431
- return createFromConfig(c);
23432
- }
23433
-
23434
- function createLocal (input, format, locale, strict) {
23435
- return createLocalOrUTC(input, format, locale, strict, false);
23436
- }
23437
-
23438
- var prototypeMin = deprecate(
23439
- 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
23440
- function () {
23441
- var other = createLocal.apply(null, arguments);
23442
- if (this.isValid() && other.isValid()) {
23443
- return other < this ? this : other;
23444
- } else {
23445
- return createInvalid();
23446
- }
23447
- }
23448
- );
23449
-
23450
- var prototypeMax = deprecate(
23451
- 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
23452
- function () {
23453
- var other = createLocal.apply(null, arguments);
23454
- if (this.isValid() && other.isValid()) {
23455
- return other > this ? this : other;
23456
- } else {
23457
- return createInvalid();
23458
- }
23459
- }
23460
- );
23461
-
23462
- // Pick a moment m from moments so that m[fn](other) is true for all
23463
- // other. This relies on the function fn to be transitive.
23464
- //
23465
- // moments should either be an array of moment objects or an array, whose
23466
- // first element is an array of moment objects.
23467
- function pickBy(fn, moments) {
23468
- var res, i;
23469
- if (moments.length === 1 && isArray(moments[0])) {
23470
- moments = moments[0];
23471
- }
23472
- if (!moments.length) {
23473
- return createLocal();
23474
- }
23475
- res = moments[0];
23476
- for (i = 1; i < moments.length; ++i) {
23477
- if (!moments[i].isValid() || moments[i][fn](res)) {
23478
- res = moments[i];
23479
- }
23480
- }
23481
- return res;
23482
- }
23483
-
23484
- // TODO: Use [].sort instead?
23485
- function min () {
23486
- var args = [].slice.call(arguments, 0);
23487
-
23488
- return pickBy('isBefore', args);
23489
- }
23490
-
23491
- function max () {
23492
- var args = [].slice.call(arguments, 0);
23493
-
23494
- return pickBy('isAfter', args);
23495
- }
23496
-
23497
- var now = function () {
23498
- return Date.now ? Date.now() : +(new Date());
23499
- };
23500
-
23501
- var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
23502
-
23503
- function isDurationValid(m) {
23504
- for (var key in m) {
23505
- if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
23506
- return false;
23507
- }
23508
- }
23509
-
23510
- var unitHasDecimal = false;
23511
- for (var i = 0; i < ordering.length; ++i) {
23512
- if (m[ordering[i]]) {
23513
- if (unitHasDecimal) {
23514
- return false; // only allow non-integers for smallest unit
23515
- }
23516
- if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
23517
- unitHasDecimal = true;
23518
- }
23519
- }
23520
- }
23521
-
23522
- return true;
23523
- }
23524
-
23525
- function isValid$1() {
23526
- return this._isValid;
23527
- }
23528
-
23529
- function createInvalid$1() {
23530
- return createDuration(NaN);
23531
- }
23532
-
23533
- function Duration (duration) {
23534
- var normalizedInput = normalizeObjectUnits(duration),
23535
- years = normalizedInput.year || 0,
23536
- quarters = normalizedInput.quarter || 0,
23537
- months = normalizedInput.month || 0,
23538
- weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
23539
- days = normalizedInput.day || 0,
23540
- hours = normalizedInput.hour || 0,
23541
- minutes = normalizedInput.minute || 0,
23542
- seconds = normalizedInput.second || 0,
23543
- milliseconds = normalizedInput.millisecond || 0;
23544
-
23545
- this._isValid = isDurationValid(normalizedInput);
23546
-
23547
- // representation for dateAddRemove
23548
- this._milliseconds = +milliseconds +
23549
- seconds * 1e3 + // 1000
23550
- minutes * 6e4 + // 1000 * 60
23551
- hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
23552
- // Because of dateAddRemove treats 24 hours as different from a
23553
- // day when working around DST, we need to store them separately
23554
- this._days = +days +
23555
- weeks * 7;
23556
- // It is impossible to translate months into days without knowing
23557
- // which months you are are talking about, so we have to store
23558
- // it separately.
23559
- this._months = +months +
23560
- quarters * 3 +
23561
- years * 12;
23562
-
23563
- this._data = {};
23564
-
23565
- this._locale = getLocale();
23566
-
23567
- this._bubble();
23568
- }
23569
-
23570
- function isDuration (obj) {
23571
- return obj instanceof Duration;
23572
- }
23573
-
23574
- function absRound (number) {
23575
- if (number < 0) {
23576
- return Math.round(-1 * number) * -1;
23577
- } else {
23578
- return Math.round(number);
23579
- }
23580
- }
23581
-
23582
- // FORMATTING
23583
-
23584
- function offset (token, separator) {
23585
- addFormatToken(token, 0, 0, function () {
23586
- var offset = this.utcOffset();
23587
- var sign = '+';
23588
- if (offset < 0) {
23589
- offset = -offset;
23590
- sign = '-';
23591
- }
23592
- return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
23593
- });
23594
- }
23595
-
23596
- offset('Z', ':');
23597
- offset('ZZ', '');
23598
-
23599
- // PARSING
23600
-
23601
- addRegexToken('Z', matchShortOffset);
23602
- addRegexToken('ZZ', matchShortOffset);
23603
- addParseToken(['Z', 'ZZ'], function (input, array, config) {
23604
- config._useUTC = true;
23605
- config._tzm = offsetFromString(matchShortOffset, input);
23606
- });
23607
-
23608
- // HELPERS
23609
-
23610
- // timezone chunker
23611
- // '+10:00' > ['10', '00']
23612
- // '-1530' > ['-15', '30']
23613
- var chunkOffset = /([\+\-]|\d\d)/gi;
23614
-
23615
- function offsetFromString(matcher, string) {
23616
- var matches = (string || '').match(matcher);
23617
-
23618
- if (matches === null) {
23619
- return null;
23620
- }
23621
-
23622
- var chunk = matches[matches.length - 1] || [];
23623
- var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
23624
- var minutes = +(parts[1] * 60) + toInt(parts[2]);
23625
-
23626
- return minutes === 0 ?
23627
- 0 :
23628
- parts[0] === '+' ? minutes : -minutes;
23629
- }
23630
-
23631
- // Return a moment from input, that is local/utc/zone equivalent to model.
23632
- function cloneWithOffset(input, model) {
23633
- var res, diff;
23634
- if (model._isUTC) {
23635
- res = model.clone();
23636
- diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
23637
- // Use low-level api, because this fn is low-level api.
23638
- res._d.setTime(res._d.valueOf() + diff);
23639
- hooks.updateOffset(res, false);
23640
- return res;
23641
- } else {
23642
- return createLocal(input).local();
23643
- }
23644
- }
23645
-
23646
- function getDateOffset (m) {
23647
- // On Firefox.24 Date#getTimezoneOffset returns a floating point.
23648
- // https://github.com/moment/moment/pull/1871
23649
- return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
23650
- }
23651
-
23652
- // HOOKS
23653
-
23654
- // This function will be called whenever a moment is mutated.
23655
- // It is intended to keep the offset in sync with the timezone.
23656
- hooks.updateOffset = function () {};
23657
-
23658
- // MOMENTS
23659
-
23660
- // keepLocalTime = true means only change the timezone, without
23661
- // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
23662
- // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
23663
- // +0200, so we adjust the time as needed, to be valid.
23664
- //
23665
- // Keeping the time actually adds/subtracts (one hour)
23666
- // from the actual represented time. That is why we call updateOffset
23667
- // a second time. In case it wants us to change the offset again
23668
- // _changeInProgress == true case, then we have to adjust, because
23669
- // there is no such time in the given timezone.
23670
- function getSetOffset (input, keepLocalTime, keepMinutes) {
23671
- var offset = this._offset || 0,
23672
- localAdjust;
23673
- if (!this.isValid()) {
23674
- return input != null ? this : NaN;
23675
- }
23676
- if (input != null) {
23677
- if (typeof input === 'string') {
23678
- input = offsetFromString(matchShortOffset, input);
23679
- if (input === null) {
23680
- return this;
23681
- }
23682
- } else if (Math.abs(input) < 16 && !keepMinutes) {
23683
- input = input * 60;
23684
- }
23685
- if (!this._isUTC && keepLocalTime) {
23686
- localAdjust = getDateOffset(this);
23687
- }
23688
- this._offset = input;
23689
- this._isUTC = true;
23690
- if (localAdjust != null) {
23691
- this.add(localAdjust, 'm');
23692
- }
23693
- if (offset !== input) {
23694
- if (!keepLocalTime || this._changeInProgress) {
23695
- addSubtract(this, createDuration(input - offset, 'm'), 1, false);
23696
- } else if (!this._changeInProgress) {
23697
- this._changeInProgress = true;
23698
- hooks.updateOffset(this, true);
23699
- this._changeInProgress = null;
23700
- }
23701
- }
23702
- return this;
23703
- } else {
23704
- return this._isUTC ? offset : getDateOffset(this);
23705
- }
23706
- }
23707
-
23708
- function getSetZone (input, keepLocalTime) {
23709
- if (input != null) {
23710
- if (typeof input !== 'string') {
23711
- input = -input;
23712
- }
23713
-
23714
- this.utcOffset(input, keepLocalTime);
23715
-
23716
- return this;
23717
- } else {
23718
- return -this.utcOffset();
23719
- }
23720
- }
23721
-
23722
- function setOffsetToUTC (keepLocalTime) {
23723
- return this.utcOffset(0, keepLocalTime);
23724
- }
23725
-
23726
- function setOffsetToLocal (keepLocalTime) {
23727
- if (this._isUTC) {
23728
- this.utcOffset(0, keepLocalTime);
23729
- this._isUTC = false;
23730
-
23731
- if (keepLocalTime) {
23732
- this.subtract(getDateOffset(this), 'm');
23733
- }
23734
- }
23735
- return this;
23736
- }
23737
-
23738
- function setOffsetToParsedOffset () {
23739
- if (this._tzm != null) {
23740
- this.utcOffset(this._tzm, false, true);
23741
- } else if (typeof this._i === 'string') {
23742
- var tZone = offsetFromString(matchOffset, this._i);
23743
- if (tZone != null) {
23744
- this.utcOffset(tZone);
23745
- }
23746
- else {
23747
- this.utcOffset(0, true);
23748
- }
23749
- }
23750
- return this;
23751
- }
23752
-
23753
- function hasAlignedHourOffset (input) {
23754
- if (!this.isValid()) {
23755
- return false;
23756
- }
23757
- input = input ? createLocal(input).utcOffset() : 0;
23758
-
23759
- return (this.utcOffset() - input) % 60 === 0;
23760
- }
23761
-
23762
- function isDaylightSavingTime () {
23763
- return (
23764
- this.utcOffset() > this.clone().month(0).utcOffset() ||
23765
- this.utcOffset() > this.clone().month(5).utcOffset()
23766
- );
23767
- }
23768
-
23769
- function isDaylightSavingTimeShifted () {
23770
- if (!isUndefined(this._isDSTShifted)) {
23771
- return this._isDSTShifted;
23772
- }
23773
-
23774
- var c = {};
23775
-
23776
- copyConfig(c, this);
23777
- c = prepareConfig(c);
23778
-
23779
- if (c._a) {
23780
- var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
23781
- this._isDSTShifted = this.isValid() &&
23782
- compareArrays(c._a, other.toArray()) > 0;
23783
- } else {
23784
- this._isDSTShifted = false;
23785
- }
23786
-
23787
- return this._isDSTShifted;
23788
- }
23789
-
23790
- function isLocal () {
23791
- return this.isValid() ? !this._isUTC : false;
23792
- }
23793
-
23794
- function isUtcOffset () {
23795
- return this.isValid() ? this._isUTC : false;
23796
- }
23797
-
23798
- function isUtc () {
23799
- return this.isValid() ? this._isUTC && this._offset === 0 : false;
23800
- }
23801
-
23802
- // ASP.NET json date format regex
23803
- var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
23804
-
23805
- // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
23806
- // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
23807
- // and further modified to allow for strings containing both week and day
23808
- var isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
23809
-
23810
- function createDuration (input, key) {
23811
- var duration = input,
23812
- // matching against regexp is expensive, do it on demand
23813
- match = null,
23814
- sign,
23815
- ret,
23816
- diffRes;
23817
-
23818
- if (isDuration(input)) {
23819
- duration = {
23820
- ms : input._milliseconds,
23821
- d : input._days,
23822
- M : input._months
23823
- };
23824
- } else if (isNumber(input)) {
23825
- duration = {};
23826
- if (key) {
23827
- duration[key] = input;
23828
- } else {
23829
- duration.milliseconds = input;
23830
- }
23831
- } else if (!!(match = aspNetRegex.exec(input))) {
23832
- sign = (match[1] === '-') ? -1 : 1;
23833
- duration = {
23834
- y : 0,
23835
- d : toInt(match[DATE]) * sign,
23836
- h : toInt(match[HOUR]) * sign,
23837
- m : toInt(match[MINUTE]) * sign,
23838
- s : toInt(match[SECOND]) * sign,
23839
- ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
23840
- };
23841
- } else if (!!(match = isoRegex.exec(input))) {
23842
- sign = (match[1] === '-') ? -1 : 1;
23843
- duration = {
23844
- y : parseIso(match[2], sign),
23845
- M : parseIso(match[3], sign),
23846
- w : parseIso(match[4], sign),
23847
- d : parseIso(match[5], sign),
23848
- h : parseIso(match[6], sign),
23849
- m : parseIso(match[7], sign),
23850
- s : parseIso(match[8], sign)
23851
- };
23852
- } else if (duration == null) {// checks for null or undefined
23853
- duration = {};
23854
- } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
23855
- diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
23856
-
23857
- duration = {};
23858
- duration.ms = diffRes.milliseconds;
23859
- duration.M = diffRes.months;
23860
- }
23861
-
23862
- ret = new Duration(duration);
23863
-
23864
- if (isDuration(input) && hasOwnProp(input, '_locale')) {
23865
- ret._locale = input._locale;
23866
- }
23867
-
23868
- return ret;
23869
- }
23870
-
23871
- createDuration.fn = Duration.prototype;
23872
- createDuration.invalid = createInvalid$1;
23873
-
23874
- function parseIso (inp, sign) {
23875
- // We'd normally use ~~inp for this, but unfortunately it also
23876
- // converts floats to ints.
23877
- // inp may be undefined, so careful calling replace on it.
23878
- var res = inp && parseFloat(inp.replace(',', '.'));
23879
- // apply sign while we're at it
23880
- return (isNaN(res) ? 0 : res) * sign;
23881
- }
23882
-
23883
- function positiveMomentsDifference(base, other) {
23884
- var res = {};
23885
-
23886
- res.months = other.month() - base.month() +
23887
- (other.year() - base.year()) * 12;
23888
- if (base.clone().add(res.months, 'M').isAfter(other)) {
23889
- --res.months;
23890
- }
23891
-
23892
- res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
23893
-
23894
- return res;
23895
- }
23896
-
23897
- function momentsDifference(base, other) {
23898
- var res;
23899
- if (!(base.isValid() && other.isValid())) {
23900
- return {milliseconds: 0, months: 0};
23901
- }
23902
-
23903
- other = cloneWithOffset(other, base);
23904
- if (base.isBefore(other)) {
23905
- res = positiveMomentsDifference(base, other);
23906
- } else {
23907
- res = positiveMomentsDifference(other, base);
23908
- res.milliseconds = -res.milliseconds;
23909
- res.months = -res.months;
23910
- }
23911
-
23912
- return res;
23913
- }
23914
-
23915
- // TODO: remove 'name' arg after deprecation is removed
23916
- function createAdder(direction, name) {
23917
- return function (val, period) {
23918
- var dur, tmp;
23919
- //invert the arguments, but complain about it
23920
- if (period !== null && !isNaN(+period)) {
23921
- deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
23922
- 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
23923
- tmp = val; val = period; period = tmp;
23924
- }
23925
-
23926
- val = typeof val === 'string' ? +val : val;
23927
- dur = createDuration(val, period);
23928
- addSubtract(this, dur, direction);
23929
- return this;
23930
- };
23931
- }
23932
-
23933
- function addSubtract (mom, duration, isAdding, updateOffset) {
23934
- var milliseconds = duration._milliseconds,
23935
- days = absRound(duration._days),
23936
- months = absRound(duration._months);
23937
-
23938
- if (!mom.isValid()) {
23939
- // No op
23940
- return;
23941
- }
23942
-
23943
- updateOffset = updateOffset == null ? true : updateOffset;
23944
-
23945
- if (months) {
23946
- setMonth(mom, get(mom, 'Month') + months * isAdding);
23947
- }
23948
- if (days) {
23949
- set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
23950
- }
23951
- if (milliseconds) {
23952
- mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
23953
- }
23954
- if (updateOffset) {
23955
- hooks.updateOffset(mom, days || months);
23956
- }
23957
- }
23958
-
23959
- var add = createAdder(1, 'add');
23960
- var subtract = createAdder(-1, 'subtract');
23961
-
23962
- function getCalendarFormat(myMoment, now) {
23963
- var diff = myMoment.diff(now, 'days', true);
23964
- return diff < -6 ? 'sameElse' :
23965
- diff < -1 ? 'lastWeek' :
23966
- diff < 0 ? 'lastDay' :
23967
- diff < 1 ? 'sameDay' :
23968
- diff < 2 ? 'nextDay' :
23969
- diff < 7 ? 'nextWeek' : 'sameElse';
23970
- }
23971
-
23972
- function calendar$1 (time, formats) {
23973
- // We want to compare the start of today, vs this.
23974
- // Getting start-of-today depends on whether we're local/utc/offset or not.
23975
- var now = time || createLocal(),
23976
- sod = cloneWithOffset(now, this).startOf('day'),
23977
- format = hooks.calendarFormat(this, sod) || 'sameElse';
23978
-
23979
- var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
23980
-
23981
- return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
23982
- }
23983
-
23984
- function clone () {
23985
- return new Moment(this);
23986
- }
23987
-
23988
- function isAfter (input, units) {
23989
- var localInput = isMoment(input) ? input : createLocal(input);
23990
- if (!(this.isValid() && localInput.isValid())) {
23991
- return false;
23992
- }
23993
- units = normalizeUnits(units) || 'millisecond';
23994
- if (units === 'millisecond') {
23995
- return this.valueOf() > localInput.valueOf();
23996
- } else {
23997
- return localInput.valueOf() < this.clone().startOf(units).valueOf();
23998
- }
23999
- }
24000
-
24001
- function isBefore (input, units) {
24002
- var localInput = isMoment(input) ? input : createLocal(input);
24003
- if (!(this.isValid() && localInput.isValid())) {
24004
- return false;
24005
- }
24006
- units = normalizeUnits(units) || 'millisecond';
24007
- if (units === 'millisecond') {
24008
- return this.valueOf() < localInput.valueOf();
24009
- } else {
24010
- return this.clone().endOf(units).valueOf() < localInput.valueOf();
24011
- }
24012
- }
24013
-
24014
- function isBetween (from, to, units, inclusivity) {
24015
- var localFrom = isMoment(from) ? from : createLocal(from),
24016
- localTo = isMoment(to) ? to : createLocal(to);
24017
- if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
24018
- return false;
24019
- }
24020
- inclusivity = inclusivity || '()';
24021
- return (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) &&
24022
- (inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
24023
- }
24024
-
24025
- function isSame (input, units) {
24026
- var localInput = isMoment(input) ? input : createLocal(input),
24027
- inputMs;
24028
- if (!(this.isValid() && localInput.isValid())) {
24029
- return false;
24030
- }
24031
- units = normalizeUnits(units) || 'millisecond';
24032
- if (units === 'millisecond') {
24033
- return this.valueOf() === localInput.valueOf();
24034
- } else {
24035
- inputMs = localInput.valueOf();
24036
- return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
24037
- }
24038
- }
24039
-
24040
- function isSameOrAfter (input, units) {
24041
- return this.isSame(input, units) || this.isAfter(input, units);
24042
- }
24043
-
24044
- function isSameOrBefore (input, units) {
24045
- return this.isSame(input, units) || this.isBefore(input, units);
24046
- }
24047
-
24048
- function diff (input, units, asFloat) {
24049
- var that,
24050
- zoneDelta,
24051
- output;
24052
-
24053
- if (!this.isValid()) {
24054
- return NaN;
24055
- }
24056
-
24057
- that = cloneWithOffset(input, this);
24058
-
24059
- if (!that.isValid()) {
24060
- return NaN;
24061
- }
24062
-
24063
- zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
24064
-
24065
- units = normalizeUnits(units);
24066
-
24067
- switch (units) {
24068
- case 'year': output = monthDiff(this, that) / 12; break;
24069
- case 'month': output = monthDiff(this, that); break;
24070
- case 'quarter': output = monthDiff(this, that) / 3; break;
24071
- case 'second': output = (this - that) / 1e3; break; // 1000
24072
- case 'minute': output = (this - that) / 6e4; break; // 1000 * 60
24073
- case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60
24074
- case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst
24075
- case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst
24076
- default: output = this - that;
24077
- }
24078
-
24079
- return asFloat ? output : absFloor(output);
24080
- }
24081
-
24082
- function monthDiff (a, b) {
24083
- // difference in months
24084
- var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
24085
- // b is in (anchor - 1 month, anchor + 1 month)
24086
- anchor = a.clone().add(wholeMonthDiff, 'months'),
24087
- anchor2, adjust;
24088
-
24089
- if (b - anchor < 0) {
24090
- anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
24091
- // linear across the month
24092
- adjust = (b - anchor) / (anchor - anchor2);
24093
- } else {
24094
- anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
24095
- // linear across the month
24096
- adjust = (b - anchor) / (anchor2 - anchor);
24097
- }
24098
-
24099
- //check for negative zero, return zero if negative zero
24100
- return -(wholeMonthDiff + adjust) || 0;
24101
- }
24102
-
24103
- hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
24104
- hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
24105
-
24106
- function toString () {
24107
- return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
24108
- }
24109
-
24110
- function toISOString(keepOffset) {
24111
- if (!this.isValid()) {
24112
- return null;
24113
- }
24114
- var utc = keepOffset !== true;
24115
- var m = utc ? this.clone().utc() : this;
24116
- if (m.year() < 0 || m.year() > 9999) {
24117
- return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
24118
- }
24119
- if (isFunction(Date.prototype.toISOString)) {
24120
- // native implementation is ~50x faster, use it when we can
24121
- if (utc) {
24122
- return this.toDate().toISOString();
24123
- } else {
24124
- return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));
24125
- }
24126
- }
24127
- return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
24128
- }
24129
-
24130
- /**
24131
- * Return a human readable representation of a moment that can
24132
- * also be evaluated to get a new moment which is the same
24133
- *
24134
- * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
24135
- */
24136
- function inspect () {
24137
- if (!this.isValid()) {
24138
- return 'moment.invalid(/* ' + this._i + ' */)';
24139
- }
24140
- var func = 'moment';
24141
- var zone = '';
24142
- if (!this.isLocal()) {
24143
- func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
24144
- zone = 'Z';
24145
- }
24146
- var prefix = '[' + func + '("]';
24147
- var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
24148
- var datetime = '-MM-DD[T]HH:mm:ss.SSS';
24149
- var suffix = zone + '[")]';
24150
-
24151
- return this.format(prefix + year + datetime + suffix);
24152
- }
24153
-
24154
- function format (inputString) {
24155
- if (!inputString) {
24156
- inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
24157
- }
24158
- var output = formatMoment(this, inputString);
24159
- return this.localeData().postformat(output);
24160
- }
24161
-
24162
- function from (time, withoutSuffix) {
24163
- if (this.isValid() &&
24164
- ((isMoment(time) && time.isValid()) ||
24165
- createLocal(time).isValid())) {
24166
- return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
24167
- } else {
24168
- return this.localeData().invalidDate();
24169
- }
24170
- }
24171
-
24172
- function fromNow (withoutSuffix) {
24173
- return this.from(createLocal(), withoutSuffix);
24174
- }
24175
-
24176
- function to (time, withoutSuffix) {
24177
- if (this.isValid() &&
24178
- ((isMoment(time) && time.isValid()) ||
24179
- createLocal(time).isValid())) {
24180
- return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
24181
- } else {
24182
- return this.localeData().invalidDate();
24183
- }
24184
- }
24185
-
24186
- function toNow (withoutSuffix) {
24187
- return this.to(createLocal(), withoutSuffix);
24188
- }
24189
-
24190
- // If passed a locale key, it will set the locale for this
24191
- // instance. Otherwise, it will return the locale configuration
24192
- // variables for this instance.
24193
- function locale (key) {
24194
- var newLocaleData;
24195
-
24196
- if (key === undefined) {
24197
- return this._locale._abbr;
24198
- } else {
24199
- newLocaleData = getLocale(key);
24200
- if (newLocaleData != null) {
24201
- this._locale = newLocaleData;
24202
- }
24203
- return this;
24204
- }
24205
- }
24206
-
24207
- var lang = deprecate(
24208
- 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
24209
- function (key) {
24210
- if (key === undefined) {
24211
- return this.localeData();
24212
- } else {
24213
- return this.locale(key);
24214
- }
24215
- }
24216
- );
24217
-
24218
- function localeData () {
24219
- return this._locale;
24220
- }
24221
-
24222
- var MS_PER_SECOND = 1000;
24223
- var MS_PER_MINUTE = 60 * MS_PER_SECOND;
24224
- var MS_PER_HOUR = 60 * MS_PER_MINUTE;
24225
- var MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
24226
-
24227
- // actual modulo - handles negative numbers (for dates before 1970):
24228
- function mod$1(dividend, divisor) {
24229
- return (dividend % divisor + divisor) % divisor;
24230
- }
24231
-
24232
- function localStartOfDate(y, m, d) {
24233
- // the date constructor remaps years 0-99 to 1900-1999
24234
- if (y < 100 && y >= 0) {
24235
- // preserve leap years using a full 400 year cycle, then reset
24236
- return new Date(y + 400, m, d) - MS_PER_400_YEARS;
24237
- } else {
24238
- return new Date(y, m, d).valueOf();
24239
- }
24240
- }
24241
-
24242
- function utcStartOfDate(y, m, d) {
24243
- // Date.UTC remaps years 0-99 to 1900-1999
24244
- if (y < 100 && y >= 0) {
24245
- // preserve leap years using a full 400 year cycle, then reset
24246
- return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
24247
- } else {
24248
- return Date.UTC(y, m, d);
24249
- }
24250
- }
24251
-
24252
- function startOf (units) {
24253
- var time;
24254
- units = normalizeUnits(units);
24255
- if (units === undefined || units === 'millisecond' || !this.isValid()) {
24256
- return this;
24257
- }
24258
-
24259
- var startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
24260
-
24261
- switch (units) {
24262
- case 'year':
24263
- time = startOfDate(this.year(), 0, 1);
24264
- break;
24265
- case 'quarter':
24266
- time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
24267
- break;
24268
- case 'month':
24269
- time = startOfDate(this.year(), this.month(), 1);
24270
- break;
24271
- case 'week':
24272
- time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
24273
- break;
24274
- case 'isoWeek':
24275
- time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
24276
- break;
24277
- case 'day':
24278
- case 'date':
24279
- time = startOfDate(this.year(), this.month(), this.date());
24280
- break;
24281
- case 'hour':
24282
- time = this._d.valueOf();
24283
- time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
24284
- break;
24285
- case 'minute':
24286
- time = this._d.valueOf();
24287
- time -= mod$1(time, MS_PER_MINUTE);
24288
- break;
24289
- case 'second':
24290
- time = this._d.valueOf();
24291
- time -= mod$1(time, MS_PER_SECOND);
24292
- break;
24293
- }
24294
-
24295
- this._d.setTime(time);
24296
- hooks.updateOffset(this, true);
24297
- return this;
24298
- }
24299
-
24300
- function endOf (units) {
24301
- var time;
24302
- units = normalizeUnits(units);
24303
- if (units === undefined || units === 'millisecond' || !this.isValid()) {
24304
- return this;
24305
- }
24306
-
24307
- var startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
24308
-
24309
- switch (units) {
24310
- case 'year':
24311
- time = startOfDate(this.year() + 1, 0, 1) - 1;
24312
- break;
24313
- case 'quarter':
24314
- time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
24315
- break;
24316
- case 'month':
24317
- time = startOfDate(this.year(), this.month() + 1, 1) - 1;
24318
- break;
24319
- case 'week':
24320
- time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
24321
- break;
24322
- case 'isoWeek':
24323
- time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
24324
- break;
24325
- case 'day':
24326
- case 'date':
24327
- time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
24328
- break;
24329
- case 'hour':
24330
- time = this._d.valueOf();
24331
- time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
24332
- break;
24333
- case 'minute':
24334
- time = this._d.valueOf();
24335
- time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
24336
- break;
24337
- case 'second':
24338
- time = this._d.valueOf();
24339
- time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
24340
- break;
24341
- }
24342
-
24343
- this._d.setTime(time);
24344
- hooks.updateOffset(this, true);
24345
- return this;
24346
- }
24347
-
24348
- function valueOf () {
24349
- return this._d.valueOf() - ((this._offset || 0) * 60000);
24350
- }
24351
-
24352
- function unix () {
24353
- return Math.floor(this.valueOf() / 1000);
24354
- }
24355
-
24356
- function toDate () {
24357
- return new Date(this.valueOf());
24358
- }
24359
-
24360
- function toArray () {
24361
- var m = this;
24362
- return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
24363
- }
24364
-
24365
- function toObject () {
24366
- var m = this;
24367
- return {
24368
- years: m.year(),
24369
- months: m.month(),
24370
- date: m.date(),
24371
- hours: m.hours(),
24372
- minutes: m.minutes(),
24373
- seconds: m.seconds(),
24374
- milliseconds: m.milliseconds()
24375
- };
24376
- }
24377
-
24378
- function toJSON () {
24379
- // new Date(NaN).toJSON() === null
24380
- return this.isValid() ? this.toISOString() : null;
24381
- }
24382
-
24383
- function isValid$2 () {
24384
- return isValid(this);
24385
- }
24386
-
24387
- function parsingFlags () {
24388
- return extend({}, getParsingFlags(this));
24389
- }
24390
-
24391
- function invalidAt () {
24392
- return getParsingFlags(this).overflow;
24393
- }
24394
-
24395
- function creationData() {
24396
- return {
24397
- input: this._i,
24398
- format: this._f,
24399
- locale: this._locale,
24400
- isUTC: this._isUTC,
24401
- strict: this._strict
24402
- };
24403
- }
24404
-
24405
- // FORMATTING
24406
-
24407
- addFormatToken(0, ['gg', 2], 0, function () {
24408
- return this.weekYear() % 100;
24409
- });
24410
-
24411
- addFormatToken(0, ['GG', 2], 0, function () {
24412
- return this.isoWeekYear() % 100;
24413
- });
24414
-
24415
- function addWeekYearFormatToken (token, getter) {
24416
- addFormatToken(0, [token, token.length], 0, getter);
24417
- }
24418
-
24419
- addWeekYearFormatToken('gggg', 'weekYear');
24420
- addWeekYearFormatToken('ggggg', 'weekYear');
24421
- addWeekYearFormatToken('GGGG', 'isoWeekYear');
24422
- addWeekYearFormatToken('GGGGG', 'isoWeekYear');
24423
-
24424
- // ALIASES
24425
-
24426
- addUnitAlias('weekYear', 'gg');
24427
- addUnitAlias('isoWeekYear', 'GG');
24428
-
24429
- // PRIORITY
24430
-
24431
- addUnitPriority('weekYear', 1);
24432
- addUnitPriority('isoWeekYear', 1);
24433
-
24434
-
24435
- // PARSING
24436
-
24437
- addRegexToken('G', matchSigned);
24438
- addRegexToken('g', matchSigned);
24439
- addRegexToken('GG', match1to2, match2);
24440
- addRegexToken('gg', match1to2, match2);
24441
- addRegexToken('GGGG', match1to4, match4);
24442
- addRegexToken('gggg', match1to4, match4);
24443
- addRegexToken('GGGGG', match1to6, match6);
24444
- addRegexToken('ggggg', match1to6, match6);
24445
-
24446
- addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
24447
- week[token.substr(0, 2)] = toInt(input);
24448
- });
24449
-
24450
- addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
24451
- week[token] = hooks.parseTwoDigitYear(input);
24452
- });
24453
-
24454
- // MOMENTS
24455
-
24456
- function getSetWeekYear (input) {
24457
- return getSetWeekYearHelper.call(this,
24458
- input,
24459
- this.week(),
24460
- this.weekday(),
24461
- this.localeData()._week.dow,
24462
- this.localeData()._week.doy);
24463
- }
24464
-
24465
- function getSetISOWeekYear (input) {
24466
- return getSetWeekYearHelper.call(this,
24467
- input, this.isoWeek(), this.isoWeekday(), 1, 4);
24468
- }
24469
-
24470
- function getISOWeeksInYear () {
24471
- return weeksInYear(this.year(), 1, 4);
24472
- }
24473
-
24474
- function getWeeksInYear () {
24475
- var weekInfo = this.localeData()._week;
24476
- return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
24477
- }
24478
-
24479
- function getSetWeekYearHelper(input, week, weekday, dow, doy) {
24480
- var weeksTarget;
24481
- if (input == null) {
24482
- return weekOfYear(this, dow, doy).year;
24483
- } else {
24484
- weeksTarget = weeksInYear(input, dow, doy);
24485
- if (week > weeksTarget) {
24486
- week = weeksTarget;
24487
- }
24488
- return setWeekAll.call(this, input, week, weekday, dow, doy);
24489
- }
24490
- }
24491
-
24492
- function setWeekAll(weekYear, week, weekday, dow, doy) {
24493
- var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
24494
- date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
24495
-
24496
- this.year(date.getUTCFullYear());
24497
- this.month(date.getUTCMonth());
24498
- this.date(date.getUTCDate());
24499
- return this;
24500
- }
24501
-
24502
- // FORMATTING
24503
-
24504
- addFormatToken('Q', 0, 'Qo', 'quarter');
24505
-
24506
- // ALIASES
24507
-
24508
- addUnitAlias('quarter', 'Q');
24509
-
24510
- // PRIORITY
24511
-
24512
- addUnitPriority('quarter', 7);
24513
-
24514
- // PARSING
24515
-
24516
- addRegexToken('Q', match1);
24517
- addParseToken('Q', function (input, array) {
24518
- array[MONTH] = (toInt(input) - 1) * 3;
24519
- });
24520
-
24521
- // MOMENTS
24522
-
24523
- function getSetQuarter (input) {
24524
- return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
24525
- }
24526
-
24527
- // FORMATTING
24528
-
24529
- addFormatToken('D', ['DD', 2], 'Do', 'date');
24530
-
24531
- // ALIASES
24532
-
24533
- addUnitAlias('date', 'D');
24534
-
24535
- // PRIORITY
24536
- addUnitPriority('date', 9);
24537
-
24538
- // PARSING
24539
-
24540
- addRegexToken('D', match1to2);
24541
- addRegexToken('DD', match1to2, match2);
24542
- addRegexToken('Do', function (isStrict, locale) {
24543
- // TODO: Remove "ordinalParse" fallback in next major release.
24544
- return isStrict ?
24545
- (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
24546
- locale._dayOfMonthOrdinalParseLenient;
24547
- });
24548
-
24549
- addParseToken(['D', 'DD'], DATE);
24550
- addParseToken('Do', function (input, array) {
24551
- array[DATE] = toInt(input.match(match1to2)[0]);
24552
- });
24553
-
24554
- // MOMENTS
24555
-
24556
- var getSetDayOfMonth = makeGetSet('Date', true);
24557
-
24558
- // FORMATTING
24559
-
24560
- addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
24561
-
24562
- // ALIASES
24563
-
24564
- addUnitAlias('dayOfYear', 'DDD');
24565
-
24566
- // PRIORITY
24567
- addUnitPriority('dayOfYear', 4);
24568
-
24569
- // PARSING
24570
-
24571
- addRegexToken('DDD', match1to3);
24572
- addRegexToken('DDDD', match3);
24573
- addParseToken(['DDD', 'DDDD'], function (input, array, config) {
24574
- config._dayOfYear = toInt(input);
24575
- });
24576
-
24577
- // HELPERS
24578
-
24579
- // MOMENTS
24580
-
24581
- function getSetDayOfYear (input) {
24582
- var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
24583
- return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
24584
- }
24585
-
24586
- // FORMATTING
24587
-
24588
- addFormatToken('m', ['mm', 2], 0, 'minute');
24589
-
24590
- // ALIASES
24591
-
24592
- addUnitAlias('minute', 'm');
24593
-
24594
- // PRIORITY
24595
-
24596
- addUnitPriority('minute', 14);
24597
-
24598
- // PARSING
24599
-
24600
- addRegexToken('m', match1to2);
24601
- addRegexToken('mm', match1to2, match2);
24602
- addParseToken(['m', 'mm'], MINUTE);
24603
-
24604
- // MOMENTS
24605
-
24606
- var getSetMinute = makeGetSet('Minutes', false);
24607
-
24608
- // FORMATTING
24609
-
24610
- addFormatToken('s', ['ss', 2], 0, 'second');
24611
-
24612
- // ALIASES
24613
-
24614
- addUnitAlias('second', 's');
24615
-
24616
- // PRIORITY
24617
-
24618
- addUnitPriority('second', 15);
24619
-
24620
- // PARSING
24621
-
24622
- addRegexToken('s', match1to2);
24623
- addRegexToken('ss', match1to2, match2);
24624
- addParseToken(['s', 'ss'], SECOND);
24625
-
24626
- // MOMENTS
24627
-
24628
- var getSetSecond = makeGetSet('Seconds', false);
24629
-
24630
- // FORMATTING
24631
-
24632
- addFormatToken('S', 0, 0, function () {
24633
- return ~~(this.millisecond() / 100);
24634
- });
24635
-
24636
- addFormatToken(0, ['SS', 2], 0, function () {
24637
- return ~~(this.millisecond() / 10);
24638
- });
24639
-
24640
- addFormatToken(0, ['SSS', 3], 0, 'millisecond');
24641
- addFormatToken(0, ['SSSS', 4], 0, function () {
24642
- return this.millisecond() * 10;
24643
- });
24644
- addFormatToken(0, ['SSSSS', 5], 0, function () {
24645
- return this.millisecond() * 100;
24646
- });
24647
- addFormatToken(0, ['SSSSSS', 6], 0, function () {
24648
- return this.millisecond() * 1000;
24649
- });
24650
- addFormatToken(0, ['SSSSSSS', 7], 0, function () {
24651
- return this.millisecond() * 10000;
24652
- });
24653
- addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
24654
- return this.millisecond() * 100000;
24655
- });
24656
- addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
24657
- return this.millisecond() * 1000000;
24658
- });
24659
-
24660
-
24661
- // ALIASES
24662
-
24663
- addUnitAlias('millisecond', 'ms');
24664
-
24665
- // PRIORITY
24666
-
24667
- addUnitPriority('millisecond', 16);
24668
-
24669
- // PARSING
24670
-
24671
- addRegexToken('S', match1to3, match1);
24672
- addRegexToken('SS', match1to3, match2);
24673
- addRegexToken('SSS', match1to3, match3);
24674
-
24675
- var token;
24676
- for (token = 'SSSS'; token.length <= 9; token += 'S') {
24677
- addRegexToken(token, matchUnsigned);
24678
- }
24679
-
24680
- function parseMs(input, array) {
24681
- array[MILLISECOND] = toInt(('0.' + input) * 1000);
24682
- }
24683
-
24684
- for (token = 'S'; token.length <= 9; token += 'S') {
24685
- addParseToken(token, parseMs);
24686
- }
24687
- // MOMENTS
24688
-
24689
- var getSetMillisecond = makeGetSet('Milliseconds', false);
24690
-
24691
- // FORMATTING
24692
-
24693
- addFormatToken('z', 0, 0, 'zoneAbbr');
24694
- addFormatToken('zz', 0, 0, 'zoneName');
24695
-
24696
- // MOMENTS
24697
-
24698
- function getZoneAbbr () {
24699
- return this._isUTC ? 'UTC' : '';
24700
- }
24701
-
24702
- function getZoneName () {
24703
- return this._isUTC ? 'Coordinated Universal Time' : '';
24704
- }
24705
-
24706
- var proto = Moment.prototype;
24707
-
24708
- proto.add = add;
24709
- proto.calendar = calendar$1;
24710
- proto.clone = clone;
24711
- proto.diff = diff;
24712
- proto.endOf = endOf;
24713
- proto.format = format;
24714
- proto.from = from;
24715
- proto.fromNow = fromNow;
24716
- proto.to = to;
24717
- proto.toNow = toNow;
24718
- proto.get = stringGet;
24719
- proto.invalidAt = invalidAt;
24720
- proto.isAfter = isAfter;
24721
- proto.isBefore = isBefore;
24722
- proto.isBetween = isBetween;
24723
- proto.isSame = isSame;
24724
- proto.isSameOrAfter = isSameOrAfter;
24725
- proto.isSameOrBefore = isSameOrBefore;
24726
- proto.isValid = isValid$2;
24727
- proto.lang = lang;
24728
- proto.locale = locale;
24729
- proto.localeData = localeData;
24730
- proto.max = prototypeMax;
24731
- proto.min = prototypeMin;
24732
- proto.parsingFlags = parsingFlags;
24733
- proto.set = stringSet;
24734
- proto.startOf = startOf;
24735
- proto.subtract = subtract;
24736
- proto.toArray = toArray;
24737
- proto.toObject = toObject;
24738
- proto.toDate = toDate;
24739
- proto.toISOString = toISOString;
24740
- proto.inspect = inspect;
24741
- proto.toJSON = toJSON;
24742
- proto.toString = toString;
24743
- proto.unix = unix;
24744
- proto.valueOf = valueOf;
24745
- proto.creationData = creationData;
24746
- proto.year = getSetYear;
24747
- proto.isLeapYear = getIsLeapYear;
24748
- proto.weekYear = getSetWeekYear;
24749
- proto.isoWeekYear = getSetISOWeekYear;
24750
- proto.quarter = proto.quarters = getSetQuarter;
24751
- proto.month = getSetMonth;
24752
- proto.daysInMonth = getDaysInMonth;
24753
- proto.week = proto.weeks = getSetWeek;
24754
- proto.isoWeek = proto.isoWeeks = getSetISOWeek;
24755
- proto.weeksInYear = getWeeksInYear;
24756
- proto.isoWeeksInYear = getISOWeeksInYear;
24757
- proto.date = getSetDayOfMonth;
24758
- proto.day = proto.days = getSetDayOfWeek;
24759
- proto.weekday = getSetLocaleDayOfWeek;
24760
- proto.isoWeekday = getSetISODayOfWeek;
24761
- proto.dayOfYear = getSetDayOfYear;
24762
- proto.hour = proto.hours = getSetHour;
24763
- proto.minute = proto.minutes = getSetMinute;
24764
- proto.second = proto.seconds = getSetSecond;
24765
- proto.millisecond = proto.milliseconds = getSetMillisecond;
24766
- proto.utcOffset = getSetOffset;
24767
- proto.utc = setOffsetToUTC;
24768
- proto.local = setOffsetToLocal;
24769
- proto.parseZone = setOffsetToParsedOffset;
24770
- proto.hasAlignedHourOffset = hasAlignedHourOffset;
24771
- proto.isDST = isDaylightSavingTime;
24772
- proto.isLocal = isLocal;
24773
- proto.isUtcOffset = isUtcOffset;
24774
- proto.isUtc = isUtc;
24775
- proto.isUTC = isUtc;
24776
- proto.zoneAbbr = getZoneAbbr;
24777
- proto.zoneName = getZoneName;
24778
- proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
24779
- proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
24780
- proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
24781
- proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
24782
- proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
24783
-
24784
- function createUnix (input) {
24785
- return createLocal(input * 1000);
24786
- }
24787
-
24788
- function createInZone () {
24789
- return createLocal.apply(null, arguments).parseZone();
24790
- }
24791
-
24792
- function preParsePostFormat (string) {
24793
- return string;
24794
- }
24795
-
24796
- var proto$1 = Locale.prototype;
24797
-
24798
- proto$1.calendar = calendar;
24799
- proto$1.longDateFormat = longDateFormat;
24800
- proto$1.invalidDate = invalidDate;
24801
- proto$1.ordinal = ordinal;
24802
- proto$1.preparse = preParsePostFormat;
24803
- proto$1.postformat = preParsePostFormat;
24804
- proto$1.relativeTime = relativeTime;
24805
- proto$1.pastFuture = pastFuture;
24806
- proto$1.set = set;
24807
-
24808
- proto$1.months = localeMonths;
24809
- proto$1.monthsShort = localeMonthsShort;
24810
- proto$1.monthsParse = localeMonthsParse;
24811
- proto$1.monthsRegex = monthsRegex;
24812
- proto$1.monthsShortRegex = monthsShortRegex;
24813
- proto$1.week = localeWeek;
24814
- proto$1.firstDayOfYear = localeFirstDayOfYear;
24815
- proto$1.firstDayOfWeek = localeFirstDayOfWeek;
24816
-
24817
- proto$1.weekdays = localeWeekdays;
24818
- proto$1.weekdaysMin = localeWeekdaysMin;
24819
- proto$1.weekdaysShort = localeWeekdaysShort;
24820
- proto$1.weekdaysParse = localeWeekdaysParse;
24821
-
24822
- proto$1.weekdaysRegex = weekdaysRegex;
24823
- proto$1.weekdaysShortRegex = weekdaysShortRegex;
24824
- proto$1.weekdaysMinRegex = weekdaysMinRegex;
24825
-
24826
- proto$1.isPM = localeIsPM;
24827
- proto$1.meridiem = localeMeridiem;
24828
-
24829
- function get$1 (format, index, field, setter) {
24830
- var locale = getLocale();
24831
- var utc = createUTC().set(setter, index);
24832
- return locale[field](utc, format);
24833
- }
24834
-
24835
- function listMonthsImpl (format, index, field) {
24836
- if (isNumber(format)) {
24837
- index = format;
24838
- format = undefined;
24839
- }
24840
-
24841
- format = format || '';
24842
-
24843
- if (index != null) {
24844
- return get$1(format, index, field, 'month');
24845
- }
24846
-
24847
- var i;
24848
- var out = [];
24849
- for (i = 0; i < 12; i++) {
24850
- out[i] = get$1(format, i, field, 'month');
24851
- }
24852
- return out;
24853
- }
24854
-
24855
- // ()
24856
- // (5)
24857
- // (fmt, 5)
24858
- // (fmt)
24859
- // (true)
24860
- // (true, 5)
24861
- // (true, fmt, 5)
24862
- // (true, fmt)
24863
- function listWeekdaysImpl (localeSorted, format, index, field) {
24864
- if (typeof localeSorted === 'boolean') {
24865
- if (isNumber(format)) {
24866
- index = format;
24867
- format = undefined;
24868
- }
24869
-
24870
- format = format || '';
24871
- } else {
24872
- format = localeSorted;
24873
- index = format;
24874
- localeSorted = false;
24875
-
24876
- if (isNumber(format)) {
24877
- index = format;
24878
- format = undefined;
24879
- }
24880
-
24881
- format = format || '';
24882
- }
24883
-
24884
- var locale = getLocale(),
24885
- shift = localeSorted ? locale._week.dow : 0;
24886
-
24887
- if (index != null) {
24888
- return get$1(format, (index + shift) % 7, field, 'day');
24889
- }
24890
-
24891
- var i;
24892
- var out = [];
24893
- for (i = 0; i < 7; i++) {
24894
- out[i] = get$1(format, (i + shift) % 7, field, 'day');
24895
- }
24896
- return out;
24897
- }
24898
-
24899
- function listMonths (format, index) {
24900
- return listMonthsImpl(format, index, 'months');
24901
- }
24902
-
24903
- function listMonthsShort (format, index) {
24904
- return listMonthsImpl(format, index, 'monthsShort');
24905
- }
24906
-
24907
- function listWeekdays (localeSorted, format, index) {
24908
- return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
24909
- }
24910
-
24911
- function listWeekdaysShort (localeSorted, format, index) {
24912
- return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
24913
- }
24914
-
24915
- function listWeekdaysMin (localeSorted, format, index) {
24916
- return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
24917
- }
24918
-
24919
- getSetGlobalLocale('en', {
24920
- dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
24921
- ordinal : function (number) {
24922
- var b = number % 10,
24923
- output = (toInt(number % 100 / 10) === 1) ? 'th' :
24924
- (b === 1) ? 'st' :
24925
- (b === 2) ? 'nd' :
24926
- (b === 3) ? 'rd' : 'th';
24927
- return number + output;
24928
- }
24929
- });
24930
-
24931
- // Side effect imports
24932
-
24933
- hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
24934
- hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
24935
-
24936
- var mathAbs = Math.abs;
24937
-
24938
- function abs () {
24939
- var data = this._data;
24940
-
24941
- this._milliseconds = mathAbs(this._milliseconds);
24942
- this._days = mathAbs(this._days);
24943
- this._months = mathAbs(this._months);
24944
-
24945
- data.milliseconds = mathAbs(data.milliseconds);
24946
- data.seconds = mathAbs(data.seconds);
24947
- data.minutes = mathAbs(data.minutes);
24948
- data.hours = mathAbs(data.hours);
24949
- data.months = mathAbs(data.months);
24950
- data.years = mathAbs(data.years);
24951
-
24952
- return this;
24953
- }
24954
-
24955
- function addSubtract$1 (duration, input, value, direction) {
24956
- var other = createDuration(input, value);
24957
-
24958
- duration._milliseconds += direction * other._milliseconds;
24959
- duration._days += direction * other._days;
24960
- duration._months += direction * other._months;
24961
-
24962
- return duration._bubble();
24963
- }
24964
-
24965
- // supports only 2.0-style add(1, 's') or add(duration)
24966
- function add$1 (input, value) {
24967
- return addSubtract$1(this, input, value, 1);
24968
- }
24969
-
24970
- // supports only 2.0-style subtract(1, 's') or subtract(duration)
24971
- function subtract$1 (input, value) {
24972
- return addSubtract$1(this, input, value, -1);
24973
- }
24974
-
24975
- function absCeil (number) {
24976
- if (number < 0) {
24977
- return Math.floor(number);
24978
- } else {
24979
- return Math.ceil(number);
24980
- }
24981
- }
24982
-
24983
- function bubble () {
24984
- var milliseconds = this._milliseconds;
24985
- var days = this._days;
24986
- var months = this._months;
24987
- var data = this._data;
24988
- var seconds, minutes, hours, years, monthsFromDays;
24989
-
24990
- // if we have a mix of positive and negative values, bubble down first
24991
- // check: https://github.com/moment/moment/issues/2166
24992
- if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
24993
- (milliseconds <= 0 && days <= 0 && months <= 0))) {
24994
- milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
24995
- days = 0;
24996
- months = 0;
24997
- }
24998
-
24999
- // The following code bubbles up values, see the tests for
25000
- // examples of what that means.
25001
- data.milliseconds = milliseconds % 1000;
25002
-
25003
- seconds = absFloor(milliseconds / 1000);
25004
- data.seconds = seconds % 60;
25005
-
25006
- minutes = absFloor(seconds / 60);
25007
- data.minutes = minutes % 60;
25008
-
25009
- hours = absFloor(minutes / 60);
25010
- data.hours = hours % 24;
25011
-
25012
- days += absFloor(hours / 24);
25013
-
25014
- // convert days to months
25015
- monthsFromDays = absFloor(daysToMonths(days));
25016
- months += monthsFromDays;
25017
- days -= absCeil(monthsToDays(monthsFromDays));
25018
-
25019
- // 12 months -> 1 year
25020
- years = absFloor(months / 12);
25021
- months %= 12;
25022
-
25023
- data.days = days;
25024
- data.months = months;
25025
- data.years = years;
25026
-
25027
- return this;
25028
- }
25029
-
25030
- function daysToMonths (days) {
25031
- // 400 years have 146097 days (taking into account leap year rules)
25032
- // 400 years have 12 months === 4800
25033
- return days * 4800 / 146097;
25034
- }
25035
-
25036
- function monthsToDays (months) {
25037
- // the reverse of daysToMonths
25038
- return months * 146097 / 4800;
25039
- }
25040
-
25041
- function as (units) {
25042
- if (!this.isValid()) {
25043
- return NaN;
25044
- }
25045
- var days;
25046
- var months;
25047
- var milliseconds = this._milliseconds;
25048
-
25049
- units = normalizeUnits(units);
25050
-
25051
- if (units === 'month' || units === 'quarter' || units === 'year') {
25052
- days = this._days + milliseconds / 864e5;
25053
- months = this._months + daysToMonths(days);
25054
- switch (units) {
25055
- case 'month': return months;
25056
- case 'quarter': return months / 3;
25057
- case 'year': return months / 12;
25058
- }
25059
- } else {
25060
- // handle milliseconds separately because of floating point math errors (issue #1867)
25061
- days = this._days + Math.round(monthsToDays(this._months));
25062
- switch (units) {
25063
- case 'week' : return days / 7 + milliseconds / 6048e5;
25064
- case 'day' : return days + milliseconds / 864e5;
25065
- case 'hour' : return days * 24 + milliseconds / 36e5;
25066
- case 'minute' : return days * 1440 + milliseconds / 6e4;
25067
- case 'second' : return days * 86400 + milliseconds / 1000;
25068
- // Math.floor prevents floating point math errors here
25069
- case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
25070
- default: throw new Error('Unknown unit ' + units);
25071
- }
25072
- }
25073
- }
25074
-
25075
- // TODO: Use this.as('ms')?
25076
- function valueOf$1 () {
25077
- if (!this.isValid()) {
25078
- return NaN;
25079
- }
25080
- return (
25081
- this._milliseconds +
25082
- this._days * 864e5 +
25083
- (this._months % 12) * 2592e6 +
25084
- toInt(this._months / 12) * 31536e6
25085
- );
25086
- }
25087
-
25088
- function makeAs (alias) {
25089
- return function () {
25090
- return this.as(alias);
25091
- };
25092
- }
25093
-
25094
- var asMilliseconds = makeAs('ms');
25095
- var asSeconds = makeAs('s');
25096
- var asMinutes = makeAs('m');
25097
- var asHours = makeAs('h');
25098
- var asDays = makeAs('d');
25099
- var asWeeks = makeAs('w');
25100
- var asMonths = makeAs('M');
25101
- var asQuarters = makeAs('Q');
25102
- var asYears = makeAs('y');
25103
-
25104
- function clone$1 () {
25105
- return createDuration(this);
25106
- }
25107
-
25108
- function get$2 (units) {
25109
- units = normalizeUnits(units);
25110
- return this.isValid() ? this[units + 's']() : NaN;
25111
- }
25112
-
25113
- function makeGetter(name) {
25114
- return function () {
25115
- return this.isValid() ? this._data[name] : NaN;
25116
- };
25117
- }
25118
-
25119
- var milliseconds = makeGetter('milliseconds');
25120
- var seconds = makeGetter('seconds');
25121
- var minutes = makeGetter('minutes');
25122
- var hours = makeGetter('hours');
25123
- var days = makeGetter('days');
25124
- var months = makeGetter('months');
25125
- var years = makeGetter('years');
25126
-
25127
- function weeks () {
25128
- return absFloor(this.days() / 7);
25129
- }
25130
-
25131
- var round = Math.round;
25132
- var thresholds = {
25133
- ss: 44, // a few seconds to seconds
25134
- s : 45, // seconds to minute
25135
- m : 45, // minutes to hour
25136
- h : 22, // hours to day
25137
- d : 26, // days to month
25138
- M : 11 // months to year
25139
- };
25140
-
25141
- // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
25142
- function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
25143
- return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
25144
- }
25145
-
25146
- function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
25147
- var duration = createDuration(posNegDuration).abs();
25148
- var seconds = round(duration.as('s'));
25149
- var minutes = round(duration.as('m'));
25150
- var hours = round(duration.as('h'));
25151
- var days = round(duration.as('d'));
25152
- var months = round(duration.as('M'));
25153
- var years = round(duration.as('y'));
25154
-
25155
- var a = seconds <= thresholds.ss && ['s', seconds] ||
25156
- seconds < thresholds.s && ['ss', seconds] ||
25157
- minutes <= 1 && ['m'] ||
25158
- minutes < thresholds.m && ['mm', minutes] ||
25159
- hours <= 1 && ['h'] ||
25160
- hours < thresholds.h && ['hh', hours] ||
25161
- days <= 1 && ['d'] ||
25162
- days < thresholds.d && ['dd', days] ||
25163
- months <= 1 && ['M'] ||
25164
- months < thresholds.M && ['MM', months] ||
25165
- years <= 1 && ['y'] || ['yy', years];
25166
-
25167
- a[2] = withoutSuffix;
25168
- a[3] = +posNegDuration > 0;
25169
- a[4] = locale;
25170
- return substituteTimeAgo.apply(null, a);
25171
- }
25172
-
25173
- // This function allows you to set the rounding function for relative time strings
25174
- function getSetRelativeTimeRounding (roundingFunction) {
25175
- if (roundingFunction === undefined) {
25176
- return round;
25177
- }
25178
- if (typeof(roundingFunction) === 'function') {
25179
- round = roundingFunction;
25180
- return true;
25181
- }
25182
- return false;
25183
- }
25184
-
25185
- // This function allows you to set a threshold for relative time strings
25186
- function getSetRelativeTimeThreshold (threshold, limit) {
25187
- if (thresholds[threshold] === undefined) {
25188
- return false;
25189
- }
25190
- if (limit === undefined) {
25191
- return thresholds[threshold];
25192
- }
25193
- thresholds[threshold] = limit;
25194
- if (threshold === 's') {
25195
- thresholds.ss = limit - 1;
25196
- }
25197
- return true;
25198
- }
25199
-
25200
- function humanize (withSuffix) {
25201
- if (!this.isValid()) {
25202
- return this.localeData().invalidDate();
25203
- }
25204
-
25205
- var locale = this.localeData();
25206
- var output = relativeTime$1(this, !withSuffix, locale);
25207
-
25208
- if (withSuffix) {
25209
- output = locale.pastFuture(+this, output);
25210
- }
25211
-
25212
- return locale.postformat(output);
25213
- }
25214
-
25215
- var abs$1 = Math.abs;
25216
-
25217
- function sign(x) {
25218
- return ((x > 0) - (x < 0)) || +x;
25219
- }
25220
-
25221
- function toISOString$1() {
25222
- // for ISO strings we do not use the normal bubbling rules:
25223
- // * milliseconds bubble up until they become hours
25224
- // * days do not bubble at all
25225
- // * months bubble up until they become years
25226
- // This is because there is no context-free conversion between hours and days
25227
- // (think of clock changes)
25228
- // and also not between days and months (28-31 days per month)
25229
- if (!this.isValid()) {
25230
- return this.localeData().invalidDate();
25231
- }
25232
-
25233
- var seconds = abs$1(this._milliseconds) / 1000;
25234
- var days = abs$1(this._days);
25235
- var months = abs$1(this._months);
25236
- var minutes, hours, years;
25237
-
25238
- // 3600 seconds -> 60 minutes -> 1 hour
25239
- minutes = absFloor(seconds / 60);
25240
- hours = absFloor(minutes / 60);
25241
- seconds %= 60;
25242
- minutes %= 60;
25243
-
25244
- // 12 months -> 1 year
25245
- years = absFloor(months / 12);
25246
- months %= 12;
25247
-
25248
-
25249
- // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
25250
- var Y = years;
25251
- var M = months;
25252
- var D = days;
25253
- var h = hours;
25254
- var m = minutes;
25255
- var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
25256
- var total = this.asSeconds();
25257
-
25258
- if (!total) {
25259
- // this is the same as C#'s (Noda) and python (isodate)...
25260
- // but not other JS (goog.date)
25261
- return 'P0D';
25262
- }
25263
-
25264
- var totalSign = total < 0 ? '-' : '';
25265
- var ymSign = sign(this._months) !== sign(total) ? '-' : '';
25266
- var daysSign = sign(this._days) !== sign(total) ? '-' : '';
25267
- var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
25268
-
25269
- return totalSign + 'P' +
25270
- (Y ? ymSign + Y + 'Y' : '') +
25271
- (M ? ymSign + M + 'M' : '') +
25272
- (D ? daysSign + D + 'D' : '') +
25273
- ((h || m || s) ? 'T' : '') +
25274
- (h ? hmsSign + h + 'H' : '') +
25275
- (m ? hmsSign + m + 'M' : '') +
25276
- (s ? hmsSign + s + 'S' : '');
25277
- }
25278
-
25279
- var proto$2 = Duration.prototype;
25280
-
25281
- proto$2.isValid = isValid$1;
25282
- proto$2.abs = abs;
25283
- proto$2.add = add$1;
25284
- proto$2.subtract = subtract$1;
25285
- proto$2.as = as;
25286
- proto$2.asMilliseconds = asMilliseconds;
25287
- proto$2.asSeconds = asSeconds;
25288
- proto$2.asMinutes = asMinutes;
25289
- proto$2.asHours = asHours;
25290
- proto$2.asDays = asDays;
25291
- proto$2.asWeeks = asWeeks;
25292
- proto$2.asMonths = asMonths;
25293
- proto$2.asQuarters = asQuarters;
25294
- proto$2.asYears = asYears;
25295
- proto$2.valueOf = valueOf$1;
25296
- proto$2._bubble = bubble;
25297
- proto$2.clone = clone$1;
25298
- proto$2.get = get$2;
25299
- proto$2.milliseconds = milliseconds;
25300
- proto$2.seconds = seconds;
25301
- proto$2.minutes = minutes;
25302
- proto$2.hours = hours;
25303
- proto$2.days = days;
25304
- proto$2.weeks = weeks;
25305
- proto$2.months = months;
25306
- proto$2.years = years;
25307
- proto$2.humanize = humanize;
25308
- proto$2.toISOString = toISOString$1;
25309
- proto$2.toString = toISOString$1;
25310
- proto$2.toJSON = toISOString$1;
25311
- proto$2.locale = locale;
25312
- proto$2.localeData = localeData;
25313
-
25314
- proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
25315
- proto$2.lang = lang;
25316
-
25317
- // Side effect imports
25318
-
25319
- // FORMATTING
25320
-
25321
- addFormatToken('X', 0, 0, 'unix');
25322
- addFormatToken('x', 0, 0, 'valueOf');
25323
-
25324
- // PARSING
25325
-
25326
- addRegexToken('x', matchSigned);
25327
- addRegexToken('X', matchTimestamp);
25328
- addParseToken('X', function (input, array, config) {
25329
- config._d = new Date(parseFloat(input, 10) * 1000);
25330
- });
25331
- addParseToken('x', function (input, array, config) {
25332
- config._d = new Date(toInt(input));
25333
- });
25334
-
25335
- // Side effect imports
25336
-
25337
-
25338
- hooks.version = '2.24.0';
25339
-
25340
- setHookCallback(createLocal);
25341
-
25342
- hooks.fn = proto;
25343
- hooks.min = min;
25344
- hooks.max = max;
25345
- hooks.now = now;
25346
- hooks.utc = createUTC;
25347
- hooks.unix = createUnix;
25348
- hooks.months = listMonths;
25349
- hooks.isDate = isDate;
25350
- hooks.locale = getSetGlobalLocale;
25351
- hooks.invalid = createInvalid;
25352
- hooks.duration = createDuration;
25353
- hooks.isMoment = isMoment;
25354
- hooks.weekdays = listWeekdays;
25355
- hooks.parseZone = createInZone;
25356
- hooks.localeData = getLocale;
25357
- hooks.isDuration = isDuration;
25358
- hooks.monthsShort = listMonthsShort;
25359
- hooks.weekdaysMin = listWeekdaysMin;
25360
- hooks.defineLocale = defineLocale;
25361
- hooks.updateLocale = updateLocale;
25362
- hooks.locales = listLocales;
25363
- hooks.weekdaysShort = listWeekdaysShort;
25364
- hooks.normalizeUnits = normalizeUnits;
25365
- hooks.relativeTimeRounding = getSetRelativeTimeRounding;
25366
- hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
25367
- hooks.calendarFormat = getCalendarFormat;
25368
- hooks.prototype = proto;
25369
-
25370
- // currently HTML5 input type only supports 24-hour formats
25371
- hooks.HTML5_FMT = {
25372
- DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
25373
- DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
25374
- DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
25375
- DATE: 'YYYY-MM-DD', // <input type="date" />
25376
- TIME: 'HH:mm', // <input type="time" />
25377
- TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
25378
- TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
25379
- WEEK: 'GGGG-[W]WW', // <input type="week" />
25380
- MONTH: 'YYYY-MM' // <input type="month" />
25381
- };
25382
-
25383
- return hooks;
25384
-
25385
- })));
25386
-
25387
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
25388
-
25389
- /***/ }),
25390
-
25391
- /***/ "./node_modules/object-assign/index.js":
25392
- /*!*********************************************!*\
25393
- !*** ./node_modules/object-assign/index.js ***!
25394
- \*********************************************/
25395
- /*! no static exports found */
25396
- /***/ (function(module, exports, __webpack_require__) {
25397
-
25398
- "use strict";
25399
- /*
25400
- object-assign
25401
- (c) Sindre Sorhus
25402
- @license MIT
25403
- */
25404
-
25405
-
25406
- /* eslint-disable no-unused-vars */
25407
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
25408
- var hasOwnProperty = Object.prototype.hasOwnProperty;
25409
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
25410
-
25411
- function toObject(val) {
25412
- if (val === null || val === undefined) {
25413
- throw new TypeError('Object.assign cannot be called with null or undefined');
25414
- }
25415
-
25416
- return Object(val);
25417
- }
25418
-
25419
- function shouldUseNative() {
25420
- try {
25421
- if (!Object.assign) {
25422
- return false;
25423
- }
25424
-
25425
- // Detect buggy property enumeration order in older V8 versions.
25426
-
25427
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
25428
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
25429
- test1[5] = 'de';
25430
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
25431
- return false;
25432
- }
25433
-
25434
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
25435
- var test2 = {};
25436
- for (var i = 0; i < 10; i++) {
25437
- test2['_' + String.fromCharCode(i)] = i;
25438
- }
25439
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
25440
- return test2[n];
25441
- });
25442
- if (order2.join('') !== '0123456789') {
25443
- return false;
25444
- }
25445
-
25446
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
25447
- var test3 = {};
25448
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
25449
- test3[letter] = letter;
25450
- });
25451
- if (Object.keys(Object.assign({}, test3)).join('') !==
25452
- 'abcdefghijklmnopqrst') {
25453
- return false;
25454
- }
25455
-
25456
- return true;
25457
- } catch (err) {
25458
- // We don't expect any of the above to throw, but better to be safe.
25459
- return false;
25460
- }
25461
- }
25462
-
25463
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
25464
- var from;
25465
- var to = toObject(target);
25466
- var symbols;
25467
-
25468
- for (var s = 1; s < arguments.length; s++) {
25469
- from = Object(arguments[s]);
25470
-
25471
- for (var key in from) {
25472
- if (hasOwnProperty.call(from, key)) {
25473
- to[key] = from[key];
25474
- }
25475
- }
25476
-
25477
- if (getOwnPropertySymbols) {
25478
- symbols = getOwnPropertySymbols(from);
25479
- for (var i = 0; i < symbols.length; i++) {
25480
- if (propIsEnumerable.call(from, symbols[i])) {
25481
- to[symbols[i]] = from[symbols[i]];
25482
- }
25483
- }
25484
- }
25485
- }
25486
-
25487
- return to;
25488
- };
25489
-
25490
-
25491
- /***/ }),
25492
-
25493
- /***/ "./node_modules/prop-types/checkPropTypes.js":
25494
- /*!***************************************************!*\
25495
- !*** ./node_modules/prop-types/checkPropTypes.js ***!
25496
- \***************************************************/
25497
- /*! no static exports found */
25498
- /***/ (function(module, exports, __webpack_require__) {
25499
-
25500
- "use strict";
25501
- /**
25502
- * Copyright (c) 2013-present, Facebook, Inc.
25503
- *
25504
- * This source code is licensed under the MIT license found in the
25505
- * LICENSE file in the root directory of this source tree.
25506
- */
25507
-
25508
-
25509
-
25510
- var printWarning = function() {};
25511
-
25512
- if (true) {
25513
- var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
25514
- var loggedTypeFailures = {};
25515
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
25516
-
25517
- printWarning = function(text) {
25518
- var message = 'Warning: ' + text;
25519
- if (typeof console !== 'undefined') {
25520
- console.error(message);
25521
- }
25522
- try {
25523
- // --- Welcome to debugging React ---
25524
- // This error was thrown as a convenience so that you can use this stack
25525
- // to find the callsite that caused this warning to fire.
25526
- throw new Error(message);
25527
- } catch (x) {}
25528
- };
25529
- }
25530
-
25531
- /**
25532
- * Assert that the values match with the type specs.
25533
- * Error messages are memorized and will only be shown once.
25534
- *
25535
- * @param {object} typeSpecs Map of name to a ReactPropType
25536
- * @param {object} values Runtime values that need to be type-checked
25537
- * @param {string} location e.g. "prop", "context", "child context"
25538
- * @param {string} componentName Name of the component for error messages.
25539
- * @param {?Function} getStack Returns the component stack.
25540
- * @private
25541
- */
25542
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
25543
- if (true) {
25544
- for (var typeSpecName in typeSpecs) {
25545
- if (has(typeSpecs, typeSpecName)) {
25546
- var error;
25547
- // Prop type validation may throw. In case they do, we don't want to
25548
- // fail the render phase where it didn't fail before. So we log it.
25549
- // After these have been cleaned up, we'll let them throw.
25550
- try {
25551
- // This is intentionally an invariant that gets caught. It's the same
25552
- // behavior as without this statement except with a better message.
25553
- if (typeof typeSpecs[typeSpecName] !== 'function') {
25554
- var err = Error(
25555
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
25556
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
25557
- );
25558
- err.name = 'Invariant Violation';
25559
- throw err;
25560
- }
25561
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
25562
- } catch (ex) {
25563
- error = ex;
25564
- }
25565
- if (error && !(error instanceof Error)) {
25566
- printWarning(
25567
- (componentName || 'React class') + ': type specification of ' +
25568
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
25569
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
25570
- 'You may have forgotten to pass an argument to the type checker ' +
25571
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
25572
- 'shape all require an argument).'
25573
- );
25574
- }
25575
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
25576
- // Only monitor this failure once because there tends to be a lot of the
25577
- // same error.
25578
- loggedTypeFailures[error.message] = true;
25579
-
25580
- var stack = getStack ? getStack() : '';
25581
-
25582
- printWarning(
25583
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
25584
- );
25585
- }
25586
- }
25587
- }
25588
- }
25589
- }
25590
-
25591
- /**
25592
- * Resets warning cache when testing.
25593
- *
25594
- * @private
25595
- */
25596
- checkPropTypes.resetWarningCache = function() {
25597
- if (true) {
25598
- loggedTypeFailures = {};
25599
- }
25600
- }
25601
-
25602
- module.exports = checkPropTypes;
25603
-
25604
-
25605
- /***/ }),
25606
-
25607
- /***/ "./node_modules/prop-types/factoryWithTypeCheckers.js":
25608
- /*!************************************************************!*\
25609
- !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
25610
- \************************************************************/
25611
- /*! no static exports found */
25612
- /***/ (function(module, exports, __webpack_require__) {
25613
-
25614
- "use strict";
25615
- /**
25616
- * Copyright (c) 2013-present, Facebook, Inc.
25617
- *
25618
- * This source code is licensed under the MIT license found in the
25619
- * LICENSE file in the root directory of this source tree.
25620
- */
25621
-
25622
-
25623
-
25624
- var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
25625
- var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
25626
-
25627
- var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
25628
- var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
25629
-
25630
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
25631
- var printWarning = function() {};
25632
-
25633
- if (true) {
25634
- printWarning = function(text) {
25635
- var message = 'Warning: ' + text;
25636
- if (typeof console !== 'undefined') {
25637
- console.error(message);
25638
- }
25639
- try {
25640
- // --- Welcome to debugging React ---
25641
- // This error was thrown as a convenience so that you can use this stack
25642
- // to find the callsite that caused this warning to fire.
25643
- throw new Error(message);
25644
- } catch (x) {}
25645
- };
25646
- }
25647
-
25648
- function emptyFunctionThatReturnsNull() {
25649
- return null;
25650
- }
25651
-
25652
- module.exports = function(isValidElement, throwOnDirectAccess) {
25653
- /* global Symbol */
25654
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
25655
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
25656
-
25657
- /**
25658
- * Returns the iterator method function contained on the iterable object.
25659
- *
25660
- * Be sure to invoke the function with the iterable as context:
25661
- *
25662
- * var iteratorFn = getIteratorFn(myIterable);
25663
- * if (iteratorFn) {
25664
- * var iterator = iteratorFn.call(myIterable);
25665
- * ...
25666
- * }
25667
- *
25668
- * @param {?object} maybeIterable
25669
- * @return {?function}
25670
- */
25671
- function getIteratorFn(maybeIterable) {
25672
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
25673
- if (typeof iteratorFn === 'function') {
25674
- return iteratorFn;
25675
- }
25676
- }
25677
-
25678
- /**
25679
- * Collection of methods that allow declaration and validation of props that are
25680
- * supplied to React components. Example usage:
25681
- *
25682
- * var Props = require('ReactPropTypes');
25683
- * var MyArticle = React.createClass({
25684
- * propTypes: {
25685
- * // An optional string prop named "description".
25686
- * description: Props.string,
25687
- *
25688
- * // A required enum prop named "category".
25689
- * category: Props.oneOf(['News','Photos']).isRequired,
25690
- *
25691
- * // A prop named "dialog" that requires an instance of Dialog.
25692
- * dialog: Props.instanceOf(Dialog).isRequired
25693
- * },
25694
- * render: function() { ... }
25695
- * });
25696
- *
25697
- * A more formal specification of how these methods are used:
25698
- *
25699
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
25700
- * decl := ReactPropTypes.{type}(.isRequired)?
25701
- *
25702
- * Each and every declaration produces a function with the same signature. This
25703
- * allows the creation of custom validation functions. For example:
25704
- *
25705
- * var MyLink = React.createClass({
25706
- * propTypes: {
25707
- * // An optional string or URI prop named "href".
25708
- * href: function(props, propName, componentName) {
25709
- * var propValue = props[propName];
25710
- * if (propValue != null && typeof propValue !== 'string' &&
25711
- * !(propValue instanceof URI)) {
25712
- * return new Error(
25713
- * 'Expected a string or an URI for ' + propName + ' in ' +
25714
- * componentName
25715
- * );
25716
- * }
25717
- * }
25718
- * },
25719
- * render: function() {...}
25720
- * });
25721
- *
25722
- * @internal
25723
- */
25724
-
25725
- var ANONYMOUS = '<<anonymous>>';
25726
-
25727
- // Important!
25728
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
25729
- var ReactPropTypes = {
25730
- array: createPrimitiveTypeChecker('array'),
25731
- bool: createPrimitiveTypeChecker('boolean'),
25732
- func: createPrimitiveTypeChecker('function'),
25733
- number: createPrimitiveTypeChecker('number'),
25734
- object: createPrimitiveTypeChecker('object'),
25735
- string: createPrimitiveTypeChecker('string'),
25736
- symbol: createPrimitiveTypeChecker('symbol'),
25737
-
25738
- any: createAnyTypeChecker(),
25739
- arrayOf: createArrayOfTypeChecker,
25740
- element: createElementTypeChecker(),
25741
- elementType: createElementTypeTypeChecker(),
25742
- instanceOf: createInstanceTypeChecker,
25743
- node: createNodeChecker(),
25744
- objectOf: createObjectOfTypeChecker,
25745
- oneOf: createEnumTypeChecker,
25746
- oneOfType: createUnionTypeChecker,
25747
- shape: createShapeTypeChecker,
25748
- exact: createStrictShapeTypeChecker,
25749
- };
25750
-
25751
- /**
25752
- * inlined Object.is polyfill to avoid requiring consumers ship their own
25753
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
25754
- */
25755
- /*eslint-disable no-self-compare*/
25756
- function is(x, y) {
25757
- // SameValue algorithm
25758
- if (x === y) {
25759
- // Steps 1-5, 7-10
25760
- // Steps 6.b-6.e: +0 != -0
25761
- return x !== 0 || 1 / x === 1 / y;
25762
- } else {
25763
- // Step 6.a: NaN == NaN
25764
- return x !== x && y !== y;
25765
- }
25766
- }
25767
- /*eslint-enable no-self-compare*/
25768
-
25769
- /**
25770
- * We use an Error-like object for backward compatibility as people may call
25771
- * PropTypes directly and inspect their output. However, we don't use real
25772
- * Errors anymore. We don't inspect their stack anyway, and creating them
25773
- * is prohibitively expensive if they are created too often, such as what
25774
- * happens in oneOfType() for any type before the one that matched.
25775
- */
25776
- function PropTypeError(message) {
25777
- this.message = message;
25778
- this.stack = '';
25779
- }
25780
- // Make `instanceof Error` still work for returned errors.
25781
- PropTypeError.prototype = Error.prototype;
25782
-
25783
- function createChainableTypeChecker(validate) {
25784
- if (true) {
25785
- var manualPropTypeCallCache = {};
25786
- var manualPropTypeWarningCount = 0;
25787
- }
25788
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
25789
- componentName = componentName || ANONYMOUS;
25790
- propFullName = propFullName || propName;
25791
-
25792
- if (secret !== ReactPropTypesSecret) {
25793
- if (throwOnDirectAccess) {
25794
- // New behavior only for users of `prop-types` package
25795
- var err = new Error(
25796
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
25797
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
25798
- 'Read more at http://fb.me/use-check-prop-types'
25799
- );
25800
- err.name = 'Invariant Violation';
25801
- throw err;
25802
- } else if ( true && typeof console !== 'undefined') {
25803
- // Old behavior for people using React.PropTypes
25804
- var cacheKey = componentName + ':' + propName;
25805
- if (
25806
- !manualPropTypeCallCache[cacheKey] &&
25807
- // Avoid spamming the console because they are often not actionable except for lib authors
25808
- manualPropTypeWarningCount < 3
25809
- ) {
25810
- printWarning(
25811
- 'You are manually calling a React.PropTypes validation ' +
25812
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
25813
- 'and will throw in the standalone `prop-types` package. ' +
25814
- 'You may be seeing this warning due to a third-party PropTypes ' +
25815
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
25816
- );
25817
- manualPropTypeCallCache[cacheKey] = true;
25818
- manualPropTypeWarningCount++;
25819
- }
25820
- }
25821
- }
25822
- if (props[propName] == null) {
25823
- if (isRequired) {
25824
- if (props[propName] === null) {
25825
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
25826
- }
25827
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
25828
- }
25829
- return null;
25830
- } else {
25831
- return validate(props, propName, componentName, location, propFullName);
25832
- }
25833
- }
25834
-
25835
- var chainedCheckType = checkType.bind(null, false);
25836
- chainedCheckType.isRequired = checkType.bind(null, true);
25837
-
25838
- return chainedCheckType;
25839
- }
25840
-
25841
- function createPrimitiveTypeChecker(expectedType) {
25842
- function validate(props, propName, componentName, location, propFullName, secret) {
25843
- var propValue = props[propName];
25844
- var propType = getPropType(propValue);
25845
- if (propType !== expectedType) {
25846
- // `propValue` being instance of, say, date/regexp, pass the 'object'
25847
- // check, but we can offer a more precise error message here rather than
25848
- // 'of type `object`'.
25849
- var preciseType = getPreciseType(propValue);
25850
-
25851
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
25852
- }
25853
- return null;
25854
- }
25855
- return createChainableTypeChecker(validate);
25856
- }
25857
-
25858
- function createAnyTypeChecker() {
25859
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
25860
- }
25861
-
25862
- function createArrayOfTypeChecker(typeChecker) {
25863
- function validate(props, propName, componentName, location, propFullName) {
25864
- if (typeof typeChecker !== 'function') {
25865
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
25866
- }
25867
- var propValue = props[propName];
25868
- if (!Array.isArray(propValue)) {
25869
- var propType = getPropType(propValue);
25870
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
25871
- }
25872
- for (var i = 0; i < propValue.length; i++) {
25873
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
25874
- if (error instanceof Error) {
25875
- return error;
25876
- }
25877
- }
25878
- return null;
25879
- }
25880
- return createChainableTypeChecker(validate);
25881
- }
25882
-
25883
- function createElementTypeChecker() {
25884
- function validate(props, propName, componentName, location, propFullName) {
25885
- var propValue = props[propName];
25886
- if (!isValidElement(propValue)) {
25887
- var propType = getPropType(propValue);
25888
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
25889
- }
25890
- return null;
25891
- }
25892
- return createChainableTypeChecker(validate);
25893
- }
25894
-
25895
- function createElementTypeTypeChecker() {
25896
- function validate(props, propName, componentName, location, propFullName) {
25897
- var propValue = props[propName];
25898
- if (!ReactIs.isValidElementType(propValue)) {
25899
- var propType = getPropType(propValue);
25900
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
25901
- }
25902
- return null;
25903
- }
25904
- return createChainableTypeChecker(validate);
25905
- }
25906
-
25907
- function createInstanceTypeChecker(expectedClass) {
25908
- function validate(props, propName, componentName, location, propFullName) {
25909
- if (!(props[propName] instanceof expectedClass)) {
25910
- var expectedClassName = expectedClass.name || ANONYMOUS;
25911
- var actualClassName = getClassName(props[propName]);
25912
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
25913
- }
25914
- return null;
25915
- }
25916
- return createChainableTypeChecker(validate);
25917
- }
25918
-
25919
- function createEnumTypeChecker(expectedValues) {
25920
- if (!Array.isArray(expectedValues)) {
25921
- if (true) {
25922
- if (arguments.length > 1) {
25923
- printWarning(
25924
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
25925
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
25926
- );
25927
- } else {
25928
- printWarning('Invalid argument supplied to oneOf, expected an array.');
25929
- }
25930
- }
25931
- return emptyFunctionThatReturnsNull;
25932
- }
25933
-
25934
- function validate(props, propName, componentName, location, propFullName) {
25935
- var propValue = props[propName];
25936
- for (var i = 0; i < expectedValues.length; i++) {
25937
- if (is(propValue, expectedValues[i])) {
25938
- return null;
25939
- }
25940
- }
25941
-
25942
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
25943
- var type = getPreciseType(value);
25944
- if (type === 'symbol') {
25945
- return String(value);
25946
- }
25947
- return value;
25948
- });
25949
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
25950
- }
25951
- return createChainableTypeChecker(validate);
25952
- }
25953
-
25954
- function createObjectOfTypeChecker(typeChecker) {
25955
- function validate(props, propName, componentName, location, propFullName) {
25956
- if (typeof typeChecker !== 'function') {
25957
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
25958
- }
25959
- var propValue = props[propName];
25960
- var propType = getPropType(propValue);
25961
- if (propType !== 'object') {
25962
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
25963
- }
25964
- for (var key in propValue) {
25965
- if (has(propValue, key)) {
25966
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
25967
- if (error instanceof Error) {
25968
- return error;
25969
- }
25970
- }
25971
- }
25972
- return null;
25973
- }
25974
- return createChainableTypeChecker(validate);
25975
- }
25976
-
25977
- function createUnionTypeChecker(arrayOfTypeCheckers) {
25978
- if (!Array.isArray(arrayOfTypeCheckers)) {
25979
- true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
25980
- return emptyFunctionThatReturnsNull;
25981
- }
25982
-
25983
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
25984
- var checker = arrayOfTypeCheckers[i];
25985
- if (typeof checker !== 'function') {
25986
- printWarning(
25987
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
25988
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
25989
- );
25990
- return emptyFunctionThatReturnsNull;
25991
- }
25992
- }
25993
-
25994
- function validate(props, propName, componentName, location, propFullName) {
25995
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
25996
- var checker = arrayOfTypeCheckers[i];
25997
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
25998
- return null;
25999
- }
26000
- }
26001
-
26002
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
26003
- }
26004
- return createChainableTypeChecker(validate);
26005
- }
26006
-
26007
- function createNodeChecker() {
26008
- function validate(props, propName, componentName, location, propFullName) {
26009
- if (!isNode(props[propName])) {
26010
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
26011
- }
26012
- return null;
26013
- }
26014
- return createChainableTypeChecker(validate);
26015
- }
26016
-
26017
- function createShapeTypeChecker(shapeTypes) {
26018
- function validate(props, propName, componentName, location, propFullName) {
26019
- var propValue = props[propName];
26020
- var propType = getPropType(propValue);
26021
- if (propType !== 'object') {
26022
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
26023
- }
26024
- for (var key in shapeTypes) {
26025
- var checker = shapeTypes[key];
26026
- if (!checker) {
26027
- continue;
26028
- }
26029
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
26030
- if (error) {
26031
- return error;
26032
- }
26033
- }
26034
- return null;
26035
- }
26036
- return createChainableTypeChecker(validate);
26037
- }
26038
-
26039
- function createStrictShapeTypeChecker(shapeTypes) {
26040
- function validate(props, propName, componentName, location, propFullName) {
26041
- var propValue = props[propName];
26042
- var propType = getPropType(propValue);
26043
- if (propType !== 'object') {
26044
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
26045
- }
26046
- // We need to check all keys in case some are required but missing from
26047
- // props.
26048
- var allKeys = assign({}, props[propName], shapeTypes);
26049
- for (var key in allKeys) {
26050
- var checker = shapeTypes[key];
26051
- if (!checker) {
26052
- return new PropTypeError(
26053
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
26054
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
26055
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
26056
- );
26057
- }
26058
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
26059
- if (error) {
26060
- return error;
26061
- }
26062
- }
26063
- return null;
26064
- }
26065
-
26066
- return createChainableTypeChecker(validate);
26067
- }
26068
-
26069
- function isNode(propValue) {
26070
- switch (typeof propValue) {
26071
- case 'number':
26072
- case 'string':
26073
- case 'undefined':
26074
- return true;
26075
- case 'boolean':
26076
- return !propValue;
26077
- case 'object':
26078
- if (Array.isArray(propValue)) {
26079
- return propValue.every(isNode);
26080
- }
26081
- if (propValue === null || isValidElement(propValue)) {
26082
- return true;
26083
- }
26084
-
26085
- var iteratorFn = getIteratorFn(propValue);
26086
- if (iteratorFn) {
26087
- var iterator = iteratorFn.call(propValue);
26088
- var step;
26089
- if (iteratorFn !== propValue.entries) {
26090
- while (!(step = iterator.next()).done) {
26091
- if (!isNode(step.value)) {
26092
- return false;
26093
- }
26094
- }
26095
- } else {
26096
- // Iterator will provide entry [k,v] tuples rather than values.
26097
- while (!(step = iterator.next()).done) {
26098
- var entry = step.value;
26099
- if (entry) {
26100
- if (!isNode(entry[1])) {
26101
- return false;
26102
- }
26103
- }
26104
- }
26105
- }
26106
- } else {
26107
- return false;
26108
- }
26109
-
26110
- return true;
26111
- default:
26112
- return false;
26113
- }
26114
- }
26115
-
26116
- function isSymbol(propType, propValue) {
26117
- // Native Symbol.
26118
- if (propType === 'symbol') {
26119
- return true;
26120
- }
26121
-
26122
- // falsy value can't be a Symbol
26123
- if (!propValue) {
26124
- return false;
26125
- }
26126
-
26127
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
26128
- if (propValue['@@toStringTag'] === 'Symbol') {
26129
- return true;
26130
- }
26131
-
26132
- // Fallback for non-spec compliant Symbols which are polyfilled.
26133
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
26134
- return true;
26135
- }
26136
-
26137
- return false;
26138
- }
26139
-
26140
- // Equivalent of `typeof` but with special handling for array and regexp.
26141
- function getPropType(propValue) {
26142
- var propType = typeof propValue;
26143
- if (Array.isArray(propValue)) {
26144
- return 'array';
26145
- }
26146
- if (propValue instanceof RegExp) {
26147
- // Old webkits (at least until Android 4.0) return 'function' rather than
26148
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
26149
- // passes PropTypes.object.
26150
- return 'object';
26151
- }
26152
- if (isSymbol(propType, propValue)) {
26153
- return 'symbol';
26154
- }
26155
- return propType;
26156
- }
26157
-
26158
- // This handles more types than `getPropType`. Only used for error messages.
26159
- // See `createPrimitiveTypeChecker`.
26160
- function getPreciseType(propValue) {
26161
- if (typeof propValue === 'undefined' || propValue === null) {
26162
- return '' + propValue;
26163
- }
26164
- var propType = getPropType(propValue);
26165
- if (propType === 'object') {
26166
- if (propValue instanceof Date) {
26167
- return 'date';
26168
- } else if (propValue instanceof RegExp) {
26169
- return 'regexp';
26170
- }
26171
- }
26172
- return propType;
26173
- }
26174
-
26175
- // Returns a string that is postfixed to a warning about an invalid type.
26176
- // For example, "undefined" or "of type array"
26177
- function getPostfixForTypeWarning(value) {
26178
- var type = getPreciseType(value);
26179
- switch (type) {
26180
- case 'array':
26181
- case 'object':
26182
- return 'an ' + type;
26183
- case 'boolean':
26184
- case 'date':
26185
- case 'regexp':
26186
- return 'a ' + type;
26187
- default:
26188
- return type;
26189
- }
26190
- }
26191
-
26192
- // Returns class name of the object, if any.
26193
- function getClassName(propValue) {
26194
- if (!propValue.constructor || !propValue.constructor.name) {
26195
- return ANONYMOUS;
26196
- }
26197
- return propValue.constructor.name;
26198
- }
26199
-
26200
- ReactPropTypes.checkPropTypes = checkPropTypes;
26201
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
26202
- ReactPropTypes.PropTypes = ReactPropTypes;
26203
-
26204
- return ReactPropTypes;
26205
- };
26206
-
26207
-
26208
- /***/ }),
26209
-
26210
- /***/ "./node_modules/prop-types/index.js":
26211
- /*!******************************************!*\
26212
- !*** ./node_modules/prop-types/index.js ***!
26213
- \******************************************/
26214
- /*! no static exports found */
26215
- /***/ (function(module, exports, __webpack_require__) {
26216
-
26217
- /**
26218
- * Copyright (c) 2013-present, Facebook, Inc.
26219
- *
26220
- * This source code is licensed under the MIT license found in the
26221
- * LICENSE file in the root directory of this source tree.
26222
- */
26223
-
26224
- if (true) {
26225
- var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
26226
-
26227
- // By explicitly using `prop-types` you are opting into new development behavior.
26228
- // http://fb.me/prop-types-in-prod
26229
- var throwOnDirectAccess = true;
26230
- module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
26231
- } else {}
26232
-
26233
-
26234
- /***/ }),
26235
-
26236
- /***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
26237
- /*!*************************************************************!*\
26238
- !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
26239
- \*************************************************************/
26240
- /*! no static exports found */
26241
- /***/ (function(module, exports, __webpack_require__) {
26242
-
26243
- "use strict";
26244
- /**
26245
- * Copyright (c) 2013-present, Facebook, Inc.
26246
- *
26247
- * This source code is licensed under the MIT license found in the
26248
- * LICENSE file in the root directory of this source tree.
26249
- */
26250
-
26251
-
26252
-
26253
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
26254
-
26255
- module.exports = ReactPropTypesSecret;
26256
-
26257
-
26258
- /***/ }),
26259
-
26260
- /***/ "./node_modules/react-dom/cjs/react-dom.development.js":
26261
- /*!*************************************************************!*\
26262
- !*** ./node_modules/react-dom/cjs/react-dom.development.js ***!
26263
- \*************************************************************/
26264
- /*! no static exports found */
26265
- /***/ (function(module, exports, __webpack_require__) {
26266
-
26267
- "use strict";
26268
- /** @license React v16.8.3
26269
- * react-dom.development.js
26270
- *
26271
- * Copyright (c) Facebook, Inc. and its affiliates.
26272
- *
26273
- * This source code is licensed under the MIT license found in the
26274
- * LICENSE file in the root directory of this source tree.
26275
- */
26276
-
26277
-
26278
-
26279
-
26280
-
26281
- if (true) {
26282
- (function() {
26283
- 'use strict';
26284
-
26285
- var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
26286
- var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
26287
- var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
26288
- var scheduler = __webpack_require__(/*! scheduler */ "./node_modules/scheduler/index.js");
26289
- var tracing = __webpack_require__(/*! scheduler/tracing */ "./node_modules/scheduler/tracing.js");
26290
-
26291
- /**
26292
- * Use invariant() to assert state which your program assumes to be true.
26293
- *
26294
- * Provide sprintf-style format (only %s is supported) and arguments
26295
- * to provide information about what broke and what you were
26296
- * expecting.
26297
- *
26298
- * The invariant message will be stripped in production, but the invariant
26299
- * will remain to ensure logic does not differ in production.
26300
- */
26301
-
26302
- var validateFormat = function () {};
26303
-
26304
- {
26305
- validateFormat = function (format) {
26306
- if (format === undefined) {
26307
- throw new Error('invariant requires an error message argument');
26308
- }
26309
- };
26310
- }
26311
-
26312
- function invariant(condition, format, a, b, c, d, e, f) {
26313
- validateFormat(format);
26314
-
26315
- if (!condition) {
26316
- var error = void 0;
26317
- if (format === undefined) {
26318
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
26319
- } else {
26320
- var args = [a, b, c, d, e, f];
26321
- var argIndex = 0;
26322
- error = new Error(format.replace(/%s/g, function () {
26323
- return args[argIndex++];
26324
- }));
26325
- error.name = 'Invariant Violation';
26326
- }
26327
-
26328
- error.framesToPop = 1; // we don't care about invariant's own frame
26329
- throw error;
26330
- }
26331
- }
26332
-
26333
- // Relying on the `invariant()` implementation lets us
26334
- // preserve the format and params in the www builds.
26335
-
26336
- !React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0;
26337
-
26338
- var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
26339
- var funcArgs = Array.prototype.slice.call(arguments, 3);
26340
- try {
26341
- func.apply(context, funcArgs);
26342
- } catch (error) {
26343
- this.onError(error);
26344
- }
26345
- };
26346
-
26347
- {
26348
- // In DEV mode, we swap out invokeGuardedCallback for a special version
26349
- // that plays more nicely with the browser's DevTools. The idea is to preserve
26350
- // "Pause on exceptions" behavior. Because React wraps all user-provided
26351
- // functions in invokeGuardedCallback, and the production version of
26352
- // invokeGuardedCallback uses a try-catch, all user exceptions are treated
26353
- // like caught exceptions, and the DevTools won't pause unless the developer
26354
- // takes the extra step of enabling pause on caught exceptions. This is
26355
- // unintuitive, though, because even though React has caught the error, from
26356
- // the developer's perspective, the error is uncaught.
26357
- //
26358
- // To preserve the expected "Pause on exceptions" behavior, we don't use a
26359
- // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
26360
- // DOM node, and call the user-provided callback from inside an event handler
26361
- // for that fake event. If the callback throws, the error is "captured" using
26362
- // a global event handler. But because the error happens in a different
26363
- // event loop context, it does not interrupt the normal program flow.
26364
- // Effectively, this gives us try-catch behavior without actually using
26365
- // try-catch. Neat!
26366
-
26367
- // Check that the browser supports the APIs we need to implement our special
26368
- // DEV version of invokeGuardedCallback
26369
- if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
26370
- var fakeNode = document.createElement('react');
26371
-
26372
- var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
26373
- // If document doesn't exist we know for sure we will crash in this method
26374
- // when we call document.createEvent(). However this can cause confusing
26375
- // errors: https://github.com/facebookincubator/create-react-app/issues/3482
26376
- // So we preemptively throw with a better message instead.
26377
- !(typeof document !== 'undefined') ? invariant(false, 'The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.') : void 0;
26378
- var evt = document.createEvent('Event');
26379
-
26380
- // Keeps track of whether the user-provided callback threw an error. We
26381
- // set this to true at the beginning, then set it to false right after
26382
- // calling the function. If the function errors, `didError` will never be
26383
- // set to false. This strategy works even if the browser is flaky and
26384
- // fails to call our global error handler, because it doesn't rely on
26385
- // the error event at all.
26386
- var didError = true;
26387
-
26388
- // Keeps track of the value of window.event so that we can reset it
26389
- // during the callback to let user code access window.event in the
26390
- // browsers that support it.
26391
- var windowEvent = window.event;
26392
-
26393
- // Keeps track of the descriptor of window.event to restore it after event
26394
- // dispatching: https://github.com/facebook/react/issues/13688
26395
- var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
26396
-
26397
- // Create an event handler for our fake event. We will synchronously
26398
- // dispatch our fake event using `dispatchEvent`. Inside the handler, we
26399
- // call the user-provided callback.
26400
- var funcArgs = Array.prototype.slice.call(arguments, 3);
26401
- function callCallback() {
26402
- // We immediately remove the callback from event listeners so that
26403
- // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
26404
- // nested call would trigger the fake event handlers of any call higher
26405
- // in the stack.
26406
- fakeNode.removeEventListener(evtType, callCallback, false);
26407
-
26408
- // We check for window.hasOwnProperty('event') to prevent the
26409
- // window.event assignment in both IE <= 10 as they throw an error
26410
- // "Member not found" in strict mode, and in Firefox which does not
26411
- // support window.event.
26412
- if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
26413
- window.event = windowEvent;
26414
- }
26415
-
26416
- func.apply(context, funcArgs);
26417
- didError = false;
26418
- }
26419
-
26420
- // Create a global error event handler. We use this to capture the value
26421
- // that was thrown. It's possible that this error handler will fire more
26422
- // than once; for example, if non-React code also calls `dispatchEvent`
26423
- // and a handler for that event throws. We should be resilient to most of
26424
- // those cases. Even if our error event handler fires more than once, the
26425
- // last error event is always used. If the callback actually does error,
26426
- // we know that the last error event is the correct one, because it's not
26427
- // possible for anything else to have happened in between our callback
26428
- // erroring and the code that follows the `dispatchEvent` call below. If
26429
- // the callback doesn't error, but the error event was fired, we know to
26430
- // ignore it because `didError` will be false, as described above.
26431
- var error = void 0;
26432
- // Use this to track whether the error event is ever called.
26433
- var didSetError = false;
26434
- var isCrossOriginError = false;
26435
-
26436
- function handleWindowError(event) {
26437
- error = event.error;
26438
- didSetError = true;
26439
- if (error === null && event.colno === 0 && event.lineno === 0) {
26440
- isCrossOriginError = true;
26441
- }
26442
- if (event.defaultPrevented) {
26443
- // Some other error handler has prevented default.
26444
- // Browsers silence the error report if this happens.
26445
- // We'll remember this to later decide whether to log it or not.
26446
- if (error != null && typeof error === 'object') {
26447
- try {
26448
- error._suppressLogging = true;
26449
- } catch (inner) {
26450
- // Ignore.
26451
- }
26452
- }
26453
- }
26454
- }
26455
-
26456
- // Create a fake event type.
26457
- var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
26458
-
26459
- // Attach our event handlers
26460
- window.addEventListener('error', handleWindowError);
26461
- fakeNode.addEventListener(evtType, callCallback, false);
26462
-
26463
- // Synchronously dispatch our fake event. If the user-provided function
26464
- // errors, it will trigger our global error handler.
26465
- evt.initEvent(evtType, false, false);
26466
- fakeNode.dispatchEvent(evt);
26467
-
26468
- if (windowEventDescriptor) {
26469
- Object.defineProperty(window, 'event', windowEventDescriptor);
26470
- }
26471
-
26472
- if (didError) {
26473
- if (!didSetError) {
26474
- // The callback errored, but the error event never fired.
26475
- error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
26476
- } else if (isCrossOriginError) {
26477
- error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');
26478
- }
26479
- this.onError(error);
26480
- }
26481
-
26482
- // Remove our event listeners
26483
- window.removeEventListener('error', handleWindowError);
26484
- };
26485
-
26486
- invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
26487
- }
26488
- }
26489
-
26490
- var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
26491
-
26492
- // Used by Fiber to simulate a try-catch.
26493
- var hasError = false;
26494
- var caughtError = null;
26495
-
26496
- // Used by event system to capture/rethrow the first error.
26497
- var hasRethrowError = false;
26498
- var rethrowError = null;
26499
-
26500
- var reporter = {
26501
- onError: function (error) {
26502
- hasError = true;
26503
- caughtError = error;
26504
- }
26505
- };
26506
-
26507
- /**
26508
- * Call a function while guarding against errors that happens within it.
26509
- * Returns an error if it throws, otherwise null.
26510
- *
26511
- * In production, this is implemented using a try-catch. The reason we don't
26512
- * use a try-catch directly is so that we can swap out a different
26513
- * implementation in DEV mode.
26514
- *
26515
- * @param {String} name of the guard to use for logging or debugging
26516
- * @param {Function} func The function to invoke
26517
- * @param {*} context The context to use when calling the function
26518
- * @param {...*} args Arguments for function
26519
- */
26520
- function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
26521
- hasError = false;
26522
- caughtError = null;
26523
- invokeGuardedCallbackImpl$1.apply(reporter, arguments);
26524
- }
26525
-
26526
- /**
26527
- * Same as invokeGuardedCallback, but instead of returning an error, it stores
26528
- * it in a global so it can be rethrown by `rethrowCaughtError` later.
26529
- * TODO: See if caughtError and rethrowError can be unified.
26530
- *
26531
- * @param {String} name of the guard to use for logging or debugging
26532
- * @param {Function} func The function to invoke
26533
- * @param {*} context The context to use when calling the function
26534
- * @param {...*} args Arguments for function
26535
- */
26536
- function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
26537
- invokeGuardedCallback.apply(this, arguments);
26538
- if (hasError) {
26539
- var error = clearCaughtError();
26540
- if (!hasRethrowError) {
26541
- hasRethrowError = true;
26542
- rethrowError = error;
26543
- }
26544
- }
26545
- }
26546
-
26547
- /**
26548
- * During execution of guarded functions we will capture the first error which
26549
- * we will rethrow to be handled by the top level error handler.
26550
- */
26551
- function rethrowCaughtError() {
26552
- if (hasRethrowError) {
26553
- var error = rethrowError;
26554
- hasRethrowError = false;
26555
- rethrowError = null;
26556
- throw error;
26557
- }
26558
- }
26559
-
26560
- function hasCaughtError() {
26561
- return hasError;
26562
- }
26563
-
26564
- function clearCaughtError() {
26565
- if (hasError) {
26566
- var error = caughtError;
26567
- hasError = false;
26568
- caughtError = null;
26569
- return error;
26570
- } else {
26571
- invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.');
26572
- }
26573
- }
26574
-
26575
- /**
26576
- * Injectable ordering of event plugins.
26577
- */
26578
- var eventPluginOrder = null;
26579
-
26580
- /**
26581
- * Injectable mapping from names to event plugin modules.
26582
- */
26583
- var namesToPlugins = {};
26584
-
26585
- /**
26586
- * Recomputes the plugin list using the injected plugins and plugin ordering.
26587
- *
26588
- * @private
26589
- */
26590
- function recomputePluginOrdering() {
26591
- if (!eventPluginOrder) {
26592
- // Wait until an `eventPluginOrder` is injected.
26593
- return;
26594
- }
26595
- for (var pluginName in namesToPlugins) {
26596
- var pluginModule = namesToPlugins[pluginName];
26597
- var pluginIndex = eventPluginOrder.indexOf(pluginName);
26598
- !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0;
26599
- if (plugins[pluginIndex]) {
26600
- continue;
26601
- }
26602
- !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0;
26603
- plugins[pluginIndex] = pluginModule;
26604
- var publishedEvents = pluginModule.eventTypes;
26605
- for (var eventName in publishedEvents) {
26606
- !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0;
26607
- }
26608
- }
26609
- }
26610
-
26611
- /**
26612
- * Publishes an event so that it can be dispatched by the supplied plugin.
26613
- *
26614
- * @param {object} dispatchConfig Dispatch configuration for the event.
26615
- * @param {object} PluginModule Plugin publishing the event.
26616
- * @return {boolean} True if the event was successfully published.
26617
- * @private
26618
- */
26619
- function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
26620
- !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0;
26621
- eventNameDispatchConfigs[eventName] = dispatchConfig;
26622
-
26623
- var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
26624
- if (phasedRegistrationNames) {
26625
- for (var phaseName in phasedRegistrationNames) {
26626
- if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
26627
- var phasedRegistrationName = phasedRegistrationNames[phaseName];
26628
- publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
26629
- }
26630
- }
26631
- return true;
26632
- } else if (dispatchConfig.registrationName) {
26633
- publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
26634
- return true;
26635
- }
26636
- return false;
26637
- }
26638
-
26639
- /**
26640
- * Publishes a registration name that is used to identify dispatched events.
26641
- *
26642
- * @param {string} registrationName Registration name to add.
26643
- * @param {object} PluginModule Plugin publishing the event.
26644
- * @private
26645
- */
26646
- function publishRegistrationName(registrationName, pluginModule, eventName) {
26647
- !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0;
26648
- registrationNameModules[registrationName] = pluginModule;
26649
- registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
26650
-
26651
- {
26652
- var lowerCasedName = registrationName.toLowerCase();
26653
- possibleRegistrationNames[lowerCasedName] = registrationName;
26654
-
26655
- if (registrationName === 'onDoubleClick') {
26656
- possibleRegistrationNames.ondblclick = registrationName;
26657
- }
26658
- }
26659
- }
26660
-
26661
- /**
26662
- * Registers plugins so that they can extract and dispatch events.
26663
- *
26664
- * @see {EventPluginHub}
26665
- */
26666
-
26667
- /**
26668
- * Ordered list of injected plugins.
26669
- */
26670
- var plugins = [];
26671
-
26672
- /**
26673
- * Mapping from event name to dispatch config
26674
- */
26675
- var eventNameDispatchConfigs = {};
26676
-
26677
- /**
26678
- * Mapping from registration name to plugin module
26679
- */
26680
- var registrationNameModules = {};
26681
-
26682
- /**
26683
- * Mapping from registration name to event name
26684
- */
26685
- var registrationNameDependencies = {};
26686
-
26687
- /**
26688
- * Mapping from lowercase registration names to the properly cased version,
26689
- * used to warn in the case of missing event handlers. Available
26690
- * only in true.
26691
- * @type {Object}
26692
- */
26693
- var possibleRegistrationNames = {};
26694
- // Trust the developer to only use possibleRegistrationNames in true
26695
-
26696
- /**
26697
- * Injects an ordering of plugins (by plugin name). This allows the ordering
26698
- * to be decoupled from injection of the actual plugins so that ordering is
26699
- * always deterministic regardless of packaging, on-the-fly injection, etc.
26700
- *
26701
- * @param {array} InjectedEventPluginOrder
26702
- * @internal
26703
- * @see {EventPluginHub.injection.injectEventPluginOrder}
26704
- */
26705
- function injectEventPluginOrder(injectedEventPluginOrder) {
26706
- !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0;
26707
- // Clone the ordering so it cannot be dynamically mutated.
26708
- eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
26709
- recomputePluginOrdering();
26710
- }
26711
-
26712
- /**
26713
- * Injects plugins to be used by `EventPluginHub`. The plugin names must be
26714
- * in the ordering injected by `injectEventPluginOrder`.
26715
- *
26716
- * Plugins can be injected as part of page initialization or on-the-fly.
26717
- *
26718
- * @param {object} injectedNamesToPlugins Map from names to plugin modules.
26719
- * @internal
26720
- * @see {EventPluginHub.injection.injectEventPluginsByName}
26721
- */
26722
- function injectEventPluginsByName(injectedNamesToPlugins) {
26723
- var isOrderingDirty = false;
26724
- for (var pluginName in injectedNamesToPlugins) {
26725
- if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
26726
- continue;
26727
- }
26728
- var pluginModule = injectedNamesToPlugins[pluginName];
26729
- if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
26730
- !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0;
26731
- namesToPlugins[pluginName] = pluginModule;
26732
- isOrderingDirty = true;
26733
- }
26734
- }
26735
- if (isOrderingDirty) {
26736
- recomputePluginOrdering();
26737
- }
26738
- }
26739
-
26740
- /**
26741
- * Similar to invariant but only logs a warning if the condition is not met.
26742
- * This can be used to log issues in development environments in critical
26743
- * paths. Removing the logging code for production environments will keep the
26744
- * same logic and follow the same code paths.
26745
- */
26746
-
26747
- var warningWithoutStack = function () {};
26748
-
26749
- {
26750
- warningWithoutStack = function (condition, format) {
26751
- for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
26752
- args[_key - 2] = arguments[_key];
26753
- }
26754
-
26755
- if (format === undefined) {
26756
- throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
26757
- }
26758
- if (args.length > 8) {
26759
- // Check before the condition to catch violations early.
26760
- throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
26761
- }
26762
- if (condition) {
26763
- return;
26764
- }
26765
- if (typeof console !== 'undefined') {
26766
- var argsWithFormat = args.map(function (item) {
26767
- return '' + item;
26768
- });
26769
- argsWithFormat.unshift('Warning: ' + format);
26770
-
26771
- // We intentionally don't use spread (or .apply) directly because it
26772
- // breaks IE9: https://github.com/facebook/react/issues/13610
26773
- Function.prototype.apply.call(console.error, console, argsWithFormat);
26774
- }
26775
- try {
26776
- // --- Welcome to debugging React ---
26777
- // This error was thrown as a convenience so that you can use this stack
26778
- // to find the callsite that caused this warning to fire.
26779
- var argIndex = 0;
26780
- var message = 'Warning: ' + format.replace(/%s/g, function () {
26781
- return args[argIndex++];
26782
- });
26783
- throw new Error(message);
26784
- } catch (x) {}
26785
- };
26786
- }
26787
-
26788
- var warningWithoutStack$1 = warningWithoutStack;
26789
-
26790
- var getFiberCurrentPropsFromNode = null;
26791
- var getInstanceFromNode = null;
26792
- var getNodeFromInstance = null;
26793
-
26794
- function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
26795
- getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
26796
- getInstanceFromNode = getInstanceFromNodeImpl;
26797
- getNodeFromInstance = getNodeFromInstanceImpl;
26798
- {
26799
- !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
26800
- }
26801
- }
26802
-
26803
- var validateEventDispatches = void 0;
26804
- {
26805
- validateEventDispatches = function (event) {
26806
- var dispatchListeners = event._dispatchListeners;
26807
- var dispatchInstances = event._dispatchInstances;
26808
-
26809
- var listenersIsArr = Array.isArray(dispatchListeners);
26810
- var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
26811
-
26812
- var instancesIsArr = Array.isArray(dispatchInstances);
26813
- var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
26814
-
26815
- !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
26816
- };
26817
- }
26818
-
26819
- /**
26820
- * Dispatch the event to the listener.
26821
- * @param {SyntheticEvent} event SyntheticEvent to handle
26822
- * @param {function} listener Application-level callback
26823
- * @param {*} inst Internal component instance
26824
- */
26825
- function executeDispatch(event, listener, inst) {
26826
- var type = event.type || 'unknown-event';
26827
- event.currentTarget = getNodeFromInstance(inst);
26828
- invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
26829
- event.currentTarget = null;
26830
- }
26831
-
26832
- /**
26833
- * Standard/simple iteration through an event's collected dispatches.
26834
- */
26835
- function executeDispatchesInOrder(event) {
26836
- var dispatchListeners = event._dispatchListeners;
26837
- var dispatchInstances = event._dispatchInstances;
26838
- {
26839
- validateEventDispatches(event);
26840
- }
26841
- if (Array.isArray(dispatchListeners)) {
26842
- for (var i = 0; i < dispatchListeners.length; i++) {
26843
- if (event.isPropagationStopped()) {
26844
- break;
26845
- }
26846
- // Listeners and Instances are two parallel arrays that are always in sync.
26847
- executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
26848
- }
26849
- } else if (dispatchListeners) {
26850
- executeDispatch(event, dispatchListeners, dispatchInstances);
26851
- }
26852
- event._dispatchListeners = null;
26853
- event._dispatchInstances = null;
26854
- }
26855
-
26856
- /**
26857
- * @see executeDispatchesInOrderStopAtTrueImpl
26858
- */
26859
-
26860
-
26861
- /**
26862
- * Execution of a "direct" dispatch - there must be at most one dispatch
26863
- * accumulated on the event or it is considered an error. It doesn't really make
26864
- * sense for an event with multiple dispatches (bubbled) to keep track of the
26865
- * return values at each dispatch execution, but it does tend to make sense when
26866
- * dealing with "direct" dispatches.
26867
- *
26868
- * @return {*} The return value of executing the single dispatch.
26869
- */
26870
-
26871
-
26872
- /**
26873
- * @param {SyntheticEvent} event
26874
- * @return {boolean} True iff number of dispatches accumulated is greater than 0.
26875
- */
26876
-
26877
- /**
26878
- * Accumulates items that must not be null or undefined into the first one. This
26879
- * is used to conserve memory by avoiding array allocations, and thus sacrifices
26880
- * API cleanness. Since `current` can be null before being passed in and not
26881
- * null after this function, make sure to assign it back to `current`:
26882
- *
26883
- * `a = accumulateInto(a, b);`
26884
- *
26885
- * This API should be sparingly used. Try `accumulate` for something cleaner.
26886
- *
26887
- * @return {*|array<*>} An accumulation of items.
26888
- */
26889
-
26890
- function accumulateInto(current, next) {
26891
- !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0;
26892
-
26893
- if (current == null) {
26894
- return next;
26895
- }
26896
-
26897
- // Both are not empty. Warning: Never call x.concat(y) when you are not
26898
- // certain that x is an Array (x could be a string with concat method).
26899
- if (Array.isArray(current)) {
26900
- if (Array.isArray(next)) {
26901
- current.push.apply(current, next);
26902
- return current;
26903
- }
26904
- current.push(next);
26905
- return current;
26906
- }
26907
-
26908
- if (Array.isArray(next)) {
26909
- // A bit too dangerous to mutate `next`.
26910
- return [current].concat(next);
26911
- }
26912
-
26913
- return [current, next];
26914
- }
26915
-
26916
- /**
26917
- * @param {array} arr an "accumulation" of items which is either an Array or
26918
- * a single item. Useful when paired with the `accumulate` module. This is a
26919
- * simple utility that allows us to reason about a collection of items, but
26920
- * handling the case when there is exactly one item (and we do not need to
26921
- * allocate an array).
26922
- * @param {function} cb Callback invoked with each element or a collection.
26923
- * @param {?} [scope] Scope used as `this` in a callback.
26924
- */
26925
- function forEachAccumulated(arr, cb, scope) {
26926
- if (Array.isArray(arr)) {
26927
- arr.forEach(cb, scope);
26928
- } else if (arr) {
26929
- cb.call(scope, arr);
26930
- }
26931
- }
26932
-
26933
- /**
26934
- * Internal queue of events that have accumulated their dispatches and are
26935
- * waiting to have their dispatches executed.
26936
- */
26937
- var eventQueue = null;
26938
-
26939
- /**
26940
- * Dispatches an event and releases it back into the pool, unless persistent.
26941
- *
26942
- * @param {?object} event Synthetic event to be dispatched.
26943
- * @private
26944
- */
26945
- var executeDispatchesAndRelease = function (event) {
26946
- if (event) {
26947
- executeDispatchesInOrder(event);
26948
-
26949
- if (!event.isPersistent()) {
26950
- event.constructor.release(event);
26951
- }
26952
- }
26953
- };
26954
- var executeDispatchesAndReleaseTopLevel = function (e) {
26955
- return executeDispatchesAndRelease(e);
26956
- };
26957
-
26958
- function isInteractive(tag) {
26959
- return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
26960
- }
26961
-
26962
- function shouldPreventMouseEvent(name, type, props) {
26963
- switch (name) {
26964
- case 'onClick':
26965
- case 'onClickCapture':
26966
- case 'onDoubleClick':
26967
- case 'onDoubleClickCapture':
26968
- case 'onMouseDown':
26969
- case 'onMouseDownCapture':
26970
- case 'onMouseMove':
26971
- case 'onMouseMoveCapture':
26972
- case 'onMouseUp':
26973
- case 'onMouseUpCapture':
26974
- return !!(props.disabled && isInteractive(type));
26975
- default:
26976
- return false;
26977
- }
26978
- }
26979
-
26980
- /**
26981
- * This is a unified interface for event plugins to be installed and configured.
26982
- *
26983
- * Event plugins can implement the following properties:
26984
- *
26985
- * `extractEvents` {function(string, DOMEventTarget, string, object): *}
26986
- * Required. When a top-level event is fired, this method is expected to
26987
- * extract synthetic events that will in turn be queued and dispatched.
26988
- *
26989
- * `eventTypes` {object}
26990
- * Optional, plugins that fire events must publish a mapping of registration
26991
- * names that are used to register listeners. Values of this mapping must
26992
- * be objects that contain `registrationName` or `phasedRegistrationNames`.
26993
- *
26994
- * `executeDispatch` {function(object, function, string)}
26995
- * Optional, allows plugins to override how an event gets dispatched. By
26996
- * default, the listener is simply invoked.
26997
- *
26998
- * Each plugin that is injected into `EventsPluginHub` is immediately operable.
26999
- *
27000
- * @public
27001
- */
27002
-
27003
- /**
27004
- * Methods for injecting dependencies.
27005
- */
27006
- var injection = {
27007
- /**
27008
- * @param {array} InjectedEventPluginOrder
27009
- * @public
27010
- */
27011
- injectEventPluginOrder: injectEventPluginOrder,
27012
-
27013
- /**
27014
- * @param {object} injectedNamesToPlugins Map from names to plugin modules.
27015
- */
27016
- injectEventPluginsByName: injectEventPluginsByName
27017
- };
27018
-
27019
- /**
27020
- * @param {object} inst The instance, which is the source of events.
27021
- * @param {string} registrationName Name of listener (e.g. `onClick`).
27022
- * @return {?function} The stored callback.
27023
- */
27024
- function getListener(inst, registrationName) {
27025
- var listener = void 0;
27026
-
27027
- // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
27028
- // live here; needs to be moved to a better place soon
27029
- var stateNode = inst.stateNode;
27030
- if (!stateNode) {
27031
- // Work in progress (ex: onload events in incremental mode).
27032
- return null;
27033
- }
27034
- var props = getFiberCurrentPropsFromNode(stateNode);
27035
- if (!props) {
27036
- // Work in progress.
27037
- return null;
27038
- }
27039
- listener = props[registrationName];
27040
- if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
27041
- return null;
27042
- }
27043
- !(!listener || typeof listener === 'function') ? invariant(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener) : void 0;
27044
- return listener;
27045
- }
27046
-
27047
- /**
27048
- * Allows registered plugins an opportunity to extract events from top-level
27049
- * native browser events.
27050
- *
27051
- * @return {*} An accumulation of synthetic events.
27052
- * @internal
27053
- */
27054
- function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
27055
- var events = null;
27056
- for (var i = 0; i < plugins.length; i++) {
27057
- // Not every plugin in the ordering may be loaded at runtime.
27058
- var possiblePlugin = plugins[i];
27059
- if (possiblePlugin) {
27060
- var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
27061
- if (extractedEvents) {
27062
- events = accumulateInto(events, extractedEvents);
27063
- }
27064
- }
27065
- }
27066
- return events;
27067
- }
27068
-
27069
- function runEventsInBatch(events) {
27070
- if (events !== null) {
27071
- eventQueue = accumulateInto(eventQueue, events);
27072
- }
27073
-
27074
- // Set `eventQueue` to null before processing it so that we can tell if more
27075
- // events get enqueued while processing.
27076
- var processingEventQueue = eventQueue;
27077
- eventQueue = null;
27078
-
27079
- if (!processingEventQueue) {
27080
- return;
27081
- }
27082
-
27083
- forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
27084
- !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0;
27085
- // This would be a good time to rethrow if any of the event handlers threw.
27086
- rethrowCaughtError();
27087
- }
27088
-
27089
- function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
27090
- var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
27091
- runEventsInBatch(events);
27092
- }
27093
-
27094
- var FunctionComponent = 0;
27095
- var ClassComponent = 1;
27096
- var IndeterminateComponent = 2; // Before we know whether it is function or class
27097
- var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
27098
- var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
27099
- var HostComponent = 5;
27100
- var HostText = 6;
27101
- var Fragment = 7;
27102
- var Mode = 8;
27103
- var ContextConsumer = 9;
27104
- var ContextProvider = 10;
27105
- var ForwardRef = 11;
27106
- var Profiler = 12;
27107
- var SuspenseComponent = 13;
27108
- var MemoComponent = 14;
27109
- var SimpleMemoComponent = 15;
27110
- var LazyComponent = 16;
27111
- var IncompleteClassComponent = 17;
27112
- var DehydratedSuspenseComponent = 18;
27113
-
27114
- var randomKey = Math.random().toString(36).slice(2);
27115
- var internalInstanceKey = '__reactInternalInstance$' + randomKey;
27116
- var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
27117
-
27118
- function precacheFiberNode(hostInst, node) {
27119
- node[internalInstanceKey] = hostInst;
27120
- }
27121
-
27122
- /**
27123
- * Given a DOM node, return the closest ReactDOMComponent or
27124
- * ReactDOMTextComponent instance ancestor.
27125
- */
27126
- function getClosestInstanceFromNode(node) {
27127
- if (node[internalInstanceKey]) {
27128
- return node[internalInstanceKey];
27129
- }
27130
-
27131
- while (!node[internalInstanceKey]) {
27132
- if (node.parentNode) {
27133
- node = node.parentNode;
27134
- } else {
27135
- // Top of the tree. This node must not be part of a React tree (or is
27136
- // unmounted, potentially).
27137
- return null;
27138
- }
27139
- }
27140
-
27141
- var inst = node[internalInstanceKey];
27142
- if (inst.tag === HostComponent || inst.tag === HostText) {
27143
- // In Fiber, this will always be the deepest root.
27144
- return inst;
27145
- }
27146
-
27147
- return null;
27148
- }
27149
-
27150
- /**
27151
- * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
27152
- * instance, or null if the node was not rendered by this React.
27153
- */
27154
- function getInstanceFromNode$1(node) {
27155
- var inst = node[internalInstanceKey];
27156
- if (inst) {
27157
- if (inst.tag === HostComponent || inst.tag === HostText) {
27158
- return inst;
27159
- } else {
27160
- return null;
27161
- }
27162
- }
27163
- return null;
27164
- }
27165
-
27166
- /**
27167
- * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
27168
- * DOM node.
27169
- */
27170
- function getNodeFromInstance$1(inst) {
27171
- if (inst.tag === HostComponent || inst.tag === HostText) {
27172
- // In Fiber this, is just the state node right now. We assume it will be
27173
- // a host component or host text.
27174
- return inst.stateNode;
27175
- }
27176
-
27177
- // Without this first invariant, passing a non-DOM-component triggers the next
27178
- // invariant for a missing parent, which is super confusing.
27179
- invariant(false, 'getNodeFromInstance: Invalid argument.');
27180
- }
27181
-
27182
- function getFiberCurrentPropsFromNode$1(node) {
27183
- return node[internalEventHandlersKey] || null;
27184
- }
27185
-
27186
- function updateFiberProps(node, props) {
27187
- node[internalEventHandlersKey] = props;
27188
- }
27189
-
27190
- function getParent(inst) {
27191
- do {
27192
- inst = inst.return;
27193
- // TODO: If this is a HostRoot we might want to bail out.
27194
- // That is depending on if we want nested subtrees (layers) to bubble
27195
- // events to their parent. We could also go through parentNode on the
27196
- // host node but that wouldn't work for React Native and doesn't let us
27197
- // do the portal feature.
27198
- } while (inst && inst.tag !== HostComponent);
27199
- if (inst) {
27200
- return inst;
27201
- }
27202
- return null;
27203
- }
27204
-
27205
- /**
27206
- * Return the lowest common ancestor of A and B, or null if they are in
27207
- * different trees.
27208
- */
27209
- function getLowestCommonAncestor(instA, instB) {
27210
- var depthA = 0;
27211
- for (var tempA = instA; tempA; tempA = getParent(tempA)) {
27212
- depthA++;
27213
- }
27214
- var depthB = 0;
27215
- for (var tempB = instB; tempB; tempB = getParent(tempB)) {
27216
- depthB++;
27217
- }
27218
-
27219
- // If A is deeper, crawl up.
27220
- while (depthA - depthB > 0) {
27221
- instA = getParent(instA);
27222
- depthA--;
27223
- }
27224
-
27225
- // If B is deeper, crawl up.
27226
- while (depthB - depthA > 0) {
27227
- instB = getParent(instB);
27228
- depthB--;
27229
- }
27230
-
27231
- // Walk in lockstep until we find a match.
27232
- var depth = depthA;
27233
- while (depth--) {
27234
- if (instA === instB || instA === instB.alternate) {
27235
- return instA;
27236
- }
27237
- instA = getParent(instA);
27238
- instB = getParent(instB);
27239
- }
27240
- return null;
27241
- }
27242
-
27243
- /**
27244
- * Return if A is an ancestor of B.
27245
- */
27246
-
27247
-
27248
- /**
27249
- * Return the parent instance of the passed-in instance.
27250
- */
27251
-
27252
-
27253
- /**
27254
- * Simulates the traversal of a two-phase, capture/bubble event dispatch.
27255
- */
27256
- function traverseTwoPhase(inst, fn, arg) {
27257
- var path = [];
27258
- while (inst) {
27259
- path.push(inst);
27260
- inst = getParent(inst);
27261
- }
27262
- var i = void 0;
27263
- for (i = path.length; i-- > 0;) {
27264
- fn(path[i], 'captured', arg);
27265
- }
27266
- for (i = 0; i < path.length; i++) {
27267
- fn(path[i], 'bubbled', arg);
27268
- }
27269
- }
27270
-
27271
- /**
27272
- * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
27273
- * should would receive a `mouseEnter` or `mouseLeave` event.
27274
- *
27275
- * Does not invoke the callback on the nearest common ancestor because nothing
27276
- * "entered" or "left" that element.
27277
- */
27278
- function traverseEnterLeave(from, to, fn, argFrom, argTo) {
27279
- var common = from && to ? getLowestCommonAncestor(from, to) : null;
27280
- var pathFrom = [];
27281
- while (true) {
27282
- if (!from) {
27283
- break;
27284
- }
27285
- if (from === common) {
27286
- break;
27287
- }
27288
- var alternate = from.alternate;
27289
- if (alternate !== null && alternate === common) {
27290
- break;
27291
- }
27292
- pathFrom.push(from);
27293
- from = getParent(from);
27294
- }
27295
- var pathTo = [];
27296
- while (true) {
27297
- if (!to) {
27298
- break;
27299
- }
27300
- if (to === common) {
27301
- break;
27302
- }
27303
- var _alternate = to.alternate;
27304
- if (_alternate !== null && _alternate === common) {
27305
- break;
27306
- }
27307
- pathTo.push(to);
27308
- to = getParent(to);
27309
- }
27310
- for (var i = 0; i < pathFrom.length; i++) {
27311
- fn(pathFrom[i], 'bubbled', argFrom);
27312
- }
27313
- for (var _i = pathTo.length; _i-- > 0;) {
27314
- fn(pathTo[_i], 'captured', argTo);
27315
- }
27316
- }
27317
-
27318
- /**
27319
- * Some event types have a notion of different registration names for different
27320
- * "phases" of propagation. This finds listeners by a given phase.
27321
- */
27322
- function listenerAtPhase(inst, event, propagationPhase) {
27323
- var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
27324
- return getListener(inst, registrationName);
27325
- }
27326
-
27327
- /**
27328
- * A small set of propagation patterns, each of which will accept a small amount
27329
- * of information, and generate a set of "dispatch ready event objects" - which
27330
- * are sets of events that have already been annotated with a set of dispatched
27331
- * listener functions/ids. The API is designed this way to discourage these
27332
- * propagation strategies from actually executing the dispatches, since we
27333
- * always want to collect the entire set of dispatches before executing even a
27334
- * single one.
27335
- */
27336
-
27337
- /**
27338
- * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
27339
- * here, allows us to not have to bind or create functions for each event.
27340
- * Mutating the event's members allows us to not have to create a wrapping
27341
- * "dispatch" object that pairs the event with the listener.
27342
- */
27343
- function accumulateDirectionalDispatches(inst, phase, event) {
27344
- {
27345
- !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
27346
- }
27347
- var listener = listenerAtPhase(inst, event, phase);
27348
- if (listener) {
27349
- event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
27350
- event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
27351
- }
27352
- }
27353
-
27354
- /**
27355
- * Collect dispatches (must be entirely collected before dispatching - see unit
27356
- * tests). Lazily allocate the array to conserve memory. We must loop through
27357
- * each event and perform the traversal for each one. We cannot perform a
27358
- * single traversal for the entire collection of events because each event may
27359
- * have a different target.
27360
- */
27361
- function accumulateTwoPhaseDispatchesSingle(event) {
27362
- if (event && event.dispatchConfig.phasedRegistrationNames) {
27363
- traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
27364
- }
27365
- }
27366
-
27367
- /**
27368
- * Accumulates without regard to direction, does not look for phased
27369
- * registration names. Same as `accumulateDirectDispatchesSingle` but without
27370
- * requiring that the `dispatchMarker` be the same as the dispatched ID.
27371
- */
27372
- function accumulateDispatches(inst, ignoredDirection, event) {
27373
- if (inst && event && event.dispatchConfig.registrationName) {
27374
- var registrationName = event.dispatchConfig.registrationName;
27375
- var listener = getListener(inst, registrationName);
27376
- if (listener) {
27377
- event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
27378
- event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
27379
- }
27380
- }
27381
- }
27382
-
27383
- /**
27384
- * Accumulates dispatches on an `SyntheticEvent`, but only for the
27385
- * `dispatchMarker`.
27386
- * @param {SyntheticEvent} event
27387
- */
27388
- function accumulateDirectDispatchesSingle(event) {
27389
- if (event && event.dispatchConfig.registrationName) {
27390
- accumulateDispatches(event._targetInst, null, event);
27391
- }
27392
- }
27393
-
27394
- function accumulateTwoPhaseDispatches(events) {
27395
- forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
27396
- }
27397
-
27398
-
27399
-
27400
- function accumulateEnterLeaveDispatches(leave, enter, from, to) {
27401
- traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
27402
- }
27403
-
27404
- function accumulateDirectDispatches(events) {
27405
- forEachAccumulated(events, accumulateDirectDispatchesSingle);
27406
- }
27407
-
27408
- var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
27409
-
27410
- // Do not uses the below two methods directly!
27411
- // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
27412
- // (It is the only module that is allowed to access these methods.)
27413
-
27414
- function unsafeCastStringToDOMTopLevelType(topLevelType) {
27415
- return topLevelType;
27416
- }
27417
-
27418
- function unsafeCastDOMTopLevelTypeToString(topLevelType) {
27419
- return topLevelType;
27420
- }
27421
-
27422
- /**
27423
- * Generate a mapping of standard vendor prefixes using the defined style property and event name.
27424
- *
27425
- * @param {string} styleProp
27426
- * @param {string} eventName
27427
- * @returns {object}
27428
- */
27429
- function makePrefixMap(styleProp, eventName) {
27430
- var prefixes = {};
27431
-
27432
- prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
27433
- prefixes['Webkit' + styleProp] = 'webkit' + eventName;
27434
- prefixes['Moz' + styleProp] = 'moz' + eventName;
27435
-
27436
- return prefixes;
27437
- }
27438
-
27439
- /**
27440
- * A list of event names to a configurable list of vendor prefixes.
27441
- */
27442
- var vendorPrefixes = {
27443
- animationend: makePrefixMap('Animation', 'AnimationEnd'),
27444
- animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
27445
- animationstart: makePrefixMap('Animation', 'AnimationStart'),
27446
- transitionend: makePrefixMap('Transition', 'TransitionEnd')
27447
- };
27448
-
27449
- /**
27450
- * Event names that have already been detected and prefixed (if applicable).
27451
- */
27452
- var prefixedEventNames = {};
27453
-
27454
- /**
27455
- * Element to check for prefixes on.
27456
- */
27457
- var style = {};
27458
-
27459
- /**
27460
- * Bootstrap if a DOM exists.
27461
- */
27462
- if (canUseDOM) {
27463
- style = document.createElement('div').style;
27464
-
27465
- // On some platforms, in particular some releases of Android 4.x,
27466
- // the un-prefixed "animation" and "transition" properties are defined on the
27467
- // style object but the events that fire will still be prefixed, so we need
27468
- // to check if the un-prefixed events are usable, and if not remove them from the map.
27469
- if (!('AnimationEvent' in window)) {
27470
- delete vendorPrefixes.animationend.animation;
27471
- delete vendorPrefixes.animationiteration.animation;
27472
- delete vendorPrefixes.animationstart.animation;
27473
- }
27474
-
27475
- // Same as above
27476
- if (!('TransitionEvent' in window)) {
27477
- delete vendorPrefixes.transitionend.transition;
27478
- }
27479
- }
27480
-
27481
- /**
27482
- * Attempts to determine the correct vendor prefixed event name.
27483
- *
27484
- * @param {string} eventName
27485
- * @returns {string}
27486
- */
27487
- function getVendorPrefixedEventName(eventName) {
27488
- if (prefixedEventNames[eventName]) {
27489
- return prefixedEventNames[eventName];
27490
- } else if (!vendorPrefixes[eventName]) {
27491
- return eventName;
27492
- }
27493
-
27494
- var prefixMap = vendorPrefixes[eventName];
27495
-
27496
- for (var styleProp in prefixMap) {
27497
- if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
27498
- return prefixedEventNames[eventName] = prefixMap[styleProp];
27499
- }
27500
- }
27501
-
27502
- return eventName;
27503
- }
27504
-
27505
- /**
27506
- * To identify top level events in ReactDOM, we use constants defined by this
27507
- * module. This is the only module that uses the unsafe* methods to express
27508
- * that the constants actually correspond to the browser event names. This lets
27509
- * us save some bundle size by avoiding a top level type -> event name map.
27510
- * The rest of ReactDOM code should import top level types from this file.
27511
- */
27512
- var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
27513
- var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
27514
- var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
27515
- var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
27516
- var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
27517
- var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
27518
- var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
27519
- var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
27520
- var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
27521
- var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
27522
- var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
27523
- var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
27524
- var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
27525
- var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
27526
- var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
27527
- var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
27528
- var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
27529
- var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
27530
- var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
27531
- var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
27532
- var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
27533
- var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
27534
- var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
27535
- var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
27536
- var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
27537
- var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
27538
- var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
27539
- var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
27540
- var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
27541
- var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
27542
- var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
27543
- var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
27544
- var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
27545
- var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
27546
- var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
27547
- var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
27548
- var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
27549
- var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
27550
- var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
27551
- var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
27552
- var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
27553
- var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
27554
- var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
27555
- var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
27556
- var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
27557
- var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
27558
- var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
27559
- var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
27560
- var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
27561
- var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
27562
- var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
27563
- var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
27564
- var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
27565
- var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
27566
- var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
27567
-
27568
-
27569
- var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
27570
- var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
27571
- var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
27572
- var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
27573
- var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
27574
- var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
27575
- var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
27576
- var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
27577
- var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
27578
- var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
27579
- var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
27580
- var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
27581
- var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
27582
- var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
27583
- var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
27584
- var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
27585
- var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
27586
- var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
27587
- var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
27588
- var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
27589
- var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
27590
- var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
27591
- var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
27592
- var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
27593
- var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
27594
-
27595
- // List of events that need to be individually attached to media elements.
27596
- // Note that events in this list will *not* be listened to at the top level
27597
- // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
27598
- var mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING];
27599
-
27600
- function getRawEventName(topLevelType) {
27601
- return unsafeCastDOMTopLevelTypeToString(topLevelType);
27602
- }
27603
-
27604
- /**
27605
- * These variables store information about text content of a target node,
27606
- * allowing comparison of content before and after a given event.
27607
- *
27608
- * Identify the node where selection currently begins, then observe
27609
- * both its text content and its current position in the DOM. Since the
27610
- * browser may natively replace the target node during composition, we can
27611
- * use its position to find its replacement.
27612
- *
27613
- *
27614
- */
27615
-
27616
- var root = null;
27617
- var startText = null;
27618
- var fallbackText = null;
27619
-
27620
- function initialize(nativeEventTarget) {
27621
- root = nativeEventTarget;
27622
- startText = getText();
27623
- return true;
27624
- }
27625
-
27626
- function reset() {
27627
- root = null;
27628
- startText = null;
27629
- fallbackText = null;
27630
- }
27631
-
27632
- function getData() {
27633
- if (fallbackText) {
27634
- return fallbackText;
27635
- }
27636
-
27637
- var start = void 0;
27638
- var startValue = startText;
27639
- var startLength = startValue.length;
27640
- var end = void 0;
27641
- var endValue = getText();
27642
- var endLength = endValue.length;
27643
-
27644
- for (start = 0; start < startLength; start++) {
27645
- if (startValue[start] !== endValue[start]) {
27646
- break;
27647
- }
27648
- }
27649
-
27650
- var minEnd = startLength - start;
27651
- for (end = 1; end <= minEnd; end++) {
27652
- if (startValue[startLength - end] !== endValue[endLength - end]) {
27653
- break;
27654
- }
27655
- }
27656
-
27657
- var sliceTail = end > 1 ? 1 - end : undefined;
27658
- fallbackText = endValue.slice(start, sliceTail);
27659
- return fallbackText;
27660
- }
27661
-
27662
- function getText() {
27663
- if ('value' in root) {
27664
- return root.value;
27665
- }
27666
- return root.textContent;
27667
- }
27668
-
27669
- /* eslint valid-typeof: 0 */
27670
-
27671
- var EVENT_POOL_SIZE = 10;
27672
-
27673
- /**
27674
- * @interface Event
27675
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
27676
- */
27677
- var EventInterface = {
27678
- type: null,
27679
- target: null,
27680
- // currentTarget is set when dispatching; no use in copying it here
27681
- currentTarget: function () {
27682
- return null;
27683
- },
27684
- eventPhase: null,
27685
- bubbles: null,
27686
- cancelable: null,
27687
- timeStamp: function (event) {
27688
- return event.timeStamp || Date.now();
27689
- },
27690
- defaultPrevented: null,
27691
- isTrusted: null
27692
- };
27693
-
27694
- function functionThatReturnsTrue() {
27695
- return true;
27696
- }
27697
-
27698
- function functionThatReturnsFalse() {
27699
- return false;
27700
- }
27701
-
27702
- /**
27703
- * Synthetic events are dispatched by event plugins, typically in response to a
27704
- * top-level event delegation handler.
27705
- *
27706
- * These systems should generally use pooling to reduce the frequency of garbage
27707
- * collection. The system should check `isPersistent` to determine whether the
27708
- * event should be released into the pool after being dispatched. Users that
27709
- * need a persisted event should invoke `persist`.
27710
- *
27711
- * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
27712
- * normalizing browser quirks. Subclasses do not necessarily have to implement a
27713
- * DOM interface; custom application-specific events can also subclass this.
27714
- *
27715
- * @param {object} dispatchConfig Configuration used to dispatch this event.
27716
- * @param {*} targetInst Marker identifying the event target.
27717
- * @param {object} nativeEvent Native browser event.
27718
- * @param {DOMEventTarget} nativeEventTarget Target node.
27719
- */
27720
- function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
27721
- {
27722
- // these have a getter/setter for warnings
27723
- delete this.nativeEvent;
27724
- delete this.preventDefault;
27725
- delete this.stopPropagation;
27726
- delete this.isDefaultPrevented;
27727
- delete this.isPropagationStopped;
27728
- }
27729
-
27730
- this.dispatchConfig = dispatchConfig;
27731
- this._targetInst = targetInst;
27732
- this.nativeEvent = nativeEvent;
27733
-
27734
- var Interface = this.constructor.Interface;
27735
- for (var propName in Interface) {
27736
- if (!Interface.hasOwnProperty(propName)) {
27737
- continue;
27738
- }
27739
- {
27740
- delete this[propName]; // this has a getter/setter for warnings
27741
- }
27742
- var normalize = Interface[propName];
27743
- if (normalize) {
27744
- this[propName] = normalize(nativeEvent);
27745
- } else {
27746
- if (propName === 'target') {
27747
- this.target = nativeEventTarget;
27748
- } else {
27749
- this[propName] = nativeEvent[propName];
27750
- }
27751
- }
27752
- }
27753
-
27754
- var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
27755
- if (defaultPrevented) {
27756
- this.isDefaultPrevented = functionThatReturnsTrue;
27757
- } else {
27758
- this.isDefaultPrevented = functionThatReturnsFalse;
27759
- }
27760
- this.isPropagationStopped = functionThatReturnsFalse;
27761
- return this;
27762
- }
27763
-
27764
- _assign(SyntheticEvent.prototype, {
27765
- preventDefault: function () {
27766
- this.defaultPrevented = true;
27767
- var event = this.nativeEvent;
27768
- if (!event) {
27769
- return;
27770
- }
27771
-
27772
- if (event.preventDefault) {
27773
- event.preventDefault();
27774
- } else if (typeof event.returnValue !== 'unknown') {
27775
- event.returnValue = false;
27776
- }
27777
- this.isDefaultPrevented = functionThatReturnsTrue;
27778
- },
27779
-
27780
- stopPropagation: function () {
27781
- var event = this.nativeEvent;
27782
- if (!event) {
27783
- return;
27784
- }
27785
-
27786
- if (event.stopPropagation) {
27787
- event.stopPropagation();
27788
- } else if (typeof event.cancelBubble !== 'unknown') {
27789
- // The ChangeEventPlugin registers a "propertychange" event for
27790
- // IE. This event does not support bubbling or cancelling, and
27791
- // any references to cancelBubble throw "Member not found". A
27792
- // typeof check of "unknown" circumvents this issue (and is also
27793
- // IE specific).
27794
- event.cancelBubble = true;
27795
- }
27796
-
27797
- this.isPropagationStopped = functionThatReturnsTrue;
27798
- },
27799
-
27800
- /**
27801
- * We release all dispatched `SyntheticEvent`s after each event loop, adding
27802
- * them back into the pool. This allows a way to hold onto a reference that
27803
- * won't be added back into the pool.
27804
- */
27805
- persist: function () {
27806
- this.isPersistent = functionThatReturnsTrue;
27807
- },
27808
-
27809
- /**
27810
- * Checks if this event should be released back into the pool.
27811
- *
27812
- * @return {boolean} True if this should not be released, false otherwise.
27813
- */
27814
- isPersistent: functionThatReturnsFalse,
27815
-
27816
- /**
27817
- * `PooledClass` looks for `destructor` on each instance it releases.
27818
- */
27819
- destructor: function () {
27820
- var Interface = this.constructor.Interface;
27821
- for (var propName in Interface) {
27822
- {
27823
- Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
27824
- }
27825
- }
27826
- this.dispatchConfig = null;
27827
- this._targetInst = null;
27828
- this.nativeEvent = null;
27829
- this.isDefaultPrevented = functionThatReturnsFalse;
27830
- this.isPropagationStopped = functionThatReturnsFalse;
27831
- this._dispatchListeners = null;
27832
- this._dispatchInstances = null;
27833
- {
27834
- Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
27835
- Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
27836
- Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
27837
- Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
27838
- Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
27839
- }
27840
- }
27841
- });
27842
-
27843
- SyntheticEvent.Interface = EventInterface;
27844
-
27845
- /**
27846
- * Helper to reduce boilerplate when creating subclasses.
27847
- */
27848
- SyntheticEvent.extend = function (Interface) {
27849
- var Super = this;
27850
-
27851
- var E = function () {};
27852
- E.prototype = Super.prototype;
27853
- var prototype = new E();
27854
-
27855
- function Class() {
27856
- return Super.apply(this, arguments);
27857
- }
27858
- _assign(prototype, Class.prototype);
27859
- Class.prototype = prototype;
27860
- Class.prototype.constructor = Class;
27861
-
27862
- Class.Interface = _assign({}, Super.Interface, Interface);
27863
- Class.extend = Super.extend;
27864
- addEventPoolingTo(Class);
27865
-
27866
- return Class;
27867
- };
27868
-
27869
- addEventPoolingTo(SyntheticEvent);
27870
-
27871
- /**
27872
- * Helper to nullify syntheticEvent instance properties when destructing
27873
- *
27874
- * @param {String} propName
27875
- * @param {?object} getVal
27876
- * @return {object} defineProperty object
27877
- */
27878
- function getPooledWarningPropertyDefinition(propName, getVal) {
27879
- var isFunction = typeof getVal === 'function';
27880
- return {
27881
- configurable: true,
27882
- set: set,
27883
- get: get
27884
- };
27885
-
27886
- function set(val) {
27887
- var action = isFunction ? 'setting the method' : 'setting the property';
27888
- warn(action, 'This is effectively a no-op');
27889
- return val;
27890
- }
27891
-
27892
- function get() {
27893
- var action = isFunction ? 'accessing the method' : 'accessing the property';
27894
- var result = isFunction ? 'This is a no-op function' : 'This is set to null';
27895
- warn(action, result);
27896
- return getVal;
27897
- }
27898
-
27899
- function warn(action, result) {
27900
- var warningCondition = false;
27901
- !warningCondition ? warningWithoutStack$1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
27902
- }
27903
- }
27904
-
27905
- function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
27906
- var EventConstructor = this;
27907
- if (EventConstructor.eventPool.length) {
27908
- var instance = EventConstructor.eventPool.pop();
27909
- EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
27910
- return instance;
27911
- }
27912
- return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
27913
- }
27914
-
27915
- function releasePooledEvent(event) {
27916
- var EventConstructor = this;
27917
- !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0;
27918
- event.destructor();
27919
- if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
27920
- EventConstructor.eventPool.push(event);
27921
- }
27922
- }
27923
-
27924
- function addEventPoolingTo(EventConstructor) {
27925
- EventConstructor.eventPool = [];
27926
- EventConstructor.getPooled = getPooledEvent;
27927
- EventConstructor.release = releasePooledEvent;
27928
- }
27929
-
27930
- /**
27931
- * @interface Event
27932
- * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
27933
- */
27934
- var SyntheticCompositionEvent = SyntheticEvent.extend({
27935
- data: null
27936
- });
27937
-
27938
- /**
27939
- * @interface Event
27940
- * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
27941
- * /#events-inputevents
27942
- */
27943
- var SyntheticInputEvent = SyntheticEvent.extend({
27944
- data: null
27945
- });
27946
-
27947
- var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
27948
- var START_KEYCODE = 229;
27949
-
27950
- var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
27951
-
27952
- var documentMode = null;
27953
- if (canUseDOM && 'documentMode' in document) {
27954
- documentMode = document.documentMode;
27955
- }
27956
-
27957
- // Webkit offers a very useful `textInput` event that can be used to
27958
- // directly represent `beforeInput`. The IE `textinput` event is not as
27959
- // useful, so we don't use it.
27960
- var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
27961
-
27962
- // In IE9+, we have access to composition events, but the data supplied
27963
- // by the native compositionend event may be incorrect. Japanese ideographic
27964
- // spaces, for instance (\u3000) are not recorded correctly.
27965
- var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
27966
-
27967
- var SPACEBAR_CODE = 32;
27968
- var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
27969
-
27970
- // Events and their corresponding property names.
27971
- var eventTypes = {
27972
- beforeInput: {
27973
- phasedRegistrationNames: {
27974
- bubbled: 'onBeforeInput',
27975
- captured: 'onBeforeInputCapture'
27976
- },
27977
- dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
27978
- },
27979
- compositionEnd: {
27980
- phasedRegistrationNames: {
27981
- bubbled: 'onCompositionEnd',
27982
- captured: 'onCompositionEndCapture'
27983
- },
27984
- dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
27985
- },
27986
- compositionStart: {
27987
- phasedRegistrationNames: {
27988
- bubbled: 'onCompositionStart',
27989
- captured: 'onCompositionStartCapture'
27990
- },
27991
- dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
27992
- },
27993
- compositionUpdate: {
27994
- phasedRegistrationNames: {
27995
- bubbled: 'onCompositionUpdate',
27996
- captured: 'onCompositionUpdateCapture'
27997
- },
27998
- dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
27999
- }
28000
- };
28001
-
28002
- // Track whether we've ever handled a keypress on the space key.
28003
- var hasSpaceKeypress = false;
28004
-
28005
- /**
28006
- * Return whether a native keypress event is assumed to be a command.
28007
- * This is required because Firefox fires `keypress` events for key commands
28008
- * (cut, copy, select-all, etc.) even though no character is inserted.
28009
- */
28010
- function isKeypressCommand(nativeEvent) {
28011
- return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
28012
- // ctrlKey && altKey is equivalent to AltGr, and is not a command.
28013
- !(nativeEvent.ctrlKey && nativeEvent.altKey);
28014
- }
28015
-
28016
- /**
28017
- * Translate native top level events into event types.
28018
- *
28019
- * @param {string} topLevelType
28020
- * @return {object}
28021
- */
28022
- function getCompositionEventType(topLevelType) {
28023
- switch (topLevelType) {
28024
- case TOP_COMPOSITION_START:
28025
- return eventTypes.compositionStart;
28026
- case TOP_COMPOSITION_END:
28027
- return eventTypes.compositionEnd;
28028
- case TOP_COMPOSITION_UPDATE:
28029
- return eventTypes.compositionUpdate;
28030
- }
28031
- }
28032
-
28033
- /**
28034
- * Does our fallback best-guess model think this event signifies that
28035
- * composition has begun?
28036
- *
28037
- * @param {string} topLevelType
28038
- * @param {object} nativeEvent
28039
- * @return {boolean}
28040
- */
28041
- function isFallbackCompositionStart(topLevelType, nativeEvent) {
28042
- return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
28043
- }
28044
-
28045
- /**
28046
- * Does our fallback mode think that this event is the end of composition?
28047
- *
28048
- * @param {string} topLevelType
28049
- * @param {object} nativeEvent
28050
- * @return {boolean}
28051
- */
28052
- function isFallbackCompositionEnd(topLevelType, nativeEvent) {
28053
- switch (topLevelType) {
28054
- case TOP_KEY_UP:
28055
- // Command keys insert or clear IME input.
28056
- return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
28057
- case TOP_KEY_DOWN:
28058
- // Expect IME keyCode on each keydown. If we get any other
28059
- // code we must have exited earlier.
28060
- return nativeEvent.keyCode !== START_KEYCODE;
28061
- case TOP_KEY_PRESS:
28062
- case TOP_MOUSE_DOWN:
28063
- case TOP_BLUR:
28064
- // Events are not possible without cancelling IME.
28065
- return true;
28066
- default:
28067
- return false;
28068
- }
28069
- }
28070
-
28071
- /**
28072
- * Google Input Tools provides composition data via a CustomEvent,
28073
- * with the `data` property populated in the `detail` object. If this
28074
- * is available on the event object, use it. If not, this is a plain
28075
- * composition event and we have nothing special to extract.
28076
- *
28077
- * @param {object} nativeEvent
28078
- * @return {?string}
28079
- */
28080
- function getDataFromCustomEvent(nativeEvent) {
28081
- var detail = nativeEvent.detail;
28082
- if (typeof detail === 'object' && 'data' in detail) {
28083
- return detail.data;
28084
- }
28085
- return null;
28086
- }
28087
-
28088
- /**
28089
- * Check if a composition event was triggered by Korean IME.
28090
- * Our fallback mode does not work well with IE's Korean IME,
28091
- * so just use native composition events when Korean IME is used.
28092
- * Although CompositionEvent.locale property is deprecated,
28093
- * it is available in IE, where our fallback mode is enabled.
28094
- *
28095
- * @param {object} nativeEvent
28096
- * @return {boolean}
28097
- */
28098
- function isUsingKoreanIME(nativeEvent) {
28099
- return nativeEvent.locale === 'ko';
28100
- }
28101
-
28102
- // Track the current IME composition status, if any.
28103
- var isComposing = false;
28104
-
28105
- /**
28106
- * @return {?object} A SyntheticCompositionEvent.
28107
- */
28108
- function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
28109
- var eventType = void 0;
28110
- var fallbackData = void 0;
28111
-
28112
- if (canUseCompositionEvent) {
28113
- eventType = getCompositionEventType(topLevelType);
28114
- } else if (!isComposing) {
28115
- if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
28116
- eventType = eventTypes.compositionStart;
28117
- }
28118
- } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
28119
- eventType = eventTypes.compositionEnd;
28120
- }
28121
-
28122
- if (!eventType) {
28123
- return null;
28124
- }
28125
-
28126
- if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
28127
- // The current composition is stored statically and must not be
28128
- // overwritten while composition continues.
28129
- if (!isComposing && eventType === eventTypes.compositionStart) {
28130
- isComposing = initialize(nativeEventTarget);
28131
- } else if (eventType === eventTypes.compositionEnd) {
28132
- if (isComposing) {
28133
- fallbackData = getData();
28134
- }
28135
- }
28136
- }
28137
-
28138
- var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
28139
-
28140
- if (fallbackData) {
28141
- // Inject data generated from fallback path into the synthetic event.
28142
- // This matches the property of native CompositionEventInterface.
28143
- event.data = fallbackData;
28144
- } else {
28145
- var customData = getDataFromCustomEvent(nativeEvent);
28146
- if (customData !== null) {
28147
- event.data = customData;
28148
- }
28149
- }
28150
-
28151
- accumulateTwoPhaseDispatches(event);
28152
- return event;
28153
- }
28154
-
28155
- /**
28156
- * @param {TopLevelType} topLevelType Number from `TopLevelType`.
28157
- * @param {object} nativeEvent Native browser event.
28158
- * @return {?string} The string corresponding to this `beforeInput` event.
28159
- */
28160
- function getNativeBeforeInputChars(topLevelType, nativeEvent) {
28161
- switch (topLevelType) {
28162
- case TOP_COMPOSITION_END:
28163
- return getDataFromCustomEvent(nativeEvent);
28164
- case TOP_KEY_PRESS:
28165
- /**
28166
- * If native `textInput` events are available, our goal is to make
28167
- * use of them. However, there is a special case: the spacebar key.
28168
- * In Webkit, preventing default on a spacebar `textInput` event
28169
- * cancels character insertion, but it *also* causes the browser
28170
- * to fall back to its default spacebar behavior of scrolling the
28171
- * page.
28172
- *
28173
- * Tracking at:
28174
- * https://code.google.com/p/chromium/issues/detail?id=355103
28175
- *
28176
- * To avoid this issue, use the keypress event as if no `textInput`
28177
- * event is available.
28178
- */
28179
- var which = nativeEvent.which;
28180
- if (which !== SPACEBAR_CODE) {
28181
- return null;
28182
- }
28183
-
28184
- hasSpaceKeypress = true;
28185
- return SPACEBAR_CHAR;
28186
-
28187
- case TOP_TEXT_INPUT:
28188
- // Record the characters to be added to the DOM.
28189
- var chars = nativeEvent.data;
28190
-
28191
- // If it's a spacebar character, assume that we have already handled
28192
- // it at the keypress level and bail immediately. Android Chrome
28193
- // doesn't give us keycodes, so we need to ignore it.
28194
- if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
28195
- return null;
28196
- }
28197
-
28198
- return chars;
28199
-
28200
- default:
28201
- // For other native event types, do nothing.
28202
- return null;
28203
- }
28204
- }
28205
-
28206
- /**
28207
- * For browsers that do not provide the `textInput` event, extract the
28208
- * appropriate string to use for SyntheticInputEvent.
28209
- *
28210
- * @param {number} topLevelType Number from `TopLevelEventTypes`.
28211
- * @param {object} nativeEvent Native browser event.
28212
- * @return {?string} The fallback string for this `beforeInput` event.
28213
- */
28214
- function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
28215
- // If we are currently composing (IME) and using a fallback to do so,
28216
- // try to extract the composed characters from the fallback object.
28217
- // If composition event is available, we extract a string only at
28218
- // compositionevent, otherwise extract it at fallback events.
28219
- if (isComposing) {
28220
- if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
28221
- var chars = getData();
28222
- reset();
28223
- isComposing = false;
28224
- return chars;
28225
- }
28226
- return null;
28227
- }
28228
-
28229
- switch (topLevelType) {
28230
- case TOP_PASTE:
28231
- // If a paste event occurs after a keypress, throw out the input
28232
- // chars. Paste events should not lead to BeforeInput events.
28233
- return null;
28234
- case TOP_KEY_PRESS:
28235
- /**
28236
- * As of v27, Firefox may fire keypress events even when no character
28237
- * will be inserted. A few possibilities:
28238
- *
28239
- * - `which` is `0`. Arrow keys, Esc key, etc.
28240
- *
28241
- * - `which` is the pressed key code, but no char is available.
28242
- * Ex: 'AltGr + d` in Polish. There is no modified character for
28243
- * this key combination and no character is inserted into the
28244
- * document, but FF fires the keypress for char code `100` anyway.
28245
- * No `input` event will occur.
28246
- *
28247
- * - `which` is the pressed key code, but a command combination is
28248
- * being used. Ex: `Cmd+C`. No character is inserted, and no
28249
- * `input` event will occur.
28250
- */
28251
- if (!isKeypressCommand(nativeEvent)) {
28252
- // IE fires the `keypress` event when a user types an emoji via
28253
- // Touch keyboard of Windows. In such a case, the `char` property
28254
- // holds an emoji character like `\uD83D\uDE0A`. Because its length
28255
- // is 2, the property `which` does not represent an emoji correctly.
28256
- // In such a case, we directly return the `char` property instead of
28257
- // using `which`.
28258
- if (nativeEvent.char && nativeEvent.char.length > 1) {
28259
- return nativeEvent.char;
28260
- } else if (nativeEvent.which) {
28261
- return String.fromCharCode(nativeEvent.which);
28262
- }
28263
- }
28264
- return null;
28265
- case TOP_COMPOSITION_END:
28266
- return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
28267
- default:
28268
- return null;
28269
- }
28270
- }
28271
-
28272
- /**
28273
- * Extract a SyntheticInputEvent for `beforeInput`, based on either native
28274
- * `textInput` or fallback behavior.
28275
- *
28276
- * @return {?object} A SyntheticInputEvent.
28277
- */
28278
- function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
28279
- var chars = void 0;
28280
-
28281
- if (canUseTextInputEvent) {
28282
- chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
28283
- } else {
28284
- chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
28285
- }
28286
-
28287
- // If no characters are being inserted, no BeforeInput event should
28288
- // be fired.
28289
- if (!chars) {
28290
- return null;
28291
- }
28292
-
28293
- var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
28294
-
28295
- event.data = chars;
28296
- accumulateTwoPhaseDispatches(event);
28297
- return event;
28298
- }
28299
-
28300
- /**
28301
- * Create an `onBeforeInput` event to match
28302
- * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
28303
- *
28304
- * This event plugin is based on the native `textInput` event
28305
- * available in Chrome, Safari, Opera, and IE. This event fires after
28306
- * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
28307
- *
28308
- * `beforeInput` is spec'd but not implemented in any browsers, and
28309
- * the `input` event does not provide any useful information about what has
28310
- * actually been added, contrary to the spec. Thus, `textInput` is the best
28311
- * available event to identify the characters that have actually been inserted
28312
- * into the target node.
28313
- *
28314
- * This plugin is also responsible for emitting `composition` events, thus
28315
- * allowing us to share composition fallback code for both `beforeInput` and
28316
- * `composition` event types.
28317
- */
28318
- var BeforeInputEventPlugin = {
28319
- eventTypes: eventTypes,
28320
-
28321
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
28322
- var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
28323
-
28324
- var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
28325
-
28326
- if (composition === null) {
28327
- return beforeInput;
28328
- }
28329
-
28330
- if (beforeInput === null) {
28331
- return composition;
28332
- }
28333
-
28334
- return [composition, beforeInput];
28335
- }
28336
- };
28337
-
28338
- // Use to restore controlled state after a change event has fired.
28339
-
28340
- var restoreImpl = null;
28341
- var restoreTarget = null;
28342
- var restoreQueue = null;
28343
-
28344
- function restoreStateOfTarget(target) {
28345
- // We perform this translation at the end of the event loop so that we
28346
- // always receive the correct fiber here
28347
- var internalInstance = getInstanceFromNode(target);
28348
- if (!internalInstance) {
28349
- // Unmounted
28350
- return;
28351
- }
28352
- !(typeof restoreImpl === 'function') ? invariant(false, 'setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0;
28353
- var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
28354
- restoreImpl(internalInstance.stateNode, internalInstance.type, props);
28355
- }
28356
-
28357
- function setRestoreImplementation(impl) {
28358
- restoreImpl = impl;
28359
- }
28360
-
28361
- function enqueueStateRestore(target) {
28362
- if (restoreTarget) {
28363
- if (restoreQueue) {
28364
- restoreQueue.push(target);
28365
- } else {
28366
- restoreQueue = [target];
28367
- }
28368
- } else {
28369
- restoreTarget = target;
28370
- }
28371
- }
28372
-
28373
- function needsStateRestore() {
28374
- return restoreTarget !== null || restoreQueue !== null;
28375
- }
28376
-
28377
- function restoreStateIfNeeded() {
28378
- if (!restoreTarget) {
28379
- return;
28380
- }
28381
- var target = restoreTarget;
28382
- var queuedTargets = restoreQueue;
28383
- restoreTarget = null;
28384
- restoreQueue = null;
28385
-
28386
- restoreStateOfTarget(target);
28387
- if (queuedTargets) {
28388
- for (var i = 0; i < queuedTargets.length; i++) {
28389
- restoreStateOfTarget(queuedTargets[i]);
28390
- }
28391
- }
28392
- }
28393
-
28394
- // Used as a way to call batchedUpdates when we don't have a reference to
28395
- // the renderer. Such as when we're dispatching events or if third party
28396
- // libraries need to call batchedUpdates. Eventually, this API will go away when
28397
- // everything is batched by default. We'll then have a similar API to opt-out of
28398
- // scheduled work and instead do synchronous work.
28399
-
28400
- // Defaults
28401
- var _batchedUpdatesImpl = function (fn, bookkeeping) {
28402
- return fn(bookkeeping);
28403
- };
28404
- var _interactiveUpdatesImpl = function (fn, a, b) {
28405
- return fn(a, b);
28406
- };
28407
- var _flushInteractiveUpdatesImpl = function () {};
28408
-
28409
- var isBatching = false;
28410
- function batchedUpdates(fn, bookkeeping) {
28411
- if (isBatching) {
28412
- // If we are currently inside another batch, we need to wait until it
28413
- // fully completes before restoring state.
28414
- return fn(bookkeeping);
28415
- }
28416
- isBatching = true;
28417
- try {
28418
- return _batchedUpdatesImpl(fn, bookkeeping);
28419
- } finally {
28420
- // Here we wait until all updates have propagated, which is important
28421
- // when using controlled components within layers:
28422
- // https://github.com/facebook/react/issues/1698
28423
- // Then we restore state of any controlled component.
28424
- isBatching = false;
28425
- var controlledComponentsHavePendingUpdates = needsStateRestore();
28426
- if (controlledComponentsHavePendingUpdates) {
28427
- // If a controlled event was fired, we may need to restore the state of
28428
- // the DOM node back to the controlled value. This is necessary when React
28429
- // bails out of the update without touching the DOM.
28430
- _flushInteractiveUpdatesImpl();
28431
- restoreStateIfNeeded();
28432
- }
28433
- }
28434
- }
28435
-
28436
- function interactiveUpdates(fn, a, b) {
28437
- return _interactiveUpdatesImpl(fn, a, b);
28438
- }
28439
-
28440
-
28441
-
28442
- function setBatchingImplementation(batchedUpdatesImpl, interactiveUpdatesImpl, flushInteractiveUpdatesImpl) {
28443
- _batchedUpdatesImpl = batchedUpdatesImpl;
28444
- _interactiveUpdatesImpl = interactiveUpdatesImpl;
28445
- _flushInteractiveUpdatesImpl = flushInteractiveUpdatesImpl;
28446
- }
28447
-
28448
- /**
28449
- * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
28450
- */
28451
- var supportedInputTypes = {
28452
- color: true,
28453
- date: true,
28454
- datetime: true,
28455
- 'datetime-local': true,
28456
- email: true,
28457
- month: true,
28458
- number: true,
28459
- password: true,
28460
- range: true,
28461
- search: true,
28462
- tel: true,
28463
- text: true,
28464
- time: true,
28465
- url: true,
28466
- week: true
28467
- };
28468
-
28469
- function isTextInputElement(elem) {
28470
- var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
28471
-
28472
- if (nodeName === 'input') {
28473
- return !!supportedInputTypes[elem.type];
28474
- }
28475
-
28476
- if (nodeName === 'textarea') {
28477
- return true;
28478
- }
28479
-
28480
- return false;
28481
- }
28482
-
28483
- /**
28484
- * HTML nodeType values that represent the type of the node
28485
- */
28486
-
28487
- var ELEMENT_NODE = 1;
28488
- var TEXT_NODE = 3;
28489
- var COMMENT_NODE = 8;
28490
- var DOCUMENT_NODE = 9;
28491
- var DOCUMENT_FRAGMENT_NODE = 11;
28492
-
28493
- /**
28494
- * Gets the target node from a native browser event by accounting for
28495
- * inconsistencies in browser DOM APIs.
28496
- *
28497
- * @param {object} nativeEvent Native browser event.
28498
- * @return {DOMEventTarget} Target node.
28499
- */
28500
- function getEventTarget(nativeEvent) {
28501
- // Fallback to nativeEvent.srcElement for IE9
28502
- // https://github.com/facebook/react/issues/12506
28503
- var target = nativeEvent.target || nativeEvent.srcElement || window;
28504
-
28505
- // Normalize SVG <use> element events #4963
28506
- if (target.correspondingUseElement) {
28507
- target = target.correspondingUseElement;
28508
- }
28509
-
28510
- // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
28511
- // @see http://www.quirksmode.org/js/events_properties.html
28512
- return target.nodeType === TEXT_NODE ? target.parentNode : target;
28513
- }
28514
-
28515
- /**
28516
- * Checks if an event is supported in the current execution environment.
28517
- *
28518
- * NOTE: This will not work correctly for non-generic events such as `change`,
28519
- * `reset`, `load`, `error`, and `select`.
28520
- *
28521
- * Borrows from Modernizr.
28522
- *
28523
- * @param {string} eventNameSuffix Event name, e.g. "click".
28524
- * @return {boolean} True if the event is supported.
28525
- * @internal
28526
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
28527
- */
28528
- function isEventSupported(eventNameSuffix) {
28529
- if (!canUseDOM) {
28530
- return false;
28531
- }
28532
-
28533
- var eventName = 'on' + eventNameSuffix;
28534
- var isSupported = eventName in document;
28535
-
28536
- if (!isSupported) {
28537
- var element = document.createElement('div');
28538
- element.setAttribute(eventName, 'return;');
28539
- isSupported = typeof element[eventName] === 'function';
28540
- }
28541
-
28542
- return isSupported;
28543
- }
28544
-
28545
- function isCheckable(elem) {
28546
- var type = elem.type;
28547
- var nodeName = elem.nodeName;
28548
- return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
28549
- }
28550
-
28551
- function getTracker(node) {
28552
- return node._valueTracker;
28553
- }
28554
-
28555
- function detachTracker(node) {
28556
- node._valueTracker = null;
28557
- }
28558
-
28559
- function getValueFromNode(node) {
28560
- var value = '';
28561
- if (!node) {
28562
- return value;
28563
- }
28564
-
28565
- if (isCheckable(node)) {
28566
- value = node.checked ? 'true' : 'false';
28567
- } else {
28568
- value = node.value;
28569
- }
28570
-
28571
- return value;
28572
- }
28573
-
28574
- function trackValueOnNode(node) {
28575
- var valueField = isCheckable(node) ? 'checked' : 'value';
28576
- var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
28577
-
28578
- var currentValue = '' + node[valueField];
28579
-
28580
- // if someone has already defined a value or Safari, then bail
28581
- // and don't track value will cause over reporting of changes,
28582
- // but it's better then a hard failure
28583
- // (needed for certain tests that spyOn input values and Safari)
28584
- if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
28585
- return;
28586
- }
28587
- var get = descriptor.get,
28588
- set = descriptor.set;
28589
-
28590
- Object.defineProperty(node, valueField, {
28591
- configurable: true,
28592
- get: function () {
28593
- return get.call(this);
28594
- },
28595
- set: function (value) {
28596
- currentValue = '' + value;
28597
- set.call(this, value);
28598
- }
28599
- });
28600
- // We could've passed this the first time
28601
- // but it triggers a bug in IE11 and Edge 14/15.
28602
- // Calling defineProperty() again should be equivalent.
28603
- // https://github.com/facebook/react/issues/11768
28604
- Object.defineProperty(node, valueField, {
28605
- enumerable: descriptor.enumerable
28606
- });
28607
-
28608
- var tracker = {
28609
- getValue: function () {
28610
- return currentValue;
28611
- },
28612
- setValue: function (value) {
28613
- currentValue = '' + value;
28614
- },
28615
- stopTracking: function () {
28616
- detachTracker(node);
28617
- delete node[valueField];
28618
- }
28619
- };
28620
- return tracker;
28621
- }
28622
-
28623
- function track(node) {
28624
- if (getTracker(node)) {
28625
- return;
28626
- }
28627
-
28628
- // TODO: Once it's just Fiber we can move this to node._wrapperState
28629
- node._valueTracker = trackValueOnNode(node);
28630
- }
28631
-
28632
- function updateValueIfChanged(node) {
28633
- if (!node) {
28634
- return false;
28635
- }
28636
-
28637
- var tracker = getTracker(node);
28638
- // if there is no tracker at this point it's unlikely
28639
- // that trying again will succeed
28640
- if (!tracker) {
28641
- return true;
28642
- }
28643
-
28644
- var lastValue = tracker.getValue();
28645
- var nextValue = getValueFromNode(node);
28646
- if (nextValue !== lastValue) {
28647
- tracker.setValue(nextValue);
28648
- return true;
28649
- }
28650
- return false;
28651
- }
28652
-
28653
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
28654
-
28655
- // Prevent newer renderers from RTE when used with older react package versions.
28656
- // Current owner and dispatcher used to share the same ref,
28657
- // but PR #14548 split them out to better support the react-debug-tools package.
28658
- if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
28659
- ReactSharedInternals.ReactCurrentDispatcher = {
28660
- current: null
28661
- };
28662
- }
28663
-
28664
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
28665
-
28666
- var describeComponentFrame = function (name, source, ownerName) {
28667
- var sourceInfo = '';
28668
- if (source) {
28669
- var path = source.fileName;
28670
- var fileName = path.replace(BEFORE_SLASH_RE, '');
28671
- {
28672
- // In DEV, include code for a common special case:
28673
- // prefer "folder/index.js" instead of just "index.js".
28674
- if (/^index\./.test(fileName)) {
28675
- var match = path.match(BEFORE_SLASH_RE);
28676
- if (match) {
28677
- var pathBeforeSlash = match[1];
28678
- if (pathBeforeSlash) {
28679
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
28680
- fileName = folderName + '/' + fileName;
28681
- }
28682
- }
28683
- }
28684
- }
28685
- sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
28686
- } else if (ownerName) {
28687
- sourceInfo = ' (created by ' + ownerName + ')';
28688
- }
28689
- return '\n in ' + (name || 'Unknown') + sourceInfo;
28690
- };
28691
-
28692
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
28693
- // nor polyfill, then a plain number is used for performance.
28694
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
28695
-
28696
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
28697
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
28698
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
28699
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
28700
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
28701
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
28702
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
28703
-
28704
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
28705
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
28706
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
28707
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
28708
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
28709
-
28710
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
28711
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
28712
-
28713
- function getIteratorFn(maybeIterable) {
28714
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
28715
- return null;
28716
- }
28717
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
28718
- if (typeof maybeIterator === 'function') {
28719
- return maybeIterator;
28720
- }
28721
- return null;
28722
- }
28723
-
28724
- var Pending = 0;
28725
- var Resolved = 1;
28726
- var Rejected = 2;
28727
-
28728
- function refineResolvedLazyComponent(lazyComponent) {
28729
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
28730
- }
28731
-
28732
- function getWrappedName(outerType, innerType, wrapperName) {
28733
- var functionName = innerType.displayName || innerType.name || '';
28734
- return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
28735
- }
28736
-
28737
- function getComponentName(type) {
28738
- if (type == null) {
28739
- // Host root, text node or just invalid type.
28740
- return null;
28741
- }
28742
- {
28743
- if (typeof type.tag === 'number') {
28744
- warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
28745
- }
28746
- }
28747
- if (typeof type === 'function') {
28748
- return type.displayName || type.name || null;
28749
- }
28750
- if (typeof type === 'string') {
28751
- return type;
28752
- }
28753
- switch (type) {
28754
- case REACT_CONCURRENT_MODE_TYPE:
28755
- return 'ConcurrentMode';
28756
- case REACT_FRAGMENT_TYPE:
28757
- return 'Fragment';
28758
- case REACT_PORTAL_TYPE:
28759
- return 'Portal';
28760
- case REACT_PROFILER_TYPE:
28761
- return 'Profiler';
28762
- case REACT_STRICT_MODE_TYPE:
28763
- return 'StrictMode';
28764
- case REACT_SUSPENSE_TYPE:
28765
- return 'Suspense';
28766
- }
28767
- if (typeof type === 'object') {
28768
- switch (type.$$typeof) {
28769
- case REACT_CONTEXT_TYPE:
28770
- return 'Context.Consumer';
28771
- case REACT_PROVIDER_TYPE:
28772
- return 'Context.Provider';
28773
- case REACT_FORWARD_REF_TYPE:
28774
- return getWrappedName(type, type.render, 'ForwardRef');
28775
- case REACT_MEMO_TYPE:
28776
- return getComponentName(type.type);
28777
- case REACT_LAZY_TYPE:
28778
- {
28779
- var thenable = type;
28780
- var resolvedThenable = refineResolvedLazyComponent(thenable);
28781
- if (resolvedThenable) {
28782
- return getComponentName(resolvedThenable);
28783
- }
28784
- }
28785
- }
28786
- }
28787
- return null;
28788
- }
28789
-
28790
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
28791
-
28792
- function describeFiber(fiber) {
28793
- switch (fiber.tag) {
28794
- case HostRoot:
28795
- case HostPortal:
28796
- case HostText:
28797
- case Fragment:
28798
- case ContextProvider:
28799
- case ContextConsumer:
28800
- return '';
28801
- default:
28802
- var owner = fiber._debugOwner;
28803
- var source = fiber._debugSource;
28804
- var name = getComponentName(fiber.type);
28805
- var ownerName = null;
28806
- if (owner) {
28807
- ownerName = getComponentName(owner.type);
28808
- }
28809
- return describeComponentFrame(name, source, ownerName);
28810
- }
28811
- }
28812
-
28813
- function getStackByFiberInDevAndProd(workInProgress) {
28814
- var info = '';
28815
- var node = workInProgress;
28816
- do {
28817
- info += describeFiber(node);
28818
- node = node.return;
28819
- } while (node);
28820
- return info;
28821
- }
28822
-
28823
- var current = null;
28824
- var phase = null;
28825
-
28826
- function getCurrentFiberOwnerNameInDevOrNull() {
28827
- {
28828
- if (current === null) {
28829
- return null;
28830
- }
28831
- var owner = current._debugOwner;
28832
- if (owner !== null && typeof owner !== 'undefined') {
28833
- return getComponentName(owner.type);
28834
- }
28835
- }
28836
- return null;
28837
- }
28838
-
28839
- function getCurrentFiberStackInDev() {
28840
- {
28841
- if (current === null) {
28842
- return '';
28843
- }
28844
- // Safe because if current fiber exists, we are reconciling,
28845
- // and it is guaranteed to be the work-in-progress version.
28846
- return getStackByFiberInDevAndProd(current);
28847
- }
28848
- return '';
28849
- }
28850
-
28851
- function resetCurrentFiber() {
28852
- {
28853
- ReactDebugCurrentFrame.getCurrentStack = null;
28854
- current = null;
28855
- phase = null;
28856
- }
28857
- }
28858
-
28859
- function setCurrentFiber(fiber) {
28860
- {
28861
- ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
28862
- current = fiber;
28863
- phase = null;
28864
- }
28865
- }
28866
-
28867
- function setCurrentPhase(lifeCyclePhase) {
28868
- {
28869
- phase = lifeCyclePhase;
28870
- }
28871
- }
28872
-
28873
- /**
28874
- * Similar to invariant but only logs a warning if the condition is not met.
28875
- * This can be used to log issues in development environments in critical
28876
- * paths. Removing the logging code for production environments will keep the
28877
- * same logic and follow the same code paths.
28878
- */
28879
-
28880
- var warning = warningWithoutStack$1;
28881
-
28882
- {
28883
- warning = function (condition, format) {
28884
- if (condition) {
28885
- return;
28886
- }
28887
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
28888
- var stack = ReactDebugCurrentFrame.getStackAddendum();
28889
- // eslint-disable-next-line react-internal/warning-and-invariant-args
28890
-
28891
- for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
28892
- args[_key - 2] = arguments[_key];
28893
- }
28894
-
28895
- warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
28896
- };
28897
- }
28898
-
28899
- var warning$1 = warning;
28900
-
28901
- // A reserved attribute.
28902
- // It is handled by React separately and shouldn't be written to the DOM.
28903
- var RESERVED = 0;
28904
-
28905
- // A simple string attribute.
28906
- // Attributes that aren't in the whitelist are presumed to have this type.
28907
- var STRING = 1;
28908
-
28909
- // A string attribute that accepts booleans in React. In HTML, these are called
28910
- // "enumerated" attributes with "true" and "false" as possible values.
28911
- // When true, it should be set to a "true" string.
28912
- // When false, it should be set to a "false" string.
28913
- var BOOLEANISH_STRING = 2;
28914
-
28915
- // A real boolean attribute.
28916
- // When true, it should be present (set either to an empty string or its name).
28917
- // When false, it should be omitted.
28918
- var BOOLEAN = 3;
28919
-
28920
- // An attribute that can be used as a flag as well as with a value.
28921
- // When true, it should be present (set either to an empty string or its name).
28922
- // When false, it should be omitted.
28923
- // For any other value, should be present with that value.
28924
- var OVERLOADED_BOOLEAN = 4;
28925
-
28926
- // An attribute that must be numeric or parse as a numeric.
28927
- // When falsy, it should be removed.
28928
- var NUMERIC = 5;
28929
-
28930
- // An attribute that must be positive numeric or parse as a positive numeric.
28931
- // When falsy, it should be removed.
28932
- var POSITIVE_NUMERIC = 6;
28933
-
28934
- /* eslint-disable max-len */
28935
- var ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD';
28936
- /* eslint-enable max-len */
28937
- var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
28938
-
28939
-
28940
- var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
28941
- var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
28942
-
28943
- var hasOwnProperty = Object.prototype.hasOwnProperty;
28944
- var illegalAttributeNameCache = {};
28945
- var validatedAttributeNameCache = {};
28946
-
28947
- function isAttributeNameSafe(attributeName) {
28948
- if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
28949
- return true;
28950
- }
28951
- if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
28952
- return false;
28953
- }
28954
- if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
28955
- validatedAttributeNameCache[attributeName] = true;
28956
- return true;
28957
- }
28958
- illegalAttributeNameCache[attributeName] = true;
28959
- {
28960
- warning$1(false, 'Invalid attribute name: `%s`', attributeName);
28961
- }
28962
- return false;
28963
- }
28964
-
28965
- function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
28966
- if (propertyInfo !== null) {
28967
- return propertyInfo.type === RESERVED;
28968
- }
28969
- if (isCustomComponentTag) {
28970
- return false;
28971
- }
28972
- if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
28973
- return true;
28974
- }
28975
- return false;
28976
- }
28977
-
28978
- function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
28979
- if (propertyInfo !== null && propertyInfo.type === RESERVED) {
28980
- return false;
28981
- }
28982
- switch (typeof value) {
28983
- case 'function':
28984
- // $FlowIssue symbol is perfectly valid here
28985
- case 'symbol':
28986
- // eslint-disable-line
28987
- return true;
28988
- case 'boolean':
28989
- {
28990
- if (isCustomComponentTag) {
28991
- return false;
28992
- }
28993
- if (propertyInfo !== null) {
28994
- return !propertyInfo.acceptsBooleans;
28995
- } else {
28996
- var prefix = name.toLowerCase().slice(0, 5);
28997
- return prefix !== 'data-' && prefix !== 'aria-';
28998
- }
28999
- }
29000
- default:
29001
- return false;
29002
- }
29003
- }
29004
-
29005
- function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
29006
- if (value === null || typeof value === 'undefined') {
29007
- return true;
29008
- }
29009
- if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
29010
- return true;
29011
- }
29012
- if (isCustomComponentTag) {
29013
- return false;
29014
- }
29015
- if (propertyInfo !== null) {
29016
- switch (propertyInfo.type) {
29017
- case BOOLEAN:
29018
- return !value;
29019
- case OVERLOADED_BOOLEAN:
29020
- return value === false;
29021
- case NUMERIC:
29022
- return isNaN(value);
29023
- case POSITIVE_NUMERIC:
29024
- return isNaN(value) || value < 1;
29025
- }
29026
- }
29027
- return false;
29028
- }
29029
-
29030
- function getPropertyInfo(name) {
29031
- return properties.hasOwnProperty(name) ? properties[name] : null;
29032
- }
29033
-
29034
- function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) {
29035
- this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
29036
- this.attributeName = attributeName;
29037
- this.attributeNamespace = attributeNamespace;
29038
- this.mustUseProperty = mustUseProperty;
29039
- this.propertyName = name;
29040
- this.type = type;
29041
- }
29042
-
29043
- // When adding attributes to this list, be sure to also add them to
29044
- // the `possibleStandardNames` module to ensure casing and incorrect
29045
- // name warnings.
29046
- var properties = {};
29047
-
29048
- // These props are reserved by React. They shouldn't be written to the DOM.
29049
- ['children', 'dangerouslySetInnerHTML',
29050
- // TODO: This prevents the assignment of defaultValue to regular
29051
- // elements (not just inputs). Now that ReactDOMInput assigns to the
29052
- // defaultValue property -- do we need this?
29053
- 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
29054
- properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
29055
- name, // attributeName
29056
- null);
29057
- } // attributeNamespace
29058
- );
29059
-
29060
- // A few React string attributes have a different name.
29061
- // This is a mapping from React prop names to the attribute names.
29062
- [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
29063
- var name = _ref[0],
29064
- attributeName = _ref[1];
29065
-
29066
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
29067
- attributeName, // attributeName
29068
- null);
29069
- } // attributeNamespace
29070
- );
29071
-
29072
- // These are "enumerated" HTML attributes that accept "true" and "false".
29073
- // In React, we let users pass `true` and `false` even though technically
29074
- // these aren't boolean attributes (they are coerced to strings).
29075
- ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
29076
- properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
29077
- name.toLowerCase(), // attributeName
29078
- null);
29079
- } // attributeNamespace
29080
- );
29081
-
29082
- // These are "enumerated" SVG attributes that accept "true" and "false".
29083
- // In React, we let users pass `true` and `false` even though technically
29084
- // these aren't boolean attributes (they are coerced to strings).
29085
- // Since these are SVG attributes, their attribute names are case-sensitive.
29086
- ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
29087
- properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
29088
- name, // attributeName
29089
- null);
29090
- } // attributeNamespace
29091
- );
29092
-
29093
- // These are HTML boolean attributes.
29094
- ['allowFullScreen', 'async',
29095
- // Note: there is a special case that prevents it from being written to the DOM
29096
- // on the client side because the browsers are inconsistent. Instead we call focus().
29097
- 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
29098
- // Microdata
29099
- 'itemScope'].forEach(function (name) {
29100
- properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
29101
- name.toLowerCase(), // attributeName
29102
- null);
29103
- } // attributeNamespace
29104
- );
29105
-
29106
- // These are the few React props that we set as DOM properties
29107
- // rather than attributes. These are all booleans.
29108
- ['checked',
29109
- // Note: `option.selected` is not updated if `select.multiple` is
29110
- // disabled with `removeAttribute`. We have special logic for handling this.
29111
- 'multiple', 'muted', 'selected'].forEach(function (name) {
29112
- properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
29113
- name, // attributeName
29114
- null);
29115
- } // attributeNamespace
29116
- );
29117
-
29118
- // These are HTML attributes that are "overloaded booleans": they behave like
29119
- // booleans, but can also accept a string value.
29120
- ['capture', 'download'].forEach(function (name) {
29121
- properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
29122
- name, // attributeName
29123
- null);
29124
- } // attributeNamespace
29125
- );
29126
-
29127
- // These are HTML attributes that must be positive numbers.
29128
- ['cols', 'rows', 'size', 'span'].forEach(function (name) {
29129
- properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
29130
- name, // attributeName
29131
- null);
29132
- } // attributeNamespace
29133
- );
29134
-
29135
- // These are HTML attributes that must be numbers.
29136
- ['rowSpan', 'start'].forEach(function (name) {
29137
- properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
29138
- name.toLowerCase(), // attributeName
29139
- null);
29140
- } // attributeNamespace
29141
- );
29142
-
29143
- var CAMELIZE = /[\-\:]([a-z])/g;
29144
- var capitalize = function (token) {
29145
- return token[1].toUpperCase();
29146
- };
29147
-
29148
- // This is a list of all SVG attributes that need special casing, namespacing,
29149
- // or boolean value assignment. Regular attributes that just accept strings
29150
- // and have the same names are omitted, just like in the HTML whitelist.
29151
- // Some of these attributes can be hard to find. This list was created by
29152
- // scrapping the MDN documentation.
29153
- ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {
29154
- var name = attributeName.replace(CAMELIZE, capitalize);
29155
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
29156
- attributeName, null);
29157
- } // attributeNamespace
29158
- );
29159
-
29160
- // String SVG attributes with the xlink namespace.
29161
- ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
29162
- var name = attributeName.replace(CAMELIZE, capitalize);
29163
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
29164
- attributeName, 'http://www.w3.org/1999/xlink');
29165
- });
29166
-
29167
- // String SVG attributes with the xml namespace.
29168
- ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
29169
- var name = attributeName.replace(CAMELIZE, capitalize);
29170
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
29171
- attributeName, 'http://www.w3.org/XML/1998/namespace');
29172
- });
29173
-
29174
- // These attribute exists both in HTML and SVG.
29175
- // The attribute name is case-sensitive in SVG so we can't just use
29176
- // the React name like we do for attributes that exist only in HTML.
29177
- ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
29178
- properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
29179
- attributeName.toLowerCase(), // attributeName
29180
- null);
29181
- } // attributeNamespace
29182
- );
29183
-
29184
- /**
29185
- * Get the value for a property on a node. Only used in DEV for SSR validation.
29186
- * The "expected" argument is used as a hint of what the expected value is.
29187
- * Some properties have multiple equivalent values.
29188
- */
29189
- function getValueForProperty(node, name, expected, propertyInfo) {
29190
- {
29191
- if (propertyInfo.mustUseProperty) {
29192
- var propertyName = propertyInfo.propertyName;
29193
-
29194
- return node[propertyName];
29195
- } else {
29196
- var attributeName = propertyInfo.attributeName;
29197
-
29198
- var stringValue = null;
29199
-
29200
- if (propertyInfo.type === OVERLOADED_BOOLEAN) {
29201
- if (node.hasAttribute(attributeName)) {
29202
- var value = node.getAttribute(attributeName);
29203
- if (value === '') {
29204
- return true;
29205
- }
29206
- if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
29207
- return value;
29208
- }
29209
- if (value === '' + expected) {
29210
- return expected;
29211
- }
29212
- return value;
29213
- }
29214
- } else if (node.hasAttribute(attributeName)) {
29215
- if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
29216
- // We had an attribute but shouldn't have had one, so read it
29217
- // for the error message.
29218
- return node.getAttribute(attributeName);
29219
- }
29220
- if (propertyInfo.type === BOOLEAN) {
29221
- // If this was a boolean, it doesn't matter what the value is
29222
- // the fact that we have it is the same as the expected.
29223
- return expected;
29224
- }
29225
- // Even if this property uses a namespace we use getAttribute
29226
- // because we assume its namespaced name is the same as our config.
29227
- // To use getAttributeNS we need the local name which we don't have
29228
- // in our config atm.
29229
- stringValue = node.getAttribute(attributeName);
29230
- }
29231
-
29232
- if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
29233
- return stringValue === null ? expected : stringValue;
29234
- } else if (stringValue === '' + expected) {
29235
- return expected;
29236
- } else {
29237
- return stringValue;
29238
- }
29239
- }
29240
- }
29241
- }
29242
-
29243
- /**
29244
- * Get the value for a attribute on a node. Only used in DEV for SSR validation.
29245
- * The third argument is used as a hint of what the expected value is. Some
29246
- * attributes have multiple equivalent values.
29247
- */
29248
- function getValueForAttribute(node, name, expected) {
29249
- {
29250
- if (!isAttributeNameSafe(name)) {
29251
- return;
29252
- }
29253
- if (!node.hasAttribute(name)) {
29254
- return expected === undefined ? undefined : null;
29255
- }
29256
- var value = node.getAttribute(name);
29257
- if (value === '' + expected) {
29258
- return expected;
29259
- }
29260
- return value;
29261
- }
29262
- }
29263
-
29264
- /**
29265
- * Sets the value for a property on a node.
29266
- *
29267
- * @param {DOMElement} node
29268
- * @param {string} name
29269
- * @param {*} value
29270
- */
29271
- function setValueForProperty(node, name, value, isCustomComponentTag) {
29272
- var propertyInfo = getPropertyInfo(name);
29273
- if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
29274
- return;
29275
- }
29276
- if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
29277
- value = null;
29278
- }
29279
- // If the prop isn't in the special list, treat it as a simple attribute.
29280
- if (isCustomComponentTag || propertyInfo === null) {
29281
- if (isAttributeNameSafe(name)) {
29282
- var _attributeName = name;
29283
- if (value === null) {
29284
- node.removeAttribute(_attributeName);
29285
- } else {
29286
- node.setAttribute(_attributeName, '' + value);
29287
- }
29288
- }
29289
- return;
29290
- }
29291
- var mustUseProperty = propertyInfo.mustUseProperty;
29292
-
29293
- if (mustUseProperty) {
29294
- var propertyName = propertyInfo.propertyName;
29295
-
29296
- if (value === null) {
29297
- var type = propertyInfo.type;
29298
-
29299
- node[propertyName] = type === BOOLEAN ? false : '';
29300
- } else {
29301
- // Contrary to `setAttribute`, object properties are properly
29302
- // `toString`ed by IE8/9.
29303
- node[propertyName] = value;
29304
- }
29305
- return;
29306
- }
29307
- // The rest are treated as attributes with special cases.
29308
- var attributeName = propertyInfo.attributeName,
29309
- attributeNamespace = propertyInfo.attributeNamespace;
29310
-
29311
- if (value === null) {
29312
- node.removeAttribute(attributeName);
29313
- } else {
29314
- var _type = propertyInfo.type;
29315
-
29316
- var attributeValue = void 0;
29317
- if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
29318
- attributeValue = '';
29319
- } else {
29320
- // `setAttribute` with objects becomes only `[object]` in IE8/9,
29321
- // ('' + value) makes it output the correct toString()-value.
29322
- attributeValue = '' + value;
29323
- }
29324
- if (attributeNamespace) {
29325
- node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
29326
- } else {
29327
- node.setAttribute(attributeName, attributeValue);
29328
- }
29329
- }
29330
- }
29331
-
29332
- // Flow does not allow string concatenation of most non-string types. To work
29333
- // around this limitation, we use an opaque type that can only be obtained by
29334
- // passing the value through getToStringValue first.
29335
- function toString(value) {
29336
- return '' + value;
29337
- }
29338
-
29339
- function getToStringValue(value) {
29340
- switch (typeof value) {
29341
- case 'boolean':
29342
- case 'number':
29343
- case 'object':
29344
- case 'string':
29345
- case 'undefined':
29346
- return value;
29347
- default:
29348
- // function, symbol are assigned as empty strings
29349
- return '';
29350
- }
29351
- }
29352
-
29353
- var ReactDebugCurrentFrame$1 = null;
29354
-
29355
- var ReactControlledValuePropTypes = {
29356
- checkPropTypes: null
29357
- };
29358
-
29359
- {
29360
- ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
29361
-
29362
- var hasReadOnlyValue = {
29363
- button: true,
29364
- checkbox: true,
29365
- image: true,
29366
- hidden: true,
29367
- radio: true,
29368
- reset: true,
29369
- submit: true
29370
- };
29371
-
29372
- var propTypes = {
29373
- value: function (props, propName, componentName) {
29374
- if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null) {