@progress/kendo-react-intl 6.1.1 → 7.0.0-develop.2
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/{dist/es/Intl → Intl}/IntlProvider.d.ts +5 -1
- package/Intl/IntlProviderProps.d.ts +17 -0
- package/{dist/es/Intl → Intl}/IntlService.d.ts +8 -0
- package/Intl/main.d.ts +8 -0
- package/LICENSE.md +1 -1
- package/{dist/es/Localization → Localization}/LocalizationProvider.d.ts +5 -1
- package/Localization/LocalizationProviderProps.d.ts +17 -0
- package/{dist/npm/Localization → Localization}/LocalizationService.d.ts +4 -0
- package/Localization/loadMessages.d.ts +11 -0
- package/Localization/main.d.ts +9 -0
- package/Localization/messages.d.ts +8 -0
- package/coreExports.d.ts +6 -0
- package/dist/cdn/js/kendo-react-intl.js +8 -1
- package/globalization/GlobalizationContext.d.ts +14 -0
- package/hooks/index.d.ts +6 -0
- package/hooks/useInternationalization.d.ts +9 -0
- package/hooks/useLocalization.d.ts +9 -0
- package/index.d.ts +11 -0
- package/index.js +8 -0
- package/index.mjs +261 -0
- package/{dist/npm/intlUtils.d.ts → intlUtils.d.ts} +4 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +27 -27
- package/about.md +0 -3
- package/dist/es/Intl/IntlProvider.js +0 -62
- package/dist/es/Intl/IntlProviderProps.d.ts +0 -14
- package/dist/es/Intl/IntlProviderProps.js +0 -1
- package/dist/es/Intl/IntlService.js +0 -149
- package/dist/es/Intl/main.d.ts +0 -4
- package/dist/es/Intl/main.js +0 -3
- package/dist/es/Localization/LocalizationProvider.js +0 -62
- package/dist/es/Localization/LocalizationProviderProps.d.ts +0 -14
- package/dist/es/Localization/LocalizationProviderProps.js +0 -1
- package/dist/es/Localization/LocalizationService.d.ts +0 -16
- package/dist/es/Localization/LocalizationService.js +0 -34
- package/dist/es/Localization/loadMessages.d.ts +0 -7
- package/dist/es/Localization/loadMessages.js +0 -35
- package/dist/es/Localization/main.d.ts +0 -5
- package/dist/es/Localization/main.js +0 -4
- package/dist/es/Localization/messages.d.ts +0 -4
- package/dist/es/Localization/messages.js +0 -4
- package/dist/es/coreExports.d.ts +0 -1
- package/dist/es/coreExports.js +0 -1
- package/dist/es/globalization/GlobalizationContext.d.ts +0 -10
- package/dist/es/globalization/GlobalizationContext.js +0 -8
- package/dist/es/hooks/index.d.ts +0 -2
- package/dist/es/hooks/index.js +0 -2
- package/dist/es/hooks/useInternationalization.d.ts +0 -5
- package/dist/es/hooks/useInternationalization.js +0 -6
- package/dist/es/hooks/useLocalization.d.ts +0 -5
- package/dist/es/hooks/useLocalization.js +0 -6
- package/dist/es/intlUtils.d.ts +0 -27
- package/dist/es/intlUtils.js +0 -49
- package/dist/es/main.d.ts +0 -7
- package/dist/es/main.js +0 -7
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/npm/Intl/IntlProvider.d.ts +0 -23
- package/dist/npm/Intl/IntlProvider.js +0 -65
- package/dist/npm/Intl/IntlProviderProps.d.ts +0 -14
- package/dist/npm/Intl/IntlProviderProps.js +0 -2
- package/dist/npm/Intl/IntlService.d.ts +0 -98
- package/dist/npm/Intl/IntlService.js +0 -152
- package/dist/npm/Intl/main.d.ts +0 -4
- package/dist/npm/Intl/main.js +0 -7
- package/dist/npm/Localization/LocalizationProvider.d.ts +0 -23
- package/dist/npm/Localization/LocalizationProvider.js +0 -65
- package/dist/npm/Localization/LocalizationProviderProps.d.ts +0 -14
- package/dist/npm/Localization/LocalizationProviderProps.js +0 -2
- package/dist/npm/Localization/LocalizationService.js +0 -37
- package/dist/npm/Localization/loadMessages.d.ts +0 -7
- package/dist/npm/Localization/loadMessages.js +0 -39
- package/dist/npm/Localization/main.d.ts +0 -5
- package/dist/npm/Localization/main.js +0 -9
- package/dist/npm/Localization/messages.d.ts +0 -4
- package/dist/npm/Localization/messages.js +0 -7
- package/dist/npm/coreExports.d.ts +0 -1
- package/dist/npm/coreExports.js +0 -5
- package/dist/npm/globalization/GlobalizationContext.d.ts +0 -10
- package/dist/npm/globalization/GlobalizationContext.js +0 -11
- package/dist/npm/hooks/index.d.ts +0 -2
- package/dist/npm/hooks/index.js +0 -18
- package/dist/npm/hooks/useInternationalization.d.ts +0 -5
- package/dist/npm/hooks/useInternationalization.js +0 -10
- package/dist/npm/hooks/useLocalization.d.ts +0 -5
- package/dist/npm/hooks/useLocalization.js +0 -10
- package/dist/npm/intlUtils.js +0 -56
- package/dist/npm/main.d.ts +0 -7
- package/dist/npm/main.js +0 -26
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/systemjs/kendo-react-intl.js +0 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
1
5
|
import * as React from 'react';
|
|
2
6
|
import * as PropTypes from 'prop-types';
|
|
3
7
|
import { IntlService } from './IntlService';
|
|
@@ -19,5 +23,5 @@ export declare class IntlProvider extends React.Component<IntlProviderProps, {}>
|
|
|
19
23
|
/**
|
|
20
24
|
* @hidden
|
|
21
25
|
*/
|
|
22
|
-
render(): JSX.Element;
|
|
26
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
23
27
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Represents the props of the KendoReact IntlProvider component.
|
|
7
|
+
*/
|
|
8
|
+
export interface IntlProviderProps {
|
|
9
|
+
/**
|
|
10
|
+
* The locale that will be used by the child components.
|
|
11
|
+
*/
|
|
12
|
+
locale: string;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
1
5
|
import { DateFormatOptions, NumberFormatOptions, DateFieldNameOptions, DateFormatNameOptions, DateFormatPart } from './../coreExports';
|
|
2
6
|
/**
|
|
3
7
|
* A service which provides internationalization methods and is bound to a specific locale.
|
|
@@ -95,4 +99,8 @@ export declare class IntlService {
|
|
|
95
99
|
* @hidden
|
|
96
100
|
*/
|
|
97
101
|
localeInfo(): any;
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
*/
|
|
105
|
+
localeCurrency(): any;
|
|
98
106
|
}
|
package/Intl/main.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { IntlProvider } from './IntlProvider';
|
|
6
|
+
import { type IntlProviderProps } from './IntlProviderProps';
|
|
7
|
+
import { IntlService } from './IntlService';
|
|
8
|
+
export { IntlProvider, IntlProviderProps, IntlService };
|
package/LICENSE.md
CHANGED
|
@@ -8,4 +8,4 @@ This is commercial software. To use it, you need to agree to the [**End User Lic
|
|
|
8
8
|
|
|
9
9
|
All available KendoReact commercial licenses may be obtained at the [KendoReact website](https://www.telerik.com/kendo-react-ui/pricing).
|
|
10
10
|
|
|
11
|
-
*Copyright ©
|
|
11
|
+
*Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
1
5
|
import * as React from 'react';
|
|
2
6
|
import * as PropTypes from 'prop-types';
|
|
3
7
|
import { LocalizationProviderProps } from './LocalizationProviderProps';
|
|
@@ -19,5 +23,5 @@ export declare class LocalizationProvider extends React.Component<LocalizationPr
|
|
|
19
23
|
/**
|
|
20
24
|
* @hidden
|
|
21
25
|
*/
|
|
22
|
-
render(): JSX.Element;
|
|
26
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
23
27
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Represents the props of the KendoReact LocalizationProvider component.
|
|
7
|
+
*/
|
|
8
|
+
export interface LocalizationProviderProps {
|
|
9
|
+
/**
|
|
10
|
+
* The language that will be used by the child components.
|
|
11
|
+
*/
|
|
12
|
+
language: string;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
1
5
|
/**
|
|
2
6
|
* A service which provides localization methods.
|
|
3
7
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Provides mechanism to load language-specific messages for the KendoReact components.
|
|
7
|
+
*
|
|
8
|
+
* @param messages - An iterable object which contains key-value pairs.
|
|
9
|
+
* @param languages - The language to which the messages are associated.
|
|
10
|
+
*/
|
|
11
|
+
export declare function loadMessages(messages: any, language: string): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { loadMessages } from './loadMessages';
|
|
6
|
+
import { LocalizationProvider } from './LocalizationProvider';
|
|
7
|
+
import { type LocalizationProviderProps } from './LocalizationProviderProps';
|
|
8
|
+
import { LocalizationService } from './LocalizationService';
|
|
9
|
+
export { loadMessages, LocalizationProvider, LocalizationProviderProps, LocalizationService };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare const messages: any;
|
package/coreExports.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export type { DateFormatOptions, NumberFormatOptions, DateFieldNameOptions, DateFormatNameOptions, DateFormatPart } from '@progress/kendo-intl';
|
|
6
|
+
export { load } from '@progress/kendo-intl';
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@progress/kendo-licensing"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","@progress/kendo-licensing","prop-types"],r):"object"==typeof exports?exports.KendoReactIntl=r(require("react"),require("@progress/kendo-licensing"),require("prop-types")):e.KendoReactIntl=r(e.React,e.KendoLicensing,e.PropTypes)}(self,(function(e,r,t){return(()=>{"use strict";var n={439:function(e,r,t){var n,a=this&&this.__extends||(n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},n(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},o.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.IntlProvider=void 0;var i=t(899),u=t(189),s=t(758),l=t(345),c=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return a(r,e),r.prototype.getIntlService=function(){return new s.IntlService(this.props.locale)},r.prototype.render=function(){var e=this;return i.createElement(l.GlobalizationContext.Consumer,null,(function(r){return i.createElement(l.GlobalizationContext.Provider,{value:o(o({},r),{intl:e.getIntlService()})},e.props.children)}))},r.propTypes={locale:u.string},r}(i.Component);r.IntlProvider=c},758:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IntlService=void 0;var n=t(904),a=t(302),o=t(363),i=function(){function e(e){if(this.locale=e,void 0!==a)a.validatePackage(o.packageMetadata);else{var r="License activation failed for ".concat(o.packageMetadata.name,"\n");r+="The @progress/kendo-licensing script is not loaded.\n",r+="See ".concat(o.packageMetadata.licensingDocsUrl," for more information.\n"),console.warn(r)}}return e.prototype.format=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return 1===r.length&&Array.isArray(r[0])?n.format(e,r[0],this.locale):n.format(e,r,this.locale)},e.prototype.formatDate=function(e,r){return n.formatDate(e,r,this.locale)},e.prototype.toString=function(e,r){return n.toString(e,r,this.locale)},e.prototype.parseNumber=function(e,r){return n.parseNumber(e,this.locale,r)},e.prototype.parseDate=function(e,r){return n.parseDate(e,r,this.locale)},e.prototype.formatNumber=function(e,r){return n.formatNumber(e,r,this.locale)},e.prototype.dateFieldName=function(e){return n.dateFieldName(e,this.locale)},e.prototype.dateFormatNames=function(e){return n.dateFormatNames(this.locale,e)},e.prototype.splitDateFormat=function(e){return n.splitDateFormat(e,this.locale)},e.prototype.numberSymbols=function(){return n.numberSymbols(this.locale)},e.prototype.firstDay=function(){return n.firstDay(this.locale)},e.prototype.localeInfo=function(){return n.localeInfo(this.locale)},e}();r.IntlService=i},257:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IntlService=r.IntlProvider=void 0;var n=t(439);Object.defineProperty(r,"IntlProvider",{enumerable:!0,get:function(){return n.IntlProvider}});var a=t(758);Object.defineProperty(r,"IntlService",{enumerable:!0,get:function(){return a.IntlService}})},537:function(e,r,t){var n,a=this&&this.__extends||(n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},n(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},o.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.LocalizationProvider=void 0;var i=t(899),u=t(189),s=t(362),l=t(345),c=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return a(r,e),r.prototype.getLocalizationService=function(){return new s.LocalizationService(this.props.language)},r.prototype.render=function(){var e=this;return i.createElement(l.GlobalizationContext.Consumer,null,(function(r){return i.createElement(l.GlobalizationContext.Provider,{value:o(o({},r),{localization:e.getLocalizationService()})},e.props.children)}))},r.propTypes={language:u.string},r}(i.Component);r.LocalizationProvider=c},362:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.LocalizationService=void 0;var n=t(502),a=function(){function e(e){this.language=e}return e.prototype.toLanguageString=function(e,r){return this.language&&n.messages[this.language]&&n.messages[this.language].hasOwnProperty(e)?n.messages[this.language][e]:r},e}();r.LocalizationService=a},212:function(e,r,t){var n=this&&this.__spreadArray||function(e,r,t){if(t||2===arguments.length)for(var n,a=0,o=r.length;a<o;a++)!n&&a in r||(n||(n=Array.prototype.slice.call(r,0,a)),n[a]=r[a]);return e.concat(n||Array.prototype.slice.call(r))};Object.defineProperty(r,"__esModule",{value:!0}),r.loadMessages=void 0;var a=t(502),o=function(e,r,t){for(var a in e)if(e.hasOwnProperty(a)){var i=n([],t,!0);if(i.push(a),"string"!=typeof e[a])o(e[a],r,i);else{var u=e[a];Object.defineProperty(r,i.join("."),{value:u})}}};r.loadMessages=function(e,r){var t=a.messages[r]=a.messages[r]||{};o(e,t,[])}},574:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.LocalizationService=r.LocalizationProvider=r.loadMessages=void 0;var n=t(212);Object.defineProperty(r,"loadMessages",{enumerable:!0,get:function(){return n.loadMessages}});var a=t(537);Object.defineProperty(r,"LocalizationProvider",{enumerable:!0,get:function(){return a.LocalizationProvider}});var o=t(362);Object.defineProperty(r,"LocalizationService",{enumerable:!0,get:function(){return o.LocalizationService}})},502:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.messages=void 0,r.messages=Object.create({})},8:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.load=void 0;var n=t(904);Object.defineProperty(r,"load",{enumerable:!0,get:function(){return n.load}})},345:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.GlobalizationContext=void 0;var n=t(899),a=t(758),o=t(362);r.GlobalizationContext=n.createContext({intl:new a.IntlService("en"),localization:new o.LocalizationService})},586:function(e,r,t){var n=this&&this.__createBinding||(Object.create?function(e,r,t,n){void 0===n&&(n=t);var a=Object.getOwnPropertyDescriptor(r,t);a&&!("get"in a?!r.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,a)}:function(e,r,t,n){void 0===n&&(n=t),e[n]=r[t]}),a=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||n(r,e,t)};Object.defineProperty(r,"__esModule",{value:!0}),a(t(21),r),a(t(147),r)},21:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.useInternationalization=void 0;var n=t(899),a=t(345);r.useInternationalization=function(){return n.useContext(a.GlobalizationContext).intl}},147:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.useLocalization=void 0;var n=t(899),a=t(345);r.useLocalization=function(){return n.useContext(a.GlobalizationContext).localization}},798:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.registerForLocalization=r.registerForIntl=r.provideLocalizationService=r.provideIntlService=void 0;var n=t(758),a=t(362),o=t(345);r.provideIntlService=function(e){var r=e.context;return r&&r.intl?r.intl:new n.IntlService("en")},r.provideLocalizationService=function(e){var r=e.context;return r&&r.localization?r.localization:new a.LocalizationService},r.registerForIntl=function(e){e.contextType=o.GlobalizationContext},r.registerForLocalization=function(e){e.contextType=o.GlobalizationContext}},468:function(e,r,t){var n=this&&this.__createBinding||(Object.create?function(e,r,t,n){void 0===n&&(n=t);var a=Object.getOwnPropertyDescriptor(r,t);a&&!("get"in a?!r.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,a)}:function(e,r,t,n){void 0===n&&(n=t),e[n]=r[t]}),a=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||n(r,e,t)};Object.defineProperty(r,"__esModule",{value:!0}),r.localizationMessages=r.GlobalizationContext=void 0;var o=t(345);Object.defineProperty(r,"GlobalizationContext",{enumerable:!0,get:function(){return o.GlobalizationContext}});var i=t(502);Object.defineProperty(r,"localizationMessages",{enumerable:!0,get:function(){return i.messages}}),a(t(257),r),a(t(574),r),a(t(8),r),a(t(798),r),a(t(586),r)},363:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.packageMetadata=void 0,r.packageMetadata={name:"@progress/kendo-react-intl",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700063373,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},904:(e,r,t)=>{t.r(r),t.d(r,{IntlError:()=>o,cldr:()=>l,currencyDisplay:()=>ye,currencyDisplays:()=>pe,currencyFractionOptions:()=>ve,dateFieldName:()=>ee,dateFormatNames:()=>re,errors:()=>s,firstDay:()=>xe,format:()=>mt,formatDate:()=>Ir,formatNumber:()=>$e,load:()=>Y,localeCurrency:()=>he,localeInfo:()=>m,numberSymbols:()=>De,parseDate:()=>nt,parseNumber:()=>tr,setData:()=>V,splitDateFormat:()=>st,territoryCurrencyCode:()=>ge,toIntlErrors:()=>u,toString:()=>ct,weekendRange:()=>Fe});function n(e){return"string"==typeof e}var a=/\{(\d+)}?\}/g,o=function(e){var r=e.name,t=e.message;if(!r||!t)throw new Error("{ name: string, message: string } object is required!");this.name=r,this.message=t};o.prototype.formatMessage=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var t=i(e),n=this.message.replace(a,(function(e,r){return t[parseInt(r,10)]}));return this.name+": "+n},o.prototype.error=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return new Error(this.formatMessage(e))};var i=function(e){return e.reduce((function(e,r){return e.concat(r)}),[])},u=function(e){return Object.keys(e).reduce((function(r,t){return r[t]=new o({name:t,message:e[t]}),r}),{})},s=u({NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."}),l={en:{name:"en",identity:{version:{_unicodeVersion:"14.0.0",_cldrVersion:"41"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":",approximatelySign:"~"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMd:"M/d/y GGGGG",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era",short:"era",narrow:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},weekOfMonth:{wide:"week of month",short:"wk. of mo.",narrow:"wk. of mo."},day:{wide:"day",short:"day",narrow:"day"},dayOfYear:{wide:"day of year",short:"day of yr.",narrow:"day of yr."},weekday:{wide:"day of the week",short:"day of wk.",narrow:"day of wk."},weekdayOfMonth:{wide:"weekday of the month",short:"wkday. of mo.",narrow:"wkday. of mo."},dayperiod:{short:"AM/PM",wide:"AM/PM",narrow:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone",short:"zone",narrow:"zone"},millisecond:{narrow:"ms",short:"ms",wide:"millisecond"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function c(e){return n(e)?m(e):e}function m(e){if(l[e])return l[e];if(l.supplemental.likelySubtags){var r=e.split("-"),t=r[0],n=r.slice(1),a=function(e,r){for(var t=l.supplemental.likelySubtags,n=0;n<r.length;n++){var a=t[e+"-"+r[n]];if(a)return a}if(t[e])return t[e]}(t,n),o=a?function(e,r){var t=e.split("-"),n=t[0],a=t[1],o=t[2];return l[e]||-1!==r.indexOf(o)&&l[n+"-"+o]||-1!==r.indexOf(a)&&l[n+"-"+a]||l[n]}(a,n):null;if(o)return o}throw s.NoLocale.error(e)}var d="decimal",f="currency",p="accounting",y="percent",v="scientific",g="$",h="%",M="n",b=";",w=",",S=".",x="",O="en",F="Formats-numberSystem-latn",D="symbols-numberSystem-latn",k=/([#,0.]+)/g,N=/¤/g;function _(e){return k.lastIndex=0,e.replace(N,g).replace(k,M).split(b)}function z(e){return k.lastIndex=0,k.exec(e.split(b)[0])[0].split(S)[0].split(w).slice(1).map((function(e){return e.length})).reverse()}function P(e,r){for(var t in r)t.startsWith("unitPattern")&&(e[t]=r[t].replace("{0}",M).replace("{1}",g))}function E(e,r){var t=l[e],n=t.numbers=t.numbers||{};for(var a in n.symbols=n.symbols||{},r)if(a===D)Object.assign(n.symbols,r[a]);else if(a.includes(F)){var o=a.substr(0,a.indexOf(F)),i=r[a].standard;n[o]={patterns:_(i)},o===f?(n[o].groupSize=z((r[d+F]||r[a]).standard),P(n[o],r[a]),n[p]={patterns:_(r[a][p]),groupSize:n[o].groupSize}):n[o].groupSize=z(i)}else"currencies"===a&&(n.currencies=r[a])}var H={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},T=/y+/g,I=[["dateFormats","short"]],j={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function C(e){for(var r=[],t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var a=e[t[n]];r.push(a)}return r}function L(e,r){var t={};for(var n in e){var a=t[n]={};for(var o in e[n]){var i=e[n][o];a[o]=r?i:C(i)}}return t}function A(e,r){var t=l[e].calendar;t.days=L(r.days),t.months=L(r.months),t.quarters=L(r.quarters),t.dayPeriods=L(r.dayPeriods,!0),t.eras=function(e){var r={},t=r.format={},n={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(var a in e)t[n[a]]=e[a];return r}(r.eras)}function G(e,r){var t=l[e].calendar,n={};for(var a in r){var o=a.split("-"),i=o[0],u=o[1];void 0===u&&(u="wide");var s=n[i]||{},c=r[a].displayName;c&&(s[u]=c,n[i]=s)}t.dateFields=n}function q(e,r){for(var t=[],n=0;n<e.length;n++){for(var a=e[n],o=r,i=0;i<a.length;i++)o=o[a[i]];t.push(o)}return t.join(" ")}function Z(e,r){var t=l[e].calendar,n=t.patterns={};for(var a in n.d=q(I,r).replace(T,"y"),j)n[a]=q(j[a],r);for(var o in H)n[o]=H[o];var i=r.dateTimeFormats;t.dateTimeFormats={full:i.full,long:i.long,medium:i.medium,short:i.short,availableFormats:i.availableFormats},t.timeFormats=r.timeFormats,t.dateFormats=r.dateFormats}function Q(e,r){var t=l[e].calendar=l[e].calendar||{};for(var n in r)"timeZoneNames"===n?(t.gmtFormat=r[n].gmtFormat,t.gmtZeroFormat=r[n].gmtZeroFormat):"calendars"===n&&r[n].gregorian?(Z(e,r[n].gregorian),A(e,r[n].gregorian)):"fields"===n&&G(e,r.fields)}function X(e){if(e.territory)return e.territory;var r,t=e.name,n=e.identity;return r=n&&n.territory?n.territory:function(e,r){var t=l.supplemental.likelySubtags,n=e.split("-");if(t){var a=t[e]||t[n[0]];a&&(n=a.split("-"))}if(r)for(var o=n.length-1;o>=1;o--){var i=n[o];i!==r.variant&&i!==r.script||n.splice(o,1)}var u=n.length;if(u>1)return n[u-1].toUpperCase()}(t,n),e.territory=r,r}var B="duration-millisecond",U="unitPattern-count-one",J="unitPattern-count-other",W=/\{0\}\s?/;function R(e){return(e[U]||e[J]).replace(W,"")}function $(e,r){e.calendar.dateFields.millisecond={narrow:R(r.narrow[B]),short:R(r.short[B]),wide:R(r.long[B])}}function K(e,r){for(var t in r)"numbers"===t?E(e,r[t]):"dates"===t&&Q(e,r[t])}function Y(){for(var e=arguments,r=arguments.length,t=0;t<r;t++){var n=e[t];if(n.main){var a=Object.keys(n.main)[0],o=n.main[a],i=l[a]=l[a]||{};o.units?$(i,o.units):(i.name=i.name||a,i.identity=i.identity||o.identity,X(i),K(a,o))}else if(n.supplemental)if(n.supplemental.weekData)l.supplemental.weekData={firstDay:n.supplemental.weekData.firstDay,weekendStart:n.supplemental.weekData.weekendStart,weekendEnd:n.supplemental.weekData.weekendEnd};else if(n.supplemental.likelySubtags)l.supplemental.likelySubtags=Object.assign(l.supplemental.likelySubtags,n.supplemental.likelySubtags);else if(n.supplemental.currencyData){var u=l.supplemental.currencyData;u.region=Object.assign(u.region||{},n.supplemental.currencyData.region),u.fractions=Object.assign(u.fractions||{},n.supplemental.currencyData.fractions)}}}function V(e){var r=e.name,t=l[r]=l[r]||{},n=l.supplemental=l.supplemental||{};e.likelySubtags&&(n.likelySubtags=Object.assign(n.likelySubtags||{},e.likelySubtags)),e.currencyData&&(n.currencyData=n.currencyData||{},n.currencyData.fractions=Object.assign(n.currencyData.fractions||{},e.currencyData));var a=t.numbers;Object.assign(t,e),a&&e.numbers&&(t.numbers=Object.assign({},a,e.numbers))}function ee(e,r){void 0===r&&(r=O);var t=m(r).calendar.dateFields;if(!t)throw s.NoDateFieldNames.error();var n=t[e.type]||{};return n[e.nameType]||n.wide}function re(e,r){var t=r.type,n=r.nameType,a=r.standAlone,o=r.lower,i=c(e),u=a?"stand-alone":"format",s=(o?"lower-":x)+n,l=i.calendar[t][u],m=l[s];return!m&&o&&(m=l[s]=function(e){var r=Array.isArray(e)?function(e){for(var r=[],t=0;t<e.length;t++)r.push(e[t].toLowerCase());return r}(e):function(e){var r={};for(var t in e)r[t]=e[t].toLowerCase();return r}(e);return r}(l[n])),m}function te(e){var r=e.split("-"),t=parseInt(r[0],10),n=parseInt(r[1],10)-1,a=parseInt(r[2],10);return new Date(t,n,a)}var ne=s.NoCurrency,ae=s.NoCurrencyDisplay,oe=s.NoSupplementalCurrency,ie=s.NoCurrencyRegion,ue=s.NoValidCurrency,se=2,le="symbol",ce="XXX",me={"001":"USD",150:"EUR"};function de(e,r,t){var n=c(e).numbers.currencies;if(n){var a=n[r];if(a)return a;if(t)throw ae.error()}else if(t)throw ne.error()}function fe(e,r){return r.length-e.length}function pe(e,r,t){void 0===t&&(t=!0);var n=de(e,r,t);if(n){if(!n.displays){var a=[r];for(var o in n)a.push(n[o]);a.sort(fe),n.displays=a}return n.displays}}function ye(e,r){var t=r.value,n=r.currency,a=r.currencyDisplay;if(void 0===a&&(a=le),"code"===a)return n;var o=de(e,n,!0);return a===le?o["symbol-alt-narrow"]||o[le]:void 0===t||1!==t?o["displayName-count-other"]:o["displayName-count-one"]}function ve(e){var r=se,t=se,n=((l.supplemental.currencyData||{}).fractions||{})[e];return n&&n._digits&&(t=r=parseInt(n._digits,10)),{minimumFractionDigits:r,maximumFractionDigits:t}}function ge(e,r){if(void 0===r&&(r=!0),me[e])return me[e];var t=l.supplemental.currencyData;if(t){var n=t.region[e];if(n){var a=function(e){for(var r,t,n,a,o=0;o<e.length;o++){var i=e[o],u=Object.keys(i)[0],s=i[u];if(u!==ce&&"false"!==s._tender&&s._from)if(s._to){if(!n){var l=te(s._from),c=te(s._to);(!t||t.to<c||t.from<l)&&(r=u,t={from:l,to:c})}}else{var m=te(s._from);(!a||a<m)&&(n=u,a=m)}}return n||r}(n);return a}if(r)throw ie.error(e)}else if(r)throw oe.error()}function he(e,r){var t=c(e),n=t.numbers;if(!n.localeCurrency){var a=ge(X(t),r);if(!a&&r)throw ue.error(t.name);n.localeCurrency=a}return n.localeCurrency}var Me=["sun","mon","tue","wed","thu","fri","sat"],be="001",we=s.NoWeekData,Se=s.NoFirstDay;function xe(e){var r=c(e);if(!isNaN(r.firstDay))return r.firstDay;var t=l.supplemental.weekData;if(!t)throw we.error();var n=t.firstDay[X(r)]||t.firstDay[be];if(!n)throw Se.error();return r.firstDay=Me.indexOf(n),r.firstDay}var Oe=s.NoWeekData;function Fe(e){var r=c(e);if(r.weekendRange)return r.weekendRange;var t=l.supplemental.weekData;if(!t)throw Oe.error();var n=X(r),a=t.weekendStart[n]||t.weekendStart[be],o=t.weekendEnd[n]||t.weekendEnd[be];return r.weekendRange={start:Me.indexOf(a),end:Me.indexOf(o)},r.weekendRange}function De(e){return c(e).numbers.symbols}function ke(e){return 1/e==-1/0}function Ne(e,r){return void 0===r&&(r={}),r.currency||(r.currency=he(e,!0)),ye(e,r)}function _e(e,r,t,n,a){var o=a.numbers.symbols,i=e.indexOf(o.decimal),u=n.groupSize.slice(),s=u.shift(),l=-1!==i?i:t+1,c=e.substring(r,l),m=e,d=c.length;if(d>=s){for(var f=d,p=[];f>-1;){var y=c.substring(f-s,f);y&&p.push(y),f-=s;var v=u.shift();if(0===(s=void 0!==v?v:s)){(y=c.substring(0,f))&&p.push(y);break}}c=p.reverse().join(o.group),m=e.substring(0,r)+c+e.substring(l)}return m}function ze(e){return e===f||e===p}function Pe(e,r,t){void 0===r&&(r=2),void 0===t&&(t=!1);var n=r-String(e).length,a=e;if(n>0){var o=new Array(n+1).join("0");a=t?e+o:o+e}return a}var Ee=20;function He(e,r){var t=e,n=r||0;return t=t.toString().split("e"),t=(t=Math.round(Number(t[0]+"e"+(t[1]?Number(t[1])+n:n)))).toString().split("e"),(t=Number(t[0]+"e"+(t[1]?Number(t[1])-n:-n))).toFixed(Math.min(n,Ee))}var Te=3,Ie=0,je=/0+$/;var Ce=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,Le="__??__";function Ae(e,r){var t=e.format;-1!==t.indexOf(h)&&(e.style=y,e.symbol=r.numbers.symbols.percentSign,e.number*=100),-1!==t.indexOf(g)&&(e.style=f,e.symbol=Ne(r))}function Ge(e){var r=e.format;if(r.indexOf("'")>-1||r.indexOf('"')>-1||r.indexOf("\\")>-1){var t=e.literals=[];e.format=r.replace(Ce,(function(e){var r=e.charAt(0).replace("\\",x),n=e.slice(1).replace(r,x);return t.push(n),Le}))}}var qe="#",Ze="0",Qe=/(\.(?:[0-9]*[1-9])?)0+$/g,Xe=/\.$/,Be=/,/g;function Ue(e,r,t){return-1===e&&-1!==r?r:-1!==e&&-1===r?e:t?Math.min(e,r):Math.max(e,r)}function Je(e,r,t){var n={negative:e<0,number:Math.abs(e),negativeZero:ke(e),format:r};return function(e){var r=e.number,t=e.format;if(t=t.split(b),(e.negative||e.negativeZero)&&t[1])t=t[1],e.hasNegativeFormat=!0;else if(0===r){var n=t[2];t=n||t[0],n&&function(e){return-1===e.indexOf(qe)&&-1===e.indexOf(Ze)}(n)&&(e.constant=n)}else t=t[0];e.format=t}(n),n.constant?n.constant:(Ge(n),Ae(n,t),function(e){e.hasGroup=e.format.indexOf(w)>-1,e.hasGroup&&(e.format=e.format.replace(Be,x))}(n),function(e){var r,t,n,a=e.number,o=e.format,i=o.indexOf(S);if(-1!==i){var u=o.lastIndexOf(Ze)-i,s=o.lastIndexOf(qe)-i,l=u>-1,c=s>-1,m=a.toString().split("e"),d=(m=(m=m[1]?He(a,Math.abs(m[1])):m[0]).split(S)[1]||x).length,f=-1;l||c?l&&u>s?d=u:s>u&&(c&&d>s?d=s:l&&d<u&&(d=u),f=l?u:0):(e.format=o.substring(0,i)+o.substring(i+1),i=-1,d=0),d>-1&&(a=He(a,d),f>-1&&(r=a,n=0===(t=f)?Qe:new RegExp("(\\.[0-9]{"+t+"}[1-9]*)0+$","g"),a=r.replace(n,"$1").replace(Xe,x)))}else a=He(a);e.negative&&-1*a>=0&&!e.negativeZero&&(e.negative=!1),e.number=a,e.decimalIndex=i}(n),function(e){var r=e.format,t=r.indexOf(qe),n=r.indexOf(Ze),a=Ue(t,n,!0),o=Ue(t=r.lastIndexOf(qe),n=r.lastIndexOf(Ze));a===r.length&&(o=a),e.start=a,e.end=o,e.lastZeroIndex=n}(n),function(e,r){var t=e.number;return-1!==e.start&&(t=function(e,r){var t=e.start,n=e.end,a=e.negative,o=e.negativeZero,i=e.format,u=e.decimalIndex,s=e.lastZeroIndex,l=e.hasNegativeFormat,c=e.hasGroup,m=e.number,d=m.toString().split(S),f=i.length,p=d[0],y=d[1]||x,v=p.length,g=x;m=i.substring(0,t),!a&&!o||l||(m+="-");for(var h=t;h<f;h++){var M=i.charAt(h);if(-1===u){if(n-h<v){m+=p;break}}else if(-1!==s&&s<h&&(g=x),u-h<=v&&u-h>-1&&(m+=p,h=u),u===h){m+=(y?r.numbers.symbols.decimal:x)+y,h+=n-u+1;continue}M===Ze?(m+=M,g=M):M===qe&&(m+=g)}return c&&(m=_e(m,t+(a&&!l?1:0),Math.max(n,v+t),r.numbers.decimal,r)),n>=t&&(m+=i.substring(n+1)),m}(e,r),t=function(e,r){var t=e;if(r)for(var n=r.length,a=0;a<n;a++)t=t.replace(Le,r[a]);return t}(t=function(e,r,t){var n=e;if(r===f||r===y){n=x;for(var a=0,o=e.length;a<o;a++){var i=e.charAt(a);n+=i===g||i===h?t:i}}return n}(t,e.style,e.symbol),e.literals)),t}(n,t))}var We=/^(n|c|p|e|a)(\d*)$/i;function Re(e){return n(e)?function(e){var r=We.exec(e);if(r){var t={style:d},n=r[1].toLowerCase();return"c"===n?t.style=f:"a"===n?t.style=p:"p"===n?t.style=y:"e"===n&&(t.style=v),r[2]&&(t.minimumFractionDigits=t.maximumFractionDigits=parseInt(r[2],10)),t}}(e):e}function $e(e,r,t){if(void 0===r&&(r=M),void 0===t&&(t=O),null==e)return x;if(!isFinite(e))return String(e);var n,a=m(t),o=Re(r);if(o){var i=o.style||d;n=function(e,r,t){var n=t.numbers.symbols,a=r.style,o=ze(a);if(a===v)return(void 0!==r.minimumFractionDigits?e.toExponential(r.minimumFractionDigits):e.toExponential()).replace(S,n.decimal);var i,u=e;o&&(r.value=u,i=Ne(t,r)),a===y&&(u*=100,i=n.percentSign);var s=function(e){var r,t=e.minimumFractionDigits,n=e.maximumFractionDigits,a=e.style,o=ze(a);return o&&(r=ve(e.currency)),void 0===t&&(t=o?r.minimumFractionDigits:0),void 0===n&&(n=a===y?Math.max(t,Ie):o?Math.max(t,r.maximumFractionDigits):Math.max(t,Te)),{minimumFractionDigits:t,maximumFractionDigits:n}}(r),l=s.minimumFractionDigits,c=(u=He(u,s.maximumFractionDigits))<0,m=ke(e),d=u.split(S),f=d[0],p=Pe(d[1]?d[1].replace(je,x):x,l,!0);c&&(f=f.substring(1)),r.minimumIntegerDigits&&(f=Pe(f,r.minimumIntegerDigits));var b,w=!1!==r.useGrouping?_e(f,0,f.length,r,t):f;if(p&&(w+=n.decimal+p),o&&"name"===r.currencyDisplay)b=function(e,r){var t=e.numbers.currency,n=1!==r?t["unitPattern-count-other"]:t["unitPattern-count-one"];return r<0&&(n=n.replace(M,"-"+M)),n}(t,e);else{var O=r.patterns;b=c||m?O[1]||"-"+O[0]:O[0]}if(b===M&&!c)return w;var F=function(e,r,t){for(var n=x,a=0,o=r.length;a<o;a++){var i=r.charAt(a);n+=i===M?e:i===g||i===h?t:i}return n}(w,b,i);return F}(e,Object.assign({},a.numbers[i],o),a)}else n=Je(e,r,a);return n}function Ke(e){return"number"==typeof e}var Ye=/[eE][-+]?[0-9]+/,Ve=/\u00A0/g;function er(e,r){if(r.length>1){var t=(r[1]||x).replace(g,x).split(M);if(e.indexOf(t[0])>-1&&e.indexOf(t[1])>-1)return e.replace(t[0],x).replace(t[1],x)}}function rr(e,r,t){var n,a=Re(t)||{},o=ze(a.style),i=e,u=a.currency||he(r,o);if(u){var s=pe(r,u,o);if(s)for(var l=0;l<s.length;l++){var c=s[l];if(i.includes(c)){i=i.replace(c,x),o=!0;break}}if(o){var m=er(i,r.numbers.currency.patterns)||er(i,r.numbers.accounting.patterns);m&&(n=!0,i=m)}}return{number:i,negative:n}}function tr(e,r,t){if(void 0===r&&(r=O),void 0===t&&(t={}),!e&&0!==e)return null;if(Ke(e))return e;var a,o=m(r),i=o.numbers.symbols,u=e.toString(),s=t||{};if(n(t)&&(Ge(s={format:t}),u=function(e,r){var t=r.literals,n=e;if(t)for(var a=0;a<t.length;a++)n=n.replace(t[a],x);return n}(u,s),Ae(s,o)),(s.style===y||u.indexOf(i.percentSign)>-1)&&(u=u.replace(i.percentSign,x),a=!0),Ye.test(u))return u=parseFloat(u.replace(i.decimal,S)),isNaN(u)?null:u;var l=rr(u,o,s),c=l.negative,d=l.number,f=(u=String(d).trim()).indexOf("-");if(f>0)return null;var p=f>-1;return p=void 0!==c?c:p,u=u.replace("-",x).replace(Ve," ").split(i.group.replace(Ve," ")).join(x).replace(i.decimal,S),u=parseFloat(u),isNaN(u)?u=null:p&&(u*=-1),u&&a&&(u=function(e){var r=String(e),t=r.indexOf(S),n=e/Math.pow(10,2);if(-1===t||String(n).length<=r.length+2)return n;var a=r.length-t+1+2;return parseFloat(n.toFixed(a))}(u)),u}var nr=/\{(\d+)}/g;function ar(e){var r=arguments;return e.replace(nr,(function(e,t){return r[parseInt(t,10)+1]}))}var or=120,ir=20,ur=[2,1,5,3,4],sr={};sr[(-2).toString()]=8,sr[(-1).toString()]=6,sr[2..toString()]=6,sr[1..toString()]=3;var lr={numeric:1,"2-digit":2,short:3,long:4,narrow:5},cr=/[hHmsSzZoOvVxX]/,mr=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],dr={e:"c",E:"c",M:"L",Q:"q"},fr={},pr={};function yr(e){return fr[e]||(fr[e]=new RegExp(e+"+")),fr[e]}function vr(e){for(var r=[],t=e.charAt(0),n=t,a=1;a<e.length;a++){var o=e.charAt(a);o===n?t+=o:(r.push(t),t=n=o)}return r.push(t),r}function gr(e,r){var t,n,a=e.length,o=-Number.MAX_VALUE;for(var i in r){for(var u=[],s=i.replace("v","z"),l=0,c=0;c<a;c++){var m=e[c],d=(yr(m[0]).exec(s)||[])[0];if(d){if(s=s.replace(d,x),d.length!==m.length){var f=Math.max(Math.min(ur[d.length]-ur[m.length],2),-2);l-=sr[f]}}else l-=or;if(u.push(d),l<o)break}s.length&&(l-=vr(s).length*ir),l>o&&(o=l,t=u,n=r[i])}n=n.replace("v","z");for(var p=0;p<a;p++){var y=t[p];if(y&&y!==e[p]){var v=t[p][0];n=n.replace(yr(v),e[p]),dr[v]&&(n=n.replace(yr(dr[v]),e[p]))}}return n}function hr(e,r){var t,a=r.calendar;if(n(e))t=a.patterns[e]?a.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var o=e.skeleton;o||(e.datetime?t=ar(a.dateTimeFormats[e.datetime],a.timeFormats[e.datetime],a.dateFormats[e.datetime]):e.date?t=a.dateFormats[e.date]:e.time?t=a.timeFormats[e.time]:o=function(e){for(var r=[],t=0;t<mr.length;t++){var n=mr[t],a=e[n.key];if(a){var o=n.specifier||n.getSpecifier(e);r.push(o.repeat(lr[a]))}}return r.join(x)}(e)),o&&(t=function(e,r){var t=r.calendar.dateTimeFormats.availableFormats;if(t[e])return t[e];if(pr[r.name]&&pr[r.name][e])return pr[r.name][e];var n,a=e.search(cr);if(a>0){var o=e.substr(0,a),i=e.substr(a);n=ar(r.calendar.dateTimeFormats.short,t[i]||gr(vr(i),t),t[o]||gr(vr(o),t))}else n=gr(vr(e),t);return function(e,r,t){pr[t]||(pr[t]={}),pr[t][e]=r}(e,n,r.name),n}(o,r))}return t||(t=a.patterns.d),t}function Mr(e){var r;return e<=3?r="abbreviated":4===e?r="wide":5===e?r="narrow":6===e&&(r="short"),r}function br(e,r,t,n,a){return re(e,{type:r,nameType:Mr(t),standAlone:n,lower:a})}function wr(e){return"function"==typeof e}function Sr(e){return Boolean(e)&&wr(e.getTime)&&wr(e.getMonth)}var xr="month",Or="hour",Fr="zone",Dr="weekday",kr="quarter",Nr={G:"era",y:"year",q:kr,Q:kr,M:xr,L:xr,d:"day",E:Dr,c:Dr,e:Dr,h:Or,H:Or,k:Or,K:Or,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:Fr,X:Fr,z:Fr,Z:Fr},_r=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function zr(e,r,t,n){return r<=2?Pe(e+1,r):br(t,"months",r,n)[e]}function Pr(e,r,t,n){var a=Math.floor(e.getMonth()/3);return r<3?a+1:br(t,"quarters",r,n)[a]}function Er(e,r,t){var n=t.shortHours,a=t.optionalMinutes,o=t.separator,i=t.localizedName,u=t.zZeroOffset,s=e.getTimezoneOffset()/60;if(0===s&&u)return"Z";var l=s<=0?"+":"-",c=Math.abs(s).toString().split("."),m=c[1]||0,d=l+(n?c[0]:Pe(c[0],2));return!m&&a||(d+=(o?":":x)+Pe(m,2)),i&&(d=ar(0===s?r.calendar.gmtZeroFormat:r.calendar.gmtFormat,d)),d}function Hr(e,r,t,n){var a;return a=r<3?function(e,r,t){var n=xe(t);return(e<n?7-n+e:e-n)+1}(e.getDay(),0,t):br(t,"days",r,n)[e.getDay()],a}var Tr={};function Ir(e,r,t){if(void 0===t&&(t=O),!Sr(e))return null==e?x:e;var n=m(t);return hr(r,n).replace(_r,(function(r){var t=r.length;return r.includes("'")||r.includes('"')?r.slice(1,t-1):Tr[r[0]](e,t,n)}))}function jr(e,r,t){var n=e.getTimezoneOffset(),a=new Date(e.getTime()+6e4*(r-t)),o=a.getTimezoneOffset();return new Date(a.getTime()+6e4*(o-n))}Tr.d=function(e,r){return Pe(e.getDate(),r)},Tr.E=function(e,r,t){return br(t,"days",r)[e.getDay()]},Tr.M=function(e,r,t){return zr(e.getMonth(),r,t,!1)},Tr.L=function(e,r,t){return zr(e.getMonth(),r,t,!0)},Tr.y=function(e,r){var t=e.getFullYear();return 2===r&&(t%=100),Pe(t,r)},Tr.h=function(e,r){return Pe(e.getHours()%12||12,r)},Tr.H=function(e,r){return Pe(e.getHours(),r)},Tr.k=function(e,r){return Pe(e.getHours()||24,r)},Tr.K=function(e,r){return Pe(e.getHours()%12,r)},Tr.m=function(e,r){return Pe(e.getMinutes(),r)},Tr.s=function(e,r){return Pe(e.getSeconds(),r)},Tr.S=function(e,r){var t=e.getMilliseconds();return 0!==t?Pe(String(t/1e3).split(".")[1].substr(0,r),r,!0):Pe(x,r)},Tr.a=function(e,r,t){return br(t,"dayPeriods",r)[e.getHours()<12?"am":"pm"]},Tr.z=function(e,r,t){return Er(e,t,{shortHours:r<4,optionalMinutes:r<4,separator:!0,localizedName:!0})},Tr.Z=function(e,r,t){return Er(e,t,{separator:r>3,localizedName:4===r,zZeroOffset:5===r})},Tr.x=function(e,r,t){return Er(e,t,{optionalMinutes:1===r,separator:3===r||5===r})},Tr.X=function(e,r,t){return Er(e,t,{optionalMinutes:1===r,separator:3===r||5===r,zZeroOffset:!0})},Tr.G=function(e,r,t){var n=e.getFullYear()>=0?1:0;return br(t,"eras",r)[n]},Tr.e=Hr,Tr.c=function(e,r,t){return Hr(e,r,t,!0)},Tr.q=function(e,r,t){return Pr(e,r,t,!0)},Tr.Q=Pr;var Cr=/([+|-]\d{1,2})(:?)(\d{2})?/,Lr=/^\/Date\((.*?)\)\/$/,Ar=/[+-]\d*/,Gr={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},qr=/\d+/,Zr=/^ */,Qr=/ *$/,Xr=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Br=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Ur(e,r,t){return!(e>=r&&e<=t)}function Jr(e,r){for(var t=r.format,n=r.idx,a=0;t[n]===e;)a++,n++;return a>0&&(n-=1),r.idx=n,a}function Wr(e,r){var t=e?Gr[e]||new RegExp("^\\d{1,"+e+"}"):qr,n=r.value.substr(r.valueIdx,e).match(t);return n?(n=n[0],r.valueIdx+=n.length,parseInt(n,10)):null}function Rr(e,r,t){for(var n,a,o,i=0,u=e.length,s=0,l=0;i<u;i++)a=(n=e[i]).length,o=r.value.substr(r.valueIdx,a),t&&(o=o.toLowerCase()),o===n&&a>s&&(s=a,l=i);return s?(r.valueIdx+=s,l+1):null}function $r(e){var r=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,r=!0),r}function Kr(e,r,t){var n=t.shortHours,a=t.noSeparator,o=t.optionalMinutes,i=t.localizedName,u=t.zLiteral;if(e.UTC=!0,u&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(i&&!Rr(function(e){var r=e.gmtFormat,t=e.gmtZeroFormat;if(!r)throw s.NoGMTInfo.error();return[r.replace("{0}",x).toLowerCase(),t.replace("{0}",x).toLowerCase()]}(r.calendar),e,!0))return!0;var l=Cr.exec(e.value.substr(e.valueIdx,6));if(!l)return!i;var c=l[1],m=l[3],d=parseInt(c,10),f=l[2],p=parseInt(m,10);return!!(isNaN(d)||!n&&3!==c.length||!o&&isNaN(p)||a&&f)||(isNaN(p)&&(p=null),!!(Ur(d,-12,13)||p&&Ur(p,0,59))||(e.valueIdx+=l[0].length,e.hoursOffset=d,void(e.minutesOffset=p)))}function Yr(e,r,t){var n=Jr(e,r),a=br(t,"months",n,"L"===e,!0),o=n<3?Wr(2,r):Rr(a,r,!0);if(null===o||Ur(o,1,12))return!0;r.month=o-1}function Vr(e,r,t){var n=Jr(e,r),a=br(t,"days",n,"c"===e,!0),o=n<3?Wr(1,r):Rr(a,r,!0);if(!o&&0!==o||Ur(o,1,7))return!0}var et={};function rt(e,r){return""+Zr.exec(r)[0]+e+Qr.exec(r)[0]}function tt(e,r,t){for(var n=hr(r,t).split(x),a={format:n,idx:0,value:rt(e,r),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},o=n.length,i=!1;a.idx<o;a.idx++){var u=n[a.idx];if(i)"'"===u&&(i=!1),$r(a);else if(et[u]){if(et[u](a,t))return null}else if("'"===u)i=!0,$r(a);else if(!$r(a))return null}return a.valueIdx<e.length?null:function(e){var r,t=e.year,n=e.month,a=e.day,o=e.hours,i=e.minutes,u=e.seconds,s=e.milliseconds,l=e.pmHour,c=e.UTC,m=e.hoursOffset,d=e.minutesOffset,f=null!==o||null!==i||u||null,p=new Date;return null===t&&null===n&&null===a&&f?(t=p.getFullYear(),n=p.getMonth(),a=p.getDate()):(null===t&&(t=p.getFullYear()),null===a&&(a=1)),l&&o<12&&(o+=12),c?(m&&(o+=-m),d&&(i+=-d*(m<0?-1:1)),r=new Date(Date.UTC(t,n,a,o,i,u,s))):function(e,r){r||23!==e.getHours()||e.setHours(e.getHours()+2)}(r=new Date(t,n,a,o,i,u,s),o),t<100&&r.setFullYear(t),r.getDate()!==a&&void 0===c?null:r}(a)||null}function nt(e,r,t){if(void 0===t&&(t=O),!e)return null;if(Sr(e))return e;var n=String(e).trim(),a=function(e){if(e&&0===e.indexOf("/D")){var r=Lr.exec(e);if(r){r=r[1];var t=Ar.exec(r.substring(1));return r=new Date(parseInt(r,10)),t&&(a="-"===(n=t[0]).substr(0,1)?-1:1,o=n.substring(1),t=a*(60*parseInt(o.substr(0,2),10)+parseInt(o.substring(2),10)),r=jr(r,r.getTimezoneOffset(),0),r=jr(r,0,-1*t)),r}}var n,a,o}(n);if(a)return a;for(var o=m(t),i=r||function(e){for(var r=[],t=e.patterns,n=Br.length,a=0;a<n;a++)r.push(t[Br[a]]);return r.concat(Xr)}(o.calendar),u=(i=Array.isArray(i)?i:[i]).length,s=0;s<u;s++)if(a=tt(n,i[s],o))return a;return a}et.d=function(e){Jr("d",e);var r=Wr(2,e);if(null===r||Ur(r,1,31))return!0;null===e.day&&(e.day=r)},et.E=function(e,r){if(null===Rr(br(r,"days",Jr("E",e),!1,!0),e,!0))return!0},et.M=function(e,r){return Yr("M",e,r)},et.L=function(e,r){return Yr("L",e,r)},et.y=function(e){var r=Jr("y",e),t=Wr(1===r?void 0:r,e);if(null===t)return!0;if(2===r){var n=(new Date).getFullYear();(t=n-n%100+t)>2029&&(t-=100)}e.year=t},et.h=function(e){Jr("h",e);var r=Wr(2,e);if(12===r&&(r=0),null===r||Ur(r,0,11))return!0;e.hours=r},et.K=function(e){Jr("K",e);var r=Wr(2,e);if(null===r||Ur(r,0,11))return!0;e.hours=r},et.a=function(e,r){var t=br(r,"dayPeriods",Jr("a",e),!1,!0),n=Rr([t.pm],e,!0);if(!n&&!Rr([t.am],e,!0))return!0;e.pmHour=n},et.H=function(e){Jr("H",e);var r=Wr(2,e);if(null===r||Ur(r,0,23))return!0;e.hours=r},et.k=function(e){Jr("k",e);var r=Wr(2,e);if(null===r||Ur(r,1,24))return!0;e.hours=24===r?0:r},et.m=function(e){Jr("m",e);var r=Wr(2,e);if(null===r||Ur(r,0,59))return!0;e.minutes=r},et.s=function(e){Jr("s",e);var r=Wr(2,e);if(null===r||Ur(r,0,59))return!0;e.seconds=r},et.S=function(e){var r=Jr("S",e),t=e.value.substr(e.valueIdx,r),n=null;if(isNaN(parseInt(t,10))||(n=He(n=parseFloat("0."+t,10),3),n*=1e3,e.valueIdx+=r),null===n||Ur(n,0,999))return!0;e.milliseconds=n},et.z=function(e,r){var t=Jr("z",e)<4,n=Kr(e,r,{shortHours:t,optionalMinutes:t,localizedName:!0});if(n)return n},et.Z=function(e,r){var t=Jr("Z",e),n=Kr(e,r,{noSeparator:t<4,zLiteral:5===t,localizedName:4===t});if(n)return n},et.x=function(e,r){var t=Jr("x",e),n=Kr(e,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t});if(n)return n},et.X=function(e,r){var t=Jr("X",e),n=Kr(e,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t,zLiteral:!0});if(n)return n},et.G=function(e,r){var t=br(r,"eras",Jr("G",e),!1,!0);if(null===Rr([t[0],t[1]],e,!0))return!0},et.e=function(e,r){return Vr("e",e,r)},et.c=function(e,r){return Vr("c",e,r)};var at={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},ot="literal";function it(e,r){var t=e[e.length-1];t&&t.type===ot?t.pattern+=r:e.push({type:ot,pattern:r})}function ut(e){return"h"===e||"K"===e}function st(e,r){void 0===r&&(r=O);for(var t=hr(e,m(r)),n=[],a=_r.lastIndex=0,o=_r.exec(t);o;){var i=o[0];if(a<o.index&&it(n,t.substring(a,o.index)),i.startsWith('"')||i.startsWith("'"))it(n,i);else{var u=i[0],s=Nr[u],l={type:s,pattern:i};"hour"===s&&(l.hour12=ut(i));var c=at[s];if(c){var d=Ke(c.minLength)?c.minLength:c.minLength[u],f=i.length;f>=d&&(l.names={type:c.type,nameType:Mr(f),standAlone:c.standAlone===u})}n.push(l)}a=_r.lastIndex,o=_r.exec(t)}return a<t.length&&it(n,t.substring(a)),n}var lt=/\{(\d+)(:[^}]+)?\}/g;function ct(e,r,t){if(r){if(Sr(e))return Ir(e,r,t);if(Ke(e))return $e(e,r,t)}return null!=e?e:x}function mt(e,r,t){return e.replace(lt,(function(e,n,a){return ct(r[parseInt(n,10)],a?a.substring(1):x,t)}))}},302:e=>{e.exports=r},189:e=>{e.exports=t},899:r=>{r.exports=e}},a={};function o(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}};return n[e].call(t.exports,t,t.exports,o),t.exports}return o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(468)})()}));
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
(function(o,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react"),require("@progress/kendo-intl"),require("@progress/kendo-licensing"),require("prop-types")):typeof define=="function"&&define.amd?define(["exports","react","@progress/kendo-intl","@progress/kendo-licensing","prop-types"],l):(o=typeof globalThis<"u"?globalThis:o||self,l(o.KendoReactIntl={},o.React,o.KendoIntl,o.KendoLicensing,o.PropTypes))})(this,function(o,l,m,N,D){"use strict";function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=u(l),r=u(m),h=u(N),v=u(D),f={name:"@progress/kendo-react-intl",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};class d{constructor(e){if(this.locale=e,typeof h<"u")h.validatePackage(f);else{let n=`License activation failed for ${f.name}
|
|
6
|
+
`;n+=`The @progress/kendo-licensing script is not loaded.
|
|
7
|
+
`,n+=`See ${f.licensingDocsUrl} for more information.
|
|
8
|
+
`,console.warn(n)}if(e===""&&process.env.NODE_ENV!=="production")throw"Locale should not be empty string"}format(e,...n){return n.length===1&&Array.isArray(n[0])?r.format(e,n[0],this.locale):r.format(e,n,this.locale)}formatDate(e,n){return r.formatDate(e,n,this.locale)}toString(e,n){return r.toString(e,n,this.locale)}parseNumber(e,n){return r.parseNumber(e,this.locale,n)}parseDate(e,n){return r.parseDate(e,n,this.locale)}formatNumber(e,n){return r.formatNumber(e,n,this.locale)}dateFieldName(e){return r.dateFieldName(e,this.locale)}dateFormatNames(e){return r.dateFormatNames(this.locale,e)}splitDateFormat(e){return r.splitDateFormat(e,this.locale)}numberSymbols(){return r.numberSymbols(this.locale)}firstDay(){return r.firstDay(this.locale)}localeInfo(){return r.localeInfo(this.locale)}localeCurrency(){return r.localeCurrency(this.locale)}}const c=Object.create({});class p{constructor(e){if(this.language=e,e===""&&process.env.NODE_ENV!=="production")throw"Language should not be an empty string"}toLanguageString(e,n){return this.language&&c[this.language]&&c[this.language].hasOwnProperty(e)?c[this.language][e]:n}}const a=i.createContext({intl:new d("en"),localization:new p});class y extends i.Component{getIntlService(){return new d(this.props.locale)}render(){return i.createElement(a.Consumer,null,e=>i.createElement(a.Provider,{value:{...e,intl:this.getIntlService()}},this.props.children))}}y.propTypes={locale:v.string};const z=(t,e,n)=>{for(const s in t)if(t.hasOwnProperty(s)){const g=[...n];if(g.push(s),typeof t[s]!="string")z(t[s],e,g);else{const C=t[s];Object.defineProperty(e,g.join("."),{value:C})}}};function P(t,e){let n=c[e]=c[e]||{};z(t,n,[])}class S extends i.Component{getLocalizationService(){return new p(this.props.language)}render(){return i.createElement(a.Consumer,null,e=>i.createElement(a.Provider,{value:{...e,localization:this.getLocalizationService()}},this.props.children))}}S.propTypes={language:v.string};function b(t){if(!t&&process.env.NODE_ENV!=="production")throw`Passed component - ${t} is invalid.`;const e=t.context;return e&&e.intl?e.intl:new d("en")}function I(t){if(!t&&process.env.NODE_ENV!=="production")throw`Passed component - ${t} is invalid.`;const e=t.context;return e&&e.localization?e.localization:new p}function L(t){t.contextType=a}function O(t){t.contextType=a}const w=()=>i.useContext(a).intl,E=()=>i.useContext(a).localization;Object.defineProperty(o,"load",{enumerable:!0,get:()=>m.load}),o.GlobalizationContext=a,o.IntlProvider=y,o.IntlService=d,o.LocalizationProvider=S,o.LocalizationService=p,o.loadMessages=P,o.localizationMessages=c,o.provideIntlService=b,o.provideLocalizationService=I,o.registerForIntl=L,o.registerForLocalization=O,o.useInternationalization=w,o.useLocalization=E,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { IntlService } from '../Intl/IntlService';
|
|
7
|
+
import { LocalizationService } from '../Localization/LocalizationService';
|
|
8
|
+
/** @hidden */
|
|
9
|
+
export type GlobalizationContextType = {
|
|
10
|
+
intl: IntlService;
|
|
11
|
+
localization: LocalizationService;
|
|
12
|
+
};
|
|
13
|
+
/** @hidden */
|
|
14
|
+
export declare const GlobalizationContext: React.Context<GlobalizationContextType>;
|
package/hooks/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export * from './useInternationalization';
|
|
6
|
+
export * from './useLocalization';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { IntlService } from '../Intl/main';
|
|
6
|
+
/**
|
|
7
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to an [IntlService]({% slug api_intl_intlservice %}).
|
|
8
|
+
*/
|
|
9
|
+
export declare const useInternationalization: () => IntlService;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { LocalizationService } from '../Localization/main';
|
|
6
|
+
/**
|
|
7
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to an [LocalizationService]({% slug api_intl_localizationservice %}).
|
|
8
|
+
*/
|
|
9
|
+
export declare const useLocalization: () => LocalizationService;
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export { GlobalizationContext } from './globalization/GlobalizationContext';
|
|
6
|
+
export { messages as localizationMessages } from './Localization/messages';
|
|
7
|
+
export * from './Intl/main';
|
|
8
|
+
export * from './Localization/main';
|
|
9
|
+
export * from './coreExports';
|
|
10
|
+
export * from './intlUtils';
|
|
11
|
+
export * from './hooks';
|
package/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),m=require("@progress/kendo-intl"),b=require("@progress/kendo-licensing"),N=require("prop-types");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const r=c(S),o=c(m),g=c(b),f=c(N),d={name:"@progress/kendo-react-intl",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};class l{constructor(e){if(this.locale=e,typeof g<"u")g.validatePackage(d);else{let n=`License activation failed for ${d.name}
|
|
6
|
+
`;n+=`The @progress/kendo-licensing script is not loaded.
|
|
7
|
+
`,n+=`See ${d.licensingDocsUrl} for more information.
|
|
8
|
+
`,console.warn(n)}if(e===""&&process.env.NODE_ENV!=="production")throw"Locale should not be empty string"}format(e,...n){return n.length===1&&Array.isArray(n[0])?o.format(e,n[0],this.locale):o.format(e,n,this.locale)}formatDate(e,n){return o.formatDate(e,n,this.locale)}toString(e,n){return o.toString(e,n,this.locale)}parseNumber(e,n){return o.parseNumber(e,this.locale,n)}parseDate(e,n){return o.parseDate(e,n,this.locale)}formatNumber(e,n){return o.formatNumber(e,n,this.locale)}dateFieldName(e){return o.dateFieldName(e,this.locale)}dateFormatNames(e){return o.dateFormatNames(this.locale,e)}splitDateFormat(e){return o.splitDateFormat(e,this.locale)}numberSymbols(){return o.numberSymbols(this.locale)}firstDay(){return o.firstDay(this.locale)}localeInfo(){return o.localeInfo(this.locale)}localeCurrency(){return o.localeCurrency(this.locale)}}const s=Object.create({});class u{constructor(e){if(this.language=e,e===""&&process.env.NODE_ENV!=="production")throw"Language should not be an empty string"}toLanguageString(e,n){return this.language&&s[this.language]&&s[this.language].hasOwnProperty(e)?s[this.language][e]:n}}const i=r.createContext({intl:new l("en"),localization:new u});class h extends r.Component{getIntlService(){return new l(this.props.locale)}render(){return r.createElement(i.Consumer,null,e=>r.createElement(i.Provider,{value:{...e,intl:this.getIntlService()}},this.props.children))}}h.propTypes={locale:f.string};const v=(t,e,n)=>{for(const a in t)if(t.hasOwnProperty(a)){const p=[...n];if(p.push(a),typeof t[a]!="string")v(t[a],e,p);else{const z=t[a];Object.defineProperty(e,p.join("."),{value:z})}}};function D(t,e){let n=s[e]=s[e]||{};v(t,n,[])}class y extends r.Component{getLocalizationService(){return new u(this.props.language)}render(){return r.createElement(i.Consumer,null,e=>r.createElement(i.Provider,{value:{...e,localization:this.getLocalizationService()}},this.props.children))}}y.propTypes={language:f.string};function P(t){if(!t&&process.env.NODE_ENV!=="production")throw`Passed component - ${t} is invalid.`;const e=t.context;return e&&e.intl?e.intl:new l("en")}function I(t){if(!t&&process.env.NODE_ENV!=="production")throw`Passed component - ${t} is invalid.`;const e=t.context;return e&&e.localization?e.localization:new u}function O(t){t.contextType=i}function w(t){t.contextType=i}const E=()=>r.useContext(i).intl,L=()=>r.useContext(i).localization;Object.defineProperty(exports,"load",{enumerable:!0,get:()=>m.load});exports.GlobalizationContext=i;exports.IntlProvider=h;exports.IntlService=l;exports.LocalizationProvider=y;exports.LocalizationService=u;exports.loadMessages=D;exports.localizationMessages=s;exports.provideIntlService=P;exports.provideLocalizationService=I;exports.registerForIntl=O;exports.registerForLocalization=w;exports.useInternationalization=E;exports.useLocalization=L;
|
package/index.mjs
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as n from "react";
|
|
6
|
+
import * as r from "@progress/kendo-intl";
|
|
7
|
+
import { load as I } from "@progress/kendo-intl";
|
|
8
|
+
import * as m from "@progress/kendo-licensing";
|
|
9
|
+
import * as d from "prop-types";
|
|
10
|
+
const c = {
|
|
11
|
+
name: "@progress/kendo-react-intl",
|
|
12
|
+
productName: "KendoReact",
|
|
13
|
+
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
14
|
+
publishDate: 1700572974,
|
|
15
|
+
version: "",
|
|
16
|
+
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
17
|
+
};
|
|
18
|
+
class u {
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new instance of the internationalization service.
|
|
21
|
+
*
|
|
22
|
+
* @param locale - The locale that will be used by the internationalization methods.
|
|
23
|
+
*/
|
|
24
|
+
constructor(e) {
|
|
25
|
+
if (this.locale = e, typeof m < "u")
|
|
26
|
+
m.validatePackage(c);
|
|
27
|
+
else {
|
|
28
|
+
let t = `License activation failed for ${c.name}
|
|
29
|
+
`;
|
|
30
|
+
t += `The @progress/kendo-licensing script is not loaded.
|
|
31
|
+
`, t += `See ${c.licensingDocsUrl} for more information.
|
|
32
|
+
`, console.warn(t);
|
|
33
|
+
}
|
|
34
|
+
if (e === "" && process.env.NODE_ENV !== "production")
|
|
35
|
+
throw "Locale should not be empty string";
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Formats a string with placeholders such as `Total amount {0:c}`.
|
|
39
|
+
*
|
|
40
|
+
* @param format - The format string.
|
|
41
|
+
* @param values - One or more values to output in the format string placeholders.
|
|
42
|
+
* @return - The formatted string.
|
|
43
|
+
*/
|
|
44
|
+
format(e, ...t) {
|
|
45
|
+
return t.length === 1 && Array.isArray(t[0]) ? r.format(e, t[0], this.locale) : r.format(e, t, this.locale);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Converts a `Date` object to a string based on the specified format. If no format is provided, the default short date format is used.
|
|
49
|
+
*
|
|
50
|
+
* @param value - The date which will be formatted.
|
|
51
|
+
* @param format - The format string or options.
|
|
52
|
+
* @return - The formatted date.
|
|
53
|
+
*/
|
|
54
|
+
formatDate(e, t) {
|
|
55
|
+
return r.formatDate(e, t, this.locale);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Converts an object to a string based on the specified format.
|
|
59
|
+
*
|
|
60
|
+
* @param value - The value which will be formatted.
|
|
61
|
+
* @param format - The format to use.
|
|
62
|
+
* @return - The formatted object.
|
|
63
|
+
*/
|
|
64
|
+
toString(e, t) {
|
|
65
|
+
return r.toString(e, t, this.locale);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Converts a string to a `Number`.
|
|
69
|
+
*
|
|
70
|
+
* @param value - The string which will be parsed.
|
|
71
|
+
* @param format - The format string or options.
|
|
72
|
+
* @return - The parsed number.
|
|
73
|
+
*/
|
|
74
|
+
parseNumber(e, t) {
|
|
75
|
+
return r.parseNumber(e, this.locale, t);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Converts a string to a `Date` object based on the specified format.
|
|
79
|
+
*
|
|
80
|
+
* @param value - The string which will be converted.
|
|
81
|
+
* @param format - The format strings or options.
|
|
82
|
+
* @return - The parsed date.
|
|
83
|
+
*/
|
|
84
|
+
parseDate(e, t) {
|
|
85
|
+
return r.parseDate(e, t, this.locale);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Converts a `Number` to a string based on the specified format.
|
|
89
|
+
*
|
|
90
|
+
* @param value - The number which will be formatted.
|
|
91
|
+
* @param format - The format string or options.
|
|
92
|
+
* @return - The formatted number.
|
|
93
|
+
*/
|
|
94
|
+
formatNumber(e, t) {
|
|
95
|
+
return r.formatNumber(e, t, this.locale);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Returns a localized date field name based on specific `dateFieldName` options.
|
|
99
|
+
*
|
|
100
|
+
* @param options - The detailed configuration for the desired date field name.
|
|
101
|
+
* @returns - The localized date field name from the current locale based on the option.
|
|
102
|
+
*/
|
|
103
|
+
dateFieldName(e) {
|
|
104
|
+
return r.dateFieldName(e, this.locale);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Returns the day names from the current locale based on the option.
|
|
108
|
+
*
|
|
109
|
+
* @param options - The detailed configuration for the desired date format.
|
|
110
|
+
* @return - The day names from the current locale based on the option.
|
|
111
|
+
*/
|
|
112
|
+
dateFormatNames(e) {
|
|
113
|
+
return r.dateFormatNames(this.locale, e);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Splits the date format into objects which contain information about each part of the pattern.
|
|
117
|
+
*
|
|
118
|
+
* @param format - The format string or options.
|
|
119
|
+
* @returns - The date format parts.
|
|
120
|
+
*/
|
|
121
|
+
splitDateFormat(e) {
|
|
122
|
+
return r.splitDateFormat(e, this.locale);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Returns the number symbols from the current locale.
|
|
126
|
+
*
|
|
127
|
+
* @return - The number symbols from the current locale.
|
|
128
|
+
*/
|
|
129
|
+
numberSymbols() {
|
|
130
|
+
return r.numberSymbols(this.locale);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Returns the first day index, starting from Sunday.
|
|
134
|
+
*
|
|
135
|
+
* @return - The index of the first day of the week (0 == Sunday).
|
|
136
|
+
*/
|
|
137
|
+
firstDay() {
|
|
138
|
+
return r.firstDay(this.locale);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @hidden
|
|
142
|
+
*/
|
|
143
|
+
localeInfo() {
|
|
144
|
+
return r.localeInfo(this.locale);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @hidden
|
|
148
|
+
*/
|
|
149
|
+
localeCurrency() {
|
|
150
|
+
return r.localeCurrency(this.locale);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
const s = /* @__PURE__ */ Object.create({});
|
|
154
|
+
class p {
|
|
155
|
+
constructor(e) {
|
|
156
|
+
if (this.language = e, e === "" && process.env.NODE_ENV !== "production")
|
|
157
|
+
throw "Language should not be an empty string";
|
|
158
|
+
}
|
|
159
|
+
/* eslint-disable max-len */
|
|
160
|
+
/**
|
|
161
|
+
* Provides a string based on a key for the current language. When no string for the current language is available under this key, the `defaultValue` is returned.
|
|
162
|
+
*
|
|
163
|
+
* @param key - The key which identifies the string for the current language.
|
|
164
|
+
* @param defaultValue - The default value which will be returned when no string
|
|
165
|
+
* for the current language is available under the key.
|
|
166
|
+
* @return - The string for the current language.
|
|
167
|
+
*/
|
|
168
|
+
// tslint:enable:max-line-length
|
|
169
|
+
toLanguageString(e, t) {
|
|
170
|
+
return this.language && s[this.language] && s[this.language].hasOwnProperty(e) ? s[this.language][e] : t;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
const a = n.createContext({
|
|
174
|
+
intl: new u("en"),
|
|
175
|
+
localization: new p()
|
|
176
|
+
});
|
|
177
|
+
class f extends n.Component {
|
|
178
|
+
/**
|
|
179
|
+
* Returns an internationalization service. The method is suitable for overriding when you implement custom internationalization behavior.
|
|
180
|
+
*/
|
|
181
|
+
getIntlService() {
|
|
182
|
+
return new u(this.props.locale);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* @hidden
|
|
186
|
+
*/
|
|
187
|
+
render() {
|
|
188
|
+
return /* @__PURE__ */ n.createElement(a.Consumer, null, (e) => /* @__PURE__ */ n.createElement(a.Provider, { value: { ...e, intl: this.getIntlService() } }, this.props.children));
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
f.propTypes = {
|
|
192
|
+
locale: d.string
|
|
193
|
+
};
|
|
194
|
+
const g = (o, e, t) => {
|
|
195
|
+
for (const i in o)
|
|
196
|
+
if (o.hasOwnProperty(i)) {
|
|
197
|
+
const l = [...t];
|
|
198
|
+
if (l.push(i), typeof o[i] != "string")
|
|
199
|
+
g(o[i], e, l);
|
|
200
|
+
else {
|
|
201
|
+
const h = o[i];
|
|
202
|
+
Object.defineProperty(e, l.join("."), { value: h });
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
function y(o, e) {
|
|
207
|
+
let t = s[e] = s[e] || {};
|
|
208
|
+
g(o, t, []);
|
|
209
|
+
}
|
|
210
|
+
class v extends n.Component {
|
|
211
|
+
/**
|
|
212
|
+
* Returns a localization service. The method is suitable for overriding when you implement custom localization behavior.
|
|
213
|
+
*/
|
|
214
|
+
getLocalizationService() {
|
|
215
|
+
return new p(this.props.language);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* @hidden
|
|
219
|
+
*/
|
|
220
|
+
render() {
|
|
221
|
+
return /* @__PURE__ */ n.createElement(a.Consumer, null, (e) => /* @__PURE__ */ n.createElement(a.Provider, { value: { ...e, localization: this.getLocalizationService() } }, this.props.children));
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
v.propTypes = {
|
|
225
|
+
language: d.string
|
|
226
|
+
};
|
|
227
|
+
function N(o) {
|
|
228
|
+
if (!o && process.env.NODE_ENV !== "production")
|
|
229
|
+
throw `Passed component - ${o} is invalid.`;
|
|
230
|
+
const e = o.context;
|
|
231
|
+
return e && e.intl ? e.intl : new u("en");
|
|
232
|
+
}
|
|
233
|
+
function D(o) {
|
|
234
|
+
if (!o && process.env.NODE_ENV !== "production")
|
|
235
|
+
throw `Passed component - ${o} is invalid.`;
|
|
236
|
+
const e = o.context;
|
|
237
|
+
return e && e.localization ? e.localization : new p();
|
|
238
|
+
}
|
|
239
|
+
function E(o) {
|
|
240
|
+
o.contextType = a;
|
|
241
|
+
}
|
|
242
|
+
function w(o) {
|
|
243
|
+
o.contextType = a;
|
|
244
|
+
}
|
|
245
|
+
const z = () => n.useContext(a).intl, x = () => n.useContext(a).localization;
|
|
246
|
+
export {
|
|
247
|
+
a as GlobalizationContext,
|
|
248
|
+
f as IntlProvider,
|
|
249
|
+
u as IntlService,
|
|
250
|
+
v as LocalizationProvider,
|
|
251
|
+
p as LocalizationService,
|
|
252
|
+
I as load,
|
|
253
|
+
y as loadMessages,
|
|
254
|
+
s as localizationMessages,
|
|
255
|
+
N as provideIntlService,
|
|
256
|
+
D as provideLocalizationService,
|
|
257
|
+
E as registerForIntl,
|
|
258
|
+
w as registerForLocalization,
|
|
259
|
+
z as useInternationalization,
|
|
260
|
+
x as useLocalization
|
|
261
|
+
};
|