PageSourceSearch

https://kocmyrzow-luborzyca.ug.gov.pl/lib/calendar/pl.js?version=20251017111037

js kocmyrzow-luborzyca.ug.gov.pl collected 2026-10-02 22:07:32 UTC 3,784 bytes, 107 lines download raw bytes

vendor: 3,784 bytes, lines 1-107
1//! moment.js locale configuration
2//! locale : Polish [pl]
3//! author : Rafal Hirsz : https://github.com/evoL
4
5;(function (global, factory) {
6   typeof exports === 'object' && typeof module !== 'undefined'
7       && typeof require === 'function' ? factory(require('../moment')) :
8   typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9   factory(global.moment)
10}(this, (function (moment) { 'use strict';
11
12
13var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_');
14var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
15function plural(n) {
16    return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
17}
18function translate(number, withoutSuffix, key) {
19    var result = number + ' ';
20    switch (key) {
21        case 'm':
22            return withoutSuffix ? 'minuta' : 'minutę';
23        case 'mm':
24            return result + (plural(number) ? 'minuty' : 'minut');
25        case 'h':
26            return withoutSuffix  ? 'godzina'  : 'godzinę';
27        case 'hh':
28            return result + (plural(number) ? 'godziny' : 'godzin');
29        case 'MM':
30            return result + (plural(number) ? 'miesiące' : 'miesięcy');
31        case 'yy':
32            return result + (plural(number) ? 'lata' : 'lat');
33    }
34}
35
36var pl = moment.defineLocale('pl', {
37    months : function (momentToFormat, format) {
38        if (!momentToFormat) {
39            return monthsNominative;
40        } else if (format === '') {
41            // Hack: if format empty we know this is used to generate
42            // RegExp by moment. Give then back both valid forms of months
43            // in RegExp ready format.
44            return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
45        } else if (/D MMMM/.test(format)) {
46            return monthsSubjective[momentToFormat.month()];
47        } else {
48            return monthsNominative[momentToFormat.month()];
49        }
50    },
51    monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
52    weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
53    weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
54    weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
55    longDateFormat : {
56        LT : 'HH:mm',
57        LTS : 'HH:mm:ss',
58        L : 'DD.MM.YYYY',
59        LL : 'D MMMM YYYY',
60        LLL : 'D MMMM YYYY HH:mm',
61        LLLL : 'dddd, D MMMM YYYY HH:mm'
62    },
63    calendar : {
64        sameDay: '[Dziś o] LT',
65        nextDay: '[Jutro o] LT',
66        nextWeek: '[W] dddd [o] LT',
67        lastDay: '[Wczoraj o] LT',
68        lastWeek: function () {
69            switch (this.day()) {
70                case 0:
71                    return '[W zeszłą niedzielę o] LT';
72                case 3:
73                    return '[W zeszłą środę o] LT';
74                case 6:
75                    return '[W zeszłą sobotę o] LT';
76                default:
77                    return '[W zeszły] dddd [o] LT';
78            }
79        },
80        sameElse: 'L'
81    },
82    relativeTime : {
83        future : 'za %s',
84        past : '%s temu',
85        s : 'kilka sekund',
86        m : translate,
87        mm : translate,
88        h : translate,
89        hh : translate,
90        d : '1 dzień',
91        dd : '%d dni',
92        M : 'miesiąc',
93        MM : translate,
94        y : 'rok',
95        yy : translate
96    },
97    dayOfMonthOrdinalParse: /\d{1,2}\./,
98    ordinal : '%d.',
99    week : {
100        dow : 1, // Monday is the first day of the week.
101        doy : 4  // The week that contains Jan 4th is the first week of the year.
102    }
103});
104
105return pl;
106
107})));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.