spacetime-week-start 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -0
- package/README.md +21 -12
- package/builds/spacetime-week-start.cjs +1 -1
- package/builds/spacetime-week-start.min.js +1 -1
- package/builds/spacetime-week-start.mjs +1 -1
- package/package.json +28 -24
- package/src/index.js +7 -1
- package/rollup.config.js +0 -26
- package/scratch.js +0 -7
- package/src/data/countries.js +0 -267
- package/src/input/weekStart.js +0 -66
- package/test/basic.test.js +0 -58
- package/zonefile/iana.js +0 -2501
|
@@ -1 +1 @@
|
|
|
1
|
-
const a={c009:"antarctica",c011:"arctic",c081:"gmt",c231:"universal",c233:"utc",c245:"zulu"},e={monday:{c002:"aland islands",c003:"albania",c006:"andorra",c007:"angola",c008:"anguilla",c013:"armenia",c014:"aruba",c016:"austria",c017:"azerbaijan",c020:"barbados",c021:"belarus",c022:"belgium",c024:"benin",c025:"bermuda",c028:"bonaire",c029:"bosnia and herzegovina",c032:"british indian ocean territory",c033:"brunei",c034:"bulgaria",c035:"burkina faso",c036:"burundi",c038:"cameroon",c040:"cape verde",c041:"cayman islands",c042:"central african republic",c043:"chad",c046:"christmas island",c047:"cocos (keeling) islands",c049:"comoros",c050:"cook islands",c052:"croatia",c053:"cuba",c054:"curacao",c055:"cyprus",c056:"czech republic",c057:"democratic republic of the congo",c058:"denmark",c064:"equatorial guinea",c065:"eritrea",c066:"estonia",c068:"falkland islands",c069:"faroe islands",c070:"fiji",c071:"finland",c072:"france",c073:"french guiana",c074:"french polynesia",c075:"french southern and antarctic lands",c076:"gabon",c077:"georgia",c078:"germany",c079:"ghana",c080:"gibraltar",c082:"greece",c083:"greenland",c084:"grenada",c085:"guadeloupe",c088:"guinea",c089:"guinea-bissau",c090:"guyana",c091:"haiti",c094:"hungary",c095:"iceland",c097:"indonesia",c100:"ireland",c102:"italy",c103:"ivory coast",c107:"kazakhstan",c109:"kiribati",c111:"kyrgyzstan",c113:"latvia",c114:"lebanon",c115:"lesotho",c116:"liberia",c118:"liechtenstein",c119:"lithuania",c120:"luxembourg",c123:"madagascar",c124:"malawi",c127:"mali",c130:"martinique",c131:"mauritania",c132:"mauritius",c133:"mayotte",c135:"micronesia",c137:"moldova",c138:"monaco",c139:"mongolia",c140:"montenegro",c141:"montserrat",c142:"morocco",c145:"namibia",c146:"nauru",c148:"netherlands",c149:"new caledonia",c150:"new zealand",c152:"niger",c153:"nigeria",c154:"niue",c155:"norfolk island",c157:"northern ireland",c158:"northern macedonia",c160:"norway",c162:"pakistan",c166:"papua new guinea",c170:"pitcairn islands",c171:"poland",c175:"republic of the congo",c176:"reunion",c177:"romania",c178:"russia",c179:"rwanda",c180:"saint helena, ascension and tristan da cunha",c181:"saint kitts and nevis",c182:"saint lucia",c183:"saint pierre and miquelon",c184:"saint vincent and the grenadines",c186:"san marino",c187:"sao tome and principe",c189:"senegal",c190:"serbia",c191:"seychelles",c192:"sierra leone",c194:"sint maarten",c195:"slovakia",c196:"slovenia",c197:"solomon islands",c200:"south georgia and the south sandwich islands",c203:"spain",c204:"sri lanka",c206:"suriname",c207:"swaziland",c208:"sweden",c209:"switzerland",c212:"tajikistan",c213:"tanzania",c216:"the gambia",c217:"togo",c218:"tokelau",c219:"tonga",c221:"tunisia",c222:"turkey",c223:"turkmenistan",c224:"turks and caicos islands",c225:"tuvalu",c226:"uganda",c227:"ukraine",c229:"united kingdom",c234:"uzbekistan",c235:"vanuatu",c236:"vatican city",c238:"vietnam",c241:"wallis and futuna",c243:"zambia"},saturday:{c019:"bangladesh",c059:"djibouti",c098:"iran",c164:"palestine",c198:"somalia"},sunday:{c001:"afghanistan",c004:"algeria",c005:"american samoa",c010:"antigua and barbuda",c012:"argentina",c015:"australia",c018:"bahrain",c023:"belize",c026:"bhutan",c030:"botswana",c031:"brazil",c037:"cambodia",c039:"canada",c044:"chile",c045:"china",c048:"colombia",c051:"costa rica",c060:"dominica",c061:"ecuador",c062:"egypt",c063:"el salvador",c067:"ethiopia",c086:"guam",c092:"honduras",c093:"hong kong",c096:"india",c099:"iraq",c101:"israel",c104:"jamaica",c105:"japan",c106:"jordan",c108:"kenya",c110:"kuwait",c112:"laos",c121:"macao",c122:"macau",c125:"malaysia",c126:"maldives",c128:"malta",c129:"marshall islands",c134:"mexico",c136:"midway atoll",c143:"mozambique",c144:"myanmar",c147:"nepal",c151:"nicaragua",c156:"north korea",c159:"northern mariana islands",c161:"oman",c163:"palau",c165:"panama",c167:"paraguay",c168:"peru",c169:"philippines",c172:"portugal",c173:"puerto rico",c174:"qatar",c185:"samoa",c188:"saudi arabia",c193:"singapore",c199:"south africa",c201:"south korea",c202:"south sudan",c205:"sudan",c210:"syria",c211:"taiwan",c214:"thailand",c215:"the bahamas",c220:"trinidad and tobago",c228:"united arab emirates",c230:"united states of america",c232:"uruguay",c237:"venezuela",c239:"virgin islands",c240:"wake island",c242:"yemen",c244:"zimbabwe"}};var c=()=>a,t={"africa/abidjan":{offset:0,hem:"n",ctry:"c103"},"africa/accra":{offset:0,hem:"n",ctry:"c079"},"africa/addis_ababa":{offset:3,hem:"n",ctry:"c067"},"africa/algiers":{offset:1,hem:"n",ctry:"c004"},"africa/asmara":{offset:3,hem:"n",ctry:"c065"},"africa/asmera":{offset:3,hem:"n",ctry:"c065"},"africa/bamako":{offset:0,hem:"n",ctry:"c127"},"africa/bangui":{offset:1,hem:"n",ctry:"c042"},"africa/banjul":{offset:0,hem:"n",ctry:"c216"},"africa/bissau":{offset:0,hem:"n",ctry:"c089"},"africa/blantyre":{offset:2,hem:"n",ctry:"c124"},"africa/brazzaville":{offset:1,hem:"n",ctry:"c175"},"africa/bujumbura":{offset:2,hem:"n",ctry:"c036"},"africa/cairo":{offset:2,hem:"n",ctry:"c062"},"africa/casablanca":{offset:1,hem:"n",dst:"05/05:03->06/09:02",ctry:"c142"},"africa/ceuta":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c203"},"africa/conakry":{offset:0,hem:"n",ctry:"c088"},"africa/dakar":{offset:0,hem:"n",ctry:"c189"},"africa/dar_es_salaam":{offset:3,hem:"n",ctry:"c213"},"africa/djibouti":{offset:3,hem:"n"},"africa/douala":{offset:1,hem:"n",ctry:"c038"},"africa/el_aaiun":{offset:1,hem:"n",dst:"05/05:03->06/09:02",ctry:"c142"},"africa/freetown":{offset:0,hem:"n",ctry:"c192"},"africa/gaborone":{offset:2,hem:"s",ctry:"c030"},"africa/harare":{offset:2,hem:"s",ctry:"c244"},"africa/johannesburg":{offset:2,hem:"s",ctry:"c199"},"africa/juba":{offset:3,hem:"n",ctry:"c202"},"africa/kampala":{offset:3,hem:"n",ctry:"c226"},"africa/khartoum":{offset:2,hem:"n",ctry:"c205"},"africa/kigali":{offset:2,hem:"n",ctry:"c179"},"africa/kinshasa":{offset:1,hem:"s",ctry:"c057"},"africa/lagos":{offset:1,hem:"n",ctry:"c153"},"africa/libreville":{offset:1,hem:"n",ctry:"c076"},"africa/lome":{offset:0,hem:"n",ctry:"c217"},"africa/luanda":{offset:1,hem:"s",ctry:"c007"},"africa/lubumbashi":{offset:2,hem:"s",ctry:"c057"},"africa/lusaka":{offset:2,hem:"s",ctry:"c243"},"africa/malabo":{offset:1,hem:"n",ctry:"c064"},"africa/maputo":{offset:2,hem:"s",ctry:"c143"},"africa/maseru":{offset:2,hem:"s",ctry:"c115"},"africa/mbabane":{offset:2,hem:"s",ctry:"c207"},"africa/mogadishu":{offset:3,hem:"n",ctry:"c198"},"africa/monrovia":{offset:0,hem:"n",ctry:"c116"},"africa/nairobi":{offset:3,hem:"n",ctry:"c108"},"africa/ndjamena":{offset:1,hem:"n",ctry:"c043"},"africa/niamey":{offset:1,hem:"n",ctry:"c152"},"africa/nouakchott":{offset:0,hem:"n",ctry:"c131"},"africa/ouagadougou":{offset:0,hem:"n",ctry:"c035"},"africa/porto-novo":{offset:1,hem:"n",ctry:"c024"},"africa/sao_tome":{offset:0,hem:"n",ctry:"c187"},"africa/timbuktu":{offset:0,hem:"n",ctry:"c127"},"africa/tripoli":{offset:2,hem:"n",ctry:"c117"},"africa/tunis":{offset:1,hem:"n",ctry:"c221"},"africa/windhoek":{offset:1,hem:"s",dst:"04/02:01->09/03:03",ctry:"c145"},"america/adak":{offset:-9,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/anchorage":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/anguilla":{offset:-4,hem:"n"},"america/antigua":{offset:-4,hem:"n",ctry:"c010"},"america/araguaina":{offset:-3,hem:"n",ctry:"c031"},"america/argentina":{offset:-3,hem:"s"},"america/aruba":{offset:-4,hem:"n"},"america/asuncion":{offset:-4,hem:"s",dst:"03/23:24->10/06:00",ctry:"c167"},"america/atikokan":{offset:-5,hem:"n",ctry:"c039"},"america/atka":{offset:-9,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/bahia":{offset:-3,hem:"n",ctry:"c031"},"america/bahia_banderas":{offset:-5,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/barbados":{offset:-4,hem:"n"},"america/belem":{offset:-3,hem:"n",ctry:"c031"},"america/belize":{offset:-6,hem:"n"},"america/blanc-sablon":{offset:-4,hem:"n",ctry:"c039"},"america/boa_vista":{offset:-4,hem:"n",ctry:"c031"},"america/bogota":{offset:-5,hem:"n",ctry:"c048"},"america/boise":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/buenos_aires":{offset:-3,hem:"s",ctry:"c012"},"america/cambridge_bay":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/campo_grande":{offset:-4,hem:"s",dst:"02/16:24->11/03:00",ctry:"c031"},"america/cancun":{offset:-5,hem:"n",ctry:"c134"},"america/caracas":{offset:-4,hem:"n",ctry:"c237"},"america/catamarca":{offset:-3,hem:"n",ctry:"c012"},"america/cayenne":{offset:-3,hem:"n",ctry:"c073"},"america/cayman":{offset:-5,hem:"n",ctry:"c041"},"america/chicago":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/chihuahua":{offset:-6,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/coral_harbour":{offset:-5,hem:"n",ctry:"c215"},"america/cordoba":{offset:-3,hem:"s",ctry:"c012"},"america/costa_rica":{offset:-6,hem:"n"},"america/creston":{offset:-7,hem:"n",ctry:"c230"},"america/cuiaba":{offset:-4,hem:"s",dst:"02/16:24->11/03:00",ctry:"c031"},"america/curacao":{offset:-4,hem:"n"},"america/danmarkshavn":{offset:0,hem:"n",ctry:"c083"},"america/dawson":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/dawson_creek":{offset:-7,hem:"n",ctry:"c039"},"america/denver":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/detroit":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/dominica":{offset:-4,hem:"n"},"america/edmonton":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/eirunepe":{offset:-5,hem:"n",ctry:"c031"},"america/el_salvador":{offset:-6,hem:"n"},"america/ensenada":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/fort_wayne":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/fortaleza":{offset:-3,hem:"s",ctry:"c031"},"america/glace_bay":{offset:-3,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/godthab":{offset:-2,hem:"n",dst:"03/30:22->10/26:23",ctry:"c083"},"america/goose_bay":{offset:-3,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/grand_turk":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c224"},"america/grenada":{offset:-4,hem:"n"},"america/guadeloupe":{offset:-4,hem:"n"},"america/guatemala":{offset:-6,hem:"n"},"america/guayaquil":{offset:-5,hem:"n",ctry:"c061"},"america/guyana":{offset:-4,hem:"n"},"america/halifax":{offset:-3,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/havana":{offset:-4,hem:"n",dst:"03/10:00->11/03:01",ctry:"c053"},"america/hermosillo":{offset:-7,hem:"n",ctry:"c134"},"america/indiana":{offset:-4,hem:"n",dst:"03/12:03->11/05:01",ctry:"c230"},"america/indianapolis":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/inuvik":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/iqaluit":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/jamaica":{offset:-5,hem:"n"},"america/jujuy":{offset:-3,hem:"n",ctry:"c012"},"america/juneau":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/kentucky":{offset:-4,hem:"n",dst:"03/12:03->11/05:01",ctry:"c230"},"america/knox_in":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/kralendijk":{offset:-4,hem:"n",ctry:"c028"},"america/la_paz":{offset:-4,hem:"s",ctry:"c027"},"america/lima":{offset:-5,hem:"s",ctry:"c168"},"america/los_angeles":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/louisville":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/lower_princes":{offset:-4,hem:"n",ctry:"c194"},"america/maceio":{offset:-3,hem:"n",ctry:"c031"},"america/managua":{offset:-6,hem:"n",ctry:"c151"},"america/manaus":{offset:-4,hem:"s",ctry:"c031"},"america/marigot":{offset:-4,hem:"n",ctry:"c194"},"america/martinique":{offset:-4,hem:"n"},"america/matamoros":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/mazatlan":{offset:-6,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/mendoza":{offset:-3,hem:"n",ctry:"c012"},"america/menominee":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/merida":{offset:-5,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/metlakatla":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/mexico_city":{offset:-5,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/miquelon":{offset:-2,hem:"n",dst:"03/10:02->11/03:02",ctry:"c183"},"america/moncton":{offset:-3,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/monterrey":{offset:-5,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/montevideo":{offset:-3,hem:"s",ctry:"c232"},"america/montreal":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/montserrat":{offset:-4,hem:"n"},"america/nassau":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c215"},"america/new_york":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/nipigon":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/nome":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/noronha":{offset:-2,hem:"n",ctry:"c031"},"america/north_dakota":{offset:-5,hem:"n",dst:"03/12:03->11/05:01",ctry:"c230"},"america/ojinaga":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/panama":{offset:-5,hem:"n"},"america/pangnirtung":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/paramaribo":{offset:-3,hem:"n",ctry:"c206"},"america/phoenix":{offset:-7,hem:"n",ctry:"c230"},"america/port-au-prince":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c091"},"america/port_of_spain":{offset:-4,hem:"n",ctry:"c220"},"america/porto_acre":{offset:-5,hem:"n",ctry:"c031"},"america/porto_velho":{offset:-4,hem:"n",ctry:"c031"},"america/puerto_rico":{offset:-4,hem:"n"},"america/punta_arenas":{offset:-3,hem:"s",ctry:"c051"},"america/rainy_river":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/rankin_inlet":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/recife":{offset:-3,hem:"n",ctry:"c031"},"america/regina":{offset:-6,hem:"n",ctry:"c039"},"america/resolute":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/rio_branco":{offset:-5,hem:"s",ctry:"c031"},"america/rosario":{offset:-3,hem:"n",ctry:"c012"},"america/santa_isabel":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/santarem":{offset:-3,hem:"n",ctry:"c031"},"america/santiago":{offset:-4,hem:"s",dst:"04/06:24->09/08:00",ctry:"c134"},"america/santo_domingo":{offset:-4,hem:"n",ctry:"c134"},"america/sao_paulo":{offset:-3,hem:"s",dst:"02/16:24->11/03:00",ctry:"c031"},"america/scoresbysund":{offset:0,hem:"n",dst:"03/31:00->10/27:01",ctry:"c083"},"america/shiprock":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/sitka":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/st_barthelemy":{offset:-4,hem:"n",ctry:"c039"},"america/st_johns":{offset:-2.5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/st_kitts":{offset:-4,hem:"n",ctry:"c181"},"america/st_lucia":{offset:-4,hem:"n",ctry:"c182"},"america/st_thomas":{offset:-4,hem:"n",ctry:"c239"},"america/st_vincent":{offset:-4,hem:"n",ctry:"c184"},"america/swift_current":{offset:-6,hem:"n",ctry:"c039"},"america/tegucigalpa":{offset:-6,hem:"n",ctry:"c092"},"america/thule":{offset:-3,hem:"n",dst:"03/10:02->11/03:02",ctry:"c083"},"america/thunder_bay":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/tijuana":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/toronto":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/tortola":{offset:-4,hem:"n",ctry:"c239"},"america/vancouver":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/virgin":{offset:-4,hem:"n",ctry:"c239"},"america/whitehorse":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/winnipeg":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/yakutat":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/yellowknife":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"antarctica/casey":{offset:8,hem:"s"},"antarctica/davis":{offset:7,hem:"s"},"antarctica/dumontdurville":{offset:10,hem:"s"},"antarctica/macquarie":{offset:11,hem:"s"},"antarctica/mawson":{offset:5,hem:"s"},"antarctica/mcmurdo":{offset:12,hem:"s",dst:"04/07:03->09/29:02"},"antarctica/palmer":{offset:-4,hem:"s",dst:"05/13:23->08/13:01"},"antarctica/rothera":{offset:-3,hem:"s"},"antarctica/south_pole":{offset:12,hem:"s",dst:"04/07:03->09/29:02"},"antarctica/syowa":{offset:3,hem:"s"},"antarctica/troll":{offset:2,hem:"s",dst:"03/31:02->10/27:02"},"antarctica/vostok":{offset:6,hem:"s"},"arctic/longyearbyen":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"asia/aden":{offset:3,hem:"n",ctry:"c242"},"asia/almaty":{offset:6,hem:"n",ctry:"c107"},"asia/amman":{offset:3,hem:"n",dst:"03/29:00->10/25:01",ctry:"c106"},"asia/anadyr":{offset:12,hem:"n",ctry:"c178"},"asia/aqtau":{offset:5,hem:"n",ctry:"c107"},"asia/aqtobe":{offset:5,hem:"n",ctry:"c107"},"asia/ashgabat":{offset:5,hem:"n",ctry:"c223"},"asia/ashkhabad":{offset:5,hem:"n",ctry:"c223"},"asia/atyrau":{offset:5,hem:"n",ctry:"c107"},"asia/baghdad":{offset:3,hem:"n",ctry:"c099"},"asia/bahrain":{offset:3,hem:"n"},"asia/baku":{offset:5,hem:"n",ctry:"c017"},"asia/bangkok":{offset:7,hem:"n",ctry:"c214"},"asia/barnaul":{offset:7,hem:"n",ctry:"c178"},"asia/beirut":{offset:3,hem:"n",dst:"03/31:00->10/26:24",ctry:"c114"},"asia/bishkek":{offset:6,hem:"n",ctry:"c111"},"asia/brunei":{offset:8,hem:"n"},"asia/calcutta":{offset:5.5,hem:"n",ctry:"c096"},"asia/chita":{offset:9,hem:"n",ctry:"c048"},"asia/choibalsan":{offset:8,hem:"n",ctry:"c139"},"asia/chongqing":{offset:8,hem:"n",ctry:"c045"},"asia/chungking":{offset:8,hem:"n",ctry:"c045"},"asia/colombo":{offset:5.5,hem:"n",ctry:"c204"},"asia/dacca":{offset:6,hem:"n",ctry:"c019"},"asia/damascus":{offset:3,hem:"n",dst:"03/29:00->10/24:24",ctry:"c210"},"asia/dhaka":{offset:6,hem:"n",ctry:"c019"},"asia/dili":{offset:9,hem:"s",ctry:"c096"},"asia/dubai":{offset:4,hem:"n",ctry:"c228"},"asia/dushanbe":{offset:5,hem:"n",ctry:"c212"},"asia/gaza":{offset:3,hem:"n",dst:"03/23:01->10/26:01",ctry:"c164"},"asia/harbin":{offset:8,hem:"n",ctry:"c045"},"asia/hebron":{offset:3,hem:"n",dst:"03/23:01->10/26:01",ctry:"c164"},"asia/ho_chi_minh":{offset:7,hem:"n",ctry:"c238"},"asia/hong_kong":{offset:8,hem:"n"},"asia/hovd":{offset:7,hem:"n",ctry:"c139"},"asia/irkutsk":{offset:8,hem:"n",ctry:"c178"},"asia/istanbul":{offset:3,hem:"n",ctry:"c222"},"asia/jakarta":{offset:7,hem:"s",ctry:"c097"},"asia/jayapura":{offset:9,hem:"s",ctry:"c097"},"asia/jerusalem":{offset:3,hem:"n",dst:"03/29:02->10/27:02",ctry:"c101"},"asia/kabul":{offset:4.5,hem:"n",ctry:"c001"},"asia/kamchatka":{offset:12,hem:"n",ctry:"c178"},"asia/karachi":{offset:5,hem:"n",ctry:"c162"},"asia/kashgar":{offset:6,hem:"n",ctry:"c045"},"asia/kathmandu":{offset:5.75,hem:"n",ctry:"c147"},"asia/katmandu":{offset:5.75,hem:"n",ctry:"c147"},"asia/khandyga":{offset:9,hem:"n",ctry:"c178"},"asia/kolkata":{offset:5.5,hem:"n",ctry:"c096"},"asia/krasnoyarsk":{offset:7,hem:"n",ctry:"c178"},"asia/kuala_lumpur":{offset:8,hem:"s",ctry:"c125"},"asia/kuching":{offset:8,hem:"n",ctry:"c125"},"asia/kuwait":{offset:3,hem:"n"},"asia/macao":{offset:8,hem:"n"},"asia/macau":{offset:8,hem:"n"},"asia/magadan":{offset:11,hem:"n",ctry:"c178"},"asia/makassar":{offset:8,hem:"s",ctry:"c097"},"asia/manila":{offset:8,hem:"n",ctry:"c169"},"asia/muscat":{offset:4,hem:"n",ctry:"c161"},"asia/nicosia":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c055"},"asia/novokuznetsk":{offset:7,hem:"n",ctry:"c178"},"asia/novosibirsk":{offset:7,hem:"n",ctry:"c178"},"asia/omsk":{offset:6,hem:"n",ctry:"c178"},"asia/oral":{offset:5,hem:"n",ctry:"c107"},"asia/phnom_penh":{offset:7,hem:"n",ctry:"c037"},"asia/pontianak":{offset:7,hem:"n",ctry:"c097"},"asia/pyongyang":{offset:9,hem:"n",ctry:"c156"},"asia/qatar":{offset:3,hem:"n"},"asia/qyzylorda":{offset:6,hem:"n",ctry:"c107"},"asia/rangoon":{offset:6.5,hem:"n",ctry:"c144"},"asia/riyadh":{offset:3,hem:"n",ctry:"c188"},"asia/saigon":{offset:7,hem:"n",ctry:"c238"},"asia/sakhalin":{offset:11,hem:"n",ctry:""},"asia/samarkand":{offset:5,hem:"n",ctry:"c178"},"asia/seoul":{offset:9,hem:"n",ctry:"c201"},"asia/shanghai":{offset:8,hem:"n",ctry:"c045"},"asia/singapore":{offset:8,hem:"s"},"asia/srednekolymsk":{offset:12,hem:"n",ctry:"c178"},"asia/taipei":{offset:8,hem:"n",ctry:"c211"},"asia/tashkent":{offset:5,hem:"n",ctry:"c234"},"asia/tbilisi":{offset:4,hem:"n",ctry:"c077"},"asia/tehran":{offset:4.5,hem:"n",dst:"03/22:00->09/21:24",ctry:"c098"},"asia/tel_aviv":{offset:3,hem:"n",dst:"03/29:02->10/27:02",ctry:"c101"},"asia/thimbu":{offset:6,hem:"n",ctry:"c026"},"asia/thimphu":{offset:6,hem:"n",ctry:"c026"},"asia/tokyo":{offset:9,hem:"n",ctry:"c105"},"asia/tomsk":{offset:7,hem:"n",ctry:"c178"},"asia/ujung_pandang":{offset:8,hem:"n",ctry:"c097"},"asia/ulaanbaatar":{offset:8,hem:"n",ctry:"c139"},"asia/ulan_bator":{offset:8,hem:"n",dst:"03/25:03->09/29:23",ctry:"c139"},"asia/urumqi":{offset:6,hem:"n",ctry:"c045"},"asia/ust-nera":{offset:10,hem:"n",ctry:"c178"},"asia/vientiane":{offset:7,hem:"n",ctry:"c112"},"asia/vladivostok":{offset:10,hem:"n",ctry:"c178"},"asia/yakutsk":{offset:10,hem:"n",ctry:"c178"},"asia/yekaterinburg":{offset:5,hem:"n",ctry:"c178"},"asia/yerevan":{offset:4,hem:"n",ctry:"c013"},"atlantic/azores":{offset:0,hem:"n",dst:"03/31:00->10/27:01",ctry:"c172"},"atlantic/bermuda":{offset:-3,hem:"n",dst:"03/10:02->11/03:02"},"atlantic/canary":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c203"},"atlantic/cape_verde":{offset:-1,hem:"n"},"atlantic/faeroe":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c069"},"atlantic/faroe":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c069"},"atlantic/jan_mayen":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c160"},"atlantic/madeira":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c172"},"atlantic/reykjavik":{offset:0,hem:"n",ctry:"c095"},"atlantic/south_georgia":{offset:-2,hem:"n",ctry:"c200"},"atlantic/st_helena":{offset:0,hem:"n",ctry:"c180"},"atlantic/stanley":{offset:-3,hem:"s",ctry:"c068"},"australia/act":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/adelaide":{offset:9.5,hem:"s",dst:"04/07:03->10/06:02"},"australia/brisbane":{offset:10,hem:"s"},"australia/broken_hill":{offset:9.5,hem:"s",dst:"04/07:03->10/06:02"},"australia/canberra":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/currie":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/darwin":{offset:9.5,hem:"s"},"australia/eucla":{offset:8.75,hem:"s"},"australia/hobart":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/lhi":{offset:10.5,hem:"s",dst:"04/07:01->10/06:02"},"australia/lindeman":{offset:10,hem:"s"},"australia/lord_howe":{offset:10.5,hem:"s",dst:"04/07:01->10/06:02"},"australia/melbourne":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/nsw":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/north":{offset:9.5,hem:"s"},"australia/perth":{offset:8,hem:"s"},"australia/queensland":{offset:10,hem:"s"},"australia/south":{offset:9.5,hem:"s",dst:"04/07:03->10/06:02"},"australia/sydney":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/tasmania":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/victoria":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/west":{offset:8,hem:"s"},"australia/yancowinna":{offset:9.5,hem:"s",dst:"04/07:03->10/06:02"},"brazil/acre":{offset:-5,hem:"s"},"brazil/denoronha":{offset:-2,hem:"s"},"brazil/east":{offset:-3,hem:"s",dst:"02/16:24->11/03:00"},"brazil/west":{offset:-4,hem:"s"},"canada/atlantic":{offset:-3,hem:"n",dst:"03/10:02->11/03:02"},"canada/central":{offset:-5,hem:"n",dst:"03/10:02->11/03:02"},"canada/east-saskatchewan":{offset:-6,hem:"n"},"canada/eastern":{offset:-4,hem:"n",dst:"03/10:02->11/03:02"},"canada/mountain":{offset:-6,hem:"n",dst:"03/10:02->11/03:02"},"canada/newfoundland":{offset:-2.5,hem:"n",dst:"03/10:02->11/03:02"},"canada/pacific":{offset:-7,hem:"n",dst:"03/10:02->11/03:02"},"canada/saskatchewan":{offset:-6,hem:"n"},"canada/yukon":{offset:-7,hem:"n",dst:"03/10:02->11/03:02"},"chile/continental":{offset:-4,hem:"s",dst:"04/06:24->09/08:00"},"chile/easterisland":{offset:-6,hem:"s",dst:"04/06:22->09/07:22"},"europe/amsterdam":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c148"},"europe/andorra":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/astrakhan":{offset:4,hem:"n",ctry:"c178"},"europe/athens":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c082"},"europe/belfast":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c157"},"europe/belgrade":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c190"},"europe/berlin":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c078"},"europe/bratislava":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c195"},"europe/brussels":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c022"},"europe/bucharest":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c177"},"europe/budapest":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c094"},"europe/busingen":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c078"},"europe/chisinau":{offset:3,hem:"n",dst:"03/31:02->10/27:03",ctry:"c137"},"europe/copenhagen":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"denmark"},"europe/dublin":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c100"},"europe/gibraltar":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/guernsey":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c229"},"europe/helsinki":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c071"},"europe/isle_of_man":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c229"},"europe/istanbul":{offset:3,hem:"n",ctry:"c222"},"europe/jersey":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c229"},"europe/kaliningrad":{offset:2,hem:"n",ctry:"c178"},"europe/kirov":{offset:3,hem:"n",ctry:"c178"},"europe/kiev":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c227"},"europe/lisbon":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c172"},"europe/ljubljana":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c196"},"europe/london":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c229"},"europe/luxembourg":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/madrid":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c203"},"europe/malta":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/mariehamn":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c002"},"europe/minsk":{offset:3,hem:"n",ctry:"c021"},"europe/monaco":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/moscow":{offset:3,hem:"n",ctry:"c178"},"europe/nicosia":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c055"},"europe/oslo":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c160"},"europe/paris":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c072"},"europe/podgorica":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c140"},"europe/prague":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c056"},"europe/riga":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c113"},"europe/rome":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c102"},"europe/samara":{offset:4,hem:"n",ctry:"c178"},"europe/saratov":{offset:4,hem:"n",ctry:"c178"},"europe/san_marino":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/sarajevo":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c029"},"europe/simferopol":{offset:3,hem:"n",ctry:"c178"},"europe/skopje":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c158"},"europe/sofia":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"bulgaria"},"europe/stockholm":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c208"},"europe/tallinn":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c066"},"europe/tirane":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c003"},"europe/tiraspol":{offset:3,hem:"n",dst:"03/31:02->10/27:03",ctry:"c137"},"europe/ulyanovsk":{offset:4,hem:"n",ctry:"c178"},"europe/uzhgorod":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c227"},"europe/vaduz":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c118"},"europe/vatican":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/vienna":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c016"},"europe/vilnius":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c119"},"europe/volgograd":{offset:4,hem:"n",ctry:"c178"},"asia/volgograd":{offset:4,hem:"n",ctry:"c178"},"europe/warsaw":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c171"},"europe/zagreb":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c052"},"europe/zaporozhye":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c227"},"europe/zurich":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c209"},"indian/antananarivo":{offset:3,hem:"s",ctry:"c123"},"indian/chagos":{offset:6,hem:"n",ctry:"c032"},"indian/christmas":{offset:7,hem:"s",ctry:"c046"},"indian/cocos":{offset:6.5,hem:"n",ctry:"c047"},"indian/comoro":{offset:3,hem:"n",ctry:"c049"},"indian/kerguelen":{offset:5,hem:"s",ctry:"c075"},"indian/mahe":{offset:4,hem:"n",ctry:"c191"},"indian/maldives":{offset:5,hem:"n"},"indian/mauritius":{offset:4,hem:"n"},"indian/mayotte":{offset:3,hem:"n"},"indian/reunion":{offset:4,hem:"s"},"mexico/bajanorte":{offset:-7,hem:"n",dst:"03/10:02->11/03:02"},"mexico/bajasur":{offset:-6,hem:"n",dst:"04/07:02->10/27:02"},"mexico/general":{offset:-5,hem:"n",dst:"04/07:02->10/27:02"},"pacific/apia":{offset:13,hem:"s",dst:"04/07:04->09/29:03",ctry:"c031"},"pacific/auckland":{offset:12,hem:"s",dst:"04/07:03->09/29:02",ctry:"c150"},"pacific/bougainville":{offset:11,hem:"s",ctry:"c166"},"pacific/chatham":{offset:12.75,hem:"s",dst:"04/07:03->04/07:02",ctry:"c150"},"pacific/chuuk":{offset:10,hem:"n",ctry:"c135"},"pacific/easter":{offset:-6,hem:"s",dst:"04/06:22->09/07:22",ctry:"c044"},"pacific/efate":{offset:11,hem:"n",ctry:"c235"},"pacific/enderbury":{offset:13,hem:"n",ctry:"c109"},"pacific/fakaofo":{offset:13,hem:"n",ctry:"c218"},"pacific/fiji":{offset:12,hem:"s",dst:"01/13:03->11/03:02"},"pacific/funafuti":{offset:12,hem:"n",ctry:"c225"},"pacific/galapagos":{offset:-6,hem:"n",ctry:"c061"},"pacific/gambier":{offset:-9,hem:"n",ctry:"c074"},"pacific/guadalcanal":{offset:11,hem:"n",ctry:"c197"},"pacific/guam":{offset:10,hem:"n"},"pacific/honolulu":{offset:-10,hem:"n",ctry:"c230"},"pacific/johnston":{offset:-10,hem:"n",ctry:"c230"},"pacific/kiritimati":{offset:14,hem:"n",ctry:"c109"},"pacific/kosrae":{offset:11,hem:"n",ctry:"c135"},"pacific/kwajalein":{offset:12,hem:"n",ctry:"c129"},"pacific/majuro":{offset:12,hem:"n",ctry:"c129"},"pacific/marquesas":{offset:-9.5,hem:"n",ctry:"c074"},"pacific/midway":{offset:-11,hem:"n",ctry:"c136"},"pacific/nauru":{offset:12,hem:"n"},"pacific/niue":{offset:-11,hem:"n"},"pacific/norfolk":{offset:11.5,hem:"n",ctry:"c155"},"pacific/noumea":{offset:11,hem:"n",ctry:"c149"},"pacific/pago_pago":{offset:-11,hem:"n",ctry:"c005"},"pacific/palau":{offset:9,hem:"n"},"pacific/pitcairn":{offset:-8,hem:"n",ctry:"c170"},"pacific/pohnpei":{offset:11,hem:"n",ctry:"c135"},"pacific/ponape":{offset:11,hem:"n",ctry:"c135"},"pacific/port_moresby":{offset:10,hem:"n",ctry:"c166"},"pacific/rarotonga":{offset:-10,hem:"n",ctry:"c050"},"pacific/saipan":{offset:10,hem:"n",ctry:"c159"},"pacific/samoa":{offset:-11,hem:"n"},"pacific/tahiti":{offset:-10,hem:"n",ctry:"c074"},"pacific/tarawa":{offset:12,hem:"n",ctry:"c109"},"pacific/tongatapu":{offset:13,hem:"s",dst:"01/15:02->11/05:03",ctry:"c219"},"pacific/truk":{offset:10,hem:"n",ctry:"c135"},"pacific/wake":{offset:12,hem:"n",ctry:"c240"},"pacific/wallis":{offset:12,hem:"n",ctry:"c241"},"pacific/yap":{offset:10,hem:"n",ctry:"c135"},"etc/gmt":{offset:0,hem:"n"},"etc/gmt+0":{offset:0,hem:"n"},"etc/gmt-0":{offset:0,hem:"n"},"etc/gmt0":{offset:0,hem:"n"},"etc/greenwich":{offset:0,hem:"n",ctry:"c229"},"etc/utc":{offset:0,hem:"n"},"etc/universal":{offset:0,hem:"n"},"etc/zulu":{offset:0,hem:"n"}};const s=(()=>e)(),f=c();function r(a){for(const e in s)if(s.hasOwnProperty(e))for(const c in s[e])if(s[e].hasOwnProperty(c)&&(c===a||-1!==s[e][c].indexOf(a)))return{day:e,country:s[e][c]};for(const e in f)if(f.hasOwnProperty(e)&&-1!==f[e].indexOf(a))return{day:"monday",location:a};return{}}function n(a,e){if(a&&"string"==typeof a){const e=r(a.toLowerCase().trim());if(e.day)return e}return function(a){if(!a||"string"!=typeof a)return null;a=a.toLowerCase();const e=t[a];if(!e)return null;if(e.loc)return r(e.loc);if(e.ctry)return r(e.ctry);let c=r(a.substr(0,a.indexOf("/")));return c.day?c:(c=r(a.substr(a.indexOf("/")+1).replace("_"," ")),c.day?c:null)}(e)}var o={weekStart:function(a){return n(a,this.tz)}};export{o as default};
|
|
1
|
+
const a={c009:"antarctica",c011:"arctic",c081:"gmt",c231:"universal",c233:"utc",c245:"zulu"},e={monday:{c002:"aland islands",c003:"albania",c006:"andorra",c007:"angola",c008:"anguilla",c013:"armenia",c014:"aruba",c016:"austria",c017:"azerbaijan",c020:"barbados",c021:"belarus",c022:"belgium",c024:"benin",c025:"bermuda",c028:"bonaire",c029:"bosnia and herzegovina",c032:"british indian ocean territory",c033:"brunei",c034:"bulgaria",c035:"burkina faso",c036:"burundi",c038:"cameroon",c040:"cape verde",c041:"cayman islands",c042:"central african republic",c043:"chad",c046:"christmas island",c047:"cocos (keeling) islands",c049:"comoros",c050:"cook islands",c052:"croatia",c053:"cuba",c054:"curacao",c055:"cyprus",c056:"czech republic",c057:"democratic republic of the congo",c058:"denmark",c064:"equatorial guinea",c065:"eritrea",c066:"estonia",c068:"falkland islands",c069:"faroe islands",c070:"fiji",c071:"finland",c072:"france",c073:"french guiana",c074:"french polynesia",c075:"french southern and antarctic lands",c076:"gabon",c077:"georgia",c078:"germany",c079:"ghana",c080:"gibraltar",c082:"greece",c083:"greenland",c084:"grenada",c085:"guadeloupe",c088:"guinea",c089:"guinea-bissau",c090:"guyana",c091:"haiti",c094:"hungary",c095:"iceland",c097:"indonesia",c100:"ireland",c102:"italy",c103:"ivory coast",c107:"kazakhstan",c109:"kiribati",c111:"kyrgyzstan",c113:"latvia",c114:"lebanon",c115:"lesotho",c116:"liberia",c118:"liechtenstein",c119:"lithuania",c120:"luxembourg",c123:"madagascar",c124:"malawi",c127:"mali",c130:"martinique",c131:"mauritania",c132:"mauritius",c133:"mayotte",c135:"micronesia",c137:"moldova",c138:"monaco",c139:"mongolia",c140:"montenegro",c141:"montserrat",c142:"morocco",c145:"namibia",c146:"nauru",c148:"netherlands",c149:"new caledonia",c150:"new zealand",c152:"niger",c153:"nigeria",c154:"niue",c155:"norfolk island",c157:"northern ireland",c158:"northern macedonia",c160:"norway",c162:"pakistan",c166:"papua new guinea",c170:"pitcairn islands",c171:"poland",c175:"republic of the congo",c176:"reunion",c177:"romania",c178:"russia",c179:"rwanda",c180:"saint helena, ascension and tristan da cunha",c181:"saint kitts and nevis",c182:"saint lucia",c183:"saint pierre and miquelon",c184:"saint vincent and the grenadines",c186:"san marino",c187:"sao tome and principe",c189:"senegal",c190:"serbia",c191:"seychelles",c192:"sierra leone",c194:"sint maarten",c195:"slovakia",c196:"slovenia",c197:"solomon islands",c200:"south georgia and the south sandwich islands",c203:"spain",c204:"sri lanka",c206:"suriname",c207:"swaziland",c208:"sweden",c209:"switzerland",c212:"tajikistan",c213:"tanzania",c216:"the gambia",c217:"togo",c218:"tokelau",c219:"tonga",c221:"tunisia",c222:"turkey",c223:"turkmenistan",c224:"turks and caicos islands",c225:"tuvalu",c226:"uganda",c227:"ukraine",c229:"united kingdom",c234:"uzbekistan",c235:"vanuatu",c236:"vatican city",c238:"vietnam",c241:"wallis and futuna",c243:"zambia"},saturday:{c019:"bangladesh",c059:"djibouti",c098:"iran",c164:"palestine",c198:"somalia"},sunday:{c001:"afghanistan",c004:"algeria",c005:"american samoa",c010:"antigua and barbuda",c012:"argentina",c015:"australia",c018:"bahrain",c023:"belize",c026:"bhutan",c030:"botswana",c031:"brazil",c037:"cambodia",c039:"canada",c044:"chile",c045:"china",c048:"colombia",c051:"costa rica",c060:"dominica",c061:"ecuador",c062:"egypt",c063:"el salvador",c067:"ethiopia",c086:"guam",c092:"honduras",c093:"hong kong",c096:"india",c099:"iraq",c101:"israel",c104:"jamaica",c105:"japan",c106:"jordan",c108:"kenya",c110:"kuwait",c112:"laos",c121:"macao",c122:"macau",c125:"malaysia",c126:"maldives",c128:"malta",c129:"marshall islands",c134:"mexico",c136:"midway atoll",c143:"mozambique",c144:"myanmar",c147:"nepal",c151:"nicaragua",c156:"north korea",c159:"northern mariana islands",c161:"oman",c163:"palau",c165:"panama",c167:"paraguay",c168:"peru",c169:"philippines",c172:"portugal",c173:"puerto rico",c174:"qatar",c185:"samoa",c188:"saudi arabia",c193:"singapore",c199:"south africa",c201:"south korea",c202:"south sudan",c205:"sudan",c210:"syria",c211:"taiwan",c214:"thailand",c215:"the bahamas",c220:"trinidad and tobago",c228:"united arab emirates",c230:"united states of america",c232:"uruguay",c237:"venezuela",c239:"virgin islands",c240:"wake island",c242:"yemen",c244:"zimbabwe"}};var c=()=>a,t={"africa/abidjan":{offset:0,hem:"n",ctry:"c103"},"africa/accra":{offset:0,hem:"n",ctry:"c079"},"africa/addis_ababa":{offset:3,hem:"n",ctry:"c067"},"africa/algiers":{offset:1,hem:"n",ctry:"c004"},"africa/asmara":{offset:3,hem:"n",ctry:"c065"},"africa/asmera":{offset:3,hem:"n",ctry:"c065"},"africa/bamako":{offset:0,hem:"n",ctry:"c127"},"africa/bangui":{offset:1,hem:"n",ctry:"c042"},"africa/banjul":{offset:0,hem:"n",ctry:"c216"},"africa/bissau":{offset:0,hem:"n",ctry:"c089"},"africa/blantyre":{offset:2,hem:"n",ctry:"c124"},"africa/brazzaville":{offset:1,hem:"n",ctry:"c175"},"africa/bujumbura":{offset:2,hem:"n",ctry:"c036"},"africa/cairo":{offset:2,hem:"n",ctry:"c062"},"africa/casablanca":{offset:1,hem:"n",dst:"05/05:03->06/09:02",ctry:"c142"},"africa/ceuta":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c203"},"africa/conakry":{offset:0,hem:"n",ctry:"c088"},"africa/dakar":{offset:0,hem:"n",ctry:"c189"},"africa/dar_es_salaam":{offset:3,hem:"n",ctry:"c213"},"africa/djibouti":{offset:3,hem:"n"},"africa/douala":{offset:1,hem:"n",ctry:"c038"},"africa/el_aaiun":{offset:1,hem:"n",dst:"05/05:03->06/09:02",ctry:"c142"},"africa/freetown":{offset:0,hem:"n",ctry:"c192"},"africa/gaborone":{offset:2,hem:"s",ctry:"c030"},"africa/harare":{offset:2,hem:"s",ctry:"c244"},"africa/johannesburg":{offset:2,hem:"s",ctry:"c199"},"africa/juba":{offset:3,hem:"n",ctry:"c202"},"africa/kampala":{offset:3,hem:"n",ctry:"c226"},"africa/khartoum":{offset:2,hem:"n",ctry:"c205"},"africa/kigali":{offset:2,hem:"n",ctry:"c179"},"africa/kinshasa":{offset:1,hem:"s",ctry:"c057"},"africa/lagos":{offset:1,hem:"n",ctry:"c153"},"africa/libreville":{offset:1,hem:"n",ctry:"c076"},"africa/lome":{offset:0,hem:"n",ctry:"c217"},"africa/luanda":{offset:1,hem:"s",ctry:"c007"},"africa/lubumbashi":{offset:2,hem:"s",ctry:"c057"},"africa/lusaka":{offset:2,hem:"s",ctry:"c243"},"africa/malabo":{offset:1,hem:"n",ctry:"c064"},"africa/maputo":{offset:2,hem:"s",ctry:"c143"},"africa/maseru":{offset:2,hem:"s",ctry:"c115"},"africa/mbabane":{offset:2,hem:"s",ctry:"c207"},"africa/mogadishu":{offset:3,hem:"n",ctry:"c198"},"africa/monrovia":{offset:0,hem:"n",ctry:"c116"},"africa/nairobi":{offset:3,hem:"n",ctry:"c108"},"africa/ndjamena":{offset:1,hem:"n",ctry:"c043"},"africa/niamey":{offset:1,hem:"n",ctry:"c152"},"africa/nouakchott":{offset:0,hem:"n",ctry:"c131"},"africa/ouagadougou":{offset:0,hem:"n",ctry:"c035"},"africa/porto-novo":{offset:1,hem:"n",ctry:"c024"},"africa/sao_tome":{offset:0,hem:"n",ctry:"c187"},"africa/timbuktu":{offset:0,hem:"n",ctry:"c127"},"africa/tripoli":{offset:2,hem:"n",ctry:"c117"},"africa/tunis":{offset:1,hem:"n",ctry:"c221"},"africa/windhoek":{offset:1,hem:"s",dst:"04/02:01->09/03:03",ctry:"c145"},"america/adak":{offset:-9,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/anchorage":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/anguilla":{offset:-4,hem:"n"},"america/antigua":{offset:-4,hem:"n",ctry:"c010"},"america/araguaina":{offset:-3,hem:"n",ctry:"c031"},"america/argentina":{offset:-3,hem:"s"},"america/aruba":{offset:-4,hem:"n"},"america/asuncion":{offset:-4,hem:"s",dst:"03/23:24->10/06:00",ctry:"c167"},"america/atikokan":{offset:-5,hem:"n",ctry:"c039"},"america/atka":{offset:-9,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/bahia":{offset:-3,hem:"n",ctry:"c031"},"america/bahia_banderas":{offset:-5,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/barbados":{offset:-4,hem:"n"},"america/belem":{offset:-3,hem:"n",ctry:"c031"},"america/belize":{offset:-6,hem:"n"},"america/blanc-sablon":{offset:-4,hem:"n",ctry:"c039"},"america/boa_vista":{offset:-4,hem:"n",ctry:"c031"},"america/bogota":{offset:-5,hem:"n",ctry:"c048"},"america/boise":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/buenos_aires":{offset:-3,hem:"s",ctry:"c012"},"america/cambridge_bay":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/campo_grande":{offset:-4,hem:"s",dst:"02/16:24->11/03:00",ctry:"c031"},"america/cancun":{offset:-5,hem:"n",ctry:"c134"},"america/caracas":{offset:-4,hem:"n",ctry:"c237"},"america/catamarca":{offset:-3,hem:"n",ctry:"c012"},"america/cayenne":{offset:-3,hem:"n",ctry:"c073"},"america/cayman":{offset:-5,hem:"n",ctry:"c041"},"america/chicago":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/chihuahua":{offset:-6,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/coral_harbour":{offset:-5,hem:"n",ctry:"c215"},"america/cordoba":{offset:-3,hem:"s",ctry:"c012"},"america/costa_rica":{offset:-6,hem:"n"},"america/creston":{offset:-7,hem:"n",ctry:"c230"},"america/cuiaba":{offset:-4,hem:"s",dst:"02/16:24->11/03:00",ctry:"c031"},"america/curacao":{offset:-4,hem:"n"},"america/danmarkshavn":{offset:0,hem:"n",ctry:"c083"},"america/dawson":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/dawson_creek":{offset:-7,hem:"n",ctry:"c039"},"america/denver":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/detroit":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/dominica":{offset:-4,hem:"n"},"america/edmonton":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/eirunepe":{offset:-5,hem:"n",ctry:"c031"},"america/el_salvador":{offset:-6,hem:"n"},"america/ensenada":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/fort_wayne":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/fortaleza":{offset:-3,hem:"s",ctry:"c031"},"america/glace_bay":{offset:-3,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/godthab":{offset:-2,hem:"n",dst:"03/30:22->10/26:23",ctry:"c083"},"america/goose_bay":{offset:-3,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/grand_turk":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c224"},"america/grenada":{offset:-4,hem:"n"},"america/guadeloupe":{offset:-4,hem:"n"},"america/guatemala":{offset:-6,hem:"n"},"america/guayaquil":{offset:-5,hem:"n",ctry:"c061"},"america/guyana":{offset:-4,hem:"n"},"america/halifax":{offset:-3,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/havana":{offset:-4,hem:"n",dst:"03/10:00->11/03:01",ctry:"c053"},"america/hermosillo":{offset:-7,hem:"n",ctry:"c134"},"america/indiana":{offset:-4,hem:"n",dst:"03/12:03->11/05:01",ctry:"c230"},"america/indianapolis":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/inuvik":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/iqaluit":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/jamaica":{offset:-5,hem:"n"},"america/jujuy":{offset:-3,hem:"n",ctry:"c012"},"america/juneau":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/kentucky":{offset:-4,hem:"n",dst:"03/12:03->11/05:01",ctry:"c230"},"america/knox_in":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/kralendijk":{offset:-4,hem:"n",ctry:"c028"},"america/la_paz":{offset:-4,hem:"s",ctry:"c027"},"america/lima":{offset:-5,hem:"s",ctry:"c168"},"america/los_angeles":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/louisville":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/lower_princes":{offset:-4,hem:"n",ctry:"c194"},"america/maceio":{offset:-3,hem:"n",ctry:"c031"},"america/managua":{offset:-6,hem:"n",ctry:"c151"},"america/manaus":{offset:-4,hem:"s",ctry:"c031"},"america/marigot":{offset:-4,hem:"n",ctry:"c194"},"america/martinique":{offset:-4,hem:"n"},"america/matamoros":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/mazatlan":{offset:-6,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/mendoza":{offset:-3,hem:"n",ctry:"c012"},"america/menominee":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/merida":{offset:-5,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/metlakatla":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/mexico_city":{offset:-5,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/miquelon":{offset:-2,hem:"n",dst:"03/10:02->11/03:02",ctry:"c183"},"america/moncton":{offset:-3,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/monterrey":{offset:-5,hem:"n",dst:"04/07:02->10/27:02",ctry:"c134"},"america/montevideo":{offset:-3,hem:"s",ctry:"c232"},"america/montreal":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/montserrat":{offset:-4,hem:"n"},"america/nassau":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c215"},"america/new_york":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/nipigon":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/nome":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/noronha":{offset:-2,hem:"n",ctry:"c031"},"america/north_dakota":{offset:-5,hem:"n",dst:"03/12:03->11/05:01",ctry:"c230"},"america/ojinaga":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/panama":{offset:-5,hem:"n"},"america/pangnirtung":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/paramaribo":{offset:-3,hem:"n",ctry:"c206"},"america/phoenix":{offset:-7,hem:"n",ctry:"c230"},"america/port-au-prince":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c091"},"america/port_of_spain":{offset:-4,hem:"n",ctry:"c220"},"america/porto_acre":{offset:-5,hem:"n",ctry:"c031"},"america/porto_velho":{offset:-4,hem:"n",ctry:"c031"},"america/puerto_rico":{offset:-4,hem:"n"},"america/punta_arenas":{offset:-3,hem:"s",ctry:"c051"},"america/rainy_river":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/rankin_inlet":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/recife":{offset:-3,hem:"n",ctry:"c031"},"america/regina":{offset:-6,hem:"n",ctry:"c039"},"america/resolute":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/rio_branco":{offset:-5,hem:"s",ctry:"c031"},"america/rosario":{offset:-3,hem:"n",ctry:"c012"},"america/santa_isabel":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/santarem":{offset:-3,hem:"n",ctry:"c031"},"america/santiago":{offset:-4,hem:"s",dst:"04/06:24->09/08:00",ctry:"c134"},"america/santo_domingo":{offset:-4,hem:"n",ctry:"c134"},"america/sao_paulo":{offset:-3,hem:"s",dst:"02/16:24->11/03:00",ctry:"c031"},"america/scoresbysund":{offset:0,hem:"n",dst:"03/31:00->10/27:01",ctry:"c083"},"america/shiprock":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/sitka":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/st_barthelemy":{offset:-4,hem:"n",ctry:"c039"},"america/st_johns":{offset:-2.5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/st_kitts":{offset:-4,hem:"n",ctry:"c181"},"america/st_lucia":{offset:-4,hem:"n",ctry:"c182"},"america/st_thomas":{offset:-4,hem:"n",ctry:"c239"},"america/st_vincent":{offset:-4,hem:"n",ctry:"c184"},"america/swift_current":{offset:-6,hem:"n",ctry:"c039"},"america/tegucigalpa":{offset:-6,hem:"n",ctry:"c092"},"america/thule":{offset:-3,hem:"n",dst:"03/10:02->11/03:02",ctry:"c083"},"america/thunder_bay":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/tijuana":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c134"},"america/toronto":{offset:-4,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/tortola":{offset:-4,hem:"n",ctry:"c239"},"america/vancouver":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/virgin":{offset:-4,hem:"n",ctry:"c239"},"america/whitehorse":{offset:-7,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/winnipeg":{offset:-5,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"america/yakutat":{offset:-8,hem:"n",dst:"03/10:02->11/03:02",ctry:"c230"},"america/yellowknife":{offset:-6,hem:"n",dst:"03/10:02->11/03:02",ctry:"c039"},"antarctica/casey":{offset:8,hem:"s"},"antarctica/davis":{offset:7,hem:"s"},"antarctica/dumontdurville":{offset:10,hem:"s"},"antarctica/macquarie":{offset:11,hem:"s"},"antarctica/mawson":{offset:5,hem:"s"},"antarctica/mcmurdo":{offset:12,hem:"s",dst:"04/07:03->09/29:02"},"antarctica/palmer":{offset:-4,hem:"s",dst:"05/13:23->08/13:01"},"antarctica/rothera":{offset:-3,hem:"s"},"antarctica/south_pole":{offset:12,hem:"s",dst:"04/07:03->09/29:02"},"antarctica/syowa":{offset:3,hem:"s"},"antarctica/troll":{offset:2,hem:"s",dst:"03/31:02->10/27:02"},"antarctica/vostok":{offset:6,hem:"s"},"arctic/longyearbyen":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"asia/aden":{offset:3,hem:"n",ctry:"c242"},"asia/almaty":{offset:6,hem:"n",ctry:"c107"},"asia/amman":{offset:3,hem:"n",dst:"03/29:00->10/25:01",ctry:"c106"},"asia/anadyr":{offset:12,hem:"n",ctry:"c178"},"asia/aqtau":{offset:5,hem:"n",ctry:"c107"},"asia/aqtobe":{offset:5,hem:"n",ctry:"c107"},"asia/ashgabat":{offset:5,hem:"n",ctry:"c223"},"asia/ashkhabad":{offset:5,hem:"n",ctry:"c223"},"asia/atyrau":{offset:5,hem:"n",ctry:"c107"},"asia/baghdad":{offset:3,hem:"n",ctry:"c099"},"asia/bahrain":{offset:3,hem:"n"},"asia/baku":{offset:5,hem:"n",ctry:"c017"},"asia/bangkok":{offset:7,hem:"n",ctry:"c214"},"asia/barnaul":{offset:7,hem:"n",ctry:"c178"},"asia/beirut":{offset:3,hem:"n",dst:"03/31:00->10/26:24",ctry:"c114"},"asia/bishkek":{offset:6,hem:"n",ctry:"c111"},"asia/brunei":{offset:8,hem:"n"},"asia/calcutta":{offset:5.5,hem:"n",ctry:"c096"},"asia/chita":{offset:9,hem:"n",ctry:"c048"},"asia/choibalsan":{offset:8,hem:"n",ctry:"c139"},"asia/chongqing":{offset:8,hem:"n",ctry:"c045"},"asia/chungking":{offset:8,hem:"n",ctry:"c045"},"asia/colombo":{offset:5.5,hem:"n",ctry:"c204"},"asia/dacca":{offset:6,hem:"n",ctry:"c019"},"asia/damascus":{offset:3,hem:"n",dst:"03/29:00->10/24:24",ctry:"c210"},"asia/dhaka":{offset:6,hem:"n",ctry:"c019"},"asia/dili":{offset:9,hem:"s",ctry:"c096"},"asia/dubai":{offset:4,hem:"n",ctry:"c228"},"asia/dushanbe":{offset:5,hem:"n",ctry:"c212"},"asia/gaza":{offset:3,hem:"n",dst:"03/23:01->10/26:01",ctry:"c164"},"asia/harbin":{offset:8,hem:"n",ctry:"c045"},"asia/hebron":{offset:3,hem:"n",dst:"03/23:01->10/26:01",ctry:"c164"},"asia/ho_chi_minh":{offset:7,hem:"n",ctry:"c238"},"asia/hong_kong":{offset:8,hem:"n"},"asia/hovd":{offset:7,hem:"n",ctry:"c139"},"asia/irkutsk":{offset:8,hem:"n",ctry:"c178"},"asia/istanbul":{offset:3,hem:"n",ctry:"c222"},"asia/jakarta":{offset:7,hem:"s",ctry:"c097"},"asia/jayapura":{offset:9,hem:"s",ctry:"c097"},"asia/jerusalem":{offset:3,hem:"n",dst:"03/29:02->10/27:02",ctry:"c101"},"asia/kabul":{offset:4.5,hem:"n",ctry:"c001"},"asia/kamchatka":{offset:12,hem:"n",ctry:"c178"},"asia/karachi":{offset:5,hem:"n",ctry:"c162"},"asia/kashgar":{offset:6,hem:"n",ctry:"c045"},"asia/kathmandu":{offset:5.75,hem:"n",ctry:"c147"},"asia/katmandu":{offset:5.75,hem:"n",ctry:"c147"},"asia/khandyga":{offset:9,hem:"n",ctry:"c178"},"asia/kolkata":{offset:5.5,hem:"n",ctry:"c096"},"asia/krasnoyarsk":{offset:7,hem:"n",ctry:"c178"},"asia/kuala_lumpur":{offset:8,hem:"s",ctry:"c125"},"asia/kuching":{offset:8,hem:"n",ctry:"c125"},"asia/kuwait":{offset:3,hem:"n"},"asia/macao":{offset:8,hem:"n"},"asia/macau":{offset:8,hem:"n"},"asia/magadan":{offset:11,hem:"n",ctry:"c178"},"asia/makassar":{offset:8,hem:"s",ctry:"c097"},"asia/manila":{offset:8,hem:"n",ctry:"c169"},"asia/muscat":{offset:4,hem:"n",ctry:"c161"},"asia/nicosia":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c055"},"asia/novokuznetsk":{offset:7,hem:"n",ctry:"c178"},"asia/novosibirsk":{offset:7,hem:"n",ctry:"c178"},"asia/omsk":{offset:6,hem:"n",ctry:"c178"},"asia/oral":{offset:5,hem:"n",ctry:"c107"},"asia/phnom_penh":{offset:7,hem:"n",ctry:"c037"},"asia/pontianak":{offset:7,hem:"n",ctry:"c097"},"asia/pyongyang":{offset:9,hem:"n",ctry:"c156"},"asia/qatar":{offset:3,hem:"n"},"asia/qyzylorda":{offset:6,hem:"n",ctry:"c107"},"asia/rangoon":{offset:6.5,hem:"n",ctry:"c144"},"asia/riyadh":{offset:3,hem:"n",ctry:"c188"},"asia/saigon":{offset:7,hem:"n",ctry:"c238"},"asia/sakhalin":{offset:11,hem:"n",ctry:""},"asia/samarkand":{offset:5,hem:"n",ctry:"c178"},"asia/seoul":{offset:9,hem:"n",ctry:"c201"},"asia/shanghai":{offset:8,hem:"n",ctry:"c045"},"asia/singapore":{offset:8,hem:"s"},"asia/srednekolymsk":{offset:12,hem:"n",ctry:"c178"},"asia/taipei":{offset:8,hem:"n",ctry:"c211"},"asia/tashkent":{offset:5,hem:"n",ctry:"c234"},"asia/tbilisi":{offset:4,hem:"n",ctry:"c077"},"asia/tehran":{offset:4.5,hem:"n",dst:"03/22:00->09/21:24",ctry:"c098"},"asia/tel_aviv":{offset:3,hem:"n",dst:"03/29:02->10/27:02",ctry:"c101"},"asia/thimbu":{offset:6,hem:"n",ctry:"c026"},"asia/thimphu":{offset:6,hem:"n",ctry:"c026"},"asia/tokyo":{offset:9,hem:"n",ctry:"c105"},"asia/tomsk":{offset:7,hem:"n",ctry:"c178"},"asia/ujung_pandang":{offset:8,hem:"n",ctry:"c097"},"asia/ulaanbaatar":{offset:8,hem:"n",ctry:"c139"},"asia/ulan_bator":{offset:8,hem:"n",dst:"03/25:03->09/29:23",ctry:"c139"},"asia/urumqi":{offset:6,hem:"n",ctry:"c045"},"asia/ust-nera":{offset:10,hem:"n",ctry:"c178"},"asia/vientiane":{offset:7,hem:"n",ctry:"c112"},"asia/vladivostok":{offset:10,hem:"n",ctry:"c178"},"asia/yakutsk":{offset:10,hem:"n",ctry:"c178"},"asia/yekaterinburg":{offset:5,hem:"n",ctry:"c178"},"asia/yerevan":{offset:4,hem:"n",ctry:"c013"},"atlantic/azores":{offset:0,hem:"n",dst:"03/31:00->10/27:01",ctry:"c172"},"atlantic/bermuda":{offset:-3,hem:"n",dst:"03/10:02->11/03:02"},"atlantic/canary":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c203"},"atlantic/cape_verde":{offset:-1,hem:"n"},"atlantic/faeroe":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c069"},"atlantic/faroe":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c069"},"atlantic/jan_mayen":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c160"},"atlantic/madeira":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c172"},"atlantic/reykjavik":{offset:0,hem:"n",ctry:"c095"},"atlantic/south_georgia":{offset:-2,hem:"n",ctry:"c200"},"atlantic/st_helena":{offset:0,hem:"n",ctry:"c180"},"atlantic/stanley":{offset:-3,hem:"s",ctry:"c068"},"australia/act":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/adelaide":{offset:9.5,hem:"s",dst:"04/07:03->10/06:02"},"australia/brisbane":{offset:10,hem:"s"},"australia/broken_hill":{offset:9.5,hem:"s",dst:"04/07:03->10/06:02"},"australia/canberra":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/currie":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/darwin":{offset:9.5,hem:"s"},"australia/eucla":{offset:8.75,hem:"s"},"australia/hobart":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/lhi":{offset:10.5,hem:"s",dst:"04/07:01->10/06:02"},"australia/lindeman":{offset:10,hem:"s"},"australia/lord_howe":{offset:10.5,hem:"s",dst:"04/07:01->10/06:02"},"australia/melbourne":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/nsw":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/north":{offset:9.5,hem:"s"},"australia/perth":{offset:8,hem:"s"},"australia/queensland":{offset:10,hem:"s"},"australia/south":{offset:9.5,hem:"s",dst:"04/07:03->10/06:02"},"australia/sydney":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/tasmania":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/victoria":{offset:10,hem:"s",dst:"04/07:03->10/06:02"},"australia/west":{offset:8,hem:"s"},"australia/yancowinna":{offset:9.5,hem:"s",dst:"04/07:03->10/06:02"},"brazil/acre":{offset:-5,hem:"s"},"brazil/denoronha":{offset:-2,hem:"s"},"brazil/east":{offset:-3,hem:"s",dst:"02/16:24->11/03:00"},"brazil/west":{offset:-4,hem:"s"},"canada/atlantic":{offset:-3,hem:"n",dst:"03/10:02->11/03:02"},"canada/central":{offset:-5,hem:"n",dst:"03/10:02->11/03:02"},"canada/east-saskatchewan":{offset:-6,hem:"n"},"canada/eastern":{offset:-4,hem:"n",dst:"03/10:02->11/03:02"},"canada/mountain":{offset:-6,hem:"n",dst:"03/10:02->11/03:02"},"canada/newfoundland":{offset:-2.5,hem:"n",dst:"03/10:02->11/03:02"},"canada/pacific":{offset:-7,hem:"n",dst:"03/10:02->11/03:02"},"canada/saskatchewan":{offset:-6,hem:"n"},"canada/yukon":{offset:-7,hem:"n",dst:"03/10:02->11/03:02"},"chile/continental":{offset:-4,hem:"s",dst:"04/06:24->09/08:00"},"chile/easterisland":{offset:-6,hem:"s",dst:"04/06:22->09/07:22"},"europe/amsterdam":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c148"},"europe/andorra":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/astrakhan":{offset:4,hem:"n",ctry:"c178"},"europe/athens":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c082"},"europe/belfast":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c157"},"europe/belgrade":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c190"},"europe/berlin":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c078"},"europe/bratislava":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c195"},"europe/brussels":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c022"},"europe/bucharest":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c177"},"europe/budapest":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c094"},"europe/busingen":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c078"},"europe/chisinau":{offset:3,hem:"n",dst:"03/31:02->10/27:03",ctry:"c137"},"europe/copenhagen":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"denmark"},"europe/dublin":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c100"},"europe/gibraltar":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/guernsey":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c229"},"europe/helsinki":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c071"},"europe/isle_of_man":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c229"},"europe/istanbul":{offset:3,hem:"n",ctry:"c222"},"europe/jersey":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c229"},"europe/kaliningrad":{offset:2,hem:"n",ctry:"c178"},"europe/kirov":{offset:3,hem:"n",ctry:"c178"},"europe/kiev":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c227"},"europe/lisbon":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c172"},"europe/ljubljana":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c196"},"europe/london":{offset:1,hem:"n",dst:"03/31:01->10/27:02",ctry:"c229"},"europe/luxembourg":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/madrid":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c203"},"europe/malta":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/mariehamn":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c002"},"europe/minsk":{offset:3,hem:"n",ctry:"c021"},"europe/monaco":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/moscow":{offset:3,hem:"n",ctry:"c178"},"europe/nicosia":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c055"},"europe/oslo":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c160"},"europe/paris":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c072"},"europe/podgorica":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c140"},"europe/prague":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c056"},"europe/riga":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c113"},"europe/rome":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c102"},"europe/samara":{offset:4,hem:"n",ctry:"c178"},"europe/saratov":{offset:4,hem:"n",ctry:"c178"},"europe/san_marino":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/sarajevo":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c029"},"europe/simferopol":{offset:3,hem:"n",ctry:"c178"},"europe/skopje":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c158"},"europe/sofia":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"bulgaria"},"europe/stockholm":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c208"},"europe/tallinn":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c066"},"europe/tirane":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c003"},"europe/tiraspol":{offset:3,hem:"n",dst:"03/31:02->10/27:03",ctry:"c137"},"europe/ulyanovsk":{offset:4,hem:"n",ctry:"c178"},"europe/uzhgorod":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c227"},"europe/vaduz":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c118"},"europe/vatican":{offset:2,hem:"n",dst:"03/31:02->10/27:03"},"europe/vienna":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c016"},"europe/vilnius":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c119"},"europe/volgograd":{offset:4,hem:"n",ctry:"c178"},"asia/volgograd":{offset:4,hem:"n",ctry:"c178"},"europe/warsaw":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c171"},"europe/zagreb":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c052"},"europe/zaporozhye":{offset:3,hem:"n",dst:"03/31:03->10/27:04",ctry:"c227"},"europe/zurich":{offset:2,hem:"n",dst:"03/31:02->10/27:03",ctry:"c209"},"indian/antananarivo":{offset:3,hem:"s",ctry:"c123"},"indian/chagos":{offset:6,hem:"n",ctry:"c032"},"indian/christmas":{offset:7,hem:"s",ctry:"c046"},"indian/cocos":{offset:6.5,hem:"n",ctry:"c047"},"indian/comoro":{offset:3,hem:"n",ctry:"c049"},"indian/kerguelen":{offset:5,hem:"s",ctry:"c075"},"indian/mahe":{offset:4,hem:"n",ctry:"c191"},"indian/maldives":{offset:5,hem:"n"},"indian/mauritius":{offset:4,hem:"n"},"indian/mayotte":{offset:3,hem:"n"},"indian/reunion":{offset:4,hem:"s"},"mexico/bajanorte":{offset:-7,hem:"n",dst:"03/10:02->11/03:02"},"mexico/bajasur":{offset:-6,hem:"n",dst:"04/07:02->10/27:02"},"mexico/general":{offset:-5,hem:"n",dst:"04/07:02->10/27:02"},"pacific/apia":{offset:13,hem:"s",dst:"04/07:04->09/29:03",ctry:"c031"},"pacific/auckland":{offset:12,hem:"s",dst:"04/07:03->09/29:02",ctry:"c150"},"pacific/bougainville":{offset:11,hem:"s",ctry:"c166"},"pacific/chatham":{offset:12.75,hem:"s",dst:"04/07:03->04/07:02",ctry:"c150"},"pacific/chuuk":{offset:10,hem:"n",ctry:"c135"},"pacific/easter":{offset:-6,hem:"s",dst:"04/06:22->09/07:22",ctry:"c044"},"pacific/efate":{offset:11,hem:"n",ctry:"c235"},"pacific/enderbury":{offset:13,hem:"n",ctry:"c109"},"pacific/fakaofo":{offset:13,hem:"n",ctry:"c218"},"pacific/fiji":{offset:12,hem:"s",dst:"01/13:03->11/03:02"},"pacific/funafuti":{offset:12,hem:"n",ctry:"c225"},"pacific/galapagos":{offset:-6,hem:"n",ctry:"c061"},"pacific/gambier":{offset:-9,hem:"n",ctry:"c074"},"pacific/guadalcanal":{offset:11,hem:"n",ctry:"c197"},"pacific/guam":{offset:10,hem:"n"},"pacific/honolulu":{offset:-10,hem:"n",ctry:"c230"},"pacific/johnston":{offset:-10,hem:"n",ctry:"c230"},"pacific/kiritimati":{offset:14,hem:"n",ctry:"c109"},"pacific/kosrae":{offset:11,hem:"n",ctry:"c135"},"pacific/kwajalein":{offset:12,hem:"n",ctry:"c129"},"pacific/majuro":{offset:12,hem:"n",ctry:"c129"},"pacific/marquesas":{offset:-9.5,hem:"n",ctry:"c074"},"pacific/midway":{offset:-11,hem:"n",ctry:"c136"},"pacific/nauru":{offset:12,hem:"n"},"pacific/niue":{offset:-11,hem:"n"},"pacific/norfolk":{offset:11.5,hem:"n",ctry:"c155"},"pacific/noumea":{offset:11,hem:"n",ctry:"c149"},"pacific/pago_pago":{offset:-11,hem:"n",ctry:"c005"},"pacific/palau":{offset:9,hem:"n"},"pacific/pitcairn":{offset:-8,hem:"n",ctry:"c170"},"pacific/pohnpei":{offset:11,hem:"n",ctry:"c135"},"pacific/ponape":{offset:11,hem:"n",ctry:"c135"},"pacific/port_moresby":{offset:10,hem:"n",ctry:"c166"},"pacific/rarotonga":{offset:-10,hem:"n",ctry:"c050"},"pacific/saipan":{offset:10,hem:"n",ctry:"c159"},"pacific/samoa":{offset:-11,hem:"n"},"pacific/tahiti":{offset:-10,hem:"n",ctry:"c074"},"pacific/tarawa":{offset:12,hem:"n",ctry:"c109"},"pacific/tongatapu":{offset:13,hem:"s",dst:"01/15:02->11/05:03",ctry:"c219"},"pacific/truk":{offset:10,hem:"n",ctry:"c135"},"pacific/wake":{offset:12,hem:"n",ctry:"c240"},"pacific/wallis":{offset:12,hem:"n",ctry:"c241"},"pacific/yap":{offset:10,hem:"n",ctry:"c135"},"etc/gmt":{offset:0,hem:"n"},"etc/gmt+0":{offset:0,hem:"n"},"etc/gmt-0":{offset:0,hem:"n"},"etc/gmt0":{offset:0,hem:"n"},"etc/greenwich":{offset:0,hem:"n",ctry:"c229"},"etc/utc":{offset:0,hem:"n"},"etc/universal":{offset:0,hem:"n"},"etc/zulu":{offset:0,hem:"n"}};const s=(()=>e)(),f=c();function r(a){for(const e in s)if(s.hasOwnProperty(e))for(const c in s[e])if(s[e].hasOwnProperty(c)&&(c===a||-1!==s[e][c].indexOf(a)))return{day:e,country:s[e][c]};for(const e in f)if(f.hasOwnProperty(e)&&-1!==f[e].indexOf(a))return{day:"monday",location:a};return{}}function n(a,e){if(a&&"string"==typeof a){const e=r(a.toLowerCase().trim());if(e.day)return e}return function(a){if(!a||"string"!=typeof a)return null;a=a.toLowerCase();const e=t[a];if(!e)return null;if(e.loc)return r(e.loc);if(e.ctry)return r(e.ctry);let c=r(a.substr(0,a.indexOf("/")));return c.day?c:(c=r(a.substr(a.indexOf("/")+1).replace("_"," ")),c.day?c:null)}(e)}const o={weekStart:function(a){return n(a,this.tz)}};Object.defineProperty(o,"version",{value:"0.5.0"});export{o as default};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spacetime-week-start",
|
|
3
|
+
"version": "0.5.0",
|
|
3
4
|
"description": "calculate start-of-week",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "github:spencermountain/spacetime",
|
|
7
|
+
"homepage": "https://github.com/spencermountain/spacetime/tree/master/plugins/week-start",
|
|
8
|
+
"author": "Martin Spodniak & Spencer Kelly",
|
|
8
9
|
"type": "module",
|
|
9
|
-
"sideEffects": false,
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"require": "./builds/spacetime-week-start.cjs",
|
|
@@ -14,17 +14,22 @@
|
|
|
14
14
|
"default": "./builds/spacetime-week-start.mjs"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"
|
|
17
|
+
"main": "./src/index.js",
|
|
18
|
+
"module": "./builds/spacetime-week-start.mjs",
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"files": [
|
|
21
|
+
"builds"
|
|
22
|
+
],
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
25
|
+
"rollup": "4.64.7",
|
|
26
|
+
"tap-dancer": "0.4.4",
|
|
27
|
+
"tape": "5.10.3"
|
|
22
28
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"test": "TESTENV=dev tape ./test/**/*.test.js | tap-dancer",
|
|
26
|
-
"build": "rollup -c --silent"
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"spacetime": ">=7.0.0"
|
|
27
31
|
},
|
|
32
|
+
"unpkg": "builds/spacetime-week-start.min.js",
|
|
28
33
|
"prettier": {
|
|
29
34
|
"trailingComma": "none",
|
|
30
35
|
"tabWidth": 2,
|
|
@@ -32,14 +37,13 @@
|
|
|
32
37
|
"singleQuote": true,
|
|
33
38
|
"printWidth": 100
|
|
34
39
|
},
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"rollup": "4.62.2",
|
|
38
|
-
"tap-dancer": "0.3.4",
|
|
39
|
-
"tape": "5.5.3"
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=18.0.0"
|
|
40
42
|
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
"scripts": {
|
|
44
|
+
"watch": "node --watch ./scratch.js",
|
|
45
|
+
"test": "tape './test/**/*.test.js' | tap-dancer --color",
|
|
46
|
+
"version": "node ./scripts/version.js",
|
|
47
|
+
"build": "node ./scripts/version.js && rollup -c --silent"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import version from './_version.js'
|
|
1
2
|
import { getWeekStart } from './input/weekStart.js'
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
const plugin = {
|
|
4
5
|
weekStart: function (input) {
|
|
5
6
|
return getWeekStart(input, this.tz)
|
|
6
7
|
}
|
|
7
8
|
}
|
|
9
|
+
|
|
10
|
+
// Keep metadata out of spacetime.extend()'s method list.
|
|
11
|
+
Object.defineProperty(plugin, 'version', { value: version })
|
|
12
|
+
|
|
13
|
+
export default plugin
|
package/rollup.config.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import fs from 'fs'
|
|
2
|
-
import terser from '@rollup/plugin-terser'
|
|
3
|
-
const pkg = JSON.parse(fs.readFileSync('./package.json').toString())
|
|
4
|
-
|
|
5
|
-
console.log('\n 📦 - running rollup..\n')
|
|
6
|
-
|
|
7
|
-
const name = 'spacetime-week-start'
|
|
8
|
-
const banner = `/* spencermountain/${name} ${pkg.version} MIT */`
|
|
9
|
-
|
|
10
|
-
export default [
|
|
11
|
-
{
|
|
12
|
-
input: 'src/index.js',
|
|
13
|
-
output: [{ banner: banner, file: `builds/${name}.mjs`, format: 'esm' }],
|
|
14
|
-
plugins: [terser()]
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
input: 'src/index.js',
|
|
18
|
-
output: [{ banner: banner, file: `builds/${name}.cjs`, format: 'umd', sourcemap: false, name: 'weekStart' }],
|
|
19
|
-
plugins: [terser()]
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
input: 'src/index.js',
|
|
23
|
-
output: [{ banner: banner, file: `builds/${name}.min.js`, format: 'umd', name: 'weekStart' }],
|
|
24
|
-
plugins: [terser()]
|
|
25
|
-
}
|
|
26
|
-
]
|
package/scratch.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import spacetime from '../../src/index.js'
|
|
2
|
-
import weekStartPlugin from './src/index.js'
|
|
3
|
-
|
|
4
|
-
spacetime.extend(weekStartPlugin)
|
|
5
|
-
const d = spacetime.now('Europe/Berlin')
|
|
6
|
-
console.log(d.weekStart()) // { day: 'monday', country: 'germany' }
|
|
7
|
-
console.log(d.weekStart('iran')) // { day: 'saturday', country: 'iran' }
|
package/src/data/countries.js
DELETED
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
const loc = {
|
|
2
|
-
c009: 'antarctica',
|
|
3
|
-
c011: 'arctic',
|
|
4
|
-
c081: 'gmt',
|
|
5
|
-
c231: 'universal',
|
|
6
|
-
c233: 'utc',
|
|
7
|
-
c245: 'zulu'
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const firstDay = {
|
|
11
|
-
monday: {
|
|
12
|
-
c002: 'aland islands',
|
|
13
|
-
c003: 'albania',
|
|
14
|
-
c006: 'andorra',
|
|
15
|
-
c007: 'angola',
|
|
16
|
-
c008: 'anguilla',
|
|
17
|
-
c013: 'armenia',
|
|
18
|
-
c014: 'aruba',
|
|
19
|
-
c016: 'austria',
|
|
20
|
-
c017: 'azerbaijan',
|
|
21
|
-
c020: 'barbados',
|
|
22
|
-
c021: 'belarus',
|
|
23
|
-
c022: 'belgium',
|
|
24
|
-
c024: 'benin',
|
|
25
|
-
c025: 'bermuda',
|
|
26
|
-
c028: 'bonaire',
|
|
27
|
-
c029: 'bosnia and herzegovina',
|
|
28
|
-
c032: 'british indian ocean territory',
|
|
29
|
-
c033: 'brunei',
|
|
30
|
-
c034: 'bulgaria',
|
|
31
|
-
c035: 'burkina faso',
|
|
32
|
-
c036: 'burundi',
|
|
33
|
-
c038: 'cameroon',
|
|
34
|
-
c040: 'cape verde',
|
|
35
|
-
c041: 'cayman islands',
|
|
36
|
-
c042: 'central african republic',
|
|
37
|
-
c043: 'chad',
|
|
38
|
-
c046: 'christmas island',
|
|
39
|
-
c047: 'cocos (keeling) islands',
|
|
40
|
-
c049: 'comoros',
|
|
41
|
-
c050: 'cook islands',
|
|
42
|
-
c052: 'croatia',
|
|
43
|
-
c053: 'cuba',
|
|
44
|
-
c054: 'curacao',
|
|
45
|
-
c055: 'cyprus',
|
|
46
|
-
c056: 'czech republic',
|
|
47
|
-
c057: 'democratic republic of the congo',
|
|
48
|
-
c058: 'denmark',
|
|
49
|
-
c064: 'equatorial guinea',
|
|
50
|
-
c065: 'eritrea',
|
|
51
|
-
c066: 'estonia',
|
|
52
|
-
c068: 'falkland islands',
|
|
53
|
-
c069: 'faroe islands',
|
|
54
|
-
c070: 'fiji',
|
|
55
|
-
c071: 'finland',
|
|
56
|
-
c072: 'france',
|
|
57
|
-
c073: 'french guiana',
|
|
58
|
-
c074: 'french polynesia',
|
|
59
|
-
c075: 'french southern and antarctic lands',
|
|
60
|
-
c076: 'gabon',
|
|
61
|
-
c077: 'georgia',
|
|
62
|
-
c078: 'germany',
|
|
63
|
-
c079: 'ghana',
|
|
64
|
-
c080: 'gibraltar',
|
|
65
|
-
c082: 'greece',
|
|
66
|
-
c083: 'greenland',
|
|
67
|
-
c084: 'grenada',
|
|
68
|
-
c085: 'guadeloupe',
|
|
69
|
-
c088: 'guinea',
|
|
70
|
-
c089: 'guinea-bissau',
|
|
71
|
-
c090: 'guyana',
|
|
72
|
-
c091: 'haiti',
|
|
73
|
-
c094: 'hungary',
|
|
74
|
-
c095: 'iceland',
|
|
75
|
-
c097: 'indonesia',
|
|
76
|
-
c100: 'ireland',
|
|
77
|
-
c102: 'italy',
|
|
78
|
-
c103: 'ivory coast',
|
|
79
|
-
c107: 'kazakhstan',
|
|
80
|
-
c109: 'kiribati',
|
|
81
|
-
c111: 'kyrgyzstan',
|
|
82
|
-
c113: 'latvia',
|
|
83
|
-
c114: 'lebanon',
|
|
84
|
-
c115: 'lesotho',
|
|
85
|
-
c116: 'liberia',
|
|
86
|
-
c118: 'liechtenstein',
|
|
87
|
-
c119: 'lithuania',
|
|
88
|
-
c120: 'luxembourg',
|
|
89
|
-
c123: 'madagascar',
|
|
90
|
-
c124: 'malawi',
|
|
91
|
-
c127: 'mali',
|
|
92
|
-
c130: 'martinique',
|
|
93
|
-
c131: 'mauritania',
|
|
94
|
-
c132: 'mauritius',
|
|
95
|
-
c133: 'mayotte',
|
|
96
|
-
c135: 'micronesia',
|
|
97
|
-
c137: 'moldova',
|
|
98
|
-
c138: 'monaco',
|
|
99
|
-
c139: 'mongolia',
|
|
100
|
-
c140: 'montenegro',
|
|
101
|
-
c141: 'montserrat',
|
|
102
|
-
c142: 'morocco',
|
|
103
|
-
c145: 'namibia',
|
|
104
|
-
c146: 'nauru',
|
|
105
|
-
c148: 'netherlands',
|
|
106
|
-
c149: 'new caledonia',
|
|
107
|
-
c150: 'new zealand',
|
|
108
|
-
c152: 'niger',
|
|
109
|
-
c153: 'nigeria',
|
|
110
|
-
c154: 'niue',
|
|
111
|
-
c155: 'norfolk island',
|
|
112
|
-
c157: 'northern ireland',
|
|
113
|
-
c158: 'northern macedonia',
|
|
114
|
-
c160: 'norway',
|
|
115
|
-
c162: 'pakistan',
|
|
116
|
-
c166: 'papua new guinea',
|
|
117
|
-
c170: 'pitcairn islands',
|
|
118
|
-
c171: 'poland',
|
|
119
|
-
c175: 'republic of the congo',
|
|
120
|
-
c176: 'reunion',
|
|
121
|
-
c177: 'romania',
|
|
122
|
-
c178: 'russia',
|
|
123
|
-
c179: 'rwanda',
|
|
124
|
-
c180: 'saint helena, ascension and tristan da cunha',
|
|
125
|
-
c181: 'saint kitts and nevis',
|
|
126
|
-
c182: 'saint lucia',
|
|
127
|
-
c183: 'saint pierre and miquelon',
|
|
128
|
-
c184: 'saint vincent and the grenadines',
|
|
129
|
-
c186: 'san marino',
|
|
130
|
-
c187: 'sao tome and principe',
|
|
131
|
-
c189: 'senegal',
|
|
132
|
-
c190: 'serbia',
|
|
133
|
-
c191: 'seychelles',
|
|
134
|
-
c192: 'sierra leone',
|
|
135
|
-
c194: 'sint maarten',
|
|
136
|
-
c195: 'slovakia',
|
|
137
|
-
c196: 'slovenia',
|
|
138
|
-
c197: 'solomon islands',
|
|
139
|
-
c200: 'south georgia and the south sandwich islands',
|
|
140
|
-
c203: 'spain',
|
|
141
|
-
c204: 'sri lanka',
|
|
142
|
-
c206: 'suriname',
|
|
143
|
-
c207: 'swaziland',
|
|
144
|
-
c208: 'sweden',
|
|
145
|
-
c209: 'switzerland',
|
|
146
|
-
c212: 'tajikistan',
|
|
147
|
-
c213: 'tanzania',
|
|
148
|
-
c216: 'the gambia',
|
|
149
|
-
c217: 'togo',
|
|
150
|
-
c218: 'tokelau',
|
|
151
|
-
c219: 'tonga',
|
|
152
|
-
c221: 'tunisia',
|
|
153
|
-
c222: 'turkey',
|
|
154
|
-
c223: 'turkmenistan',
|
|
155
|
-
c224: 'turks and caicos islands',
|
|
156
|
-
c225: 'tuvalu',
|
|
157
|
-
c226: 'uganda',
|
|
158
|
-
c227: 'ukraine',
|
|
159
|
-
c229: 'united kingdom',
|
|
160
|
-
c234: 'uzbekistan',
|
|
161
|
-
c235: 'vanuatu',
|
|
162
|
-
c236: 'vatican city',
|
|
163
|
-
c238: 'vietnam',
|
|
164
|
-
c241: 'wallis and futuna',
|
|
165
|
-
c243: 'zambia'
|
|
166
|
-
},
|
|
167
|
-
saturday: {
|
|
168
|
-
c019: 'bangladesh',
|
|
169
|
-
c059: 'djibouti',
|
|
170
|
-
c098: 'iran',
|
|
171
|
-
c164: 'palestine',
|
|
172
|
-
c198: 'somalia'
|
|
173
|
-
},
|
|
174
|
-
sunday: {
|
|
175
|
-
c001: 'afghanistan',
|
|
176
|
-
c004: 'algeria',
|
|
177
|
-
c005: 'american samoa',
|
|
178
|
-
c010: 'antigua and barbuda',
|
|
179
|
-
c012: 'argentina',
|
|
180
|
-
c015: 'australia',
|
|
181
|
-
c018: 'bahrain',
|
|
182
|
-
c023: 'belize',
|
|
183
|
-
c026: 'bhutan',
|
|
184
|
-
c030: 'botswana',
|
|
185
|
-
c031: 'brazil',
|
|
186
|
-
c037: 'cambodia',
|
|
187
|
-
c039: 'canada',
|
|
188
|
-
c044: 'chile',
|
|
189
|
-
c045: 'china',
|
|
190
|
-
c048: 'colombia',
|
|
191
|
-
c051: 'costa rica',
|
|
192
|
-
c060: 'dominica',
|
|
193
|
-
c061: 'ecuador',
|
|
194
|
-
c062: 'egypt',
|
|
195
|
-
c063: 'el salvador',
|
|
196
|
-
c067: 'ethiopia',
|
|
197
|
-
c086: 'guam',
|
|
198
|
-
c092: 'honduras',
|
|
199
|
-
c093: 'hong kong',
|
|
200
|
-
c096: 'india',
|
|
201
|
-
c099: 'iraq',
|
|
202
|
-
c101: 'israel',
|
|
203
|
-
c104: 'jamaica',
|
|
204
|
-
c105: 'japan',
|
|
205
|
-
c106: 'jordan',
|
|
206
|
-
c108: 'kenya',
|
|
207
|
-
c110: 'kuwait',
|
|
208
|
-
c112: 'laos',
|
|
209
|
-
c121: 'macao',
|
|
210
|
-
c122: 'macau',
|
|
211
|
-
c125: 'malaysia',
|
|
212
|
-
c126: 'maldives',
|
|
213
|
-
c128: 'malta',
|
|
214
|
-
c129: 'marshall islands',
|
|
215
|
-
c134: 'mexico',
|
|
216
|
-
c136: 'midway atoll',
|
|
217
|
-
c143: 'mozambique',
|
|
218
|
-
c144: 'myanmar',
|
|
219
|
-
c147: 'nepal',
|
|
220
|
-
c151: 'nicaragua',
|
|
221
|
-
c156: 'north korea',
|
|
222
|
-
c159: 'northern mariana islands',
|
|
223
|
-
c161: 'oman',
|
|
224
|
-
c163: 'palau',
|
|
225
|
-
c165: 'panama',
|
|
226
|
-
c167: 'paraguay',
|
|
227
|
-
c168: 'peru',
|
|
228
|
-
c169: 'philippines',
|
|
229
|
-
c172: 'portugal',
|
|
230
|
-
c173: 'puerto rico',
|
|
231
|
-
c174: 'qatar',
|
|
232
|
-
c185: 'samoa',
|
|
233
|
-
c188: 'saudi arabia',
|
|
234
|
-
c193: 'singapore',
|
|
235
|
-
c199: 'south africa',
|
|
236
|
-
c201: 'south korea',
|
|
237
|
-
c202: 'south sudan',
|
|
238
|
-
c205: 'sudan',
|
|
239
|
-
c210: 'syria',
|
|
240
|
-
c211: 'taiwan',
|
|
241
|
-
c214: 'thailand',
|
|
242
|
-
c215: 'the bahamas',
|
|
243
|
-
c220: 'trinidad and tobago',
|
|
244
|
-
c228: 'united arab emirates',
|
|
245
|
-
c230: 'united states of america',
|
|
246
|
-
c232: 'uruguay',
|
|
247
|
-
c237: 'venezuela',
|
|
248
|
-
c239: 'virgin islands',
|
|
249
|
-
c240: 'wake island',
|
|
250
|
-
c242: 'yemen',
|
|
251
|
-
c244: 'zimbabwe'
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export default {
|
|
256
|
-
countries: () => {
|
|
257
|
-
const arr = []
|
|
258
|
-
Object.keys(firstDay).forEach(day => {
|
|
259
|
-
Object.keys(firstDay[day]).forEach(country => {
|
|
260
|
-
arr.push(firstDay[day][country])
|
|
261
|
-
})
|
|
262
|
-
})
|
|
263
|
-
return arr.sort()
|
|
264
|
-
},
|
|
265
|
-
firstDay: () => firstDay,
|
|
266
|
-
locations: () => loc
|
|
267
|
-
};
|