├── .gitignore
├── LICENSE
├── README.md
├── api-tests
├── roqr-resource-import
│ ├── docker-compose.yml
│ ├── roqr-resource-import-postman-collection.json
│ └── roqr-tests-postman-environment.json
├── roqr-ui
│ ├── roqr-tests-postman-environment.json
│ └── roqr-ui-tests-postman-collection.json
└── roqr
│ ├── roqr-tests-postman-collection.json
│ └── roqr-tests-postman-environment.json
├── authentication
├── apis
│ ├── register
│ │ └── index.js
│ ├── token
│ │ ├── index.js
│ │ └── onMSResponse.js
│ └── validate
│ │ ├── index.js
│ │ └── onMSResponse.js
├── modules
│ └── crypto.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
├── cache
└── Importv3.xml
├── capabilities
├── apis
│ ├── modules
│ │ └── meta.js
│ └── read
│ │ ├── index.js
│ │ └── onMSResponse.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
├── configuration
├── config.json
├── messaging
│ └── dispatcher.js
└── routes.json
├── docker-compose.yml
├── fhir
├── apis
│ ├── create
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── delete
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── metadata
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── read
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── searchset
│ │ ├── index.js
│ │ └── onMSResponse.js
│ └── update
│ │ ├── index.js
│ │ └── onMSResponse.js
├── modules
│ └── fhirInteractionServicePipeline.js
├── registries
│ ├── resources.js
│ └── server.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
├── index
├── apis
│ ├── create
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── delete
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── query
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── read
│ │ └── index.js
│ └── top
│ │ ├── index.js
│ │ └── onMSResponse.js
├── modules
│ ├── indexer.js
│ └── query.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
├── install_modules.json
├── node_modules
├── .bin
│ └── btoa
├── btoa
│ ├── LICENSE
│ ├── LICENSE.DOCS
│ ├── README.md
│ ├── bin
│ │ └── btoa.js
│ ├── index.js
│ ├── package.json
│ └── test.js
├── moment
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── ender.js
│ ├── locale
│ │ ├── af.js
│ │ ├── ar-dz.js
│ │ ├── ar-kw.js
│ │ ├── ar-ly.js
│ │ ├── ar-ma.js
│ │ ├── ar-sa.js
│ │ ├── ar-tn.js
│ │ ├── ar.js
│ │ ├── az.js
│ │ ├── be.js
│ │ ├── bg.js
│ │ ├── bm.js
│ │ ├── bn.js
│ │ ├── bo.js
│ │ ├── br.js
│ │ ├── bs.js
│ │ ├── ca.js
│ │ ├── cs.js
│ │ ├── cv.js
│ │ ├── cy.js
│ │ ├── da.js
│ │ ├── de-at.js
│ │ ├── de-ch.js
│ │ ├── de.js
│ │ ├── dv.js
│ │ ├── el.js
│ │ ├── en-SG.js
│ │ ├── en-au.js
│ │ ├── en-ca.js
│ │ ├── en-gb.js
│ │ ├── en-ie.js
│ │ ├── en-il.js
│ │ ├── en-nz.js
│ │ ├── eo.js
│ │ ├── es-do.js
│ │ ├── es-us.js
│ │ ├── es.js
│ │ ├── et.js
│ │ ├── eu.js
│ │ ├── fa.js
│ │ ├── fi.js
│ │ ├── fo.js
│ │ ├── fr-ca.js
│ │ ├── fr-ch.js
│ │ ├── fr.js
│ │ ├── fy.js
│ │ ├── ga.js
│ │ ├── gd.js
│ │ ├── gl.js
│ │ ├── gom-latn.js
│ │ ├── gu.js
│ │ ├── he.js
│ │ ├── hi.js
│ │ ├── hr.js
│ │ ├── hu.js
│ │ ├── hy-am.js
│ │ ├── id.js
│ │ ├── is.js
│ │ ├── it-ch.js
│ │ ├── it.js
│ │ ├── ja.js
│ │ ├── jv.js
│ │ ├── ka.js
│ │ ├── kk.js
│ │ ├── km.js
│ │ ├── kn.js
│ │ ├── ko.js
│ │ ├── ku.js
│ │ ├── ky.js
│ │ ├── lb.js
│ │ ├── lo.js
│ │ ├── lt.js
│ │ ├── lv.js
│ │ ├── me.js
│ │ ├── mi.js
│ │ ├── mk.js
│ │ ├── ml.js
│ │ ├── mn.js
│ │ ├── mr.js
│ │ ├── ms-my.js
│ │ ├── ms.js
│ │ ├── mt.js
│ │ ├── my.js
│ │ ├── nb.js
│ │ ├── ne.js
│ │ ├── nl-be.js
│ │ ├── nl.js
│ │ ├── nn.js
│ │ ├── pa-in.js
│ │ ├── pl.js
│ │ ├── pt-br.js
│ │ ├── pt.js
│ │ ├── ro.js
│ │ ├── ru.js
│ │ ├── sd.js
│ │ ├── se.js
│ │ ├── si.js
│ │ ├── sk.js
│ │ ├── sl.js
│ │ ├── sq.js
│ │ ├── sr-cyrl.js
│ │ ├── sr.js
│ │ ├── ss.js
│ │ ├── sv.js
│ │ ├── sw.js
│ │ ├── ta.js
│ │ ├── te.js
│ │ ├── tet.js
│ │ ├── tg.js
│ │ ├── th.js
│ │ ├── tl-ph.js
│ │ ├── tlh.js
│ │ ├── tr.js
│ │ ├── tzl.js
│ │ ├── tzm-latn.js
│ │ ├── tzm.js
│ │ ├── ug-cn.js
│ │ ├── uk.js
│ │ ├── ur.js
│ │ ├── uz-latn.js
│ │ ├── uz.js
│ │ ├── vi.js
│ │ ├── x-pseudo.js
│ │ ├── yo.js
│ │ ├── zh-cn.js
│ │ ├── zh-hk.js
│ │ └── zh-tw.js
│ ├── min
│ │ ├── locales.js
│ │ ├── locales.min.js
│ │ ├── moment-with-locales.js
│ │ ├── moment-with-locales.min.js
│ │ └── moment.min.js
│ ├── moment.d.ts
│ ├── moment.js
│ ├── package.js
│ ├── package.json
│ └── src
│ │ ├── lib
│ │ ├── create
│ │ │ ├── check-overflow.js
│ │ │ ├── date-from-array.js
│ │ │ ├── from-anything.js
│ │ │ ├── from-array.js
│ │ │ ├── from-object.js
│ │ │ ├── from-string-and-array.js
│ │ │ ├── from-string-and-format.js
│ │ │ ├── from-string.js
│ │ │ ├── local.js
│ │ │ ├── parsing-flags.js
│ │ │ ├── utc.js
│ │ │ └── valid.js
│ │ ├── duration
│ │ │ ├── abs.js
│ │ │ ├── add-subtract.js
│ │ │ ├── as.js
│ │ │ ├── bubble.js
│ │ │ ├── clone.js
│ │ │ ├── constructor.js
│ │ │ ├── create.js
│ │ │ ├── duration.js
│ │ │ ├── get.js
│ │ │ ├── humanize.js
│ │ │ ├── iso-string.js
│ │ │ ├── prototype.js
│ │ │ └── valid.js
│ │ ├── format
│ │ │ └── format.js
│ │ ├── locale
│ │ │ ├── base-config.js
│ │ │ ├── calendar.js
│ │ │ ├── constructor.js
│ │ │ ├── en.js
│ │ │ ├── formats.js
│ │ │ ├── invalid.js
│ │ │ ├── lists.js
│ │ │ ├── locale.js
│ │ │ ├── locales.js
│ │ │ ├── ordinal.js
│ │ │ ├── pre-post-format.js
│ │ │ ├── prototype.js
│ │ │ ├── relative.js
│ │ │ └── set.js
│ │ ├── moment
│ │ │ ├── add-subtract.js
│ │ │ ├── calendar.js
│ │ │ ├── clone.js
│ │ │ ├── compare.js
│ │ │ ├── constructor.js
│ │ │ ├── creation-data.js
│ │ │ ├── diff.js
│ │ │ ├── format.js
│ │ │ ├── from.js
│ │ │ ├── get-set.js
│ │ │ ├── locale.js
│ │ │ ├── min-max.js
│ │ │ ├── moment.js
│ │ │ ├── now.js
│ │ │ ├── prototype.js
│ │ │ ├── start-end-of.js
│ │ │ ├── to-type.js
│ │ │ ├── to.js
│ │ │ └── valid.js
│ │ ├── parse
│ │ │ ├── regex.js
│ │ │ └── token.js
│ │ ├── units
│ │ │ ├── aliases.js
│ │ │ ├── constants.js
│ │ │ ├── day-of-month.js
│ │ │ ├── day-of-week.js
│ │ │ ├── day-of-year.js
│ │ │ ├── hour.js
│ │ │ ├── millisecond.js
│ │ │ ├── minute.js
│ │ │ ├── month.js
│ │ │ ├── offset.js
│ │ │ ├── priorities.js
│ │ │ ├── quarter.js
│ │ │ ├── second.js
│ │ │ ├── timestamp.js
│ │ │ ├── timezone.js
│ │ │ ├── units.js
│ │ │ ├── week-calendar-utils.js
│ │ │ ├── week-year.js
│ │ │ ├── week.js
│ │ │ └── year.js
│ │ └── utils
│ │ │ ├── abs-ceil.js
│ │ │ ├── abs-floor.js
│ │ │ ├── abs-round.js
│ │ │ ├── compare-arrays.js
│ │ │ ├── defaults.js
│ │ │ ├── deprecate.js
│ │ │ ├── extend.js
│ │ │ ├── has-own-prop.js
│ │ │ ├── hooks.js
│ │ │ ├── index-of.js
│ │ │ ├── is-array.js
│ │ │ ├── is-date.js
│ │ │ ├── is-function.js
│ │ │ ├── is-number.js
│ │ │ ├── is-object-empty.js
│ │ │ ├── is-object.js
│ │ │ ├── is-undefined.js
│ │ │ ├── keys.js
│ │ │ ├── map.js
│ │ │ ├── mod.js
│ │ │ ├── some.js
│ │ │ ├── to-int.js
│ │ │ └── zero-fill.js
│ │ ├── locale
│ │ ├── af.js
│ │ ├── ar-dz.js
│ │ ├── ar-kw.js
│ │ ├── ar-ly.js
│ │ ├── ar-ma.js
│ │ ├── ar-sa.js
│ │ ├── ar-tn.js
│ │ ├── ar.js
│ │ ├── az.js
│ │ ├── be.js
│ │ ├── bg.js
│ │ ├── bm.js
│ │ ├── bn.js
│ │ ├── bo.js
│ │ ├── br.js
│ │ ├── bs.js
│ │ ├── ca.js
│ │ ├── cs.js
│ │ ├── cv.js
│ │ ├── cy.js
│ │ ├── da.js
│ │ ├── de-at.js
│ │ ├── de-ch.js
│ │ ├── de.js
│ │ ├── dv.js
│ │ ├── el.js
│ │ ├── en-SG.js
│ │ ├── en-au.js
│ │ ├── en-ca.js
│ │ ├── en-gb.js
│ │ ├── en-ie.js
│ │ ├── en-il.js
│ │ ├── en-nz.js
│ │ ├── eo.js
│ │ ├── es-do.js
│ │ ├── es-us.js
│ │ ├── es.js
│ │ ├── et.js
│ │ ├── eu.js
│ │ ├── fa.js
│ │ ├── fi.js
│ │ ├── fo.js
│ │ ├── fr-ca.js
│ │ ├── fr-ch.js
│ │ ├── fr.js
│ │ ├── fy.js
│ │ ├── ga.js
│ │ ├── gd.js
│ │ ├── gl.js
│ │ ├── gom-latn.js
│ │ ├── gu.js
│ │ ├── he.js
│ │ ├── hi.js
│ │ ├── hr.js
│ │ ├── hu.js
│ │ ├── hy-am.js
│ │ ├── id.js
│ │ ├── is.js
│ │ ├── it-ch.js
│ │ ├── it.js
│ │ ├── ja.js
│ │ ├── jv.js
│ │ ├── ka.js
│ │ ├── kk.js
│ │ ├── km.js
│ │ ├── kn.js
│ │ ├── ko.js
│ │ ├── ku.js
│ │ ├── ky.js
│ │ ├── lb.js
│ │ ├── lo.js
│ │ ├── lt.js
│ │ ├── lv.js
│ │ ├── me.js
│ │ ├── mi.js
│ │ ├── mk.js
│ │ ├── ml.js
│ │ ├── mn.js
│ │ ├── mr.js
│ │ ├── ms-my.js
│ │ ├── ms.js
│ │ ├── mt.js
│ │ ├── my.js
│ │ ├── nb.js
│ │ ├── ne.js
│ │ ├── nl-be.js
│ │ ├── nl.js
│ │ ├── nn.js
│ │ ├── pa-in.js
│ │ ├── pl.js
│ │ ├── pt-br.js
│ │ ├── pt.js
│ │ ├── ro.js
│ │ ├── ru.js
│ │ ├── sd.js
│ │ ├── se.js
│ │ ├── si.js
│ │ ├── sk.js
│ │ ├── sl.js
│ │ ├── sq.js
│ │ ├── sr-cyrl.js
│ │ ├── sr.js
│ │ ├── ss.js
│ │ ├── sv.js
│ │ ├── sw.js
│ │ ├── ta.js
│ │ ├── te.js
│ │ ├── tet.js
│ │ ├── tg.js
│ │ ├── th.js
│ │ ├── tl-ph.js
│ │ ├── tlh.js
│ │ ├── tr.js
│ │ ├── tzl.js
│ │ ├── tzm-latn.js
│ │ ├── tzm.js
│ │ ├── ug-cn.js
│ │ ├── uk.js
│ │ ├── ur.js
│ │ ├── uz-latn.js
│ │ ├── uz.js
│ │ ├── vi.js
│ │ ├── x-pseudo.js
│ │ ├── yo.js
│ │ ├── zh-cn.js
│ │ ├── zh-hk.js
│ │ └── zh-tw.js
│ │ └── moment.js
└── underscore
│ ├── LICENSE
│ ├── README.md
│ ├── package.json
│ ├── underscore-min.js
│ ├── underscore-min.js.map
│ └── underscore.js
├── orchestrator
├── addMiddleware.js
├── modules
│ ├── responders.js
│ └── server.js
├── onWSResponse.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
├── package-lock.json
├── publisher
├── apis
│ ├── evaluate
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── modules
│ │ ├── notifier.js
│ │ └── subscriptionServicePipeline.js
│ ├── notify
│ │ ├── index.js
│ │ └── onMSResponse.js
│ └── publish
│ │ ├── index.js
│ │ └── onMSResponse.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
├── repo
├── apis
│ ├── batch-index
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── batch
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── create
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── delete
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── read
│ │ ├── index.js
│ │ └── onMSResponse.js
│ └── search
│ │ ├── index.js
│ │ └── onMSResponse.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
├── repoadapter
├── apis
│ ├── create
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── delete
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── read
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── respond
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── search
│ │ ├── index.js
│ │ └── onMSResponse.js
│ └── searchset
│ │ ├── index.js
│ │ └── onMSResponse.js
├── modules
│ └── urlBuilder.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
├── responder
├── apis
│ └── create
│ │ └── index.js
├── modules
│ └── responder.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
├── search
├── apis
│ ├── add
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── cache-query
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── complete
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── create
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── include
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── paginate
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── results
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── sort
│ │ ├── index.js
│ │ └── onMSResponse.js
│ └── update
│ │ ├── index.js
│ │ └── onMSResponse.js
├── modules
│ └── returnedResourceManager.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
├── tests
├── apis
│ ├── fhirResponseTest
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── repoBatchRead
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── repoCreate
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── repoIndexCreate
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── repoIndexQuery
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── repoIndexRead
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── repoRead
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── repoSearch
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── searchAdd
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── searchCreate
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── searchInclude
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── searchRead
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── searchRevInclude
│ │ ├── index.js
│ │ └── onMSResponse.js
│ ├── searchSort
│ │ ├── index.js
│ │ └── onMSResponse.js
│ └── searchUpdate
│ │ ├── index.js
│ │ └── onMSResponse.js
└── www
│ ├── ewd-client.js
│ └── qewd-monitor
└── validator
└── apis
└── validate
└── index.js
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Runtime data
9 | pids
10 | *.pid
11 | *.seed
12 | *.pid.lock
13 |
14 | # Directory for instrumented libs generated by jscoverage/JSCover
15 | lib-cov
16 |
17 | # Coverage directory used by tools like istanbul
18 | coverage
19 |
20 | # nyc test coverage
21 | .nyc_output
22 |
23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24 | .grunt
25 |
26 | # Bower dependency directory (https://bower.io/)
27 | bower_components
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (https://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # TypeScript v1 declaration files
40 | typings/
41 |
42 | # Optional npm cache directory
43 | .npm
44 |
45 | # Optional eslint cache
46 | .eslintcache
47 |
48 | # Optional REPL history
49 | .node_repl_history
50 |
51 | # Output of 'npm pack'
52 | *.tgz
53 |
54 | # Yarn Integrity file
55 | .yarn-integrity
56 |
57 | # dotenv environment variables file
58 | .env
59 |
60 | # next.js build output
61 | .next
62 | .DS_Store
63 |
64 | #newman test reports
65 | api-tests/roqr-resource-import/newman
66 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 NHSX
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/api-tests/roqr-resource-import/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "2"
2 | services:
3 |
4 | newman:
5 | image: postman/newman:ubuntu
6 | container_name: newman
7 | volumes:
8 | - ~/Repos/open-source-fhir-server/api-tests/roqr-resource-import:/etc/newman
9 | command:
10 | run roqr-resource-import-postman-collection.json -e roqr-tests-postman-environment.json --delay-request 100 --reporters cli,json --reporter-json-export roqr-resource-import-tests-results.json -k
--------------------------------------------------------------------------------
/authentication/modules/crypto.js:
--------------------------------------------------------------------------------
1 | var CryptoJS = require('crypto-js');
2 |
3 | var crypto = {
4 | key:'9H?RB=8srH?MyePwdzK&',//TODO: ENTER YOUR OWN SUPER TOP SECRET KEY HERE...
5 | encrypt:function(plainText) {
6 | return CryptoJS.AES.encrypt(plainText,this.key).toString();
7 | },
8 | decrypt:function(cipherText) {
9 | var bytes = CryptoJS.AES.decrypt(cipherText,this.key);
10 | return bytes.toString(CryptoJS.enc.Utf8);
11 | }
12 | }
13 |
14 | module.exports = {
15 | crypto
16 | }
--------------------------------------------------------------------------------
/authentication/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/authentication/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------
/capabilities/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/capabilities/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------
/configuration/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "qewd_up": true,
3 | "microservices": [
4 | {
5 | "name": "authentication",
6 | "qewd": {
7 | "serverName": "ROQR Authentication Service",
8 | "poolSize":4
9 | }
10 | },
11 | {
12 | "name": "tests",
13 | "qewd": {
14 | "serverName": "ROQR Test API Service"
15 | }
16 | },
17 | {
18 | "name": "repoadapter",
19 | "qewd": {
20 | "serverName": "ROQR FHIR Request Adapter Service",
21 | "poolSize":4
22 | }
23 | },
24 | {
25 | "name": "repo",
26 | "qewd": {
27 | "serverName": "ROQR Local FHIR Repository Service",
28 | "poolSize":4
29 | }
30 | },
31 | {
32 | "name": "index",
33 | "qewd": {
34 | "serverName": "ROQR Local FHIR Resource Index Service",
35 | "poolSize":4
36 | }
37 | },
38 | {
39 | "name": "publisher",
40 | "qewd": {
41 | "serverName": "ROQR Subscription Notification Service",
42 | "poolSize":4
43 | }
44 | },
45 | {
46 | "name": "search",
47 | "qewd": {
48 | "serverName": "ROQR Search Service",
49 | "poolSize":4
50 | }
51 | },
52 | {
53 | "name": "fhir",
54 | "qewd": {
55 | "serverName": "ROQR FHIR API Service",
56 | "poolSize":4
57 | }
58 | },
59 | {
60 | "name": "responder",
61 | "qewd": {
62 | "serverName": "ROQR Responder Service",
63 | "poolSize":4
64 | }
65 | },
66 | {
67 | "name": "capabilities",
68 | "qewd": {
69 | "serverName": "ROQR Capability Service",
70 | "poolSize":4
71 | }
72 | }
73 | ],
74 | "jwt": {
75 | "secret": "Uk9RUiBzdGFuZHMgZm9yIGZoaVIgT24gUWV3ZCBhbmQgZG9ja2VS"
76 | }
77 | }
--------------------------------------------------------------------------------
/fhir/registries/server.js:
--------------------------------------------------------------------------------
1 | var server = {
2 | url:"http://localhost:8080/fhir/stu3/",
3 | version:"1.0.0",
4 | documentation:"https://github.com/nhsx/open-source-fhir-server",
5 | resourceProfileBase:"https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect",
6 | resourceProfileVersion:"1",
7 | sources:[
8 | {
9 | target:'repo',
10 | isLocal:true,
11 | allowIdOnCreate:true,
12 | maxSearchResultSetSize:1000, //This is the maximum number of search results any query will return...
13 | maxInitialSearchResultSetSize:50,//This is the threshold at which the server will return first set of results before sending the query off for completion)...
14 | defaultPageSize:10,
15 | tag:{
16 | system:'https://roqr.fhir.co.uk/source',
17 | code:'local-repo',
18 | display:'ROQR Local FHIR Store/Repository'
19 | }
20 | },
21 | {
22 | target:'ccri',
23 | isLocal:false,
24 | dispatchable:true,
25 | resourceIdentifier:{
26 | system:'https://data.developer.nhs.uk/ccri-fhir/id'
27 | },
28 | tag:{
29 | system:'https://roqr.fhir.co.uk/source',
30 | code:'ccri',
31 | display:'NHS Care Connect Reference Implementation'
32 | },
33 | url:'https://data.developer.nhs.uk/ccri-fhir/STU3'
34 | }
35 | ]
36 | }
37 |
38 | module.exports = {
39 | server
40 | }
--------------------------------------------------------------------------------
/fhir/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/fhir/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------
/index/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/index/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------
/install_modules.json:
--------------------------------------------------------------------------------
1 | [
2 | "btoa",
3 | "crypto-js",
4 | "moment",
5 | "traverse",
6 | "underscore",
7 | "utf8"
8 | ]
--------------------------------------------------------------------------------
/node_modules/.bin/btoa:
--------------------------------------------------------------------------------
1 | ../btoa/bin/btoa.js
--------------------------------------------------------------------------------
/node_modules/btoa/README.md:
--------------------------------------------------------------------------------
1 | btoa
2 | ===
3 |
4 | | [atob](https://git.coolaj86.com/coolaj86/atob.js)
5 | | **btoa**
6 | | [unibabel.js](https://git.coolaj86.com/coolaj86/unibabel.js)
7 | | Sponsored by [ppl](https://ppl.family)
8 |
9 | A port of the browser's `btoa` function.
10 |
11 | Uses `Buffer` to emulate the exact functionality of the browser's btoa
12 | (except that it supports some unicode that the browser may not).
13 |
14 | It turns binary data __to__ base64-encoded ascii.
15 |
16 | ```js
17 | (function () {
18 | "use strict";
19 |
20 | var btoa = require('btoa');
21 | var bin = "Hello, 世界";
22 | var b64 = btoa(bin);
23 |
24 | console.log(b64); // "SGVsbG8sIBZM"
25 | }());
26 | ```
27 |
28 | **Note**: Unicode may or may not be handled incorrectly.
29 | This module is intended to provide exact compatibility with the browser.
30 |
31 | Copyright and License
32 | ===
33 |
34 | Code copyright 2012-2018 AJ ONeal
35 |
36 | Dual-licensed MIT and Apache-2.0
37 |
38 | Docs copyright 2012-2018 AJ ONeal
39 |
40 | Docs released under [Creative Commons](https://git.coolaj86.com/coolaj86/btoa.js/blob/master/LICENSE.DOCS).
41 |
--------------------------------------------------------------------------------
/node_modules/btoa/bin/btoa.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | (function () {
3 | "use strict";
4 |
5 | var btoa = require('../index');
6 |
7 | console.log(btoa(process.argv[2]));
8 | }());
9 |
--------------------------------------------------------------------------------
/node_modules/btoa/index.js:
--------------------------------------------------------------------------------
1 | (function () {
2 | "use strict";
3 |
4 | function btoa(str) {
5 | var buffer;
6 |
7 | if (str instanceof Buffer) {
8 | buffer = str;
9 | } else {
10 | buffer = Buffer.from(str.toString(), 'binary');
11 | }
12 |
13 | return buffer.toString('base64');
14 | }
15 |
16 | module.exports = btoa;
17 | }());
18 |
--------------------------------------------------------------------------------
/node_modules/btoa/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "_from": "btoa",
3 | "_id": "btoa@1.2.1",
4 | "_inBundle": false,
5 | "_integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==",
6 | "_location": "/btoa",
7 | "_phantomChildren": {},
8 | "_requested": {
9 | "type": "tag",
10 | "registry": true,
11 | "raw": "btoa",
12 | "name": "btoa",
13 | "escapedName": "btoa",
14 | "rawSpec": "",
15 | "saveSpec": null,
16 | "fetchSpec": "latest"
17 | },
18 | "_requiredBy": [
19 | "#USER",
20 | "/"
21 | ],
22 | "_resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz",
23 | "_shasum": "01a9909f8b2c93f6bf680ba26131eb30f7fa3d73",
24 | "_spec": "btoa",
25 | "_where": "/opt/qewd",
26 | "author": {
27 | "name": "AJ ONeal",
28 | "email": "coolaj86@gmail.com",
29 | "url": "https://coolaj86.com"
30 | },
31 | "bin": {
32 | "btoa": "bin/btoa.js"
33 | },
34 | "bundleDependencies": false,
35 | "deprecated": false,
36 | "description": "btoa for Node.JS (it's a one-liner)",
37 | "engines": {
38 | "node": ">= 0.4.0"
39 | },
40 | "homepage": "https://git.coolaj86.com/coolaj86/btoa.js.git",
41 | "keywords": [
42 | "btoa",
43 | "browser"
44 | ],
45 | "license": "(MIT OR Apache-2.0)",
46 | "main": "index",
47 | "name": "btoa",
48 | "repository": {
49 | "type": "git",
50 | "url": "git://git.coolaj86.com/coolaj86/btoa.js.git"
51 | },
52 | "version": "1.2.1"
53 | }
54 |
--------------------------------------------------------------------------------
/node_modules/btoa/test.js:
--------------------------------------------------------------------------------
1 | /*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/
2 | (function () {
3 | "use strict";
4 |
5 | var btoa = require('./index')
6 | , encoded = "SGVsbG8sIBZM"
7 | , unencoded = "Hello, 世界"
8 | ;
9 |
10 | if (encoded !== btoa(unencoded)) {
11 | console.error('[FAIL]', encoded, btoa(unencoded));
12 | return;
13 | }
14 |
15 | console.log('[PASS] all tests pass');
16 | }());
17 |
--------------------------------------------------------------------------------
/node_modules/moment/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) JS Foundation and other contributors
2 |
3 | Permission is hereby granted, free of charge, to any person
4 | obtaining a copy of this software and associated documentation
5 | files (the "Software"), to deal in the Software without
6 | restriction, including without limitation the rights to use,
7 | copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the
9 | Software is furnished to do so, subject to the following
10 | conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/node_modules/moment/ender.js:
--------------------------------------------------------------------------------
1 | $.ender({ moment: require('moment') })
2 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/ar-dz.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var arDz = moment.defineLocale('ar-dz', {
12 | months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
13 | monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
14 | weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
15 | weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
16 | weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
17 | weekdaysParseExact : true,
18 | longDateFormat : {
19 | LT : 'HH:mm',
20 | LTS : 'HH:mm:ss',
21 | L : 'DD/MM/YYYY',
22 | LL : 'D MMMM YYYY',
23 | LLL : 'D MMMM YYYY HH:mm',
24 | LLLL : 'dddd D MMMM YYYY HH:mm'
25 | },
26 | calendar : {
27 | sameDay: '[اليوم على الساعة] LT',
28 | nextDay: '[غدا على الساعة] LT',
29 | nextWeek: 'dddd [على الساعة] LT',
30 | lastDay: '[أمس على الساعة] LT',
31 | lastWeek: 'dddd [على الساعة] LT',
32 | sameElse: 'L'
33 | },
34 | relativeTime : {
35 | future : 'في %s',
36 | past : 'منذ %s',
37 | s : 'ثوان',
38 | ss : '%d ثانية',
39 | m : 'دقيقة',
40 | mm : '%d دقائق',
41 | h : 'ساعة',
42 | hh : '%d ساعات',
43 | d : 'يوم',
44 | dd : '%d أيام',
45 | M : 'شهر',
46 | MM : '%d أشهر',
47 | y : 'سنة',
48 | yy : '%d سنوات'
49 | },
50 | week : {
51 | dow : 0, // Sunday is the first day of the week.
52 | doy : 4 // The week that contains Jan 4th is the first week of the year.
53 | }
54 | });
55 |
56 | return arDz;
57 |
58 | })));
59 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/ar-kw.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var arKw = moment.defineLocale('ar-kw', {
12 | months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
13 | monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
14 | weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
15 | weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
16 | weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
17 | weekdaysParseExact : true,
18 | longDateFormat : {
19 | LT : 'HH:mm',
20 | LTS : 'HH:mm:ss',
21 | L : 'DD/MM/YYYY',
22 | LL : 'D MMMM YYYY',
23 | LLL : 'D MMMM YYYY HH:mm',
24 | LLLL : 'dddd D MMMM YYYY HH:mm'
25 | },
26 | calendar : {
27 | sameDay: '[اليوم على الساعة] LT',
28 | nextDay: '[غدا على الساعة] LT',
29 | nextWeek: 'dddd [على الساعة] LT',
30 | lastDay: '[أمس على الساعة] LT',
31 | lastWeek: 'dddd [على الساعة] LT',
32 | sameElse: 'L'
33 | },
34 | relativeTime : {
35 | future : 'في %s',
36 | past : 'منذ %s',
37 | s : 'ثوان',
38 | ss : '%d ثانية',
39 | m : 'دقيقة',
40 | mm : '%d دقائق',
41 | h : 'ساعة',
42 | hh : '%d ساعات',
43 | d : 'يوم',
44 | dd : '%d أيام',
45 | M : 'شهر',
46 | MM : '%d أشهر',
47 | y : 'سنة',
48 | yy : '%d سنوات'
49 | },
50 | week : {
51 | dow : 0, // Sunday is the first day of the week.
52 | doy : 12 // The week that contains Jan 12th is the first week of the year.
53 | }
54 | });
55 |
56 | return arKw;
57 |
58 | })));
59 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/ar-ma.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var arMa = moment.defineLocale('ar-ma', {
12 | months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
13 | monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
14 | weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
15 | weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
16 | weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
17 | weekdaysParseExact : true,
18 | longDateFormat : {
19 | LT : 'HH:mm',
20 | LTS : 'HH:mm:ss',
21 | L : 'DD/MM/YYYY',
22 | LL : 'D MMMM YYYY',
23 | LLL : 'D MMMM YYYY HH:mm',
24 | LLLL : 'dddd D MMMM YYYY HH:mm'
25 | },
26 | calendar : {
27 | sameDay: '[اليوم على الساعة] LT',
28 | nextDay: '[غدا على الساعة] LT',
29 | nextWeek: 'dddd [على الساعة] LT',
30 | lastDay: '[أمس على الساعة] LT',
31 | lastWeek: 'dddd [على الساعة] LT',
32 | sameElse: 'L'
33 | },
34 | relativeTime : {
35 | future : 'في %s',
36 | past : 'منذ %s',
37 | s : 'ثوان',
38 | ss : '%d ثانية',
39 | m : 'دقيقة',
40 | mm : '%d دقائق',
41 | h : 'ساعة',
42 | hh : '%d ساعات',
43 | d : 'يوم',
44 | dd : '%d أيام',
45 | M : 'شهر',
46 | MM : '%d أشهر',
47 | y : 'سنة',
48 | yy : '%d سنوات'
49 | },
50 | week : {
51 | dow : 6, // Saturday is the first day of the week.
52 | doy : 12 // The week that contains Jan 12th is the first week of the year.
53 | }
54 | });
55 |
56 | return arMa;
57 |
58 | })));
59 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/ar-tn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var arTn = moment.defineLocale('ar-tn', {
12 | months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
13 | monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
14 | weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
15 | weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
16 | weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
17 | weekdaysParseExact : true,
18 | longDateFormat: {
19 | LT: 'HH:mm',
20 | LTS: 'HH:mm:ss',
21 | L: 'DD/MM/YYYY',
22 | LL: 'D MMMM YYYY',
23 | LLL: 'D MMMM YYYY HH:mm',
24 | LLLL: 'dddd D MMMM YYYY HH:mm'
25 | },
26 | calendar: {
27 | sameDay: '[اليوم على الساعة] LT',
28 | nextDay: '[غدا على الساعة] LT',
29 | nextWeek: 'dddd [على الساعة] LT',
30 | lastDay: '[أمس على الساعة] LT',
31 | lastWeek: 'dddd [على الساعة] LT',
32 | sameElse: 'L'
33 | },
34 | relativeTime: {
35 | future: 'في %s',
36 | past: 'منذ %s',
37 | s: 'ثوان',
38 | ss : '%d ثانية',
39 | m: 'دقيقة',
40 | mm: '%d دقائق',
41 | h: 'ساعة',
42 | hh: '%d ساعات',
43 | d: 'يوم',
44 | dd: '%d أيام',
45 | M: 'شهر',
46 | MM: '%d أشهر',
47 | y: 'سنة',
48 | yy: '%d سنوات'
49 | },
50 | week: {
51 | dow: 1, // Monday is the first day of the week.
52 | doy: 4 // The week that contains Jan 4th is the first week of the year.
53 | }
54 | });
55 |
56 | return arTn;
57 |
58 | })));
59 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/bm.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var bm = moment.defineLocale('bm', {
12 | months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
13 | monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
14 | weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
15 | weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
16 | weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
17 | longDateFormat : {
18 | LT : 'HH:mm',
19 | LTS : 'HH:mm:ss',
20 | L : 'DD/MM/YYYY',
21 | LL : 'MMMM [tile] D [san] YYYY',
22 | LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
23 | LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
24 | },
25 | calendar : {
26 | sameDay : '[Bi lɛrɛ] LT',
27 | nextDay : '[Sini lɛrɛ] LT',
28 | nextWeek : 'dddd [don lɛrɛ] LT',
29 | lastDay : '[Kunu lɛrɛ] LT',
30 | lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
31 | sameElse : 'L'
32 | },
33 | relativeTime : {
34 | future : '%s kɔnɔ',
35 | past : 'a bɛ %s bɔ',
36 | s : 'sanga dama dama',
37 | ss : 'sekondi %d',
38 | m : 'miniti kelen',
39 | mm : 'miniti %d',
40 | h : 'lɛrɛ kelen',
41 | hh : 'lɛrɛ %d',
42 | d : 'tile kelen',
43 | dd : 'tile %d',
44 | M : 'kalo kelen',
45 | MM : 'kalo %d',
46 | y : 'san kelen',
47 | yy : 'san %d'
48 | },
49 | week : {
50 | dow : 1, // Monday is the first day of the week.
51 | doy : 4 // The week that contains Jan 4th is the first week of the year.
52 | }
53 | });
54 |
55 | return bm;
56 |
57 | })));
58 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/da.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var da = moment.defineLocale('da', {
12 | months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
13 | monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
14 | weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
15 | weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
16 | weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
17 | longDateFormat : {
18 | LT : 'HH:mm',
19 | LTS : 'HH:mm:ss',
20 | L : 'DD.MM.YYYY',
21 | LL : 'D. MMMM YYYY',
22 | LLL : 'D. MMMM YYYY HH:mm',
23 | LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
24 | },
25 | calendar : {
26 | sameDay : '[i dag kl.] LT',
27 | nextDay : '[i morgen kl.] LT',
28 | nextWeek : 'på dddd [kl.] LT',
29 | lastDay : '[i går kl.] LT',
30 | lastWeek : '[i] dddd[s kl.] LT',
31 | sameElse : 'L'
32 | },
33 | relativeTime : {
34 | future : 'om %s',
35 | past : '%s siden',
36 | s : 'få sekunder',
37 | ss : '%d sekunder',
38 | m : 'et minut',
39 | mm : '%d minutter',
40 | h : 'en time',
41 | hh : '%d timer',
42 | d : 'en dag',
43 | dd : '%d dage',
44 | M : 'en måned',
45 | MM : '%d måneder',
46 | y : 'et år',
47 | yy : '%d år'
48 | },
49 | dayOfMonthOrdinalParse: /\d{1,2}\./,
50 | ordinal : '%d.',
51 | week : {
52 | dow : 1, // Monday is the first day of the week.
53 | doy : 4 // The week that contains Jan 4th is the first week of the year.
54 | }
55 | });
56 |
57 | return da;
58 |
59 | })));
60 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/fo.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var fo = moment.defineLocale('fo', {
12 | months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
13 | monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
14 | weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
15 | weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
16 | weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
17 | longDateFormat : {
18 | LT : 'HH:mm',
19 | LTS : 'HH:mm:ss',
20 | L : 'DD/MM/YYYY',
21 | LL : 'D MMMM YYYY',
22 | LLL : 'D MMMM YYYY HH:mm',
23 | LLLL : 'dddd D. MMMM, YYYY HH:mm'
24 | },
25 | calendar : {
26 | sameDay : '[Í dag kl.] LT',
27 | nextDay : '[Í morgin kl.] LT',
28 | nextWeek : 'dddd [kl.] LT',
29 | lastDay : '[Í gjár kl.] LT',
30 | lastWeek : '[síðstu] dddd [kl] LT',
31 | sameElse : 'L'
32 | },
33 | relativeTime : {
34 | future : 'um %s',
35 | past : '%s síðani',
36 | s : 'fá sekund',
37 | ss : '%d sekundir',
38 | m : 'ein minuttur',
39 | mm : '%d minuttir',
40 | h : 'ein tími',
41 | hh : '%d tímar',
42 | d : 'ein dagur',
43 | dd : '%d dagar',
44 | M : 'ein mánaður',
45 | MM : '%d mánaðir',
46 | y : 'eitt ár',
47 | yy : '%d ár'
48 | },
49 | dayOfMonthOrdinalParse: /\d{1,2}\./,
50 | ordinal : '%d.',
51 | week : {
52 | dow : 1, // Monday is the first day of the week.
53 | doy : 4 // The week that contains Jan 4th is the first week of the year.
54 | }
55 | });
56 |
57 | return fo;
58 |
59 | })));
60 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/mt.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var mt = moment.defineLocale('mt', {
12 | months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
13 | monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
14 | weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
15 | weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
16 | weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
17 | longDateFormat : {
18 | LT : 'HH:mm',
19 | LTS : 'HH:mm:ss',
20 | L : 'DD/MM/YYYY',
21 | LL : 'D MMMM YYYY',
22 | LLL : 'D MMMM YYYY HH:mm',
23 | LLLL : 'dddd, D MMMM YYYY HH:mm'
24 | },
25 | calendar : {
26 | sameDay : '[Illum fil-]LT',
27 | nextDay : '[Għada fil-]LT',
28 | nextWeek : 'dddd [fil-]LT',
29 | lastDay : '[Il-bieraħ fil-]LT',
30 | lastWeek : 'dddd [li għadda] [fil-]LT',
31 | sameElse : 'L'
32 | },
33 | relativeTime : {
34 | future : 'f’ %s',
35 | past : '%s ilu',
36 | s : 'ftit sekondi',
37 | ss : '%d sekondi',
38 | m : 'minuta',
39 | mm : '%d minuti',
40 | h : 'siegħa',
41 | hh : '%d siegħat',
42 | d : 'ġurnata',
43 | dd : '%d ġranet',
44 | M : 'xahar',
45 | MM : '%d xhur',
46 | y : 'sena',
47 | yy : '%d sni'
48 | },
49 | dayOfMonthOrdinalParse : /\d{1,2}º/,
50 | ordinal: '%dº',
51 | week : {
52 | dow : 1, // Monday is the first day of the week.
53 | doy : 4 // The week that contains Jan 4th is the first week of the year.
54 | }
55 | });
56 |
57 | return mt;
58 |
59 | })));
60 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/nn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var nn = moment.defineLocale('nn', {
12 | months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
13 | monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
14 | weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
15 | weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
16 | weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
17 | longDateFormat : {
18 | LT : 'HH:mm',
19 | LTS : 'HH:mm:ss',
20 | L : 'DD.MM.YYYY',
21 | LL : 'D. MMMM YYYY',
22 | LLL : 'D. MMMM YYYY [kl.] H:mm',
23 | LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
24 | },
25 | calendar : {
26 | sameDay: '[I dag klokka] LT',
27 | nextDay: '[I morgon klokka] LT',
28 | nextWeek: 'dddd [klokka] LT',
29 | lastDay: '[I går klokka] LT',
30 | lastWeek: '[Føregåande] dddd [klokka] LT',
31 | sameElse: 'L'
32 | },
33 | relativeTime : {
34 | future : 'om %s',
35 | past : '%s sidan',
36 | s : 'nokre sekund',
37 | ss : '%d sekund',
38 | m : 'eit minutt',
39 | mm : '%d minutt',
40 | h : 'ein time',
41 | hh : '%d timar',
42 | d : 'ein dag',
43 | dd : '%d dagar',
44 | M : 'ein månad',
45 | MM : '%d månader',
46 | y : 'eit år',
47 | yy : '%d år'
48 | },
49 | dayOfMonthOrdinalParse: /\d{1,2}\./,
50 | ordinal : '%d.',
51 | week : {
52 | dow : 1, // Monday is the first day of the week.
53 | doy : 4 // The week that contains Jan 4th is the first week of the year.
54 | }
55 | });
56 |
57 | return nn;
58 |
59 | })));
60 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/sw.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var sw = moment.defineLocale('sw', {
12 | months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
13 | monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
14 | weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
15 | weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
16 | weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
17 | weekdaysParseExact : true,
18 | longDateFormat : {
19 | LT : 'HH:mm',
20 | LTS : 'HH:mm:ss',
21 | L : 'DD.MM.YYYY',
22 | LL : 'D MMMM YYYY',
23 | LLL : 'D MMMM YYYY HH:mm',
24 | LLLL : 'dddd, D MMMM YYYY HH:mm'
25 | },
26 | calendar : {
27 | sameDay : '[leo saa] LT',
28 | nextDay : '[kesho saa] LT',
29 | nextWeek : '[wiki ijayo] dddd [saat] LT',
30 | lastDay : '[jana] LT',
31 | lastWeek : '[wiki iliyopita] dddd [saat] LT',
32 | sameElse : 'L'
33 | },
34 | relativeTime : {
35 | future : '%s baadaye',
36 | past : 'tokea %s',
37 | s : 'hivi punde',
38 | ss : 'sekunde %d',
39 | m : 'dakika moja',
40 | mm : 'dakika %d',
41 | h : 'saa limoja',
42 | hh : 'masaa %d',
43 | d : 'siku moja',
44 | dd : 'masiku %d',
45 | M : 'mwezi mmoja',
46 | MM : 'miezi %d',
47 | y : 'mwaka mmoja',
48 | yy : 'miaka %d'
49 | },
50 | week : {
51 | dow : 1, // Monday is the first day of the week.
52 | doy : 7 // The week that contains Jan 7th is the first week of the year.
53 | }
54 | });
55 |
56 | return sw;
57 |
58 | })));
59 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/tzm-latn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var tzmLatn = moment.defineLocale('tzm-latn', {
12 | months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
13 | monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
14 | weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
15 | weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
16 | weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
17 | longDateFormat : {
18 | LT : 'HH:mm',
19 | LTS : 'HH:mm:ss',
20 | L : 'DD/MM/YYYY',
21 | LL : 'D MMMM YYYY',
22 | LLL : 'D MMMM YYYY HH:mm',
23 | LLLL : 'dddd D MMMM YYYY HH:mm'
24 | },
25 | calendar : {
26 | sameDay: '[asdkh g] LT',
27 | nextDay: '[aska g] LT',
28 | nextWeek: 'dddd [g] LT',
29 | lastDay: '[assant g] LT',
30 | lastWeek: 'dddd [g] LT',
31 | sameElse: 'L'
32 | },
33 | relativeTime : {
34 | future : 'dadkh s yan %s',
35 | past : 'yan %s',
36 | s : 'imik',
37 | ss : '%d imik',
38 | m : 'minuḍ',
39 | mm : '%d minuḍ',
40 | h : 'saɛa',
41 | hh : '%d tassaɛin',
42 | d : 'ass',
43 | dd : '%d ossan',
44 | M : 'ayowr',
45 | MM : '%d iyyirn',
46 | y : 'asgas',
47 | yy : '%d isgasn'
48 | },
49 | week : {
50 | dow : 6, // Saturday is the first day of the week.
51 | doy : 12 // The week that contains Jan 12th is the first week of the year.
52 | }
53 | });
54 |
55 | return tzmLatn;
56 |
57 | })));
58 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/tzm.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var tzm = moment.defineLocale('tzm', {
12 | months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
13 | monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
14 | weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
15 | weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
16 | weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
17 | longDateFormat : {
18 | LT : 'HH:mm',
19 | LTS: 'HH:mm:ss',
20 | L : 'DD/MM/YYYY',
21 | LL : 'D MMMM YYYY',
22 | LLL : 'D MMMM YYYY HH:mm',
23 | LLLL : 'dddd D MMMM YYYY HH:mm'
24 | },
25 | calendar : {
26 | sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
27 | nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
28 | nextWeek: 'dddd [ⴴ] LT',
29 | lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
30 | lastWeek: 'dddd [ⴴ] LT',
31 | sameElse: 'L'
32 | },
33 | relativeTime : {
34 | future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
35 | past : 'ⵢⴰⵏ %s',
36 | s : 'ⵉⵎⵉⴽ',
37 | ss : '%d ⵉⵎⵉⴽ',
38 | m : 'ⵎⵉⵏⵓⴺ',
39 | mm : '%d ⵎⵉⵏⵓⴺ',
40 | h : 'ⵙⴰⵄⴰ',
41 | hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
42 | d : 'ⴰⵙⵙ',
43 | dd : '%d oⵙⵙⴰⵏ',
44 | M : 'ⴰⵢoⵓⵔ',
45 | MM : '%d ⵉⵢⵢⵉⵔⵏ',
46 | y : 'ⴰⵙⴳⴰⵙ',
47 | yy : '%d ⵉⵙⴳⴰⵙⵏ'
48 | },
49 | week : {
50 | dow : 6, // Saturday is the first day of the week.
51 | doy : 12 // The week that contains Jan 12th is the first week of the year.
52 | }
53 | });
54 |
55 | return tzm;
56 |
57 | })));
58 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/uz-latn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var uzLatn = moment.defineLocale('uz-latn', {
12 | months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
13 | monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
14 | weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
15 | weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
16 | weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
17 | longDateFormat : {
18 | LT : 'HH:mm',
19 | LTS : 'HH:mm:ss',
20 | L : 'DD/MM/YYYY',
21 | LL : 'D MMMM YYYY',
22 | LLL : 'D MMMM YYYY HH:mm',
23 | LLLL : 'D MMMM YYYY, dddd HH:mm'
24 | },
25 | calendar : {
26 | sameDay : '[Bugun soat] LT [da]',
27 | nextDay : '[Ertaga] LT [da]',
28 | nextWeek : 'dddd [kuni soat] LT [da]',
29 | lastDay : '[Kecha soat] LT [da]',
30 | lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
31 | sameElse : 'L'
32 | },
33 | relativeTime : {
34 | future : 'Yaqin %s ichida',
35 | past : 'Bir necha %s oldin',
36 | s : 'soniya',
37 | ss : '%d soniya',
38 | m : 'bir daqiqa',
39 | mm : '%d daqiqa',
40 | h : 'bir soat',
41 | hh : '%d soat',
42 | d : 'bir kun',
43 | dd : '%d kun',
44 | M : 'bir oy',
45 | MM : '%d oy',
46 | y : 'bir yil',
47 | yy : '%d yil'
48 | },
49 | week : {
50 | dow : 1, // Monday is the first day of the week.
51 | doy : 7 // The week that contains Jan 7th is the first week of the year.
52 | }
53 | });
54 |
55 | return uzLatn;
56 |
57 | })));
58 |
--------------------------------------------------------------------------------
/node_modules/moment/locale/uz.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 |
3 | ;(function (global, factory) {
4 | typeof exports === 'object' && typeof module !== 'undefined'
5 | && typeof require === 'function' ? factory(require('../moment')) :
6 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 | factory(global.moment)
8 | }(this, (function (moment) { 'use strict';
9 |
10 |
11 | var uz = moment.defineLocale('uz', {
12 | months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
13 | monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
14 | weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
15 | weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
16 | weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
17 | longDateFormat : {
18 | LT : 'HH:mm',
19 | LTS : 'HH:mm:ss',
20 | L : 'DD/MM/YYYY',
21 | LL : 'D MMMM YYYY',
22 | LLL : 'D MMMM YYYY HH:mm',
23 | LLLL : 'D MMMM YYYY, dddd HH:mm'
24 | },
25 | calendar : {
26 | sameDay : '[Бугун соат] LT [да]',
27 | nextDay : '[Эртага] LT [да]',
28 | nextWeek : 'dddd [куни соат] LT [да]',
29 | lastDay : '[Кеча соат] LT [да]',
30 | lastWeek : '[Утган] dddd [куни соат] LT [да]',
31 | sameElse : 'L'
32 | },
33 | relativeTime : {
34 | future : 'Якин %s ичида',
35 | past : 'Бир неча %s олдин',
36 | s : 'фурсат',
37 | ss : '%d фурсат',
38 | m : 'бир дакика',
39 | mm : '%d дакика',
40 | h : 'бир соат',
41 | hh : '%d соат',
42 | d : 'бир кун',
43 | dd : '%d кун',
44 | M : 'бир ой',
45 | MM : '%d ой',
46 | y : 'бир йил',
47 | yy : '%d йил'
48 | },
49 | week : {
50 | dow : 1, // Monday is the first day of the week.
51 | doy : 7 // The week that contains Jan 4th is the first week of the year.
52 | }
53 | });
54 |
55 | return uz;
56 |
57 | })));
58 |
--------------------------------------------------------------------------------
/node_modules/moment/package.js:
--------------------------------------------------------------------------------
1 | var profile = {
2 | resourceTags: {
3 | ignore: function(filename, mid){
4 | // only include moment/moment
5 | return mid != "moment/moment";
6 | },
7 | amd: function(filename, mid){
8 | return /\.js$/.test(filename);
9 | }
10 | }
11 | };
12 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/create/check-overflow.js:
--------------------------------------------------------------------------------
1 | import { daysInMonth } from '../units/month';
2 | import { YEAR, MONTH, DATE, HOUR, MINUTE, SECOND, MILLISECOND, WEEK, WEEKDAY } from '../units/constants';
3 | import getParsingFlags from '../create/parsing-flags';
4 |
5 | export default function checkOverflow (m) {
6 | var overflow;
7 | var a = m._a;
8 |
9 | if (a && getParsingFlags(m).overflow === -2) {
10 | overflow =
11 | a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
12 | a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
13 | a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
14 | a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
15 | a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
16 | a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
17 | -1;
18 |
19 | if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
20 | overflow = DATE;
21 | }
22 | if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
23 | overflow = WEEK;
24 | }
25 | if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
26 | overflow = WEEKDAY;
27 | }
28 |
29 | getParsingFlags(m).overflow = overflow;
30 | }
31 |
32 | return m;
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/create/date-from-array.js:
--------------------------------------------------------------------------------
1 | export function createDate (y, m, d, h, M, s, ms) {
2 | // can't just apply() to create a date:
3 | // https://stackoverflow.com/q/181348
4 | var date;
5 | // the date constructor remaps years 0-99 to 1900-1999
6 | if (y < 100 && y >= 0) {
7 | // preserve leap years using a full 400 year cycle, then reset
8 | date = new Date(y + 400, m, d, h, M, s, ms);
9 | if (isFinite(date.getFullYear())) {
10 | date.setFullYear(y);
11 | }
12 | } else {
13 | date = new Date(y, m, d, h, M, s, ms);
14 | }
15 |
16 | return date;
17 | }
18 |
19 | export function createUTCDate (y) {
20 | var date;
21 | // the Date.UTC function remaps years 0-99 to 1900-1999
22 | if (y < 100 && y >= 0) {
23 | var args = Array.prototype.slice.call(arguments);
24 | // preserve leap years using a full 400 year cycle, then reset
25 | args[0] = y + 400;
26 | date = new Date(Date.UTC.apply(null, args));
27 | if (isFinite(date.getUTCFullYear())) {
28 | date.setUTCFullYear(y);
29 | }
30 | } else {
31 | date = new Date(Date.UTC.apply(null, arguments));
32 | }
33 |
34 | return date;
35 | }
36 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/create/from-object.js:
--------------------------------------------------------------------------------
1 | import { normalizeObjectUnits } from '../units/aliases';
2 | import { configFromArray } from './from-array';
3 | import map from '../utils/map';
4 |
5 | export function configFromObject(config) {
6 | if (config._d) {
7 | return;
8 | }
9 |
10 | var i = normalizeObjectUnits(config._i);
11 | config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
12 | return obj && parseInt(obj, 10);
13 | });
14 |
15 | configFromArray(config);
16 | }
17 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/create/from-string-and-array.js:
--------------------------------------------------------------------------------
1 | import { copyConfig } from '../moment/constructor';
2 | import { configFromStringAndFormat } from './from-string-and-format';
3 | import getParsingFlags from './parsing-flags';
4 | import { isValid } from './valid';
5 | import extend from '../utils/extend';
6 |
7 | // date from string and array of format strings
8 | export function configFromStringAndArray(config) {
9 | var tempConfig,
10 | bestMoment,
11 |
12 | scoreToBeat,
13 | i,
14 | currentScore;
15 |
16 | if (config._f.length === 0) {
17 | getParsingFlags(config).invalidFormat = true;
18 | config._d = new Date(NaN);
19 | return;
20 | }
21 |
22 | for (i = 0; i < config._f.length; i++) {
23 | currentScore = 0;
24 | tempConfig = copyConfig({}, config);
25 | if (config._useUTC != null) {
26 | tempConfig._useUTC = config._useUTC;
27 | }
28 | tempConfig._f = config._f[i];
29 | configFromStringAndFormat(tempConfig);
30 |
31 | if (!isValid(tempConfig)) {
32 | continue;
33 | }
34 |
35 | // if there is any input that was not parsed add a penalty for that format
36 | currentScore += getParsingFlags(tempConfig).charsLeftOver;
37 |
38 | //or tokens
39 | currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
40 |
41 | getParsingFlags(tempConfig).score = currentScore;
42 |
43 | if (scoreToBeat == null || currentScore < scoreToBeat) {
44 | scoreToBeat = currentScore;
45 | bestMoment = tempConfig;
46 | }
47 | }
48 |
49 | extend(config, bestMoment || tempConfig);
50 | }
51 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/create/local.js:
--------------------------------------------------------------------------------
1 | import { createLocalOrUTC } from './from-anything';
2 |
3 | export function createLocal (input, format, locale, strict) {
4 | return createLocalOrUTC(input, format, locale, strict, false);
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/create/parsing-flags.js:
--------------------------------------------------------------------------------
1 | function defaultParsingFlags() {
2 | // We need to deep clone this object.
3 | return {
4 | empty : false,
5 | unusedTokens : [],
6 | unusedInput : [],
7 | overflow : -2,
8 | charsLeftOver : 0,
9 | nullInput : false,
10 | invalidMonth : null,
11 | invalidFormat : false,
12 | userInvalidated : false,
13 | iso : false,
14 | parsedDateParts : [],
15 | meridiem : null,
16 | rfc2822 : false,
17 | weekdayMismatch : false
18 | };
19 | }
20 |
21 | export default function getParsingFlags(m) {
22 | if (m._pf == null) {
23 | m._pf = defaultParsingFlags();
24 | }
25 | return m._pf;
26 | }
27 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/create/utc.js:
--------------------------------------------------------------------------------
1 | import { createLocalOrUTC } from './from-anything';
2 |
3 | export function createUTC (input, format, locale, strict) {
4 | return createLocalOrUTC(input, format, locale, strict, true).utc();
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/create/valid.js:
--------------------------------------------------------------------------------
1 | import extend from '../utils/extend';
2 | import { createUTC } from './utc';
3 | import getParsingFlags from '../create/parsing-flags';
4 | import some from '../utils/some';
5 |
6 | export function isValid(m) {
7 | if (m._isValid == null) {
8 | var flags = getParsingFlags(m);
9 | var parsedParts = some.call(flags.parsedDateParts, function (i) {
10 | return i != null;
11 | });
12 | var isNowValid = !isNaN(m._d.getTime()) &&
13 | flags.overflow < 0 &&
14 | !flags.empty &&
15 | !flags.invalidMonth &&
16 | !flags.invalidWeekday &&
17 | !flags.weekdayMismatch &&
18 | !flags.nullInput &&
19 | !flags.invalidFormat &&
20 | !flags.userInvalidated &&
21 | (!flags.meridiem || (flags.meridiem && parsedParts));
22 |
23 | if (m._strict) {
24 | isNowValid = isNowValid &&
25 | flags.charsLeftOver === 0 &&
26 | flags.unusedTokens.length === 0 &&
27 | flags.bigHour === undefined;
28 | }
29 |
30 | if (Object.isFrozen == null || !Object.isFrozen(m)) {
31 | m._isValid = isNowValid;
32 | }
33 | else {
34 | return isNowValid;
35 | }
36 | }
37 | return m._isValid;
38 | }
39 |
40 | export function createInvalid (flags) {
41 | var m = createUTC(NaN);
42 | if (flags != null) {
43 | extend(getParsingFlags(m), flags);
44 | }
45 | else {
46 | getParsingFlags(m).userInvalidated = true;
47 | }
48 |
49 | return m;
50 | }
51 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/duration/abs.js:
--------------------------------------------------------------------------------
1 | var mathAbs = Math.abs;
2 |
3 | export function abs () {
4 | var data = this._data;
5 |
6 | this._milliseconds = mathAbs(this._milliseconds);
7 | this._days = mathAbs(this._days);
8 | this._months = mathAbs(this._months);
9 |
10 | data.milliseconds = mathAbs(data.milliseconds);
11 | data.seconds = mathAbs(data.seconds);
12 | data.minutes = mathAbs(data.minutes);
13 | data.hours = mathAbs(data.hours);
14 | data.months = mathAbs(data.months);
15 | data.years = mathAbs(data.years);
16 |
17 | return this;
18 | }
19 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/duration/add-subtract.js:
--------------------------------------------------------------------------------
1 | import { createDuration } from './create';
2 |
3 | function addSubtract (duration, input, value, direction) {
4 | var other = createDuration(input, value);
5 |
6 | duration._milliseconds += direction * other._milliseconds;
7 | duration._days += direction * other._days;
8 | duration._months += direction * other._months;
9 |
10 | return duration._bubble();
11 | }
12 |
13 | // supports only 2.0-style add(1, 's') or add(duration)
14 | export function add (input, value) {
15 | return addSubtract(this, input, value, 1);
16 | }
17 |
18 | // supports only 2.0-style subtract(1, 's') or subtract(duration)
19 | export function subtract (input, value) {
20 | return addSubtract(this, input, value, -1);
21 | }
22 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/duration/bubble.js:
--------------------------------------------------------------------------------
1 | import absFloor from '../utils/abs-floor';
2 | import absCeil from '../utils/abs-ceil';
3 | import { createUTCDate } from '../create/date-from-array';
4 |
5 | export function bubble () {
6 | var milliseconds = this._milliseconds;
7 | var days = this._days;
8 | var months = this._months;
9 | var data = this._data;
10 | var seconds, minutes, hours, years, monthsFromDays;
11 |
12 | // if we have a mix of positive and negative values, bubble down first
13 | // check: https://github.com/moment/moment/issues/2166
14 | if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
15 | (milliseconds <= 0 && days <= 0 && months <= 0))) {
16 | milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
17 | days = 0;
18 | months = 0;
19 | }
20 |
21 | // The following code bubbles up values, see the tests for
22 | // examples of what that means.
23 | data.milliseconds = milliseconds % 1000;
24 |
25 | seconds = absFloor(milliseconds / 1000);
26 | data.seconds = seconds % 60;
27 |
28 | minutes = absFloor(seconds / 60);
29 | data.minutes = minutes % 60;
30 |
31 | hours = absFloor(minutes / 60);
32 | data.hours = hours % 24;
33 |
34 | days += absFloor(hours / 24);
35 |
36 | // convert days to months
37 | monthsFromDays = absFloor(daysToMonths(days));
38 | months += monthsFromDays;
39 | days -= absCeil(monthsToDays(monthsFromDays));
40 |
41 | // 12 months -> 1 year
42 | years = absFloor(months / 12);
43 | months %= 12;
44 |
45 | data.days = days;
46 | data.months = months;
47 | data.years = years;
48 |
49 | return this;
50 | }
51 |
52 | export function daysToMonths (days) {
53 | // 400 years have 146097 days (taking into account leap year rules)
54 | // 400 years have 12 months === 4800
55 | return days * 4800 / 146097;
56 | }
57 |
58 | export function monthsToDays (months) {
59 | // the reverse of daysToMonths
60 | return months * 146097 / 4800;
61 | }
62 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/duration/clone.js:
--------------------------------------------------------------------------------
1 | import { createDuration } from './create';
2 |
3 | export function clone () {
4 | return createDuration(this);
5 | }
6 |
7 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/duration/constructor.js:
--------------------------------------------------------------------------------
1 | import { normalizeObjectUnits } from '../units/aliases';
2 | import { getLocale } from '../locale/locales';
3 | import isDurationValid from './valid.js';
4 |
5 | export function Duration (duration) {
6 | var normalizedInput = normalizeObjectUnits(duration),
7 | years = normalizedInput.year || 0,
8 | quarters = normalizedInput.quarter || 0,
9 | months = normalizedInput.month || 0,
10 | weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
11 | days = normalizedInput.day || 0,
12 | hours = normalizedInput.hour || 0,
13 | minutes = normalizedInput.minute || 0,
14 | seconds = normalizedInput.second || 0,
15 | milliseconds = normalizedInput.millisecond || 0;
16 |
17 | this._isValid = isDurationValid(normalizedInput);
18 |
19 | // representation for dateAddRemove
20 | this._milliseconds = +milliseconds +
21 | seconds * 1e3 + // 1000
22 | minutes * 6e4 + // 1000 * 60
23 | hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
24 | // Because of dateAddRemove treats 24 hours as different from a
25 | // day when working around DST, we need to store them separately
26 | this._days = +days +
27 | weeks * 7;
28 | // It is impossible to translate months into days without knowing
29 | // which months you are are talking about, so we have to store
30 | // it separately.
31 | this._months = +months +
32 | quarters * 3 +
33 | years * 12;
34 |
35 | this._data = {};
36 |
37 | this._locale = getLocale();
38 |
39 | this._bubble();
40 | }
41 |
42 | export function isDuration (obj) {
43 | return obj instanceof Duration;
44 | }
45 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/duration/duration.js:
--------------------------------------------------------------------------------
1 | // Side effect imports
2 | import './prototype';
3 |
4 | import { createDuration } from './create';
5 | import { isDuration } from './constructor';
6 | import {
7 | getSetRelativeTimeRounding,
8 | getSetRelativeTimeThreshold
9 | } from './humanize';
10 |
11 | export {
12 | createDuration,
13 | isDuration,
14 | getSetRelativeTimeRounding,
15 | getSetRelativeTimeThreshold
16 | };
17 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/duration/get.js:
--------------------------------------------------------------------------------
1 | import { normalizeUnits } from '../units/aliases';
2 | import absFloor from '../utils/abs-floor';
3 |
4 | export function get (units) {
5 | units = normalizeUnits(units);
6 | return this.isValid() ? this[units + 's']() : NaN;
7 | }
8 |
9 | function makeGetter(name) {
10 | return function () {
11 | return this.isValid() ? this._data[name] : NaN;
12 | };
13 | }
14 |
15 | export var milliseconds = makeGetter('milliseconds');
16 | export var seconds = makeGetter('seconds');
17 | export var minutes = makeGetter('minutes');
18 | export var hours = makeGetter('hours');
19 | export var days = makeGetter('days');
20 | export var months = makeGetter('months');
21 | export var years = makeGetter('years');
22 |
23 | export function weeks () {
24 | return absFloor(this.days() / 7);
25 | }
26 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/duration/iso-string.js:
--------------------------------------------------------------------------------
1 | import absFloor from '../utils/abs-floor';
2 | var abs = Math.abs;
3 |
4 | function sign(x) {
5 | return ((x > 0) - (x < 0)) || +x;
6 | }
7 |
8 | export function toISOString() {
9 | // for ISO strings we do not use the normal bubbling rules:
10 | // * milliseconds bubble up until they become hours
11 | // * days do not bubble at all
12 | // * months bubble up until they become years
13 | // This is because there is no context-free conversion between hours and days
14 | // (think of clock changes)
15 | // and also not between days and months (28-31 days per month)
16 | if (!this.isValid()) {
17 | return this.localeData().invalidDate();
18 | }
19 |
20 | var seconds = abs(this._milliseconds) / 1000;
21 | var days = abs(this._days);
22 | var months = abs(this._months);
23 | var minutes, hours, years;
24 |
25 | // 3600 seconds -> 60 minutes -> 1 hour
26 | minutes = absFloor(seconds / 60);
27 | hours = absFloor(minutes / 60);
28 | seconds %= 60;
29 | minutes %= 60;
30 |
31 | // 12 months -> 1 year
32 | years = absFloor(months / 12);
33 | months %= 12;
34 |
35 |
36 | // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
37 | var Y = years;
38 | var M = months;
39 | var D = days;
40 | var h = hours;
41 | var m = minutes;
42 | var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
43 | var total = this.asSeconds();
44 |
45 | if (!total) {
46 | // this is the same as C#'s (Noda) and python (isodate)...
47 | // but not other JS (goog.date)
48 | return 'P0D';
49 | }
50 |
51 | var totalSign = total < 0 ? '-' : '';
52 | var ymSign = sign(this._months) !== sign(total) ? '-' : '';
53 | var daysSign = sign(this._days) !== sign(total) ? '-' : '';
54 | var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
55 |
56 | return totalSign + 'P' +
57 | (Y ? ymSign + Y + 'Y' : '') +
58 | (M ? ymSign + M + 'M' : '') +
59 | (D ? daysSign + D + 'D' : '') +
60 | ((h || m || s) ? 'T' : '') +
61 | (h ? hmsSign + h + 'H' : '') +
62 | (m ? hmsSign + m + 'M' : '') +
63 | (s ? hmsSign + s + 'S' : '');
64 | }
65 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/duration/prototype.js:
--------------------------------------------------------------------------------
1 | import { Duration } from './constructor';
2 |
3 | var proto = Duration.prototype;
4 |
5 | import { abs } from './abs';
6 | import { add, subtract } from './add-subtract';
7 | import { as, asMilliseconds, asSeconds, asMinutes, asHours, asDays, asWeeks, asMonths, asQuarters, asYears, valueOf } from './as';
8 | import { bubble } from './bubble';
9 | import { clone } from './clone';
10 | import { get, milliseconds, seconds, minutes, hours, days, months, years, weeks } from './get';
11 | import { humanize } from './humanize';
12 | import { toISOString } from './iso-string';
13 | import { lang, locale, localeData } from '../moment/locale';
14 | import { isValid } from './valid';
15 |
16 | proto.isValid = isValid;
17 | proto.abs = abs;
18 | proto.add = add;
19 | proto.subtract = subtract;
20 | proto.as = as;
21 | proto.asMilliseconds = asMilliseconds;
22 | proto.asSeconds = asSeconds;
23 | proto.asMinutes = asMinutes;
24 | proto.asHours = asHours;
25 | proto.asDays = asDays;
26 | proto.asWeeks = asWeeks;
27 | proto.asMonths = asMonths;
28 | proto.asQuarters = asQuarters;
29 | proto.asYears = asYears;
30 | proto.valueOf = valueOf;
31 | proto._bubble = bubble;
32 | proto.clone = clone;
33 | proto.get = get;
34 | proto.milliseconds = milliseconds;
35 | proto.seconds = seconds;
36 | proto.minutes = minutes;
37 | proto.hours = hours;
38 | proto.days = days;
39 | proto.weeks = weeks;
40 | proto.months = months;
41 | proto.years = years;
42 | proto.humanize = humanize;
43 | proto.toISOString = toISOString;
44 | proto.toString = toISOString;
45 | proto.toJSON = toISOString;
46 | proto.locale = locale;
47 | proto.localeData = localeData;
48 |
49 | // Deprecations
50 | import { deprecate } from '../utils/deprecate';
51 |
52 | proto.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString);
53 | proto.lang = lang;
54 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/duration/valid.js:
--------------------------------------------------------------------------------
1 | import toInt from '../utils/to-int';
2 | import indexOf from '../utils/index-of';
3 | import {Duration} from './constructor';
4 | import {createDuration} from './create';
5 |
6 | var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
7 |
8 | export default function isDurationValid(m) {
9 | for (var key in m) {
10 | if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
11 | return false;
12 | }
13 | }
14 |
15 | var unitHasDecimal = false;
16 | for (var i = 0; i < ordering.length; ++i) {
17 | if (m[ordering[i]]) {
18 | if (unitHasDecimal) {
19 | return false; // only allow non-integers for smallest unit
20 | }
21 | if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
22 | unitHasDecimal = true;
23 | }
24 | }
25 | }
26 |
27 | return true;
28 | }
29 |
30 | export function isValid() {
31 | return this._isValid;
32 | }
33 |
34 | export function createInvalid() {
35 | return createDuration(NaN);
36 | }
37 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/base-config.js:
--------------------------------------------------------------------------------
1 | import { defaultCalendar } from './calendar';
2 | import { defaultLongDateFormat } from './formats';
3 | import { defaultInvalidDate } from './invalid';
4 | import { defaultOrdinal, defaultDayOfMonthOrdinalParse } from './ordinal';
5 | import { defaultRelativeTime } from './relative';
6 |
7 | // months
8 | import {
9 | defaultLocaleMonths,
10 | defaultLocaleMonthsShort,
11 | } from '../units/month';
12 |
13 | // week
14 | import { defaultLocaleWeek } from '../units/week';
15 |
16 | // weekdays
17 | import {
18 | defaultLocaleWeekdays,
19 | defaultLocaleWeekdaysMin,
20 | defaultLocaleWeekdaysShort,
21 | } from '../units/day-of-week';
22 |
23 | // meridiem
24 | import { defaultLocaleMeridiemParse } from '../units/hour';
25 |
26 | export var baseConfig = {
27 | calendar: defaultCalendar,
28 | longDateFormat: defaultLongDateFormat,
29 | invalidDate: defaultInvalidDate,
30 | ordinal: defaultOrdinal,
31 | dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
32 | relativeTime: defaultRelativeTime,
33 |
34 | months: defaultLocaleMonths,
35 | monthsShort: defaultLocaleMonthsShort,
36 |
37 | week: defaultLocaleWeek,
38 |
39 | weekdays: defaultLocaleWeekdays,
40 | weekdaysMin: defaultLocaleWeekdaysMin,
41 | weekdaysShort: defaultLocaleWeekdaysShort,
42 |
43 | meridiemParse: defaultLocaleMeridiemParse
44 | };
45 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/calendar.js:
--------------------------------------------------------------------------------
1 | export var defaultCalendar = {
2 | sameDay : '[Today at] LT',
3 | nextDay : '[Tomorrow at] LT',
4 | nextWeek : 'dddd [at] LT',
5 | lastDay : '[Yesterday at] LT',
6 | lastWeek : '[Last] dddd [at] LT',
7 | sameElse : 'L'
8 | };
9 |
10 | import isFunction from '../utils/is-function';
11 |
12 | export function calendar (key, mom, now) {
13 | var output = this._calendar[key] || this._calendar['sameElse'];
14 | return isFunction(output) ? output.call(mom, now) : output;
15 | }
16 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/constructor.js:
--------------------------------------------------------------------------------
1 | export function Locale(config) {
2 | if (config != null) {
3 | this.set(config);
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/en.js:
--------------------------------------------------------------------------------
1 | import './prototype';
2 | import { getSetGlobalLocale } from './locales';
3 | import toInt from '../utils/to-int';
4 |
5 | getSetGlobalLocale('en', {
6 | dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
7 | ordinal : function (number) {
8 | var b = number % 10,
9 | output = (toInt(number % 100 / 10) === 1) ? 'th' :
10 | (b === 1) ? 'st' :
11 | (b === 2) ? 'nd' :
12 | (b === 3) ? 'rd' : 'th';
13 | return number + output;
14 | }
15 | });
16 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/formats.js:
--------------------------------------------------------------------------------
1 | export var defaultLongDateFormat = {
2 | LTS : 'h:mm:ss A',
3 | LT : 'h:mm A',
4 | L : 'MM/DD/YYYY',
5 | LL : 'MMMM D, YYYY',
6 | LLL : 'MMMM D, YYYY h:mm A',
7 | LLLL : 'dddd, MMMM D, YYYY h:mm A'
8 | };
9 |
10 | export function longDateFormat (key) {
11 | var format = this._longDateFormat[key],
12 | formatUpper = this._longDateFormat[key.toUpperCase()];
13 |
14 | if (format || !formatUpper) {
15 | return format;
16 | }
17 |
18 | this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
19 | return val.slice(1);
20 | });
21 |
22 | return this._longDateFormat[key];
23 | }
24 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/invalid.js:
--------------------------------------------------------------------------------
1 | export var defaultInvalidDate = 'Invalid date';
2 |
3 | export function invalidDate () {
4 | return this._invalidDate;
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/locale.js:
--------------------------------------------------------------------------------
1 | // Side effect imports
2 | import './prototype';
3 |
4 | import {
5 | getSetGlobalLocale,
6 | defineLocale,
7 | updateLocale,
8 | getLocale,
9 | listLocales
10 | } from './locales';
11 |
12 | import {
13 | listMonths,
14 | listMonthsShort,
15 | listWeekdays,
16 | listWeekdaysShort,
17 | listWeekdaysMin
18 | } from './lists';
19 |
20 | export {
21 | getSetGlobalLocale,
22 | defineLocale,
23 | updateLocale,
24 | getLocale,
25 | listLocales,
26 | listMonths,
27 | listMonthsShort,
28 | listWeekdays,
29 | listWeekdaysShort,
30 | listWeekdaysMin
31 | };
32 |
33 | import { deprecate } from '../utils/deprecate';
34 | import { hooks } from '../utils/hooks';
35 |
36 | hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
37 | hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
38 |
39 | import './en';
40 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/ordinal.js:
--------------------------------------------------------------------------------
1 | export var defaultOrdinal = '%d';
2 | export var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
3 |
4 | export function ordinal (number) {
5 | return this._ordinal.replace('%d', number);
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/pre-post-format.js:
--------------------------------------------------------------------------------
1 | export function preParsePostFormat (string) {
2 | return string;
3 | }
4 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/prototype.js:
--------------------------------------------------------------------------------
1 | import { Locale } from './constructor';
2 |
3 | var proto = Locale.prototype;
4 |
5 | import { calendar } from './calendar';
6 | import { longDateFormat } from './formats';
7 | import { invalidDate } from './invalid';
8 | import { ordinal } from './ordinal';
9 | import { preParsePostFormat } from './pre-post-format';
10 | import { relativeTime, pastFuture } from './relative';
11 | import { set } from './set';
12 |
13 | proto.calendar = calendar;
14 | proto.longDateFormat = longDateFormat;
15 | proto.invalidDate = invalidDate;
16 | proto.ordinal = ordinal;
17 | proto.preparse = preParsePostFormat;
18 | proto.postformat = preParsePostFormat;
19 | proto.relativeTime = relativeTime;
20 | proto.pastFuture = pastFuture;
21 | proto.set = set;
22 |
23 | // Month
24 | import {
25 | localeMonthsParse,
26 | localeMonths,
27 | localeMonthsShort,
28 | monthsRegex,
29 | monthsShortRegex
30 | } from '../units/month';
31 |
32 | proto.months = localeMonths;
33 | proto.monthsShort = localeMonthsShort;
34 | proto.monthsParse = localeMonthsParse;
35 | proto.monthsRegex = monthsRegex;
36 | proto.monthsShortRegex = monthsShortRegex;
37 |
38 | // Week
39 | import { localeWeek, localeFirstDayOfYear, localeFirstDayOfWeek } from '../units/week';
40 | proto.week = localeWeek;
41 | proto.firstDayOfYear = localeFirstDayOfYear;
42 | proto.firstDayOfWeek = localeFirstDayOfWeek;
43 |
44 | // Day of Week
45 | import {
46 | localeWeekdaysParse,
47 | localeWeekdays,
48 | localeWeekdaysMin,
49 | localeWeekdaysShort,
50 |
51 | weekdaysRegex,
52 | weekdaysShortRegex,
53 | weekdaysMinRegex
54 | } from '../units/day-of-week';
55 |
56 | proto.weekdays = localeWeekdays;
57 | proto.weekdaysMin = localeWeekdaysMin;
58 | proto.weekdaysShort = localeWeekdaysShort;
59 | proto.weekdaysParse = localeWeekdaysParse;
60 |
61 | proto.weekdaysRegex = weekdaysRegex;
62 | proto.weekdaysShortRegex = weekdaysShortRegex;
63 | proto.weekdaysMinRegex = weekdaysMinRegex;
64 |
65 | // Hours
66 | import { localeIsPM, localeMeridiem } from '../units/hour';
67 |
68 | proto.isPM = localeIsPM;
69 | proto.meridiem = localeMeridiem;
70 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/relative.js:
--------------------------------------------------------------------------------
1 | export var defaultRelativeTime = {
2 | future : 'in %s',
3 | past : '%s ago',
4 | s : 'a few seconds',
5 | ss : '%d seconds',
6 | m : 'a minute',
7 | mm : '%d minutes',
8 | h : 'an hour',
9 | hh : '%d hours',
10 | d : 'a day',
11 | dd : '%d days',
12 | M : 'a month',
13 | MM : '%d months',
14 | y : 'a year',
15 | yy : '%d years'
16 | };
17 |
18 | import isFunction from '../utils/is-function';
19 |
20 | export function relativeTime (number, withoutSuffix, string, isFuture) {
21 | var output = this._relativeTime[string];
22 | return (isFunction(output)) ?
23 | output(number, withoutSuffix, string, isFuture) :
24 | output.replace(/%d/i, number);
25 | }
26 |
27 | export function pastFuture (diff, output) {
28 | var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
29 | return isFunction(format) ? format(output) : format.replace(/%s/i, output);
30 | }
31 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/locale/set.js:
--------------------------------------------------------------------------------
1 | import isFunction from '../utils/is-function';
2 | import extend from '../utils/extend';
3 | import isObject from '../utils/is-object';
4 | import hasOwnProp from '../utils/has-own-prop';
5 |
6 | export function set (config) {
7 | var prop, i;
8 | for (i in config) {
9 | prop = config[i];
10 | if (isFunction(prop)) {
11 | this[i] = prop;
12 | } else {
13 | this['_' + i] = prop;
14 | }
15 | }
16 | this._config = config;
17 | // Lenient ordinal parsing accepts just a number in addition to
18 | // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
19 | // TODO: Remove "ordinalParse" fallback in next major release.
20 | this._dayOfMonthOrdinalParseLenient = new RegExp(
21 | (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
22 | '|' + (/\d{1,2}/).source);
23 | }
24 |
25 | export function mergeConfigs(parentConfig, childConfig) {
26 | var res = extend({}, parentConfig), prop;
27 | for (prop in childConfig) {
28 | if (hasOwnProp(childConfig, prop)) {
29 | if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
30 | res[prop] = {};
31 | extend(res[prop], parentConfig[prop]);
32 | extend(res[prop], childConfig[prop]);
33 | } else if (childConfig[prop] != null) {
34 | res[prop] = childConfig[prop];
35 | } else {
36 | delete res[prop];
37 | }
38 | }
39 | }
40 | for (prop in parentConfig) {
41 | if (hasOwnProp(parentConfig, prop) &&
42 | !hasOwnProp(childConfig, prop) &&
43 | isObject(parentConfig[prop])) {
44 | // make sure changes to properties don't modify parent config
45 | res[prop] = extend({}, res[prop]);
46 | }
47 | }
48 | return res;
49 | }
50 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/add-subtract.js:
--------------------------------------------------------------------------------
1 | import { get, set } from './get-set';
2 | import { setMonth } from '../units/month';
3 | import { createDuration } from '../duration/create';
4 | import { deprecateSimple } from '../utils/deprecate';
5 | import { hooks } from '../utils/hooks';
6 | import absRound from '../utils/abs-round';
7 |
8 |
9 | // TODO: remove 'name' arg after deprecation is removed
10 | function createAdder(direction, name) {
11 | return function (val, period) {
12 | var dur, tmp;
13 | //invert the arguments, but complain about it
14 | if (period !== null && !isNaN(+period)) {
15 | deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
16 | 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
17 | tmp = val; val = period; period = tmp;
18 | }
19 |
20 | val = typeof val === 'string' ? +val : val;
21 | dur = createDuration(val, period);
22 | addSubtract(this, dur, direction);
23 | return this;
24 | };
25 | }
26 |
27 | export function addSubtract (mom, duration, isAdding, updateOffset) {
28 | var milliseconds = duration._milliseconds,
29 | days = absRound(duration._days),
30 | months = absRound(duration._months);
31 |
32 | if (!mom.isValid()) {
33 | // No op
34 | return;
35 | }
36 |
37 | updateOffset = updateOffset == null ? true : updateOffset;
38 |
39 | if (months) {
40 | setMonth(mom, get(mom, 'Month') + months * isAdding);
41 | }
42 | if (days) {
43 | set(mom, 'Date', get(mom, 'Date') + days * isAdding);
44 | }
45 | if (milliseconds) {
46 | mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
47 | }
48 | if (updateOffset) {
49 | hooks.updateOffset(mom, days || months);
50 | }
51 | }
52 |
53 | export var add = createAdder(1, 'add');
54 | export var subtract = createAdder(-1, 'subtract');
55 |
56 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/calendar.js:
--------------------------------------------------------------------------------
1 | import { createLocal } from '../create/local';
2 | import { cloneWithOffset } from '../units/offset';
3 | import isFunction from '../utils/is-function';
4 | import { hooks } from '../utils/hooks';
5 |
6 | export function getCalendarFormat(myMoment, now) {
7 | var diff = myMoment.diff(now, 'days', true);
8 | return diff < -6 ? 'sameElse' :
9 | diff < -1 ? 'lastWeek' :
10 | diff < 0 ? 'lastDay' :
11 | diff < 1 ? 'sameDay' :
12 | diff < 2 ? 'nextDay' :
13 | diff < 7 ? 'nextWeek' : 'sameElse';
14 | }
15 |
16 | export function calendar (time, formats) {
17 | // We want to compare the start of today, vs this.
18 | // Getting start-of-today depends on whether we're local/utc/offset or not.
19 | var now = time || createLocal(),
20 | sod = cloneWithOffset(now, this).startOf('day'),
21 | format = hooks.calendarFormat(this, sod) || 'sameElse';
22 |
23 | var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
24 |
25 | return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
26 | }
27 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/clone.js:
--------------------------------------------------------------------------------
1 | import { Moment } from './constructor';
2 |
3 | export function clone () {
4 | return new Moment(this);
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/creation-data.js:
--------------------------------------------------------------------------------
1 | export function creationData() {
2 | return {
3 | input: this._i,
4 | format: this._f,
5 | locale: this._locale,
6 | isUTC: this._isUTC,
7 | strict: this._strict
8 | };
9 | }
10 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/diff.js:
--------------------------------------------------------------------------------
1 | import absFloor from '../utils/abs-floor';
2 | import { cloneWithOffset } from '../units/offset';
3 | import { normalizeUnits } from '../units/aliases';
4 |
5 | export function diff (input, units, asFloat) {
6 | var that,
7 | zoneDelta,
8 | delta, output;
9 |
10 | if (!this.isValid()) {
11 | return NaN;
12 | }
13 |
14 | that = cloneWithOffset(input, this);
15 |
16 | if (!that.isValid()) {
17 | return NaN;
18 | }
19 |
20 | zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
21 |
22 | units = normalizeUnits(units);
23 |
24 | switch (units) {
25 | case 'year': output = monthDiff(this, that) / 12; break;
26 | case 'month': output = monthDiff(this, that); break;
27 | case 'quarter': output = monthDiff(this, that) / 3; break;
28 | case 'second': output = (this - that) / 1e3; break; // 1000
29 | case 'minute': output = (this - that) / 6e4; break; // 1000 * 60
30 | case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60
31 | case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst
32 | case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst
33 | default: output = this - that;
34 | }
35 |
36 | return asFloat ? output : absFloor(output);
37 | }
38 |
39 | function monthDiff (a, b) {
40 | // difference in months
41 | var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
42 | // b is in (anchor - 1 month, anchor + 1 month)
43 | anchor = a.clone().add(wholeMonthDiff, 'months'),
44 | anchor2, adjust;
45 |
46 | if (b - anchor < 0) {
47 | anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
48 | // linear across the month
49 | adjust = (b - anchor) / (anchor - anchor2);
50 | } else {
51 | anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
52 | // linear across the month
53 | adjust = (b - anchor) / (anchor2 - anchor);
54 | }
55 |
56 | //check for negative zero, return zero if negative zero
57 | return -(wholeMonthDiff + adjust) || 0;
58 | }
59 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/from.js:
--------------------------------------------------------------------------------
1 | import { createDuration } from '../duration/create';
2 | import { createLocal } from '../create/local';
3 | import { isMoment } from '../moment/constructor';
4 |
5 | export function from (time, withoutSuffix) {
6 | if (this.isValid() &&
7 | ((isMoment(time) && time.isValid()) ||
8 | createLocal(time).isValid())) {
9 | return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
10 | } else {
11 | return this.localeData().invalidDate();
12 | }
13 | }
14 |
15 | export function fromNow (withoutSuffix) {
16 | return this.from(createLocal(), withoutSuffix);
17 | }
18 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/get-set.js:
--------------------------------------------------------------------------------
1 | import { normalizeUnits, normalizeObjectUnits } from '../units/aliases';
2 | import { getPrioritizedUnits } from '../units/priorities';
3 | import { hooks } from '../utils/hooks';
4 | import isFunction from '../utils/is-function';
5 | import { daysInMonth } from '../units/month';
6 | import { isLeapYear } from '../units/year';
7 |
8 | export function makeGetSet (unit, keepTime) {
9 | return function (value) {
10 | if (value != null) {
11 | set(this, unit, value);
12 | hooks.updateOffset(this, keepTime);
13 | return this;
14 | } else {
15 | return get(this, unit);
16 | }
17 | };
18 | }
19 |
20 | export function get (mom, unit) {
21 | return mom.isValid() ?
22 | mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
23 | }
24 |
25 | export function set (mom, unit, value) {
26 | if (mom.isValid() && !isNaN(value)) {
27 | if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
28 | mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
29 | }
30 | else {
31 | mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
32 | }
33 | }
34 | }
35 |
36 | // MOMENTS
37 |
38 | export function stringGet (units) {
39 | units = normalizeUnits(units);
40 | if (isFunction(this[units])) {
41 | return this[units]();
42 | }
43 | return this;
44 | }
45 |
46 |
47 | export function stringSet (units, value) {
48 | if (typeof units === 'object') {
49 | units = normalizeObjectUnits(units);
50 | var prioritized = getPrioritizedUnits(units);
51 | for (var i = 0; i < prioritized.length; i++) {
52 | this[prioritized[i].unit](units[prioritized[i].unit]);
53 | }
54 | } else {
55 | units = normalizeUnits(units);
56 | if (isFunction(this[units])) {
57 | return this[units](value);
58 | }
59 | }
60 | return this;
61 | }
62 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/locale.js:
--------------------------------------------------------------------------------
1 | import { getLocale } from '../locale/locales';
2 | import { deprecate } from '../utils/deprecate';
3 |
4 | // If passed a locale key, it will set the locale for this
5 | // instance. Otherwise, it will return the locale configuration
6 | // variables for this instance.
7 | export function locale (key) {
8 | var newLocaleData;
9 |
10 | if (key === undefined) {
11 | return this._locale._abbr;
12 | } else {
13 | newLocaleData = getLocale(key);
14 | if (newLocaleData != null) {
15 | this._locale = newLocaleData;
16 | }
17 | return this;
18 | }
19 | }
20 |
21 | export var lang = deprecate(
22 | 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
23 | function (key) {
24 | if (key === undefined) {
25 | return this.localeData();
26 | } else {
27 | return this.locale(key);
28 | }
29 | }
30 | );
31 |
32 | export function localeData () {
33 | return this._locale;
34 | }
35 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/min-max.js:
--------------------------------------------------------------------------------
1 | import { deprecate } from '../utils/deprecate';
2 | import isArray from '../utils/is-array';
3 | import { createLocal } from '../create/local';
4 | import { createInvalid } from '../create/valid';
5 |
6 | export var prototypeMin = deprecate(
7 | 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
8 | function () {
9 | var other = createLocal.apply(null, arguments);
10 | if (this.isValid() && other.isValid()) {
11 | return other < this ? this : other;
12 | } else {
13 | return createInvalid();
14 | }
15 | }
16 | );
17 |
18 | export var prototypeMax = deprecate(
19 | 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
20 | function () {
21 | var other = createLocal.apply(null, arguments);
22 | if (this.isValid() && other.isValid()) {
23 | return other > this ? this : other;
24 | } else {
25 | return createInvalid();
26 | }
27 | }
28 | );
29 |
30 | // Pick a moment m from moments so that m[fn](other) is true for all
31 | // other. This relies on the function fn to be transitive.
32 | //
33 | // moments should either be an array of moment objects or an array, whose
34 | // first element is an array of moment objects.
35 | function pickBy(fn, moments) {
36 | var res, i;
37 | if (moments.length === 1 && isArray(moments[0])) {
38 | moments = moments[0];
39 | }
40 | if (!moments.length) {
41 | return createLocal();
42 | }
43 | res = moments[0];
44 | for (i = 1; i < moments.length; ++i) {
45 | if (!moments[i].isValid() || moments[i][fn](res)) {
46 | res = moments[i];
47 | }
48 | }
49 | return res;
50 | }
51 |
52 | // TODO: Use [].sort instead?
53 | export function min () {
54 | var args = [].slice.call(arguments, 0);
55 |
56 | return pickBy('isBefore', args);
57 | }
58 |
59 | export function max () {
60 | var args = [].slice.call(arguments, 0);
61 |
62 | return pickBy('isAfter', args);
63 | }
64 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/moment.js:
--------------------------------------------------------------------------------
1 | import { createLocal } from '../create/local';
2 | import { createUTC } from '../create/utc';
3 | import { createInvalid } from '../create/valid';
4 | import { isMoment } from './constructor';
5 | import { min, max } from './min-max';
6 | import { now } from './now';
7 | import momentPrototype from './prototype';
8 |
9 | function createUnix (input) {
10 | return createLocal(input * 1000);
11 | }
12 |
13 | function createInZone () {
14 | return createLocal.apply(null, arguments).parseZone();
15 | }
16 |
17 | export {
18 | now,
19 | min,
20 | max,
21 | isMoment,
22 | createUTC,
23 | createUnix,
24 | createLocal,
25 | createInZone,
26 | createInvalid,
27 | momentPrototype
28 | };
29 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/now.js:
--------------------------------------------------------------------------------
1 | export var now = function () {
2 | return Date.now ? Date.now() : +(new Date());
3 | };
4 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/to-type.js:
--------------------------------------------------------------------------------
1 | export function valueOf () {
2 | return this._d.valueOf() - ((this._offset || 0) * 60000);
3 | }
4 |
5 | export function unix () {
6 | return Math.floor(this.valueOf() / 1000);
7 | }
8 |
9 | export function toDate () {
10 | return new Date(this.valueOf());
11 | }
12 |
13 | export function toArray () {
14 | var m = this;
15 | return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
16 | }
17 |
18 | export function toObject () {
19 | var m = this;
20 | return {
21 | years: m.year(),
22 | months: m.month(),
23 | date: m.date(),
24 | hours: m.hours(),
25 | minutes: m.minutes(),
26 | seconds: m.seconds(),
27 | milliseconds: m.milliseconds()
28 | };
29 | }
30 |
31 | export function toJSON () {
32 | // new Date(NaN).toJSON() === null
33 | return this.isValid() ? this.toISOString() : null;
34 | }
35 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/to.js:
--------------------------------------------------------------------------------
1 | import { createDuration } from '../duration/create';
2 | import { createLocal } from '../create/local';
3 | import { isMoment } from '../moment/constructor';
4 |
5 | export function to (time, withoutSuffix) {
6 | if (this.isValid() &&
7 | ((isMoment(time) && time.isValid()) ||
8 | createLocal(time).isValid())) {
9 | return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
10 | } else {
11 | return this.localeData().invalidDate();
12 | }
13 | }
14 |
15 | export function toNow (withoutSuffix) {
16 | return this.to(createLocal(), withoutSuffix);
17 | }
18 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/moment/valid.js:
--------------------------------------------------------------------------------
1 | import { isValid as _isValid } from '../create/valid';
2 | import extend from '../utils/extend';
3 | import getParsingFlags from '../create/parsing-flags';
4 |
5 | export function isValid () {
6 | return _isValid(this);
7 | }
8 |
9 | export function parsingFlags () {
10 | return extend({}, getParsingFlags(this));
11 | }
12 |
13 | export function invalidAt () {
14 | return getParsingFlags(this).overflow;
15 | }
16 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/parse/token.js:
--------------------------------------------------------------------------------
1 | import hasOwnProp from '../utils/has-own-prop';
2 | import isNumber from '../utils/is-number';
3 | import toInt from '../utils/to-int';
4 |
5 | var tokens = {};
6 |
7 | export function addParseToken (token, callback) {
8 | var i, func = callback;
9 | if (typeof token === 'string') {
10 | token = [token];
11 | }
12 | if (isNumber(callback)) {
13 | func = function (input, array) {
14 | array[callback] = toInt(input);
15 | };
16 | }
17 | for (i = 0; i < token.length; i++) {
18 | tokens[token[i]] = func;
19 | }
20 | }
21 |
22 | export function addWeekParseToken (token, callback) {
23 | addParseToken(token, function (input, array, config, token) {
24 | config._w = config._w || {};
25 | callback(input, config._w, config, token);
26 | });
27 | }
28 |
29 | export function addTimeToArrayFromToken(token, input, config) {
30 | if (input != null && hasOwnProp(tokens, token)) {
31 | tokens[token](input, config._a, config, token);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/aliases.js:
--------------------------------------------------------------------------------
1 | import hasOwnProp from '../utils/has-own-prop';
2 |
3 | var aliases = {};
4 |
5 | export function addUnitAlias (unit, shorthand) {
6 | var lowerCase = unit.toLowerCase();
7 | aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
8 | }
9 |
10 | export function normalizeUnits(units) {
11 | return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
12 | }
13 |
14 | export function normalizeObjectUnits(inputObject) {
15 | var normalizedInput = {},
16 | normalizedProp,
17 | prop;
18 |
19 | for (prop in inputObject) {
20 | if (hasOwnProp(inputObject, prop)) {
21 | normalizedProp = normalizeUnits(prop);
22 | if (normalizedProp) {
23 | normalizedInput[normalizedProp] = inputObject[prop];
24 | }
25 | }
26 | }
27 |
28 | return normalizedInput;
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/constants.js:
--------------------------------------------------------------------------------
1 | export var YEAR = 0;
2 | export var MONTH = 1;
3 | export var DATE = 2;
4 | export var HOUR = 3;
5 | export var MINUTE = 4;
6 | export var SECOND = 5;
7 | export var MILLISECOND = 6;
8 | export var WEEK = 7;
9 | export var WEEKDAY = 8;
10 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/day-of-month.js:
--------------------------------------------------------------------------------
1 | import { makeGetSet } from '../moment/get-set';
2 | import { addFormatToken } from '../format/format';
3 | import { addUnitAlias } from './aliases';
4 | import { addUnitPriority } from './priorities';
5 | import { addRegexToken, match1to2, match2 } from '../parse/regex';
6 | import { addParseToken } from '../parse/token';
7 | import { DATE } from './constants';
8 | import toInt from '../utils/to-int';
9 |
10 | // FORMATTING
11 |
12 | addFormatToken('D', ['DD', 2], 'Do', 'date');
13 |
14 | // ALIASES
15 |
16 | addUnitAlias('date', 'D');
17 |
18 | // PRIORITY
19 | addUnitPriority('date', 9);
20 |
21 | // PARSING
22 |
23 | addRegexToken('D', match1to2);
24 | addRegexToken('DD', match1to2, match2);
25 | addRegexToken('Do', function (isStrict, locale) {
26 | // TODO: Remove "ordinalParse" fallback in next major release.
27 | return isStrict ?
28 | (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
29 | locale._dayOfMonthOrdinalParseLenient;
30 | });
31 |
32 | addParseToken(['D', 'DD'], DATE);
33 | addParseToken('Do', function (input, array) {
34 | array[DATE] = toInt(input.match(match1to2)[0]);
35 | });
36 |
37 | // MOMENTS
38 |
39 | export var getSetDayOfMonth = makeGetSet('Date', true);
40 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/day-of-year.js:
--------------------------------------------------------------------------------
1 | import { addFormatToken } from '../format/format';
2 | import { addUnitAlias } from './aliases';
3 | import { addUnitPriority } from './priorities';
4 | import { addRegexToken, match3, match1to3 } from '../parse/regex';
5 | import { daysInYear } from './year';
6 | import { createUTCDate } from '../create/date-from-array';
7 | import { addParseToken } from '../parse/token';
8 | import toInt from '../utils/to-int';
9 |
10 | // FORMATTING
11 |
12 | addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
13 |
14 | // ALIASES
15 |
16 | addUnitAlias('dayOfYear', 'DDD');
17 |
18 | // PRIORITY
19 | addUnitPriority('dayOfYear', 4);
20 |
21 | // PARSING
22 |
23 | addRegexToken('DDD', match1to3);
24 | addRegexToken('DDDD', match3);
25 | addParseToken(['DDD', 'DDDD'], function (input, array, config) {
26 | config._dayOfYear = toInt(input);
27 | });
28 |
29 | // HELPERS
30 |
31 | // MOMENTS
32 |
33 | export function getSetDayOfYear (input) {
34 | var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
35 | return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
36 | }
37 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/millisecond.js:
--------------------------------------------------------------------------------
1 | import { makeGetSet } from '../moment/get-set';
2 | import { addFormatToken } from '../format/format';
3 | import { addUnitAlias } from './aliases';
4 | import { addUnitPriority } from './priorities';
5 | import { addRegexToken, match1, match2, match3, match1to3, matchUnsigned } from '../parse/regex';
6 | import { addParseToken } from '../parse/token';
7 | import { MILLISECOND } from './constants';
8 | import toInt from '../utils/to-int';
9 |
10 | // FORMATTING
11 |
12 | addFormatToken('S', 0, 0, function () {
13 | return ~~(this.millisecond() / 100);
14 | });
15 |
16 | addFormatToken(0, ['SS', 2], 0, function () {
17 | return ~~(this.millisecond() / 10);
18 | });
19 |
20 | addFormatToken(0, ['SSS', 3], 0, 'millisecond');
21 | addFormatToken(0, ['SSSS', 4], 0, function () {
22 | return this.millisecond() * 10;
23 | });
24 | addFormatToken(0, ['SSSSS', 5], 0, function () {
25 | return this.millisecond() * 100;
26 | });
27 | addFormatToken(0, ['SSSSSS', 6], 0, function () {
28 | return this.millisecond() * 1000;
29 | });
30 | addFormatToken(0, ['SSSSSSS', 7], 0, function () {
31 | return this.millisecond() * 10000;
32 | });
33 | addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
34 | return this.millisecond() * 100000;
35 | });
36 | addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
37 | return this.millisecond() * 1000000;
38 | });
39 |
40 |
41 | // ALIASES
42 |
43 | addUnitAlias('millisecond', 'ms');
44 |
45 | // PRIORITY
46 |
47 | addUnitPriority('millisecond', 16);
48 |
49 | // PARSING
50 |
51 | addRegexToken('S', match1to3, match1);
52 | addRegexToken('SS', match1to3, match2);
53 | addRegexToken('SSS', match1to3, match3);
54 |
55 | var token;
56 | for (token = 'SSSS'; token.length <= 9; token += 'S') {
57 | addRegexToken(token, matchUnsigned);
58 | }
59 |
60 | function parseMs(input, array) {
61 | array[MILLISECOND] = toInt(('0.' + input) * 1000);
62 | }
63 |
64 | for (token = 'S'; token.length <= 9; token += 'S') {
65 | addParseToken(token, parseMs);
66 | }
67 | // MOMENTS
68 |
69 | export var getSetMillisecond = makeGetSet('Milliseconds', false);
70 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/minute.js:
--------------------------------------------------------------------------------
1 | import { makeGetSet } from '../moment/get-set';
2 | import { addFormatToken } from '../format/format';
3 | import { addUnitAlias } from './aliases';
4 | import { addUnitPriority } from './priorities';
5 | import { addRegexToken, match1to2, match2 } from '../parse/regex';
6 | import { addParseToken } from '../parse/token';
7 | import { MINUTE } from './constants';
8 |
9 | // FORMATTING
10 |
11 | addFormatToken('m', ['mm', 2], 0, 'minute');
12 |
13 | // ALIASES
14 |
15 | addUnitAlias('minute', 'm');
16 |
17 | // PRIORITY
18 |
19 | addUnitPriority('minute', 14);
20 |
21 | // PARSING
22 |
23 | addRegexToken('m', match1to2);
24 | addRegexToken('mm', match1to2, match2);
25 | addParseToken(['m', 'mm'], MINUTE);
26 |
27 | // MOMENTS
28 |
29 | export var getSetMinute = makeGetSet('Minutes', false);
30 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/priorities.js:
--------------------------------------------------------------------------------
1 | var priorities = {};
2 |
3 | export function addUnitPriority(unit, priority) {
4 | priorities[unit] = priority;
5 | }
6 |
7 | export function getPrioritizedUnits(unitsObj) {
8 | var units = [];
9 | for (var u in unitsObj) {
10 | units.push({unit: u, priority: priorities[u]});
11 | }
12 | units.sort(function (a, b) {
13 | return a.priority - b.priority;
14 | });
15 | return units;
16 | }
17 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/quarter.js:
--------------------------------------------------------------------------------
1 | import { addFormatToken } from '../format/format';
2 | import { addUnitAlias } from './aliases';
3 | import { addUnitPriority } from './priorities';
4 | import { addRegexToken, match1 } from '../parse/regex';
5 | import { addParseToken } from '../parse/token';
6 | import { MONTH } from './constants';
7 | import toInt from '../utils/to-int';
8 |
9 | // FORMATTING
10 |
11 | addFormatToken('Q', 0, 'Qo', 'quarter');
12 |
13 | // ALIASES
14 |
15 | addUnitAlias('quarter', 'Q');
16 |
17 | // PRIORITY
18 |
19 | addUnitPriority('quarter', 7);
20 |
21 | // PARSING
22 |
23 | addRegexToken('Q', match1);
24 | addParseToken('Q', function (input, array) {
25 | array[MONTH] = (toInt(input) - 1) * 3;
26 | });
27 |
28 | // MOMENTS
29 |
30 | export function getSetQuarter (input) {
31 | return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
32 | }
33 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/second.js:
--------------------------------------------------------------------------------
1 | import { makeGetSet } from '../moment/get-set';
2 | import { addFormatToken } from '../format/format';
3 | import { addUnitAlias } from './aliases';
4 | import { addUnitPriority } from './priorities';
5 | import { addRegexToken, match1to2, match2 } from '../parse/regex';
6 | import { addParseToken } from '../parse/token';
7 | import { SECOND } from './constants';
8 |
9 | // FORMATTING
10 |
11 | addFormatToken('s', ['ss', 2], 0, 'second');
12 |
13 | // ALIASES
14 |
15 | addUnitAlias('second', 's');
16 |
17 | // PRIORITY
18 |
19 | addUnitPriority('second', 15);
20 |
21 | // PARSING
22 |
23 | addRegexToken('s', match1to2);
24 | addRegexToken('ss', match1to2, match2);
25 | addParseToken(['s', 'ss'], SECOND);
26 |
27 | // MOMENTS
28 |
29 | export var getSetSecond = makeGetSet('Seconds', false);
30 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/timestamp.js:
--------------------------------------------------------------------------------
1 | import { addFormatToken } from '../format/format';
2 | import { addRegexToken, matchTimestamp, matchSigned } from '../parse/regex';
3 | import { addParseToken } from '../parse/token';
4 | import toInt from '../utils/to-int';
5 |
6 | // FORMATTING
7 |
8 | addFormatToken('X', 0, 0, 'unix');
9 | addFormatToken('x', 0, 0, 'valueOf');
10 |
11 | // PARSING
12 |
13 | addRegexToken('x', matchSigned);
14 | addRegexToken('X', matchTimestamp);
15 | addParseToken('X', function (input, array, config) {
16 | config._d = new Date(parseFloat(input, 10) * 1000);
17 | });
18 | addParseToken('x', function (input, array, config) {
19 | config._d = new Date(toInt(input));
20 | });
21 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/timezone.js:
--------------------------------------------------------------------------------
1 | import { addFormatToken } from '../format/format';
2 |
3 | // FORMATTING
4 |
5 | addFormatToken('z', 0, 0, 'zoneAbbr');
6 | addFormatToken('zz', 0, 0, 'zoneName');
7 |
8 | // MOMENTS
9 |
10 | export function getZoneAbbr () {
11 | return this._isUTC ? 'UTC' : '';
12 | }
13 |
14 | export function getZoneName () {
15 | return this._isUTC ? 'Coordinated Universal Time' : '';
16 | }
17 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/units.js:
--------------------------------------------------------------------------------
1 | // Side effect imports
2 | import './day-of-month';
3 | import './day-of-week';
4 | import './day-of-year';
5 | import './hour';
6 | import './millisecond';
7 | import './minute';
8 | import './month';
9 | import './offset';
10 | import './quarter';
11 | import './second';
12 | import './timestamp';
13 | import './timezone';
14 | import './week-year';
15 | import './week';
16 | import './year';
17 |
18 | import { normalizeUnits } from './aliases';
19 |
20 | export { normalizeUnits };
21 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/week.js:
--------------------------------------------------------------------------------
1 | import { addFormatToken } from '../format/format';
2 | import { addUnitAlias } from './aliases';
3 | import { addUnitPriority } from './priorities';
4 | import { addRegexToken, match1to2, match2 } from '../parse/regex';
5 | import { addWeekParseToken } from '../parse/token';
6 | import toInt from '../utils/to-int';
7 | import { createLocal } from '../create/local';
8 | import { weekOfYear } from './week-calendar-utils';
9 |
10 | // FORMATTING
11 |
12 | addFormatToken('w', ['ww', 2], 'wo', 'week');
13 | addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
14 |
15 | // ALIASES
16 |
17 | addUnitAlias('week', 'w');
18 | addUnitAlias('isoWeek', 'W');
19 |
20 | // PRIORITIES
21 |
22 | addUnitPriority('week', 5);
23 | addUnitPriority('isoWeek', 5);
24 |
25 | // PARSING
26 |
27 | addRegexToken('w', match1to2);
28 | addRegexToken('ww', match1to2, match2);
29 | addRegexToken('W', match1to2);
30 | addRegexToken('WW', match1to2, match2);
31 |
32 | addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
33 | week[token.substr(0, 1)] = toInt(input);
34 | });
35 |
36 | // HELPERS
37 |
38 | // LOCALES
39 |
40 | export function localeWeek (mom) {
41 | return weekOfYear(mom, this._week.dow, this._week.doy).week;
42 | }
43 |
44 | export var defaultLocaleWeek = {
45 | dow : 0, // Sunday is the first day of the week.
46 | doy : 6 // The week that contains Jan 6th is the first week of the year.
47 | };
48 |
49 | export function localeFirstDayOfWeek () {
50 | return this._week.dow;
51 | }
52 |
53 | export function localeFirstDayOfYear () {
54 | return this._week.doy;
55 | }
56 |
57 | // MOMENTS
58 |
59 | export function getSetWeek (input) {
60 | var week = this.localeData().week(this);
61 | return input == null ? week : this.add((input - week) * 7, 'd');
62 | }
63 |
64 | export function getSetISOWeek (input) {
65 | var week = weekOfYear(this, 1, 4).week;
66 | return input == null ? week : this.add((input - week) * 7, 'd');
67 | }
68 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/units/year.js:
--------------------------------------------------------------------------------
1 | import { makeGetSet } from '../moment/get-set';
2 | import { addFormatToken } from '../format/format';
3 | import { addUnitAlias } from './aliases';
4 | import { addUnitPriority } from './priorities';
5 | import { addRegexToken, match1to2, match1to4, match1to6, match2, match4, match6, matchSigned } from '../parse/regex';
6 | import { addParseToken } from '../parse/token';
7 | import { hooks } from '../utils/hooks';
8 | import { YEAR } from './constants';
9 | import toInt from '../utils/to-int';
10 |
11 | // FORMATTING
12 |
13 | addFormatToken('Y', 0, 0, function () {
14 | var y = this.year();
15 | return y <= 9999 ? '' + y : '+' + y;
16 | });
17 |
18 | addFormatToken(0, ['YY', 2], 0, function () {
19 | return this.year() % 100;
20 | });
21 |
22 | addFormatToken(0, ['YYYY', 4], 0, 'year');
23 | addFormatToken(0, ['YYYYY', 5], 0, 'year');
24 | addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
25 |
26 | // ALIASES
27 |
28 | addUnitAlias('year', 'y');
29 |
30 | // PRIORITIES
31 |
32 | addUnitPriority('year', 1);
33 |
34 | // PARSING
35 |
36 | addRegexToken('Y', matchSigned);
37 | addRegexToken('YY', match1to2, match2);
38 | addRegexToken('YYYY', match1to4, match4);
39 | addRegexToken('YYYYY', match1to6, match6);
40 | addRegexToken('YYYYYY', match1to6, match6);
41 |
42 | addParseToken(['YYYYY', 'YYYYYY'], YEAR);
43 | addParseToken('YYYY', function (input, array) {
44 | array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
45 | });
46 | addParseToken('YY', function (input, array) {
47 | array[YEAR] = hooks.parseTwoDigitYear(input);
48 | });
49 | addParseToken('Y', function (input, array) {
50 | array[YEAR] = parseInt(input, 10);
51 | });
52 |
53 | // HELPERS
54 |
55 | export function daysInYear(year) {
56 | return isLeapYear(year) ? 366 : 365;
57 | }
58 |
59 | export function isLeapYear(year) {
60 | return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
61 | }
62 |
63 | // HOOKS
64 |
65 | hooks.parseTwoDigitYear = function (input) {
66 | return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
67 | };
68 |
69 | // MOMENTS
70 |
71 | export var getSetYear = makeGetSet('FullYear', true);
72 |
73 | export function getIsLeapYear () {
74 | return isLeapYear(this.year());
75 | }
76 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/abs-ceil.js:
--------------------------------------------------------------------------------
1 | export default function absCeil (number) {
2 | if (number < 0) {
3 | return Math.floor(number);
4 | } else {
5 | return Math.ceil(number);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/abs-floor.js:
--------------------------------------------------------------------------------
1 | export default function absFloor (number) {
2 | if (number < 0) {
3 | // -0 -> 0
4 | return Math.ceil(number) || 0;
5 | } else {
6 | return Math.floor(number);
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/abs-round.js:
--------------------------------------------------------------------------------
1 | export default function absRound (number) {
2 | if (number < 0) {
3 | return Math.round(-1 * number) * -1;
4 | } else {
5 | return Math.round(number);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/compare-arrays.js:
--------------------------------------------------------------------------------
1 | import toInt from './to-int';
2 |
3 | // compare two arrays, return the number of differences
4 | export default function compareArrays(array1, array2, dontConvert) {
5 | var len = Math.min(array1.length, array2.length),
6 | lengthDiff = Math.abs(array1.length - array2.length),
7 | diffs = 0,
8 | i;
9 | for (i = 0; i < len; i++) {
10 | if ((dontConvert && array1[i] !== array2[i]) ||
11 | (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
12 | diffs++;
13 | }
14 | }
15 | return diffs + lengthDiff;
16 | }
17 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/defaults.js:
--------------------------------------------------------------------------------
1 | // Pick the first defined of two or three arguments.
2 | export default function defaults(a, b, c) {
3 | if (a != null) {
4 | return a;
5 | }
6 | if (b != null) {
7 | return b;
8 | }
9 | return c;
10 | }
11 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/deprecate.js:
--------------------------------------------------------------------------------
1 | import extend from './extend';
2 | import { hooks } from './hooks';
3 | import isUndefined from './is-undefined';
4 |
5 | function warn(msg) {
6 | if (hooks.suppressDeprecationWarnings === false &&
7 | (typeof console !== 'undefined') && console.warn) {
8 | console.warn('Deprecation warning: ' + msg);
9 | }
10 | }
11 |
12 | export function deprecate(msg, fn) {
13 | var firstTime = true;
14 |
15 | return extend(function () {
16 | if (hooks.deprecationHandler != null) {
17 | hooks.deprecationHandler(null, msg);
18 | }
19 | if (firstTime) {
20 | var args = [];
21 | var arg;
22 | for (var i = 0; i < arguments.length; i++) {
23 | arg = '';
24 | if (typeof arguments[i] === 'object') {
25 | arg += '\n[' + i + '] ';
26 | for (var key in arguments[0]) {
27 | arg += key + ': ' + arguments[0][key] + ', ';
28 | }
29 | arg = arg.slice(0, -2); // Remove trailing comma and space
30 | } else {
31 | arg = arguments[i];
32 | }
33 | args.push(arg);
34 | }
35 | warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
36 | firstTime = false;
37 | }
38 | return fn.apply(this, arguments);
39 | }, fn);
40 | }
41 |
42 | var deprecations = {};
43 |
44 | export function deprecateSimple(name, msg) {
45 | if (hooks.deprecationHandler != null) {
46 | hooks.deprecationHandler(name, msg);
47 | }
48 | if (!deprecations[name]) {
49 | warn(msg);
50 | deprecations[name] = true;
51 | }
52 | }
53 |
54 | hooks.suppressDeprecationWarnings = false;
55 | hooks.deprecationHandler = null;
56 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/extend.js:
--------------------------------------------------------------------------------
1 | import hasOwnProp from './has-own-prop';
2 |
3 | export default function extend(a, b) {
4 | for (var i in b) {
5 | if (hasOwnProp(b, i)) {
6 | a[i] = b[i];
7 | }
8 | }
9 |
10 | if (hasOwnProp(b, 'toString')) {
11 | a.toString = b.toString;
12 | }
13 |
14 | if (hasOwnProp(b, 'valueOf')) {
15 | a.valueOf = b.valueOf;
16 | }
17 |
18 | return a;
19 | }
20 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/has-own-prop.js:
--------------------------------------------------------------------------------
1 | export default function hasOwnProp(a, b) {
2 | return Object.prototype.hasOwnProperty.call(a, b);
3 | }
4 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/hooks.js:
--------------------------------------------------------------------------------
1 | export { hooks, setHookCallback };
2 |
3 | var hookCallback;
4 |
5 | function hooks () {
6 | return hookCallback.apply(null, arguments);
7 | }
8 |
9 | // This is done to register the method called with moment()
10 | // without creating circular dependencies.
11 | function setHookCallback (callback) {
12 | hookCallback = callback;
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/index-of.js:
--------------------------------------------------------------------------------
1 | var indexOf;
2 |
3 | if (Array.prototype.indexOf) {
4 | indexOf = Array.prototype.indexOf;
5 | } else {
6 | indexOf = function (o) {
7 | // I know
8 | var i;
9 | for (i = 0; i < this.length; ++i) {
10 | if (this[i] === o) {
11 | return i;
12 | }
13 | }
14 | return -1;
15 | };
16 | }
17 |
18 | export { indexOf as default };
19 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/is-array.js:
--------------------------------------------------------------------------------
1 | export default function isArray(input) {
2 | return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
3 | }
4 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/is-date.js:
--------------------------------------------------------------------------------
1 | export default function isDate(input) {
2 | return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
3 | }
4 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/is-function.js:
--------------------------------------------------------------------------------
1 | export default function isFunction(input) {
2 | return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
3 | }
4 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/is-number.js:
--------------------------------------------------------------------------------
1 | export default function isNumber(input) {
2 | return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
3 | }
4 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/is-object-empty.js:
--------------------------------------------------------------------------------
1 | export default function isObjectEmpty(obj) {
2 | if (Object.getOwnPropertyNames) {
3 | return (Object.getOwnPropertyNames(obj).length === 0);
4 | } else {
5 | var k;
6 | for (k in obj) {
7 | if (obj.hasOwnProperty(k)) {
8 | return false;
9 | }
10 | }
11 | return true;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/is-object.js:
--------------------------------------------------------------------------------
1 | export default function isObject(input) {
2 | // IE8 will treat undefined and null as object if it wasn't for
3 | // input != null
4 | return input != null && Object.prototype.toString.call(input) === '[object Object]';
5 | }
6 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/is-undefined.js:
--------------------------------------------------------------------------------
1 | export default function isUndefined(input) {
2 | return input === void 0;
3 | }
4 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/keys.js:
--------------------------------------------------------------------------------
1 | import hasOwnProp from './has-own-prop';
2 |
3 | var keys;
4 |
5 | if (Object.keys) {
6 | keys = Object.keys;
7 | } else {
8 | keys = function (obj) {
9 | var i, res = [];
10 | for (i in obj) {
11 | if (hasOwnProp(obj, i)) {
12 | res.push(i);
13 | }
14 | }
15 | return res;
16 | };
17 | }
18 |
19 | export { keys as default };
20 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/map.js:
--------------------------------------------------------------------------------
1 | export default function map(arr, fn) {
2 | var res = [], i;
3 | for (i = 0; i < arr.length; ++i) {
4 | res.push(fn(arr[i], i));
5 | }
6 | return res;
7 | }
8 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/mod.js:
--------------------------------------------------------------------------------
1 | export default function mod(n, x) {
2 | return ((n % x) + x) % x;
3 | }
4 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/some.js:
--------------------------------------------------------------------------------
1 | var some;
2 | if (Array.prototype.some) {
3 | some = Array.prototype.some;
4 | } else {
5 | some = function (fun) {
6 | var t = Object(this);
7 | var len = t.length >>> 0;
8 |
9 | for (var i = 0; i < len; i++) {
10 | if (i in t && fun.call(this, t[i], i, t)) {
11 | return true;
12 | }
13 | }
14 |
15 | return false;
16 | };
17 | }
18 |
19 | export { some as default };
20 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/to-int.js:
--------------------------------------------------------------------------------
1 | import absFloor from './abs-floor';
2 |
3 | export default function toInt(argumentForCoercion) {
4 | var coercedNumber = +argumentForCoercion,
5 | value = 0;
6 |
7 | if (coercedNumber !== 0 && isFinite(coercedNumber)) {
8 | value = absFloor(coercedNumber);
9 | }
10 |
11 | return value;
12 | }
13 |
--------------------------------------------------------------------------------
/node_modules/moment/src/lib/utils/zero-fill.js:
--------------------------------------------------------------------------------
1 | export default function zeroFill(number, targetLength, forceSign) {
2 | var absNumber = '' + Math.abs(number),
3 | zerosToFill = targetLength - absNumber.length,
4 | sign = number >= 0;
5 | return (sign ? (forceSign ? '+' : '') : '-') +
6 | Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
7 | }
8 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/ar-dz.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Arabic (Algeria) [ar-dz]
3 | //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('ar-dz', {
8 | months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
9 | monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
10 | weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
11 | weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
12 | weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
13 | weekdaysParseExact : true,
14 | longDateFormat : {
15 | LT : 'HH:mm',
16 | LTS : 'HH:mm:ss',
17 | L : 'DD/MM/YYYY',
18 | LL : 'D MMMM YYYY',
19 | LLL : 'D MMMM YYYY HH:mm',
20 | LLLL : 'dddd D MMMM YYYY HH:mm'
21 | },
22 | calendar : {
23 | sameDay: '[اليوم على الساعة] LT',
24 | nextDay: '[غدا على الساعة] LT',
25 | nextWeek: 'dddd [على الساعة] LT',
26 | lastDay: '[أمس على الساعة] LT',
27 | lastWeek: 'dddd [على الساعة] LT',
28 | sameElse: 'L'
29 | },
30 | relativeTime : {
31 | future : 'في %s',
32 | past : 'منذ %s',
33 | s : 'ثوان',
34 | ss : '%d ثانية',
35 | m : 'دقيقة',
36 | mm : '%d دقائق',
37 | h : 'ساعة',
38 | hh : '%d ساعات',
39 | d : 'يوم',
40 | dd : '%d أيام',
41 | M : 'شهر',
42 | MM : '%d أشهر',
43 | y : 'سنة',
44 | yy : '%d سنوات'
45 | },
46 | week : {
47 | dow : 0, // Sunday is the first day of the week.
48 | doy : 4 // The week that contains Jan 4th is the first week of the year.
49 | }
50 | });
51 |
52 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/ar-kw.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Arabic (Kuwait) [ar-kw]
3 | //! author : Nusret Parlak: https://github.com/nusretparlak
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('ar-kw', {
8 | months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
9 | monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
10 | weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
11 | weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
12 | weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
13 | weekdaysParseExact : true,
14 | longDateFormat : {
15 | LT : 'HH:mm',
16 | LTS : 'HH:mm:ss',
17 | L : 'DD/MM/YYYY',
18 | LL : 'D MMMM YYYY',
19 | LLL : 'D MMMM YYYY HH:mm',
20 | LLLL : 'dddd D MMMM YYYY HH:mm'
21 | },
22 | calendar : {
23 | sameDay: '[اليوم على الساعة] LT',
24 | nextDay: '[غدا على الساعة] LT',
25 | nextWeek: 'dddd [على الساعة] LT',
26 | lastDay: '[أمس على الساعة] LT',
27 | lastWeek: 'dddd [على الساعة] LT',
28 | sameElse: 'L'
29 | },
30 | relativeTime : {
31 | future : 'في %s',
32 | past : 'منذ %s',
33 | s : 'ثوان',
34 | ss : '%d ثانية',
35 | m : 'دقيقة',
36 | mm : '%d دقائق',
37 | h : 'ساعة',
38 | hh : '%d ساعات',
39 | d : 'يوم',
40 | dd : '%d أيام',
41 | M : 'شهر',
42 | MM : '%d أشهر',
43 | y : 'سنة',
44 | yy : '%d سنوات'
45 | },
46 | week : {
47 | dow : 0, // Sunday is the first day of the week.
48 | doy : 12 // The week that contains Jan 12th is the first week of the year.
49 | }
50 | });
51 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/ar-ma.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Arabic (Morocco) [ar-ma]
3 | //! author : ElFadili Yassine : https://github.com/ElFadiliY
4 | //! author : Abdel Said : https://github.com/abdelsaid
5 |
6 | import moment from '../moment';
7 |
8 | export default moment.defineLocale('ar-ma', {
9 | months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
10 | monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
11 | weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
12 | weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
13 | weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
14 | weekdaysParseExact : true,
15 | longDateFormat : {
16 | LT : 'HH:mm',
17 | LTS : 'HH:mm:ss',
18 | L : 'DD/MM/YYYY',
19 | LL : 'D MMMM YYYY',
20 | LLL : 'D MMMM YYYY HH:mm',
21 | LLLL : 'dddd D MMMM YYYY HH:mm'
22 | },
23 | calendar : {
24 | sameDay: '[اليوم على الساعة] LT',
25 | nextDay: '[غدا على الساعة] LT',
26 | nextWeek: 'dddd [على الساعة] LT',
27 | lastDay: '[أمس على الساعة] LT',
28 | lastWeek: 'dddd [على الساعة] LT',
29 | sameElse: 'L'
30 | },
31 | relativeTime : {
32 | future : 'في %s',
33 | past : 'منذ %s',
34 | s : 'ثوان',
35 | ss : '%d ثانية',
36 | m : 'دقيقة',
37 | mm : '%d دقائق',
38 | h : 'ساعة',
39 | hh : '%d ساعات',
40 | d : 'يوم',
41 | dd : '%d أيام',
42 | M : 'شهر',
43 | MM : '%d أشهر',
44 | y : 'سنة',
45 | yy : '%d سنوات'
46 | },
47 | week : {
48 | dow : 6, // Saturday is the first day of the week.
49 | doy : 12 // The week that contains Jan 12th is the first week of the year.
50 | }
51 | });
52 |
53 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/ar-tn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Arabic (Tunisia) [ar-tn]
3 | //! author : Nader Toukabri : https://github.com/naderio
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('ar-tn', {
8 | months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
9 | monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
10 | weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
11 | weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
12 | weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
13 | weekdaysParseExact : true,
14 | longDateFormat: {
15 | LT: 'HH:mm',
16 | LTS: 'HH:mm:ss',
17 | L: 'DD/MM/YYYY',
18 | LL: 'D MMMM YYYY',
19 | LLL: 'D MMMM YYYY HH:mm',
20 | LLLL: 'dddd D MMMM YYYY HH:mm'
21 | },
22 | calendar: {
23 | sameDay: '[اليوم على الساعة] LT',
24 | nextDay: '[غدا على الساعة] LT',
25 | nextWeek: 'dddd [على الساعة] LT',
26 | lastDay: '[أمس على الساعة] LT',
27 | lastWeek: 'dddd [على الساعة] LT',
28 | sameElse: 'L'
29 | },
30 | relativeTime: {
31 | future: 'في %s',
32 | past: 'منذ %s',
33 | s: 'ثوان',
34 | ss : '%d ثانية',
35 | m: 'دقيقة',
36 | mm: '%d دقائق',
37 | h: 'ساعة',
38 | hh: '%d ساعات',
39 | d: 'يوم',
40 | dd: '%d أيام',
41 | M: 'شهر',
42 | MM: '%d أشهر',
43 | y: 'سنة',
44 | yy: '%d سنوات'
45 | },
46 | week: {
47 | dow: 1, // Monday is the first day of the week.
48 | doy: 4 // The week that contains Jan 4th is the first week of the year.
49 | }
50 | });
51 |
52 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/bm.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Bambara [bm]
3 | //! author : Estelle Comment : https://github.com/estellecomment
4 | // Language contact person : Abdoufata Kane : https://github.com/abdoufata
5 |
6 | import moment from '../moment';
7 |
8 | export default moment.defineLocale('bm', {
9 | months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
10 | monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
11 | weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
12 | weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
13 | weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
14 | longDateFormat : {
15 | LT : 'HH:mm',
16 | LTS : 'HH:mm:ss',
17 | L : 'DD/MM/YYYY',
18 | LL : 'MMMM [tile] D [san] YYYY',
19 | LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
20 | LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
21 | },
22 | calendar : {
23 | sameDay : '[Bi lɛrɛ] LT',
24 | nextDay : '[Sini lɛrɛ] LT',
25 | nextWeek : 'dddd [don lɛrɛ] LT',
26 | lastDay : '[Kunu lɛrɛ] LT',
27 | lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
28 | sameElse : 'L'
29 | },
30 | relativeTime : {
31 | future : '%s kɔnɔ',
32 | past : 'a bɛ %s bɔ',
33 | s : 'sanga dama dama',
34 | ss : 'sekondi %d',
35 | m : 'miniti kelen',
36 | mm : 'miniti %d',
37 | h : 'lɛrɛ kelen',
38 | hh : 'lɛrɛ %d',
39 | d : 'tile kelen',
40 | dd : 'tile %d',
41 | M : 'kalo kelen',
42 | MM : 'kalo %d',
43 | y : 'san kelen',
44 | yy : 'san %d'
45 | },
46 | week : {
47 | dow : 1, // Monday is the first day of the week.
48 | doy : 4 // The week that contains Jan 4th is the first week of the year.
49 | }
50 | });
51 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/cv.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Chuvash [cv]
3 | //! author : Anatoly Mironov : https://github.com/mirontoli
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('cv', {
8 | months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
9 | monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
10 | weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
11 | weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
12 | weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD-MM-YYYY',
17 | LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
18 | LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
19 | LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
20 | },
21 | calendar : {
22 | sameDay: '[Паян] LT [сехетре]',
23 | nextDay: '[Ыран] LT [сехетре]',
24 | lastDay: '[Ӗнер] LT [сехетре]',
25 | nextWeek: '[Ҫитес] dddd LT [сехетре]',
26 | lastWeek: '[Иртнӗ] dddd LT [сехетре]',
27 | sameElse: 'L'
28 | },
29 | relativeTime : {
30 | future : function (output) {
31 | var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
32 | return output + affix;
33 | },
34 | past : '%s каялла',
35 | s : 'пӗр-ик ҫеккунт',
36 | ss : '%d ҫеккунт',
37 | m : 'пӗр минут',
38 | mm : '%d минут',
39 | h : 'пӗр сехет',
40 | hh : '%d сехет',
41 | d : 'пӗр кун',
42 | dd : '%d кун',
43 | M : 'пӗр уйӑх',
44 | MM : '%d уйӑх',
45 | y : 'пӗр ҫул',
46 | yy : '%d ҫул'
47 | },
48 | dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
49 | ordinal : '%d-мӗш',
50 | week : {
51 | dow : 1, // Monday is the first day of the week.
52 | doy : 7 // The week that contains Jan 7th is the first week of the year.
53 | }
54 | });
55 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/da.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Danish [da]
3 | //! author : Ulrik Nielsen : https://github.com/mrbase
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('da', {
8 | months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
9 | monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
10 | weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
11 | weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
12 | weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD.MM.YYYY',
17 | LL : 'D. MMMM YYYY',
18 | LLL : 'D. MMMM YYYY HH:mm',
19 | LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
20 | },
21 | calendar : {
22 | sameDay : '[i dag kl.] LT',
23 | nextDay : '[i morgen kl.] LT',
24 | nextWeek : 'på dddd [kl.] LT',
25 | lastDay : '[i går kl.] LT',
26 | lastWeek : '[i] dddd[s kl.] LT',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'om %s',
31 | past : '%s siden',
32 | s : 'få sekunder',
33 | ss : '%d sekunder',
34 | m : 'et minut',
35 | mm : '%d minutter',
36 | h : 'en time',
37 | hh : '%d timer',
38 | d : 'en dag',
39 | dd : '%d dage',
40 | M : 'en måned',
41 | MM : '%d måneder',
42 | y : 'et år',
43 | yy : '%d år'
44 | },
45 | dayOfMonthOrdinalParse: /\d{1,2}\./,
46 | ordinal : '%d.',
47 | week : {
48 | dow : 1, // Monday is the first day of the week.
49 | doy : 4 // The week that contains Jan 4th is the first week of the year.
50 | }
51 | });
52 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/en-SG.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : English (Singapore) [en-SG]
3 | //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('en-SG', {
8 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
9 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
12 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY HH:mm',
19 | LLLL : 'dddd, D MMMM YYYY HH:mm'
20 | },
21 | calendar : {
22 | sameDay : '[Today at] LT',
23 | nextDay : '[Tomorrow at] LT',
24 | nextWeek : 'dddd [at] LT',
25 | lastDay : '[Yesterday at] LT',
26 | lastWeek : '[Last] dddd [at] LT',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'in %s',
31 | past : '%s ago',
32 | s : 'a few seconds',
33 | ss : '%d seconds',
34 | m : 'a minute',
35 | mm : '%d minutes',
36 | h : 'an hour',
37 | hh : '%d hours',
38 | d : 'a day',
39 | dd : '%d days',
40 | M : 'a month',
41 | MM : '%d months',
42 | y : 'a year',
43 | yy : '%d years'
44 | },
45 | dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
46 | ordinal : function (number) {
47 | var b = number % 10,
48 | output = (~~(number % 100 / 10) === 1) ? 'th' :
49 | (b === 1) ? 'st' :
50 | (b === 2) ? 'nd' :
51 | (b === 3) ? 'rd' : 'th';
52 | return number + output;
53 | },
54 | week : {
55 | dow : 1, // Monday is the first day of the week.
56 | doy : 4 // The week that contains Jan 4th is the first week of the year.
57 | }
58 | });
59 |
60 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/en-au.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : English (Australia) [en-au]
3 | //! author : Jared Morse : https://github.com/jarcoal
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('en-au', {
8 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
9 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
12 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
13 | longDateFormat : {
14 | LT : 'h:mm A',
15 | LTS : 'h:mm:ss A',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY h:mm A',
19 | LLLL : 'dddd, D MMMM YYYY h:mm A'
20 | },
21 | calendar : {
22 | sameDay : '[Today at] LT',
23 | nextDay : '[Tomorrow at] LT',
24 | nextWeek : 'dddd [at] LT',
25 | lastDay : '[Yesterday at] LT',
26 | lastWeek : '[Last] dddd [at] LT',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'in %s',
31 | past : '%s ago',
32 | s : 'a few seconds',
33 | ss : '%d seconds',
34 | m : 'a minute',
35 | mm : '%d minutes',
36 | h : 'an hour',
37 | hh : '%d hours',
38 | d : 'a day',
39 | dd : '%d days',
40 | M : 'a month',
41 | MM : '%d months',
42 | y : 'a year',
43 | yy : '%d years'
44 | },
45 | dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
46 | ordinal : function (number) {
47 | var b = number % 10,
48 | output = (~~(number % 100 / 10) === 1) ? 'th' :
49 | (b === 1) ? 'st' :
50 | (b === 2) ? 'nd' :
51 | (b === 3) ? 'rd' : 'th';
52 | return number + output;
53 | },
54 | week : {
55 | dow : 1, // Monday is the first day of the week.
56 | doy : 4 // The week that contains Jan 4th is the first week of the year.
57 | }
58 | });
59 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/en-ca.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : English (Canada) [en-ca]
3 | //! author : Jonathan Abourbih : https://github.com/jonbca
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('en-ca', {
8 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
9 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
12 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
13 | longDateFormat : {
14 | LT : 'h:mm A',
15 | LTS : 'h:mm:ss A',
16 | L : 'YYYY-MM-DD',
17 | LL : 'MMMM D, YYYY',
18 | LLL : 'MMMM D, YYYY h:mm A',
19 | LLLL : 'dddd, MMMM D, YYYY h:mm A'
20 | },
21 | calendar : {
22 | sameDay : '[Today at] LT',
23 | nextDay : '[Tomorrow at] LT',
24 | nextWeek : 'dddd [at] LT',
25 | lastDay : '[Yesterday at] LT',
26 | lastWeek : '[Last] dddd [at] LT',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'in %s',
31 | past : '%s ago',
32 | s : 'a few seconds',
33 | ss : '%d seconds',
34 | m : 'a minute',
35 | mm : '%d minutes',
36 | h : 'an hour',
37 | hh : '%d hours',
38 | d : 'a day',
39 | dd : '%d days',
40 | M : 'a month',
41 | MM : '%d months',
42 | y : 'a year',
43 | yy : '%d years'
44 | },
45 | dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
46 | ordinal : function (number) {
47 | var b = number % 10,
48 | output = (~~(number % 100 / 10) === 1) ? 'th' :
49 | (b === 1) ? 'st' :
50 | (b === 2) ? 'nd' :
51 | (b === 3) ? 'rd' : 'th';
52 | return number + output;
53 | }
54 | });
55 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/en-gb.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : English (United Kingdom) [en-gb]
3 | //! author : Chris Gedrim : https://github.com/chrisgedrim
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('en-gb', {
8 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
9 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
12 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY HH:mm',
19 | LLLL : 'dddd, D MMMM YYYY HH:mm'
20 | },
21 | calendar : {
22 | sameDay : '[Today at] LT',
23 | nextDay : '[Tomorrow at] LT',
24 | nextWeek : 'dddd [at] LT',
25 | lastDay : '[Yesterday at] LT',
26 | lastWeek : '[Last] dddd [at] LT',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'in %s',
31 | past : '%s ago',
32 | s : 'a few seconds',
33 | ss : '%d seconds',
34 | m : 'a minute',
35 | mm : '%d minutes',
36 | h : 'an hour',
37 | hh : '%d hours',
38 | d : 'a day',
39 | dd : '%d days',
40 | M : 'a month',
41 | MM : '%d months',
42 | y : 'a year',
43 | yy : '%d years'
44 | },
45 | dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
46 | ordinal : function (number) {
47 | var b = number % 10,
48 | output = (~~(number % 100 / 10) === 1) ? 'th' :
49 | (b === 1) ? 'st' :
50 | (b === 2) ? 'nd' :
51 | (b === 3) ? 'rd' : 'th';
52 | return number + output;
53 | },
54 | week : {
55 | dow : 1, // Monday is the first day of the week.
56 | doy : 4 // The week that contains Jan 4th is the first week of the year.
57 | }
58 | });
59 |
60 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/en-ie.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : English (Ireland) [en-ie]
3 | //! author : Chris Cartlidge : https://github.com/chriscartlidge
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('en-ie', {
8 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
9 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
12 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY HH:mm',
19 | LLLL : 'dddd D MMMM YYYY HH:mm'
20 | },
21 | calendar : {
22 | sameDay : '[Today at] LT',
23 | nextDay : '[Tomorrow at] LT',
24 | nextWeek : 'dddd [at] LT',
25 | lastDay : '[Yesterday at] LT',
26 | lastWeek : '[Last] dddd [at] LT',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'in %s',
31 | past : '%s ago',
32 | s : 'a few seconds',
33 | ss : '%d seconds',
34 | m : 'a minute',
35 | mm : '%d minutes',
36 | h : 'an hour',
37 | hh : '%d hours',
38 | d : 'a day',
39 | dd : '%d days',
40 | M : 'a month',
41 | MM : '%d months',
42 | y : 'a year',
43 | yy : '%d years'
44 | },
45 | dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
46 | ordinal : function (number) {
47 | var b = number % 10,
48 | output = (~~(number % 100 / 10) === 1) ? 'th' :
49 | (b === 1) ? 'st' :
50 | (b === 2) ? 'nd' :
51 | (b === 3) ? 'rd' : 'th';
52 | return number + output;
53 | },
54 | week : {
55 | dow : 1, // Monday is the first day of the week.
56 | doy : 4 // The week that contains Jan 4th is the first week of the year.
57 | }
58 | });
59 |
60 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/en-il.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : English (Israel) [en-il]
3 | //! author : Chris Gedrim : https://github.com/chrisgedrim
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('en-il', {
8 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
9 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
12 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY HH:mm',
19 | LLLL : 'dddd, D MMMM YYYY HH:mm'
20 | },
21 | calendar : {
22 | sameDay : '[Today at] LT',
23 | nextDay : '[Tomorrow at] LT',
24 | nextWeek : 'dddd [at] LT',
25 | lastDay : '[Yesterday at] LT',
26 | lastWeek : '[Last] dddd [at] LT',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'in %s',
31 | past : '%s ago',
32 | s : 'a few seconds',
33 | m : 'a minute',
34 | mm : '%d minutes',
35 | h : 'an hour',
36 | hh : '%d hours',
37 | d : 'a day',
38 | dd : '%d days',
39 | M : 'a month',
40 | MM : '%d months',
41 | y : 'a year',
42 | yy : '%d years'
43 | },
44 | dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
45 | ordinal : function (number) {
46 | var b = number % 10,
47 | output = (~~(number % 100 / 10) === 1) ? 'th' :
48 | (b === 1) ? 'st' :
49 | (b === 2) ? 'nd' :
50 | (b === 3) ? 'rd' : 'th';
51 | return number + output;
52 | }
53 | });
54 |
55 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/en-nz.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : English (New Zealand) [en-nz]
3 | //! author : Luke McGregor : https://github.com/lukemcgregor
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('en-nz', {
8 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
9 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
12 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
13 | longDateFormat : {
14 | LT : 'h:mm A',
15 | LTS : 'h:mm:ss A',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY h:mm A',
19 | LLLL : 'dddd, D MMMM YYYY h:mm A'
20 | },
21 | calendar : {
22 | sameDay : '[Today at] LT',
23 | nextDay : '[Tomorrow at] LT',
24 | nextWeek : 'dddd [at] LT',
25 | lastDay : '[Yesterday at] LT',
26 | lastWeek : '[Last] dddd [at] LT',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'in %s',
31 | past : '%s ago',
32 | s : 'a few seconds',
33 | ss : '%d seconds',
34 | m : 'a minute',
35 | mm : '%d minutes',
36 | h : 'an hour',
37 | hh : '%d hours',
38 | d : 'a day',
39 | dd : '%d days',
40 | M : 'a month',
41 | MM : '%d months',
42 | y : 'a year',
43 | yy : '%d years'
44 | },
45 | dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
46 | ordinal : function (number) {
47 | var b = number % 10,
48 | output = (~~(number % 100 / 10) === 1) ? 'th' :
49 | (b === 1) ? 'st' :
50 | (b === 2) ? 'nd' :
51 | (b === 3) ? 'rd' : 'th';
52 | return number + output;
53 | },
54 | week : {
55 | dow : 1, // Monday is the first day of the week.
56 | doy : 4 // The week that contains Jan 4th is the first week of the year.
57 | }
58 | });
59 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/eu.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Basque [eu]
3 | //! author : Eneko Illarramendi : https://github.com/eillarra
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('eu', {
8 | months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
9 | monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
10 | monthsParseExact : true,
11 | weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
12 | weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
13 | weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
14 | weekdaysParseExact : true,
15 | longDateFormat : {
16 | LT : 'HH:mm',
17 | LTS : 'HH:mm:ss',
18 | L : 'YYYY-MM-DD',
19 | LL : 'YYYY[ko] MMMM[ren] D[a]',
20 | LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
21 | LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
22 | l : 'YYYY-M-D',
23 | ll : 'YYYY[ko] MMM D[a]',
24 | lll : 'YYYY[ko] MMM D[a] HH:mm',
25 | llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
26 | },
27 | calendar : {
28 | sameDay : '[gaur] LT[etan]',
29 | nextDay : '[bihar] LT[etan]',
30 | nextWeek : 'dddd LT[etan]',
31 | lastDay : '[atzo] LT[etan]',
32 | lastWeek : '[aurreko] dddd LT[etan]',
33 | sameElse : 'L'
34 | },
35 | relativeTime : {
36 | future : '%s barru',
37 | past : 'duela %s',
38 | s : 'segundo batzuk',
39 | ss : '%d segundo',
40 | m : 'minutu bat',
41 | mm : '%d minutu',
42 | h : 'ordu bat',
43 | hh : '%d ordu',
44 | d : 'egun bat',
45 | dd : '%d egun',
46 | M : 'hilabete bat',
47 | MM : '%d hilabete',
48 | y : 'urte bat',
49 | yy : '%d urte'
50 | },
51 | dayOfMonthOrdinalParse: /\d{1,2}\./,
52 | ordinal : '%d.',
53 | week : {
54 | dow : 1, // Monday is the first day of the week.
55 | doy : 7 // The week that contains Jan 7th is the first week of the year.
56 | }
57 | });
58 |
59 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/fo.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Faroese [fo]
3 | //! author : Ragnar Johannesen : https://github.com/ragnar123
4 | //! author : Kristian Sakarisson : https://github.com/sakarisson
5 |
6 | import moment from '../moment';
7 |
8 | export default moment.defineLocale('fo', {
9 | months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
10 | monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
11 | weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
12 | weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
13 | weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
14 | longDateFormat : {
15 | LT : 'HH:mm',
16 | LTS : 'HH:mm:ss',
17 | L : 'DD/MM/YYYY',
18 | LL : 'D MMMM YYYY',
19 | LLL : 'D MMMM YYYY HH:mm',
20 | LLLL : 'dddd D. MMMM, YYYY HH:mm'
21 | },
22 | calendar : {
23 | sameDay : '[Í dag kl.] LT',
24 | nextDay : '[Í morgin kl.] LT',
25 | nextWeek : 'dddd [kl.] LT',
26 | lastDay : '[Í gjár kl.] LT',
27 | lastWeek : '[síðstu] dddd [kl] LT',
28 | sameElse : 'L'
29 | },
30 | relativeTime : {
31 | future : 'um %s',
32 | past : '%s síðani',
33 | s : 'fá sekund',
34 | ss : '%d sekundir',
35 | m : 'ein minuttur',
36 | mm : '%d minuttir',
37 | h : 'ein tími',
38 | hh : '%d tímar',
39 | d : 'ein dagur',
40 | dd : '%d dagar',
41 | M : 'ein mánaður',
42 | MM : '%d mánaðir',
43 | y : 'eitt ár',
44 | yy : '%d ár'
45 | },
46 | dayOfMonthOrdinalParse: /\d{1,2}\./,
47 | ordinal : '%d.',
48 | week : {
49 | dow : 1, // Monday is the first day of the week.
50 | doy : 4 // The week that contains Jan 4th is the first week of the year.
51 | }
52 | });
53 |
54 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/it-ch.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Italian (Switzerland) [it-ch]
3 | //! author : xfh : https://github.com/xfh
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('it-ch', {
8 | months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
9 | monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
10 | weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
11 | weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
12 | weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD.MM.YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY HH:mm',
19 | LLLL : 'dddd D MMMM YYYY HH:mm'
20 | },
21 | calendar : {
22 | sameDay: '[Oggi alle] LT',
23 | nextDay: '[Domani alle] LT',
24 | nextWeek: 'dddd [alle] LT',
25 | lastDay: '[Ieri alle] LT',
26 | lastWeek: function () {
27 | switch (this.day()) {
28 | case 0:
29 | return '[la scorsa] dddd [alle] LT';
30 | default:
31 | return '[lo scorso] dddd [alle] LT';
32 | }
33 | },
34 | sameElse: 'L'
35 | },
36 | relativeTime : {
37 | future : function (s) {
38 | return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
39 | },
40 | past : '%s fa',
41 | s : 'alcuni secondi',
42 | ss : '%d secondi',
43 | m : 'un minuto',
44 | mm : '%d minuti',
45 | h : 'un\'ora',
46 | hh : '%d ore',
47 | d : 'un giorno',
48 | dd : '%d giorni',
49 | M : 'un mese',
50 | MM : '%d mesi',
51 | y : 'un anno',
52 | yy : '%d anni'
53 | },
54 | dayOfMonthOrdinalParse : /\d{1,2}º/,
55 | ordinal: '%dº',
56 | week : {
57 | dow : 1, // Monday is the first day of the week.
58 | doy : 4 // The week that contains Jan 4th is the first week of the year.
59 | }
60 | });
61 |
62 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/it.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Italian [it]
3 | //! author : Lorenzo : https://github.com/aliem
4 | //! author: Mattia Larentis: https://github.com/nostalgiaz
5 |
6 | import moment from '../moment';
7 |
8 | export default moment.defineLocale('it', {
9 | months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
10 | monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
11 | weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
12 | weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
13 | weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
14 | longDateFormat : {
15 | LT : 'HH:mm',
16 | LTS : 'HH:mm:ss',
17 | L : 'DD/MM/YYYY',
18 | LL : 'D MMMM YYYY',
19 | LLL : 'D MMMM YYYY HH:mm',
20 | LLLL : 'dddd D MMMM YYYY HH:mm'
21 | },
22 | calendar : {
23 | sameDay: '[Oggi alle] LT',
24 | nextDay: '[Domani alle] LT',
25 | nextWeek: 'dddd [alle] LT',
26 | lastDay: '[Ieri alle] LT',
27 | lastWeek: function () {
28 | switch (this.day()) {
29 | case 0:
30 | return '[la scorsa] dddd [alle] LT';
31 | default:
32 | return '[lo scorso] dddd [alle] LT';
33 | }
34 | },
35 | sameElse: 'L'
36 | },
37 | relativeTime : {
38 | future : function (s) {
39 | return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
40 | },
41 | past : '%s fa',
42 | s : 'alcuni secondi',
43 | ss : '%d secondi',
44 | m : 'un minuto',
45 | mm : '%d minuti',
46 | h : 'un\'ora',
47 | hh : '%d ore',
48 | d : 'un giorno',
49 | dd : '%d giorni',
50 | M : 'un mese',
51 | MM : '%d mesi',
52 | y : 'un anno',
53 | yy : '%d anni'
54 | },
55 | dayOfMonthOrdinalParse : /\d{1,2}º/,
56 | ordinal: '%dº',
57 | week : {
58 | dow : 1, // Monday is the first day of the week.
59 | doy : 4 // The week that contains Jan 4th is the first week of the year.
60 | }
61 | });
62 |
63 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/lo.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Lao [lo]
3 | //! author : Ryan Hart : https://github.com/ryanhart2
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('lo', {
8 | months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
9 | monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
10 | weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
11 | weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
12 | weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
13 | weekdaysParseExact : true,
14 | longDateFormat : {
15 | LT : 'HH:mm',
16 | LTS : 'HH:mm:ss',
17 | L : 'DD/MM/YYYY',
18 | LL : 'D MMMM YYYY',
19 | LLL : 'D MMMM YYYY HH:mm',
20 | LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
21 | },
22 | meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
23 | isPM: function (input) {
24 | return input === 'ຕອນແລງ';
25 | },
26 | meridiem : function (hour, minute, isLower) {
27 | if (hour < 12) {
28 | return 'ຕອນເຊົ້າ';
29 | } else {
30 | return 'ຕອນແລງ';
31 | }
32 | },
33 | calendar : {
34 | sameDay : '[ມື້ນີ້ເວລາ] LT',
35 | nextDay : '[ມື້ອື່ນເວລາ] LT',
36 | nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
37 | lastDay : '[ມື້ວານນີ້ເວລາ] LT',
38 | lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
39 | sameElse : 'L'
40 | },
41 | relativeTime : {
42 | future : 'ອີກ %s',
43 | past : '%sຜ່ານມາ',
44 | s : 'ບໍ່ເທົ່າໃດວິນາທີ',
45 | ss : '%d ວິນາທີ' ,
46 | m : '1 ນາທີ',
47 | mm : '%d ນາທີ',
48 | h : '1 ຊົ່ວໂມງ',
49 | hh : '%d ຊົ່ວໂມງ',
50 | d : '1 ມື້',
51 | dd : '%d ມື້',
52 | M : '1 ເດືອນ',
53 | MM : '%d ເດືອນ',
54 | y : '1 ປີ',
55 | yy : '%d ປີ'
56 | },
57 | dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
58 | ordinal : function (number) {
59 | return 'ທີ່' + number;
60 | }
61 | });
62 |
63 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/mi.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Maori [mi]
3 | //! author : John Corrigan : https://github.com/johnideal
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('mi', {
8 | 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('_'),
9 | monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
10 | monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
11 | monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
12 | monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
13 | monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
14 | weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
15 | weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
16 | weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
17 | longDateFormat: {
18 | LT: 'HH:mm',
19 | LTS: 'HH:mm:ss',
20 | L: 'DD/MM/YYYY',
21 | LL: 'D MMMM YYYY',
22 | LLL: 'D MMMM YYYY [i] HH:mm',
23 | LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
24 | },
25 | calendar: {
26 | sameDay: '[i teie mahana, i] LT',
27 | nextDay: '[apopo i] LT',
28 | nextWeek: 'dddd [i] LT',
29 | lastDay: '[inanahi i] LT',
30 | lastWeek: 'dddd [whakamutunga i] LT',
31 | sameElse: 'L'
32 | },
33 | relativeTime: {
34 | future: 'i roto i %s',
35 | past: '%s i mua',
36 | s: 'te hēkona ruarua',
37 | ss: '%d hēkona',
38 | m: 'he meneti',
39 | mm: '%d meneti',
40 | h: 'te haora',
41 | hh: '%d haora',
42 | d: 'he ra',
43 | dd: '%d ra',
44 | M: 'he marama',
45 | MM: '%d marama',
46 | y: 'he tau',
47 | yy: '%d tau'
48 | },
49 | dayOfMonthOrdinalParse: /\d{1,2}º/,
50 | ordinal: '%dº',
51 | week : {
52 | dow : 1, // Monday is the first day of the week.
53 | doy : 4 // The week that contains Jan 4th is the first week of the year.
54 | }
55 | });
56 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/mt.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Maltese (Malta) [mt]
3 | //! author : Alessandro Maruccia : https://github.com/alesma
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('mt', {
8 | months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
9 | monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
10 | weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
11 | weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
12 | weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY HH:mm',
19 | LLLL : 'dddd, D MMMM YYYY HH:mm'
20 | },
21 | calendar : {
22 | sameDay : '[Illum fil-]LT',
23 | nextDay : '[Għada fil-]LT',
24 | nextWeek : 'dddd [fil-]LT',
25 | lastDay : '[Il-bieraħ fil-]LT',
26 | lastWeek : 'dddd [li għadda] [fil-]LT',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'f’ %s',
31 | past : '%s ilu',
32 | s : 'ftit sekondi',
33 | ss : '%d sekondi',
34 | m : 'minuta',
35 | mm : '%d minuti',
36 | h : 'siegħa',
37 | hh : '%d siegħat',
38 | d : 'ġurnata',
39 | dd : '%d ġranet',
40 | M : 'xahar',
41 | MM : '%d xhur',
42 | y : 'sena',
43 | yy : '%d sni'
44 | },
45 | dayOfMonthOrdinalParse : /\d{1,2}º/,
46 | ordinal: '%dº',
47 | week : {
48 | dow : 1, // Monday is the first day of the week.
49 | doy : 4 // The week that contains Jan 4th is the first week of the year.
50 | }
51 | });
52 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/nb.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Norwegian Bokmål [nb]
3 | //! authors : Espen Hovlandsdal : https://github.com/rexxars
4 | //! Sigurd Gartmann : https://github.com/sigurdga
5 |
6 | import moment from '../moment';
7 |
8 | export default moment.defineLocale('nb', {
9 | months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
10 | monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
11 | monthsParseExact : true,
12 | weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
13 | weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
14 | weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
15 | weekdaysParseExact : true,
16 | longDateFormat : {
17 | LT : 'HH:mm',
18 | LTS : 'HH:mm:ss',
19 | L : 'DD.MM.YYYY',
20 | LL : 'D. MMMM YYYY',
21 | LLL : 'D. MMMM YYYY [kl.] HH:mm',
22 | LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
23 | },
24 | calendar : {
25 | sameDay: '[i dag kl.] LT',
26 | nextDay: '[i morgen kl.] LT',
27 | nextWeek: 'dddd [kl.] LT',
28 | lastDay: '[i går kl.] LT',
29 | lastWeek: '[forrige] dddd [kl.] LT',
30 | sameElse: 'L'
31 | },
32 | relativeTime : {
33 | future : 'om %s',
34 | past : '%s siden',
35 | s : 'noen sekunder',
36 | ss : '%d sekunder',
37 | m : 'ett minutt',
38 | mm : '%d minutter',
39 | h : 'en time',
40 | hh : '%d timer',
41 | d : 'en dag',
42 | dd : '%d dager',
43 | M : 'en måned',
44 | MM : '%d måneder',
45 | y : 'ett år',
46 | yy : '%d år'
47 | },
48 | dayOfMonthOrdinalParse: /\d{1,2}\./,
49 | ordinal : '%d.',
50 | week : {
51 | dow : 1, // Monday is the first day of the week.
52 | doy : 4 // The week that contains Jan 4th is the first week of the year.
53 | }
54 | });
55 |
56 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/nn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Nynorsk [nn]
3 | //! author : https://github.com/mechuwind
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('nn', {
8 | months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
9 | monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
10 | weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
11 | weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
12 | weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD.MM.YYYY',
17 | LL : 'D. MMMM YYYY',
18 | LLL : 'D. MMMM YYYY [kl.] H:mm',
19 | LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
20 | },
21 | calendar : {
22 | sameDay: '[I dag klokka] LT',
23 | nextDay: '[I morgon klokka] LT',
24 | nextWeek: 'dddd [klokka] LT',
25 | lastDay: '[I går klokka] LT',
26 | lastWeek: '[Føregåande] dddd [klokka] LT',
27 | sameElse: 'L'
28 | },
29 | relativeTime : {
30 | future : 'om %s',
31 | past : '%s sidan',
32 | s : 'nokre sekund',
33 | ss : '%d sekund',
34 | m : 'eit minutt',
35 | mm : '%d minutt',
36 | h : 'ein time',
37 | hh : '%d timar',
38 | d : 'ein dag',
39 | dd : '%d dagar',
40 | M : 'ein månad',
41 | MM : '%d månader',
42 | y : 'eit år',
43 | yy : '%d år'
44 | },
45 | dayOfMonthOrdinalParse: /\d{1,2}\./,
46 | ordinal : '%d.',
47 | week : {
48 | dow : 1, // Monday is the first day of the week.
49 | doy : 4 // The week that contains Jan 4th is the first week of the year.
50 | }
51 | });
52 |
53 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/pt-br.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Portuguese (Brazil) [pt-br]
3 | //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('pt-br', {
8 | months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
9 | monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
10 | weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
11 | weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
12 | weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
13 | weekdaysParseExact : true,
14 | longDateFormat : {
15 | LT : 'HH:mm',
16 | LTS : 'HH:mm:ss',
17 | L : 'DD/MM/YYYY',
18 | LL : 'D [de] MMMM [de] YYYY',
19 | LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
20 | LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
21 | },
22 | calendar : {
23 | sameDay: '[Hoje às] LT',
24 | nextDay: '[Amanhã às] LT',
25 | nextWeek: 'dddd [às] LT',
26 | lastDay: '[Ontem às] LT',
27 | lastWeek: function () {
28 | return (this.day() === 0 || this.day() === 6) ?
29 | '[Último] dddd [às] LT' : // Saturday + Sunday
30 | '[Última] dddd [às] LT'; // Monday - Friday
31 | },
32 | sameElse: 'L'
33 | },
34 | relativeTime : {
35 | future : 'em %s',
36 | past : 'há %s',
37 | s : 'poucos segundos',
38 | ss : '%d segundos',
39 | m : 'um minuto',
40 | mm : '%d minutos',
41 | h : 'uma hora',
42 | hh : '%d horas',
43 | d : 'um dia',
44 | dd : '%d dias',
45 | M : 'um mês',
46 | MM : '%d meses',
47 | y : 'um ano',
48 | yy : '%d anos'
49 | },
50 | dayOfMonthOrdinalParse: /\d{1,2}º/,
51 | ordinal : '%dº'
52 | });
53 |
54 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/pt.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Portuguese [pt]
3 | //! author : Jefferson : https://github.com/jalex79
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('pt', {
8 | months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
9 | monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
10 | weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
11 | weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
12 | weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
13 | weekdaysParseExact : true,
14 | longDateFormat : {
15 | LT : 'HH:mm',
16 | LTS : 'HH:mm:ss',
17 | L : 'DD/MM/YYYY',
18 | LL : 'D [de] MMMM [de] YYYY',
19 | LLL : 'D [de] MMMM [de] YYYY HH:mm',
20 | LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
21 | },
22 | calendar : {
23 | sameDay: '[Hoje às] LT',
24 | nextDay: '[Amanhã às] LT',
25 | nextWeek: 'dddd [às] LT',
26 | lastDay: '[Ontem às] LT',
27 | lastWeek: function () {
28 | return (this.day() === 0 || this.day() === 6) ?
29 | '[Último] dddd [às] LT' : // Saturday + Sunday
30 | '[Última] dddd [às] LT'; // Monday - Friday
31 | },
32 | sameElse: 'L'
33 | },
34 | relativeTime : {
35 | future : 'em %s',
36 | past : 'há %s',
37 | s : 'segundos',
38 | ss : '%d segundos',
39 | m : 'um minuto',
40 | mm : '%d minutos',
41 | h : 'uma hora',
42 | hh : '%d horas',
43 | d : 'um dia',
44 | dd : '%d dias',
45 | M : 'um mês',
46 | MM : '%d meses',
47 | y : 'um ano',
48 | yy : '%d anos'
49 | },
50 | dayOfMonthOrdinalParse: /\d{1,2}º/,
51 | ordinal : '%dº',
52 | week : {
53 | dow : 1, // Monday is the first day of the week.
54 | doy : 4 // The week that contains Jan 4th is the first week of the year.
55 | }
56 | });
57 |
58 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/se.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Northern Sami [se]
3 | //! authors : Bård Rolstad Henriksen : https://github.com/karamell
4 |
5 |
6 | import moment from '../moment';
7 |
8 | export default moment.defineLocale('se', {
9 | 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('_'),
10 | monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
11 | weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
12 | weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
13 | weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
14 | longDateFormat : {
15 | LT : 'HH:mm',
16 | LTS : 'HH:mm:ss',
17 | L : 'DD.MM.YYYY',
18 | LL : 'MMMM D. [b.] YYYY',
19 | LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
20 | LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
21 | },
22 | calendar : {
23 | sameDay: '[otne ti] LT',
24 | nextDay: '[ihttin ti] LT',
25 | nextWeek: 'dddd [ti] LT',
26 | lastDay: '[ikte ti] LT',
27 | lastWeek: '[ovddit] dddd [ti] LT',
28 | sameElse: 'L'
29 | },
30 | relativeTime : {
31 | future : '%s geažes',
32 | past : 'maŋit %s',
33 | s : 'moadde sekunddat',
34 | ss: '%d sekunddat',
35 | m : 'okta minuhta',
36 | mm : '%d minuhtat',
37 | h : 'okta diimmu',
38 | hh : '%d diimmut',
39 | d : 'okta beaivi',
40 | dd : '%d beaivvit',
41 | M : 'okta mánnu',
42 | MM : '%d mánut',
43 | y : 'okta jahki',
44 | yy : '%d jagit'
45 | },
46 | dayOfMonthOrdinalParse: /\d{1,2}\./,
47 | ordinal : '%d.',
48 | week : {
49 | dow : 1, // Monday is the first day of the week.
50 | doy : 4 // The week that contains Jan 4th is the first week of the year.
51 | }
52 | });
53 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/si.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Sinhalese [si]
3 | //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
4 |
5 | import moment from '../moment';
6 |
7 | /*jshint -W100*/
8 | export default moment.defineLocale('si', {
9 | months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
10 | monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
11 | weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
12 | weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'),
13 | weekdaysMin : 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'),
14 | weekdaysParseExact : true,
15 | longDateFormat : {
16 | LT : 'a h:mm',
17 | LTS : 'a h:mm:ss',
18 | L : 'YYYY/MM/DD',
19 | LL : 'YYYY MMMM D',
20 | LLL : 'YYYY MMMM D, a h:mm',
21 | LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
22 | },
23 | calendar : {
24 | sameDay : '[අද] LT[ට]',
25 | nextDay : '[හෙට] LT[ට]',
26 | nextWeek : 'dddd LT[ට]',
27 | lastDay : '[ඊයේ] LT[ට]',
28 | lastWeek : '[පසුගිය] dddd LT[ට]',
29 | sameElse : 'L'
30 | },
31 | relativeTime : {
32 | future : '%sකින්',
33 | past : '%sකට පෙර',
34 | s : 'තත්පර කිහිපය',
35 | ss : 'තත්පර %d',
36 | m : 'මිනිත්තුව',
37 | mm : 'මිනිත්තු %d',
38 | h : 'පැය',
39 | hh : 'පැය %d',
40 | d : 'දිනය',
41 | dd : 'දින %d',
42 | M : 'මාසය',
43 | MM : 'මාස %d',
44 | y : 'වසර',
45 | yy : 'වසර %d'
46 | },
47 | dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
48 | ordinal : function (number) {
49 | return number + ' වැනි';
50 | },
51 | meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
52 | isPM : function (input) {
53 | return input === 'ප.ව.' || input === 'පස් වරු';
54 | },
55 | meridiem : function (hours, minutes, isLower) {
56 | if (hours > 11) {
57 | return isLower ? 'ප.ව.' : 'පස් වරු';
58 | } else {
59 | return isLower ? 'පෙ.ව.' : 'පෙර වරු';
60 | }
61 | }
62 | });
63 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/sq.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Albanian [sq]
3 | //! author : Flakërim Ismani : https://github.com/flakerimi
4 | //! author : Menelion Elensúle : https://github.com/Oire
5 | //! author : Oerd Cukalla : https://github.com/oerd
6 |
7 | import moment from '../moment';
8 |
9 | export default moment.defineLocale('sq', {
10 | months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
11 | monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
12 | weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
13 | weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
14 | weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
15 | weekdaysParseExact : true,
16 | meridiemParse: /PD|MD/,
17 | isPM: function (input) {
18 | return input.charAt(0) === 'M';
19 | },
20 | meridiem : function (hours, minutes, isLower) {
21 | return hours < 12 ? 'PD' : 'MD';
22 | },
23 | longDateFormat : {
24 | LT : 'HH:mm',
25 | LTS : 'HH:mm:ss',
26 | L : 'DD/MM/YYYY',
27 | LL : 'D MMMM YYYY',
28 | LLL : 'D MMMM YYYY HH:mm',
29 | LLLL : 'dddd, D MMMM YYYY HH:mm'
30 | },
31 | calendar : {
32 | sameDay : '[Sot në] LT',
33 | nextDay : '[Nesër në] LT',
34 | nextWeek : 'dddd [në] LT',
35 | lastDay : '[Dje në] LT',
36 | lastWeek : 'dddd [e kaluar në] LT',
37 | sameElse : 'L'
38 | },
39 | relativeTime : {
40 | future : 'në %s',
41 | past : '%s më parë',
42 | s : 'disa sekonda',
43 | ss : '%d sekonda',
44 | m : 'një minutë',
45 | mm : '%d minuta',
46 | h : 'një orë',
47 | hh : '%d orë',
48 | d : 'një ditë',
49 | dd : '%d ditë',
50 | M : 'një muaj',
51 | MM : '%d muaj',
52 | y : 'një vit',
53 | yy : '%d vite'
54 | },
55 | dayOfMonthOrdinalParse: /\d{1,2}\./,
56 | ordinal : '%d.',
57 | week : {
58 | dow : 1, // Monday is the first day of the week.
59 | doy : 4 // The week that contains Jan 4th is the first week of the year.
60 | }
61 | });
62 |
63 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/sv.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Swedish [sv]
3 | //! author : Jens Alm : https://github.com/ulmus
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('sv', {
8 | months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
9 | monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
10 | weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
11 | weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
12 | weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'YYYY-MM-DD',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY [kl.] HH:mm',
19 | LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
20 | lll : 'D MMM YYYY HH:mm',
21 | llll : 'ddd D MMM YYYY HH:mm'
22 | },
23 | calendar : {
24 | sameDay: '[Idag] LT',
25 | nextDay: '[Imorgon] LT',
26 | lastDay: '[Igår] LT',
27 | nextWeek: '[På] dddd LT',
28 | lastWeek: '[I] dddd[s] LT',
29 | sameElse: 'L'
30 | },
31 | relativeTime : {
32 | future : 'om %s',
33 | past : 'för %s sedan',
34 | s : 'några sekunder',
35 | ss : '%d sekunder',
36 | m : 'en minut',
37 | mm : '%d minuter',
38 | h : 'en timme',
39 | hh : '%d timmar',
40 | d : 'en dag',
41 | dd : '%d dagar',
42 | M : 'en månad',
43 | MM : '%d månader',
44 | y : 'ett år',
45 | yy : '%d år'
46 | },
47 | dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
48 | ordinal : function (number) {
49 | var b = number % 10,
50 | output = (~~(number % 100 / 10) === 1) ? 'e' :
51 | (b === 1) ? 'a' :
52 | (b === 2) ? 'a' :
53 | (b === 3) ? 'e' : 'e';
54 | return number + output;
55 | },
56 | week : {
57 | dow : 1, // Monday is the first day of the week.
58 | doy : 4 // The week that contains Jan 4th is the first week of the year.
59 | }
60 | });
61 |
62 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/sw.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Swahili [sw]
3 | //! author : Fahad Kassim : https://github.com/fadsel
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('sw', {
8 | months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
9 | monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
10 | weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
11 | weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
12 | weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
13 | weekdaysParseExact : true,
14 | longDateFormat : {
15 | LT : 'HH:mm',
16 | LTS : 'HH:mm:ss',
17 | L : 'DD.MM.YYYY',
18 | LL : 'D MMMM YYYY',
19 | LLL : 'D MMMM YYYY HH:mm',
20 | LLLL : 'dddd, D MMMM YYYY HH:mm'
21 | },
22 | calendar : {
23 | sameDay : '[leo saa] LT',
24 | nextDay : '[kesho saa] LT',
25 | nextWeek : '[wiki ijayo] dddd [saat] LT',
26 | lastDay : '[jana] LT',
27 | lastWeek : '[wiki iliyopita] dddd [saat] LT',
28 | sameElse : 'L'
29 | },
30 | relativeTime : {
31 | future : '%s baadaye',
32 | past : 'tokea %s',
33 | s : 'hivi punde',
34 | ss : 'sekunde %d',
35 | m : 'dakika moja',
36 | mm : 'dakika %d',
37 | h : 'saa limoja',
38 | hh : 'masaa %d',
39 | d : 'siku moja',
40 | dd : 'masiku %d',
41 | M : 'mwezi mmoja',
42 | MM : 'miezi %d',
43 | y : 'mwaka mmoja',
44 | yy : 'miaka %d'
45 | },
46 | week : {
47 | dow : 1, // Monday is the first day of the week.
48 | doy : 7 // The week that contains Jan 7th is the first week of the year.
49 | }
50 | });
51 |
52 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/tet.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Tetun Dili (East Timor) [tet]
3 | //! author : Joshua Brooks : https://github.com/joshbrooks
4 | //! author : Onorio De J. Afonso : https://github.com/marobo
5 | //! author : Sonia Simoes : https://github.com/soniasimoes
6 |
7 | import moment from '../moment';
8 |
9 | export default moment.defineLocale('tet', {
10 | months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
11 | monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
12 | weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
13 | weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
14 | weekdaysMin : 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
15 | longDateFormat : {
16 | LT : 'HH:mm',
17 | LTS : 'HH:mm:ss',
18 | L : 'DD/MM/YYYY',
19 | LL : 'D MMMM YYYY',
20 | LLL : 'D MMMM YYYY HH:mm',
21 | LLLL : 'dddd, D MMMM YYYY HH:mm'
22 | },
23 | calendar : {
24 | sameDay: '[Ohin iha] LT',
25 | nextDay: '[Aban iha] LT',
26 | nextWeek: 'dddd [iha] LT',
27 | lastDay: '[Horiseik iha] LT',
28 | lastWeek: 'dddd [semana kotuk] [iha] LT',
29 | sameElse: 'L'
30 | },
31 | relativeTime : {
32 | future : 'iha %s',
33 | past : '%s liuba',
34 | s : 'minutu balun',
35 | ss : 'minutu %d',
36 | m : 'minutu ida',
37 | mm : 'minutu %d',
38 | h : 'oras ida',
39 | hh : 'oras %d',
40 | d : 'loron ida',
41 | dd : 'loron %d',
42 | M : 'fulan ida',
43 | MM : 'fulan %d',
44 | y : 'tinan ida',
45 | yy : 'tinan %d'
46 | },
47 | dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
48 | ordinal : function (number) {
49 | var b = number % 10,
50 | output = (~~(number % 100 / 10) === 1) ? 'th' :
51 | (b === 1) ? 'st' :
52 | (b === 2) ? 'nd' :
53 | (b === 3) ? 'rd' : 'th';
54 | return number + output;
55 | },
56 | week : {
57 | dow : 1, // Monday is the first day of the week.
58 | doy : 4 // The week that contains Jan 4th is the first week of the year.
59 | }
60 | });
61 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/th.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Thai [th]
3 | //! author : Kridsada Thanabulpong : https://github.com/sirn
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('th', {
8 | months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
9 | monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
10 | monthsParseExact: true,
11 | weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
12 | weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
13 | weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
14 | weekdaysParseExact : true,
15 | longDateFormat : {
16 | LT : 'H:mm',
17 | LTS : 'H:mm:ss',
18 | L : 'DD/MM/YYYY',
19 | LL : 'D MMMM YYYY',
20 | LLL : 'D MMMM YYYY เวลา H:mm',
21 | LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
22 | },
23 | meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
24 | isPM: function (input) {
25 | return input === 'หลังเที่ยง';
26 | },
27 | meridiem : function (hour, minute, isLower) {
28 | if (hour < 12) {
29 | return 'ก่อนเที่ยง';
30 | } else {
31 | return 'หลังเที่ยง';
32 | }
33 | },
34 | calendar : {
35 | sameDay : '[วันนี้ เวลา] LT',
36 | nextDay : '[พรุ่งนี้ เวลา] LT',
37 | nextWeek : 'dddd[หน้า เวลา] LT',
38 | lastDay : '[เมื่อวานนี้ เวลา] LT',
39 | lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
40 | sameElse : 'L'
41 | },
42 | relativeTime : {
43 | future : 'อีก %s',
44 | past : '%sที่แล้ว',
45 | s : 'ไม่กี่วินาที',
46 | ss : '%d วินาที',
47 | m : '1 นาที',
48 | mm : '%d นาที',
49 | h : '1 ชั่วโมง',
50 | hh : '%d ชั่วโมง',
51 | d : '1 วัน',
52 | dd : '%d วัน',
53 | M : '1 เดือน',
54 | MM : '%d เดือน',
55 | y : '1 ปี',
56 | yy : '%d ปี'
57 | }
58 | });
59 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/tl-ph.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Tagalog (Philippines) [tl-ph]
3 | //! author : Dan Hagman : https://github.com/hagmandan
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('tl-ph', {
8 | months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
9 | monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
10 | weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
11 | weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
12 | weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'MM/D/YYYY',
17 | LL : 'MMMM D, YYYY',
18 | LLL : 'MMMM D, YYYY HH:mm',
19 | LLLL : 'dddd, MMMM DD, YYYY HH:mm'
20 | },
21 | calendar : {
22 | sameDay: 'LT [ngayong araw]',
23 | nextDay: '[Bukas ng] LT',
24 | nextWeek: 'LT [sa susunod na] dddd',
25 | lastDay: 'LT [kahapon]',
26 | lastWeek: 'LT [noong nakaraang] dddd',
27 | sameElse: 'L'
28 | },
29 | relativeTime : {
30 | future : 'sa loob ng %s',
31 | past : '%s ang nakalipas',
32 | s : 'ilang segundo',
33 | ss : '%d segundo',
34 | m : 'isang minuto',
35 | mm : '%d minuto',
36 | h : 'isang oras',
37 | hh : '%d oras',
38 | d : 'isang araw',
39 | dd : '%d araw',
40 | M : 'isang buwan',
41 | MM : '%d buwan',
42 | y : 'isang taon',
43 | yy : '%d taon'
44 | },
45 | dayOfMonthOrdinalParse: /\d{1,2}/,
46 | ordinal : function (number) {
47 | return number;
48 | },
49 | week : {
50 | dow : 1, // Monday is the first day of the week.
51 | doy : 4 // The week that contains Jan 4th is the first week of the year.
52 | }
53 | });
54 |
55 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/tzm-latn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Central Atlas Tamazight Latin [tzm-latn]
3 | //! author : Abdel Said : https://github.com/abdelsaid
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('tzm-latn', {
8 | months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
9 | monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
10 | weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
11 | weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
12 | weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY HH:mm',
19 | LLLL : 'dddd D MMMM YYYY HH:mm'
20 | },
21 | calendar : {
22 | sameDay: '[asdkh g] LT',
23 | nextDay: '[aska g] LT',
24 | nextWeek: 'dddd [g] LT',
25 | lastDay: '[assant g] LT',
26 | lastWeek: 'dddd [g] LT',
27 | sameElse: 'L'
28 | },
29 | relativeTime : {
30 | future : 'dadkh s yan %s',
31 | past : 'yan %s',
32 | s : 'imik',
33 | ss : '%d imik',
34 | m : 'minuḍ',
35 | mm : '%d minuḍ',
36 | h : 'saɛa',
37 | hh : '%d tassaɛin',
38 | d : 'ass',
39 | dd : '%d ossan',
40 | M : 'ayowr',
41 | MM : '%d iyyirn',
42 | y : 'asgas',
43 | yy : '%d isgasn'
44 | },
45 | week : {
46 | dow : 6, // Saturday is the first day of the week.
47 | doy : 12 // The week that contains Jan 12th is the first week of the year.
48 | }
49 | });
50 |
51 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/tzm.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Central Atlas Tamazight [tzm]
3 | //! author : Abdel Said : https://github.com/abdelsaid
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('tzm', {
8 | months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
9 | monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
10 | weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
11 | weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
12 | weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS: 'HH:mm:ss',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY HH:mm',
19 | LLLL : 'dddd D MMMM YYYY HH:mm'
20 | },
21 | calendar : {
22 | sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
23 | nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
24 | nextWeek: 'dddd [ⴴ] LT',
25 | lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
26 | lastWeek: 'dddd [ⴴ] LT',
27 | sameElse: 'L'
28 | },
29 | relativeTime : {
30 | future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
31 | past : 'ⵢⴰⵏ %s',
32 | s : 'ⵉⵎⵉⴽ',
33 | ss : '%d ⵉⵎⵉⴽ',
34 | m : 'ⵎⵉⵏⵓⴺ',
35 | mm : '%d ⵎⵉⵏⵓⴺ',
36 | h : 'ⵙⴰⵄⴰ',
37 | hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
38 | d : 'ⴰⵙⵙ',
39 | dd : '%d oⵙⵙⴰⵏ',
40 | M : 'ⴰⵢoⵓⵔ',
41 | MM : '%d ⵉⵢⵢⵉⵔⵏ',
42 | y : 'ⴰⵙⴳⴰⵙ',
43 | yy : '%d ⵉⵙⴳⴰⵙⵏ'
44 | },
45 | week : {
46 | dow : 6, // Saturday is the first day of the week.
47 | doy : 12 // The week that contains Jan 12th is the first week of the year.
48 | }
49 | });
50 |
51 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/uz-latn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Uzbek Latin [uz-latn]
3 | //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('uz-latn', {
8 | months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
9 | monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
10 | weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
11 | weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
12 | weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY HH:mm',
19 | LLLL : 'D MMMM YYYY, dddd HH:mm'
20 | },
21 | calendar : {
22 | sameDay : '[Bugun soat] LT [da]',
23 | nextDay : '[Ertaga] LT [da]',
24 | nextWeek : 'dddd [kuni soat] LT [da]',
25 | lastDay : '[Kecha soat] LT [da]',
26 | lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'Yaqin %s ichida',
31 | past : 'Bir necha %s oldin',
32 | s : 'soniya',
33 | ss : '%d soniya',
34 | m : 'bir daqiqa',
35 | mm : '%d daqiqa',
36 | h : 'bir soat',
37 | hh : '%d soat',
38 | d : 'bir kun',
39 | dd : '%d kun',
40 | M : 'bir oy',
41 | MM : '%d oy',
42 | y : 'bir yil',
43 | yy : '%d yil'
44 | },
45 | week : {
46 | dow : 1, // Monday is the first day of the week.
47 | doy : 7 // The week that contains Jan 7th is the first week of the year.
48 | }
49 | });
50 |
51 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/uz.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Uzbek [uz]
3 | //! author : Sardor Muminov : https://github.com/muminoff
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('uz', {
8 | months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
9 | monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
10 | weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
11 | weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
12 | weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
13 | longDateFormat : {
14 | LT : 'HH:mm',
15 | LTS : 'HH:mm:ss',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY HH:mm',
19 | LLLL : 'D MMMM YYYY, dddd HH:mm'
20 | },
21 | calendar : {
22 | sameDay : '[Бугун соат] LT [да]',
23 | nextDay : '[Эртага] LT [да]',
24 | nextWeek : 'dddd [куни соат] LT [да]',
25 | lastDay : '[Кеча соат] LT [да]',
26 | lastWeek : '[Утган] dddd [куни соат] LT [да]',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'Якин %s ичида',
31 | past : 'Бир неча %s олдин',
32 | s : 'фурсат',
33 | ss : '%d фурсат',
34 | m : 'бир дакика',
35 | mm : '%d дакика',
36 | h : 'бир соат',
37 | hh : '%d соат',
38 | d : 'бир кун',
39 | dd : '%d кун',
40 | M : 'бир ой',
41 | MM : '%d ой',
42 | y : 'бир йил',
43 | yy : '%d йил'
44 | },
45 | week : {
46 | dow : 1, // Monday is the first day of the week.
47 | doy : 7 // The week that contains Jan 4th is the first week of the year.
48 | }
49 | });
50 |
51 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/x-pseudo.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Pseudo [x-pseudo]
3 | //! author : Andrew Hood : https://github.com/andrewhood125
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('x-pseudo', {
8 | 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('_'),
9 | monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
10 | monthsParseExact : true,
11 | weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
12 | weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
13 | weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
14 | weekdaysParseExact : true,
15 | longDateFormat : {
16 | LT : 'HH:mm',
17 | L : 'DD/MM/YYYY',
18 | LL : 'D MMMM YYYY',
19 | LLL : 'D MMMM YYYY HH:mm',
20 | LLLL : 'dddd, D MMMM YYYY HH:mm'
21 | },
22 | calendar : {
23 | sameDay : '[T~ódá~ý át] LT',
24 | nextDay : '[T~ómó~rró~w át] LT',
25 | nextWeek : 'dddd [át] LT',
26 | lastDay : '[Ý~ést~érdá~ý át] LT',
27 | lastWeek : '[L~ást] dddd [át] LT',
28 | sameElse : 'L'
29 | },
30 | relativeTime : {
31 | future : 'í~ñ %s',
32 | past : '%s á~gó',
33 | s : 'á ~féw ~sécó~ñds',
34 | ss : '%d s~écóñ~ds',
35 | m : 'á ~míñ~úté',
36 | mm : '%d m~íñú~tés',
37 | h : 'á~ñ hó~úr',
38 | hh : '%d h~óúrs',
39 | d : 'á ~dáý',
40 | dd : '%d d~áýs',
41 | M : 'á ~móñ~th',
42 | MM : '%d m~óñt~hs',
43 | y : 'á ~ýéár',
44 | yy : '%d ý~éárs'
45 | },
46 | dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
47 | ordinal : function (number) {
48 | var b = number % 10,
49 | output = (~~(number % 100 / 10) === 1) ? 'th' :
50 | (b === 1) ? 'st' :
51 | (b === 2) ? 'nd' :
52 | (b === 3) ? 'rd' : 'th';
53 | return number + output;
54 | },
55 | week : {
56 | dow : 1, // Monday is the first day of the week.
57 | doy : 4 // The week that contains Jan 4th is the first week of the year.
58 | }
59 | });
60 |
--------------------------------------------------------------------------------
/node_modules/moment/src/locale/yo.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Yoruba Nigeria [yo]
3 | //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
4 |
5 | import moment from '../moment';
6 |
7 | export default moment.defineLocale('yo', {
8 | months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
9 | monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
10 | weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
11 | weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
12 | weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
13 | longDateFormat : {
14 | LT : 'h:mm A',
15 | LTS : 'h:mm:ss A',
16 | L : 'DD/MM/YYYY',
17 | LL : 'D MMMM YYYY',
18 | LLL : 'D MMMM YYYY h:mm A',
19 | LLLL : 'dddd, D MMMM YYYY h:mm A'
20 | },
21 | calendar : {
22 | sameDay : '[Ònì ni] LT',
23 | nextDay : '[Ọ̀la ni] LT',
24 | nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
25 | lastDay : '[Àna ni] LT',
26 | lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
27 | sameElse : 'L'
28 | },
29 | relativeTime : {
30 | future : 'ní %s',
31 | past : '%s kọjá',
32 | s : 'ìsẹjú aayá die',
33 | ss :'aayá %d',
34 | m : 'ìsẹjú kan',
35 | mm : 'ìsẹjú %d',
36 | h : 'wákati kan',
37 | hh : 'wákati %d',
38 | d : 'ọjọ́ kan',
39 | dd : 'ọjọ́ %d',
40 | M : 'osù kan',
41 | MM : 'osù %d',
42 | y : 'ọdún kan',
43 | yy : 'ọdún %d'
44 | },
45 | dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
46 | ordinal : 'ọjọ́ %d',
47 | week : {
48 | dow : 1, // Monday is the first day of the week.
49 | doy : 4 // The week that contains Jan 4th is the first week of the year.
50 | }
51 | });
52 |
--------------------------------------------------------------------------------
/node_modules/underscore/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2009-2018 Jeremy Ashkenas, DocumentCloud and Investigative
2 | Reporters & Editors
3 |
4 | Permission is hereby granted, free of charge, to any person
5 | obtaining a copy of this software and associated documentation
6 | files (the "Software"), to deal in the Software without
7 | restriction, including without limitation the rights to use,
8 | copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the
10 | Software is furnished to do so, subject to the following
11 | conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 | OTHER DEALINGS IN THE SOFTWARE.
24 |
--------------------------------------------------------------------------------
/node_modules/underscore/README.md:
--------------------------------------------------------------------------------
1 | __
2 | /\ \ __
3 | __ __ ___ \_\ \ __ _ __ ____ ___ ___ _ __ __ /\_\ ____
4 | /\ \/\ \ /' _ `\ /'_ \ /'__`\/\ __\/ ,__\ / ___\ / __`\/\ __\/'__`\ \/\ \ /',__\
5 | \ \ \_\ \/\ \/\ \/\ \ \ \/\ __/\ \ \//\__, `\/\ \__//\ \ \ \ \ \//\ __/ __ \ \ \/\__, `\
6 | \ \____/\ \_\ \_\ \___,_\ \____\\ \_\\/\____/\ \____\ \____/\ \_\\ \____\/\_\ _\ \ \/\____/
7 | \/___/ \/_/\/_/\/__,_ /\/____/ \/_/ \/___/ \/____/\/___/ \/_/ \/____/\/_//\ \_\ \/___/
8 | \ \____/
9 | \/___/
10 |
11 | Underscore.js is a utility-belt library for JavaScript that provides
12 | support for the usual functional suspects (each, map, reduce, filter...)
13 | without extending any core JavaScript objects.
14 |
15 | For Docs, License, Tests, and pre-packed downloads, see:
16 | http://underscorejs.org
17 |
18 | For support and questions, please use
19 | [the gitter channel](https://gitter.im/jashkenas/underscore)
20 | or [stackoverflow](http://stackoverflow.com/search?q=underscore.js)
21 |
22 | Underscore is an open-sourced component of DocumentCloud:
23 | https://github.com/documentcloud
24 |
25 | Many thanks to our contributors:
26 | https://github.com/jashkenas/underscore/contributors
27 |
28 | This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
29 |
--------------------------------------------------------------------------------
/orchestrator/addMiddleware.js:
--------------------------------------------------------------------------------
1 | module.exports = function(bodyParser, app) {
2 | app.use(bodyParser.json({limit: '10mb'}));
3 | app.use(bodyParser.json({type: 'application/fhir+json'}));
4 | app.use(bodyParser.urlencoded({limit: '10mb', extended: true}));
5 | };
--------------------------------------------------------------------------------
/orchestrator/modules/responders.js:
--------------------------------------------------------------------------------
1 | var server = require('./server.js').server;
2 |
3 | var responders = {
4 | fhir:
5 | {
6 | get: function(msg, req, res)
7 | {
8 | if(msg.token) delete msg.token
9 |
10 | res.set('Content-Length', msg.length);
11 | res.status(200)
12 | res.send(msg);
13 | },
14 | post: function(msg, req, res)
15 | {
16 | if(msg.token) delete msg.token
17 |
18 | res.status(201);
19 | res.set('Content-Length', msg.length);
20 | server.setResourceLocation(req,res,msg.resourceType,msg.id);
21 | res.send(msg);
22 | },
23 | put: function(msg, req, res)
24 | {
25 | if(msg.token) delete msg.token
26 |
27 | res.status(204);
28 | res.send();
29 | },
30 | delete: function(msg, req, res)
31 | {
32 | if(msg.token) delete msg.token
33 |
34 | res.status(202);//Non commital (lol)
35 | res.send();
36 | }
37 | }
38 | }
39 |
40 | module.exports = {
41 | responders
42 | }
--------------------------------------------------------------------------------
/orchestrator/modules/server.js:
--------------------------------------------------------------------------------
1 | var server = {
2 | host:'localhost',
3 | isProxied:false,
4 | httpPort:'8080',
5 | httpsPort:'8443',
6 | path:'/fhir/stu3/',
7 | setResourceLocation:function(req,res,resourceType,resourceId) {
8 | //TODO: Version headers... ETag etc...
9 | var location = (this.isProxied ? 'https' : 'http') + '://' + this.host + ':' +
10 | (this.isProxied ? this.httpPort : this.httpsPort) + this.path;
11 |
12 | res.set('Location', location + resourceType + '/'+ resourceId);
13 | }
14 | }
15 |
16 | module.exports = {
17 | server
18 | }
--------------------------------------------------------------------------------
/orchestrator/onWSResponse.js:
--------------------------------------------------------------------------------
1 | var responders = require('./modules/responders.js').responders;
2 |
3 | module.exports = function(req, res, next) {
4 | var msg = res.locals.message || {error: 'Internal server error'};
5 | var code, status;
6 | if (msg.httpStatusError || (msg.data && msg.data.error)) {
7 | code = 500;
8 | status = (msg.httpStatusError && msg.httpStatusError.status) || (msg.data && msg.data.error.status);
9 | if(status && status.code) code = status.code;
10 | if(typeof msg.operationOutcome !== 'undefined')
11 | {
12 | msg = msg.operationOutcome;
13 | }
14 | else
15 | {
16 | delete msg.status;
17 | delete msg.restMessage;
18 | delete msg.ewd_application;
19 | delete msg.path;
20 | delete msg.token;
21 | }
22 | res.set('Content-Length', msg.length);
23 | res.status(code).send(msg);
24 | } else {
25 | //Send Response...
26 | if(req.originalUrl.indexOf("fhir") > -1) {
27 | var responseHandlers = responders["fhir"];
28 | var responseHandler = responseHandlers[req.method.toLowerCase()];
29 | res.type('application/fhir+json');
30 | responseHandler(msg, req, res);
31 | } else if(req.originalUrl.indexOf("token") > -1) {
32 | res.send(msg);
33 | } else {
34 | delete msg.token;
35 | res.send(msg);
36 | }
37 | }
38 | next();
39 | };
--------------------------------------------------------------------------------
/orchestrator/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/orchestrator/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "requires": true,
3 | "lockfileVersion": 1,
4 | "dependencies": {
5 | "btoa": {
6 | "version": "1.2.1",
7 | "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz",
8 | "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g=="
9 | },
10 | "crypto-js": {
11 | "version": "3.1.9-1",
12 | "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.9-1.tgz",
13 | "integrity": "sha1-/aGedh/Ad+Af+/3G6f38WeiAbNg="
14 | },
15 | "moment": {
16 | "version": "2.24.0",
17 | "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz",
18 | "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg=="
19 | },
20 | "underscore": {
21 | "version": "1.9.1",
22 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz",
23 | "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg=="
24 | },
25 | "utf8": {
26 | "version": "3.0.0",
27 | "resolved": "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz",
28 | "integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ=="
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/publisher/apis/modules/notifier.js:
--------------------------------------------------------------------------------
1 | var request = require('request');
2 |
3 | var notifier = {
4 | 'rest-hook':function(subscriber, subject, callback)
5 | {
6 | var requestParameters = {
7 | uri:subscriber.channel.endpoint,
8 | method:'POST',
9 | body:JSON.stringify(subject)
10 | };
11 | //Parse the Subscription headers...
12 | requestParameters.headers = {};
13 | subscriber.channel.header.forEach(function(header) {
14 | var keyValuePair = header.split(':');
15 | var key = keyValuePair[0];
16 | var value = keyValuePair[1];
17 | requestParameters.headers[key]=value;
18 | });
19 | //Add the content/accept headers...
20 | requestParameters.headers["accept"] = subscriber.channel.payload;
21 | requestParameters.headers["content-type"] = subscriber.channel.payload;
22 | //Send to rest hook...
23 | request(requestParameters, function(error,response,body) {
24 | if(response.statusCode !== 200) {
25 | callback({error: 'Unable to send rest-hook notification: ' + error + ' ' + body})
26 | } else {
27 | callback(false);
28 | }
29 | });
30 | },
31 | notify:function(subscriber, subject, callback) {
32 | var notifier = this[subscriber.channel.type] || undefined
33 | if(typeof notifier !== 'undefined') {
34 | //Copy any tags in this subscription to meta._tag in the subject...
35 | if(typeof subscriber.tag !== 'undefined' && _.isArray(subscriber.tag) && subscriber.tag.length > 0)
36 | {
37 | subject.meta.tag = subject.meta.tag || [];
38 | subscriber.tag.forEach(function(t) {
39 | subject.meta.tag.push(t);
40 | });
41 | }
42 | notifier(subscriber,subject,callback);
43 | } else {
44 | callback({error: 'Unsupported channel type ' + subscriber.channel.type});
45 | };
46 | }
47 | }
48 |
49 | module.exports = {
50 | notifier
51 | }
--------------------------------------------------------------------------------
/publisher/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/publisher/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------
/repo/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/repo/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------
/repoadapter/modules/urlBuilder.js:
--------------------------------------------------------------------------------
1 | var _ = require('underscore');
2 |
3 | var urlBuilder = {
4 | createUrlFromQuery:function(resourceType, queryParameters) {
5 | /*
6 | NOTE: Query String Key/Value pairs are grouped by Key (so, _include=x&_include=y will be present in query params as "_include":["x","y"])
7 | This could cause problems when creating, for example, link resources, especially self, as the link.url will be incorrect (_include=x,y)
8 | */
9 | var rawSearchUrl = resourceType + "?";
10 |
11 | for(key in queryParameters)
12 | {
13 | var value = queryParameters[key];
14 | if(value !== '*')
15 | {
16 | if(_.isArray(value))
17 | {
18 | value.forEach(function(item) {
19 | rawSearchUrl = rawSearchUrl + key + "=" + item + "&";
20 | });
21 | }
22 | else
23 | {
24 | rawSearchUrl = rawSearchUrl + key + "=" + value + "&";
25 | }
26 | }
27 | }
28 | //Strip off trailing &
29 | rawSearchUrl = rawSearchUrl.substring(0,rawSearchUrl.length-1);
30 |
31 | return rawSearchUrl;
32 | }
33 | }
34 |
35 | module.exports = {
36 | urlBuilder
37 | }
--------------------------------------------------------------------------------
/repoadapter/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/repoadapter/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------
/responder/apis/create/index.js:
--------------------------------------------------------------------------------
1 | var _ = require('underscore');
2 |
3 | var responder = require('../../modules/responder.js').responder;
4 | var dispatcher = require('../../../configuration/messaging/dispatcher.js').dispatcher;
5 |
6 | module.exports = function(args,finished) {
7 | console.log("RESPONDER CREATE: " + JSON.stringify(args,null,2));
8 |
9 | var request = args.req.body;
10 | request.pipeline = request.pipeline || [];
11 | request.pipeline.push("responder");
12 |
13 | try
14 | {
15 | //if request is an error, return operation outcome and http error status, else return data as is...
16 | //Todo: validate contents of request...
17 | if(request.data.error)
18 | {
19 | //Convert data to an operation outcome...
20 | finished(responder.createErrorResponse(request.data.error));
21 | } else {
22 | finished(request.data);
23 | }
24 | }
25 | catch(ex)
26 | {
27 | finished(dispatcher.error.serverError(request, ex.stack || ex.toString()));
28 | }
29 | }
--------------------------------------------------------------------------------
/responder/modules/responder.js:
--------------------------------------------------------------------------------
1 | var uuid = require('uuid');
2 |
3 | var responder = {
4 | createErrorResponse:function(error) {
5 | var operationOutcome = this.createOperationOutcome(error);
6 | var httpStatusError = this.createHttpErrorStatus(error);
7 |
8 | return {
9 | operationOutcome,
10 | httpStatusError
11 | }
12 | },
13 | createOperationOutcome:function(error) {
14 | return {
15 | resourceType: 'OperationOutcome',
16 | id: uuid.v4(),
17 | issue: [
18 | {
19 | code: error.code || 'processing',
20 | severity: error.severity || 'fatal',
21 | diagnostics: error.diagnostics || error.stack
22 | }
23 | ]
24 | };
25 | },
26 | createHttpErrorStatus:function(error) {
27 | return {
28 | error: error.text,
29 | status: { code: error.status }
30 | };
31 | }
32 | }
33 |
34 | module.exports = {
35 | responder
36 | }
--------------------------------------------------------------------------------
/responder/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/responder/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------
/search/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/search/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------
/tests/www/ewd-client.js:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/ewd-client/lib/proto/ewd-client.js
--------------------------------------------------------------------------------
/tests/www/qewd-monitor:
--------------------------------------------------------------------------------
1 | /opt/qewd/node_modules/qewd-monitor/www
--------------------------------------------------------------------------------