@sap/ux-specification 1.71.37 → 1.71.41
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/CHANGELOG.md +101 -3
- package/dist/index-min.js +1 -1
- package/dist/schemas/v2/AnalyticalListPageConfig.json +394 -44
- package/dist/schemas/v2/ListReportConfig.json +257 -78
- package/dist/schemas/v2/ObjectPageConfig.json +220 -66
- package/dist/schemas/v2/OverviewPageConfig.json +80 -38
- package/dist/scripts/extractDocu.d.ts +1 -0
- package/dist/scripts/extractDocu.js +311 -0
- package/dist/scripts/extractDocu.js.map +1 -0
- package/dist/scripts/spec.d.ts +1 -0
- package/dist/scripts/spec.js +114 -0
- package/dist/scripts/spec.js.map +1 -0
- package/dist/scripts/to-json-schema.d.ts +10 -0
- package/dist/scripts/to-json-schema.js +109 -0
- package/dist/scripts/to-json-schema.js.map +1 -0
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/src/api.js +2 -1
- package/dist/src/api.js.map +1 -1
- package/dist/src/apiTypes.d.ts +2 -1
- package/dist/src/extensionLogger.js +6 -0
- package/dist/src/extensionLogger.js.map +1 -1
- package/dist/src/specification/common/types.d.ts +4 -0
- package/dist/src/specification/common/types.js +5 -0
- package/dist/src/specification/common/types.js.map +1 -1
- package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +7 -0
- package/dist/src/specification/common/webapp/manifest/Manifest.js +8 -0
- package/dist/src/specification/common/webapp/manifest/Manifest.js.map +1 -1
- package/dist/src/specification/v2/controls/Card.d.ts +4 -0
- package/dist/src/specification/v2/controls/Card.js.map +1 -1
- package/dist/src/specification/v2/controls/FilterBar.d.ts +15 -0
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +9 -0
- package/dist/src/specification/v2/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +19 -0
- package/dist/src/specification/v2/controls/ObjectPageToolBar.js +3 -0
- package/dist/src/specification/v2/controls/ObjectPageToolBar.js.map +1 -0
- package/dist/src/specification/v2/controls/Table.d.ts +54 -5
- package/dist/src/specification/v2/controls/Table.js.map +1 -1
- package/dist/src/specification/v2/controls/ToolBar.d.ts +19 -0
- package/dist/src/specification/v2/controls/ToolBar.js +3 -0
- package/dist/src/specification/v2/controls/ToolBar.js.map +1 -0
- package/dist/src/specification/v2/controls/index.d.ts +2 -0
- package/dist/src/specification/v2/controls/index.js.map +1 -1
- package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +2 -2
- package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +2 -1
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js +1 -0
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/src/sync/common/appProvider.d.ts +3 -1
- package/dist/src/sync/common/appProvider.js +2 -1
- package/dist/src/sync/common/appProvider.js.map +1 -1
- package/dist/src/sync/common/decoration/control.js +7 -4
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/flexUtils.d.ts +3 -2
- package/dist/src/sync/common/flexUtils.js +4 -1
- package/dist/src/sync/common/flexUtils.js.map +1 -1
- package/dist/src/sync/common/i18n.json +3 -1
- package/dist/src/sync/common/importProject.js +9 -7
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +20 -4
- package/dist/src/sync/common/types.js +20 -4
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +64 -20
- package/dist/src/sync/common/utils.js +216 -90
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/application.js +7 -6
- package/dist/src/sync/v2/application.js.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +1 -0
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +5 -5
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Card.d.ts +1 -0
- package/dist/src/sync/v2/export/controls/Card.js +7 -0
- package/dist/src/sync/v2/export/controls/Card.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts +3 -0
- package/dist/src/sync/v2/export/controls/FilterBar.js +36 -0
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js +2 -1
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +12 -0
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +11 -2
- package/dist/src/sync/v2/export/controls/Table.js +39 -6
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/export.d.ts +2 -2
- package/dist/src/sync/v2/export/export.js +15 -13
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts +3 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +59 -16
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/generate.d.ts +5 -2
- package/dist/src/sync/v2/generate/generate.js +8 -5
- package/dist/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +6 -2
- package/dist/src/sync/v2/generate/listReport.js +60 -23
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +74 -52
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +19 -2
- package/dist/src/sync/v2/generate/utils.js +134 -55
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +3 -2
- package/dist/src/sync/v2/import/app/appProvider.js +10 -9
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js +6 -6
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.d.ts +1 -0
- package/dist/src/sync/v2/import/common/index.js +11 -7
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +10 -0
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +24 -13
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.d.ts +10 -0
- package/dist/src/sync/v2/import/pages/listReport.js +24 -14
- package/dist/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +15 -13
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js +5 -3
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.d.ts +0 -12
- package/dist/src/sync/v2/import/utils.js +0 -35
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/test/test-utils/utils.d.ts +0 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -4,15 +4,71 @@ All notable changes to this project are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/) and the changelog is formatted based on [Keep a Changelog](http://keepachangelog.com/).
|
|
6
6
|
|
|
7
|
-
## [1.71.
|
|
7
|
+
## [1.71.41] - 2021-09-xx
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- OData V4:
|
|
12
|
+
- Header Facets are now shown in the schemas and configs, along with their actual manifest settings.
|
|
13
|
+
- OData V2:
|
|
14
|
+
- OVP: Added support for property `dataPointAnnotationPath` in ListCard settings
|
|
12
15
|
|
|
13
16
|
### Changed
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
### Removed
|
|
19
|
+
|
|
20
|
+
### Deprecated
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
### Quality
|
|
25
|
+
|
|
26
|
+
## [1.71.40] - 2021-08-25
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- Added test for function `convertInterfaces` to increase test coverage
|
|
31
|
+
- Added flexchange layer information to API interface
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- V2. Unresolvable facets are not returned by schema to avoid creation of corrupted custom sections
|
|
36
|
+
|
|
37
|
+
### Removed
|
|
38
|
+
|
|
39
|
+
### Deprecated
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- Object Page schema generation crash when 'Facets' entry is not defined for 'CollectionFacet'
|
|
44
|
+
- Page schema generation - `annotationPath` was missing for `table/toolbar`
|
|
45
|
+
|
|
46
|
+
### Quality
|
|
47
|
+
|
|
48
|
+
## [1.71.39] - 2021-08-12
|
|
49
|
+
|
|
50
|
+
### Added
|
|
51
|
+
|
|
52
|
+
- OData V2:
|
|
53
|
+
- Added description property to header actions in schema
|
|
54
|
+
- Table toolbar as structure node
|
|
55
|
+
- Added properties showClearOnFB, showFilterConfiguration and showRestoreOnFB to the FilterBar
|
|
56
|
+
|
|
57
|
+
- Developer guide for contributors to this module
|
|
58
|
+
|
|
59
|
+
- Actualization of JS-DOC
|
|
60
|
+
|
|
61
|
+
- Enhanced error handling of API functions.
|
|
62
|
+
|
|
63
|
+
- The generic schema is enhanced by the following information:
|
|
64
|
+
- artifact type (manifest setting, flex change or annotation)
|
|
65
|
+
- in case of flex change: control name
|
|
66
|
+
|
|
67
|
+
### Changed
|
|
68
|
+
|
|
69
|
+
- The node Selection Fields was renamed to Filter Fields, in accordance with the UI.
|
|
70
|
+
|
|
71
|
+
- The generic schemas now already comprise anyOf definitions for enums of type string that allow binding changes. Previously this was only added during the generation of app specific schemas.
|
|
16
72
|
|
|
17
73
|
### Removed
|
|
18
74
|
|
|
@@ -20,6 +76,48 @@ This project adheres to [Semantic Versioning](http://semver.org/) and the change
|
|
|
20
76
|
|
|
21
77
|
### Fixed
|
|
22
78
|
|
|
79
|
+
- A common function was introduced to resolve path references of Common.Label annotations; endless loop references are interjected, the variable value or key is returned in this case.
|
|
80
|
+
- Enhance function determineTableType to also check for presence of old tableType flag in manifest.json
|
|
81
|
+
- OData V2:
|
|
82
|
+
- ALP: Use correct Id for flex changes generated in case of Filter Bar
|
|
83
|
+
|
|
84
|
+
### Quality
|
|
85
|
+
|
|
86
|
+
- Refactor interfaces and class definitions for ALP tables
|
|
87
|
+
|
|
88
|
+
## [1.71.38] - 2021-07-28
|
|
89
|
+
|
|
90
|
+
### Added
|
|
91
|
+
|
|
92
|
+
- OData V2: Added growingThreshold property to Responsive Tables
|
|
93
|
+
|
|
94
|
+
### Changed
|
|
95
|
+
|
|
96
|
+
### Removed
|
|
97
|
+
|
|
98
|
+
### Deprecated
|
|
99
|
+
|
|
100
|
+
### Fixed
|
|
101
|
+
|
|
102
|
+
- When starting the app modeler for certain CDS projects, an exception occurs, and no pages nor schemas are listed.
|
|
103
|
+
- Modified regex used in binding properties to avoid issues with Shebang plugin during consumption of specification module.
|
|
104
|
+
|
|
105
|
+
### Quality
|
|
106
|
+
|
|
107
|
+
- Upgrade of Annotation Vocabularies Tools to version 0.3.28.
|
|
108
|
+
|
|
109
|
+
## [1.71.37] - 2021-07-14
|
|
110
|
+
|
|
111
|
+
### Added
|
|
112
|
+
|
|
113
|
+
- annotationPath is added to the selectionFields node.
|
|
114
|
+
|
|
115
|
+
### Changed
|
|
116
|
+
|
|
117
|
+
- The import functions for filling the content of config files are now instantiating the required metadata based on factory classes (that had been introduced for the export before).
|
|
118
|
+
|
|
119
|
+
### Fixed
|
|
120
|
+
|
|
23
121
|
- In the annotationPath of columns, qualifiers had not been added.
|
|
24
122
|
- The namespace of the entity type is now present in all annotation paths.
|
|
25
123
|
- Changing binding value to false removed flex changes from the file system.
|
package/dist/index-min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index-min.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e={601:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},8938:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},7740:e=>{"use strict";e.exports={i8:"3.1.6"}},4350:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||t.hasOwnProperty(a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(9335),t)},9335:function(e,t){"use strict";var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.revertTermToGenericType=t.convertTypes=t.defaultReferences=void 0;var r,n=function(e,t,a,r,n){this.path=e.Path,this.type="Path",this.$target=t,this.term=n,this.annotationType=r,this.annotationsTerm=a};function i(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((function(e,t){return e[t.namespace]=t,e}),{})),!t)return t;var a=t.lastIndexOf("."),r=t.substr(0,a),n=t.substr(a+1),o=e.reverseReferenceMap[r];if(o)return o.alias+"."+n;if(-1!==t.indexOf("@")){var s=t.split("@");return s[0]+"@"+i(e,s.slice(1).join("@"))}return t}function o(e,t){if(e.referenceMap||(e.referenceMap=e.reduce((function(e,t){return e[t.alias]=t,e}),{})),!t)return t;var a=t.split("."),r=a[0],n=a.slice(1),i=e.referenceMap[r];if(i)return i.namespace+"."+n.join(".");if(-1!==t.indexOf("@")){var s=t.split("@");return s[0]+"@"+o(e,s.slice(1).join("@"))}return t}function s(e,a){return a.startsWith("@")?e+o(t.defaultReferences,a):e+"/"+a}function c(e,t){b[e]?b[e].push(t):b[e]=[t]}function l(e,t,a,r,n,i,o){if(void 0===r&&(r=!1),void 0===n&&(n=!1),a){var l=[];t&&"Property"===t._type&&(t=e[t.fullyQualifiedName.split("/")[0]]);var u=(a=s(t.fullyQualifiedName,a)).split("/"),p=[];u.forEach((function(e){if(-1!==e.indexOf("@")){var t=e.split("@"),a=t[0],r=t[1];p.push(a),p.push("@"+r)}else p.push(e)}));var f=a,d=p.reduce((function(a,r){if("$Type"===r&&"EntityType"===a._type)return a;if(0===r.length)return a&&"EntitySet"===a._type&&a.entityType&&(l.push(a),a=a.entityType),a&&"NavigationProperty"===a._type&&a.targetType&&(l.push(a),a=a.targetType),a;if(n&&null!=a&&l.push(a),a){if("EntitySet"===a._type&&"$Type"===r)return a=a.targetType;if("EntitySet"===a._type&&a.entityType)f=s(a.entityTypeName,r);else if("NavigationProperty"===a._type&&a.targetTypeName)f=s(a.targetTypeName,r);else if("NavigationProperty"===a._type&&a.targetType)f=s(a.targetType.fullyQualifiedName,r);else if("Property"===a._type)f=s(a.fullyQualifiedName,r);else if("Action"===a._type&&a.isBound)f=s(a.fullyQualifiedName,r),e[f]||(f=s(a.sourceType,r));else if("ActionParameter"===a._type&&a.isEntitySet)f=s(a.type,r);else if("ActionParameter"!==a._type||a.isEntitySet){if(f=s(a.fullyQualifiedName,r),"name"!==r&&void 0!==a[r])return a[r];if("$AnnotationPath"===r&&a.$target)return a.$target;if("$Path"===r&&a.$target)return a.$target;if(r.startsWith("$Path")&&a.$target){var i=a.$target;f=s(i.fullyQualifiedName,r.substr(5))}else if(a.hasOwnProperty("$Type")){var o=e[a.fullyQualifiedName.split("@")[0]];o&&(f=s(o.fullyQualifiedName,r))}}else if(f=s(t.fullyQualifiedName.substr(0,t.fullyQualifiedName.lastIndexOf("/")),r),!e[f]){var c=t.fullyQualifiedName.lastIndexOf("/");-1===c&&(c=t.fullyQualifiedName.length),f=s(e[t.fullyQualifiedName.substr(0,c)].sourceType,r)}}else f=r;return e[f]}),null);if(!d)if(o&&i)c(a,{message:"Unable to resolve the path expression: \n"+a+"\n\nHint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application): \n\n<Annotation Term = "+o+">\n<Record Type = "+i+">\n<AnnotationPath = "+a+">"});else c(a,{message:"Unable to resolve the path expression: "+a+"\n\nHint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application): \n\n<Annotation Term = "+u[0]+">\n<PropertyValue Path= "+u[1]+">"});return r?f:n?{visitedObjects:l,target:d}:d}}function u(e){return-1!==e.indexOf("@")}function p(e,t,a,r,s,c,p,f,h,g){if(void 0!==e)switch(e.type){case"String":return e.String;case"Int":return e.Int;case"Bool":return e.Bool;case"Decimal":return e.Decimal;case"Date":return e.Date;case"EnumMember":return i(a.references,e.EnumMember);case"PropertyPath":return{type:"PropertyPath",value:e.PropertyPath,fullyQualifiedName:t,$target:l(s,r,e.PropertyPath,!1,!1,h,g)};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",value:e.NavigationPropertyPath,fullyQualifiedName:t,$target:l(s,r,e.NavigationPropertyPath,!1,!1,h,g)};case"AnnotationPath":var y=l(s,r,o(a.references,e.AnnotationPath),!0,!1,h,g),v={type:"AnnotationPath",value:e.AnnotationPath,fullyQualifiedName:t,$target:y,annotationType:h,annotationsTerm:g,term:"",path:""};return c.push(v),v;case"Path":if(u(e.Path)){var b=l(s,r,e.Path,!1,!1,h,g);if(b)return b}var P=l(s,r,e.Path,!0,!1,h,g),O=new n(e,P,g,h,"");return c.push(O),O;case"Record":return d(e.Record,t,a,r,s,c,p,f,h,g);case"Collection":return m(e.Collection,t,a,r,s,c,p,f,h,g);case"Apply":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":return e}}function f(e,t,a){var n=r[e];return c(a+"/"+e,{isError:!1,message:"The type of the record used within the term "+e+" was not defined and was inferred as "+n+'.\nHint: If possible, try to maintain the Type property for each Record.\n<Annotations Target="'+a+'">\n\t<Annotation Term="'+e+'">\n\t\t<Record>...</Record>\n\t</Annotation>\n</Annotations>'}),n}function d(e,t,a,r,n,i,s,c,l,u){var d={$Type:!e.type&&u?f(u,0,r.fullyQualifiedName):o(a.references,e.type),fullyQualifiedName:t},m={};if(e.annotations&&Array.isArray(e.annotations)){var h={target:t,annotations:e.annotations,__source:s};c.push(h)}return e.propertyValues.forEach((function(e){if(m[e.name]=p(e.value,t+"/"+e.name,a,r,n,i,s,c,l,u),e.annotations&&Array.isArray(e.annotations)){var o={target:t+"/"+e.name,annotations:e.annotations,__source:s};c.push(o)}!m.hasOwnProperty("Action")||"com.sap.vocabularies.UI.v1.DataFieldForAction"!==d.$Type&&"com.sap.vocabularies.UI.v1.DataFieldWithAction"!==d.$Type||r.actions&&(m.ActionTarget=r.actions[m.Action]||n[m.Action],m.ActionTarget||v.push({message:"Unable to resolve the action "+m.Action+" defined for "+d.fullyQualifiedName}))})),Object.assign(d,m)}function m(e,t,a,r,i,o,s,c,p,f){switch(function(e){var t=e.type;if(void 0===t&&e.length>0){var a=e[0];a.hasOwnProperty("PropertyPath")?t="PropertyPath":a.hasOwnProperty("Path")?t="Path":a.hasOwnProperty("AnnotationPath")?t="AnnotationPath":a.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":"object"==typeof a&&(a.hasOwnProperty("type")||a.hasOwnProperty("propertyValues"))?t="Record":"string"==typeof a&&(t="String")}else void 0===t&&(t="EmptyCollection");return t}(e)){case"PropertyPath":return e.map((function(e,a){return{type:"PropertyPath",value:e.PropertyPath,fullyQualifiedName:t+"/"+a,$target:l(i,r,e.PropertyPath,!1,!1,p,f)}}));case"Path":return e.map((function(e){if(u(e.Path)){var t=l(i,r,e.Path,!1,!1,p,f);if(t)return t}var a=l(i,r,e.Path,!0,!1,p,f),s=new n(e,a,f,p,"");return o.push(s),s}));case"AnnotationPath":return e.map((function(e,a){var n=l(i,r,e.AnnotationPath,!0,!1,p,f),s={type:"AnnotationPath",value:e.AnnotationPath,fullyQualifiedName:t+"/"+a,$target:n,annotationType:p,annotationsTerm:f,term:"",path:""};return o.push(s),s}));case"NavigationPropertyPath":return e.map((function(e,a){return{type:"NavigationPropertyPath",value:e.NavigationPropertyPath,fullyQualifiedName:t+"/"+a,$target:l(i,r,e.NavigationPropertyPath,!1,!1,p,f)}}));case"Record":return e.map((function(e,n){return d(e,t+"/"+n,a,r,i,o,s,c,p,f)}));case"Apply":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return e.map((function(e){return e}));case"String":return e.map((function(e){return"string"==typeof e||void 0===e?e:e.String}));default:if(0===e.length)return[];throw new Error("Unsupported case")}}function h(e,t,a,r,n,i,s){if(e.record){var c=e.record.type?o(t.references,e.record.type):f(e.term,0,a.fullyQualifiedName),l={$Type:c,fullyQualifiedName:e.fullyQualifiedName,qualifier:e.qualifier},u={};return e.record.propertyValues.forEach((function(o){u[o.name]=p(o.value,e.fullyQualifiedName+"/"+o.name,t,a,r,n,i,s,c,e.term),!u.hasOwnProperty("Action")||e.record&&"com.sap.vocabularies.UI.v1.DataFieldForAction"!==l.$Type&&"com.sap.vocabularies.UI.v1.DataFieldWithAction"!==l.$Type||a.actions&&(u.ActionTarget=a.actions[u.Action]||r[u.Action],u.ActionTarget||v.push({message:"Unable to resolve the action "+u.Action+" defined for "+e.fullyQualifiedName}))})),Object.assign(l,u)}if(void 0===e.collection)return!e.value||p(e.value,e.fullyQualifiedName,t,a,r,n,i,s,"",e.term);if(e.collection){var d=m(e.collection,e.fullyQualifiedName,t,a,r,n,i,s,"",e.term);return d.fullyQualifiedName=e.fullyQualifiedName,d}throw new Error("Unsupported case")}function g(e,t,a){e.forEach((function(e){e.navigationProperties=e.navigationProperties.map((function(e){var r={_type:"NavigationProperty",name:e.name,fullyQualifiedName:e.fullyQualifiedName,partner:e.hasOwnProperty("partner")?e.partner:void 0,isCollection:!!e.hasOwnProperty("isCollection")&&e.isCollection,containsTarget:!!e.hasOwnProperty("containsTarget")&&e.containsTarget,referentialConstraint:e.referentialConstraint?e.referentialConstraint:[],annotations:{}};if(e.targetTypeName)r.targetType=a[e.targetTypeName];else if(e.relationship){var n=t.find((function(t){return t.fullyQualifiedName===e.relationship}));if(n){var i=n.associationEnd.find((function(t){return t.role===e.toRole}));i&&(r.targetType=a[i.type],r.isCollection="*"===i.multiplicity)}}r.targetType&&(r.targetTypeName=r.targetType.fullyQualifiedName);var o=r;return a[o.fullyQualifiedName]=o,o})),e.resolvePath=function(e,t){return function(a,r){return l(t,e,a,!1,r,"","")}}(e,a)}))}function y(e,t){var a=i(e,t),r=a.lastIndexOf(".");return[a.substr(0,r),a.substr(r+1)]}!function(e){e["Org.OData.Authorization.V1.SecuritySchemes"]="Org.OData.Authorization.V1.SecurityScheme",e["Org.OData.Authorization.V1.Authorizations"]="Org.OData.Authorization.V1.Authorization",e["Org.OData.Core.V1.Revisions"]="Org.OData.Core.V1.RevisionType",e["Org.OData.Core.V1.Links"]="Org.OData.Core.V1.Link",e["Org.OData.Core.V1.Example"]="Org.OData.Core.V1.ExampleValue",e["Org.OData.Core.V1.Messages"]="Org.OData.Core.V1.MessageType",e["Org.OData.Core.V1.ValueException"]="Org.OData.Core.V1.ValueExceptionType",e["Org.OData.Core.V1.ResourceException"]="Org.OData.Core.V1.ResourceExceptionType",e["Org.OData.Core.V1.DataModificationException"]="Org.OData.Core.V1.DataModificationExceptionType",e["Org.OData.Core.V1.IsLanguageDependent"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.DereferenceableIDs"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.ConventionalIDs"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.Permissions"]="Org.OData.Core.V1.Permission",e["Org.OData.Core.V1.DefaultNamespace"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.Immutable"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.Computed"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.ComputedDefaultValue"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.IsURL"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.IsMediaType"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.ContentDisposition"]="Org.OData.Core.V1.ContentDispositionType",e["Org.OData.Core.V1.OptimisticConcurrency"]="Edm.PropertyPath",e["Org.OData.Core.V1.AdditionalProperties"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.AutoExpand"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.AutoExpandReferences"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.MayImplement"]="Org.OData.Core.V1.QualifiedTypeName",e["Org.OData.Core.V1.Ordered"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.PositionalInsert"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.AlternateKeys"]="Org.OData.Core.V1.AlternateKey",e["Org.OData.Core.V1.OptionalParameter"]="Org.OData.Core.V1.OptionalParameterType",e["Org.OData.Core.V1.OperationAvailable"]="Edm.Boolean",e["Org.OData.Core.V1.SymbolicName"]="Org.OData.Core.V1.SimpleIdentifier",e["Org.OData.Capabilities.V1.ConformanceLevel"]="Org.OData.Capabilities.V1.ConformanceLevelType",e["Org.OData.Capabilities.V1.AsynchronousRequestsSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.BatchContinueOnErrorSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.IsolationSupported"]="Org.OData.Capabilities.V1.IsolationLevel",e["Org.OData.Capabilities.V1.CrossJoinSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.CallbackSupported"]="Org.OData.Capabilities.V1.CallbackType",e["Org.OData.Capabilities.V1.ChangeTracking"]="Org.OData.Capabilities.V1.ChangeTrackingType",e["Org.OData.Capabilities.V1.CountRestrictions"]="Org.OData.Capabilities.V1.CountRestrictionsType",e["Org.OData.Capabilities.V1.NavigationRestrictions"]="Org.OData.Capabilities.V1.NavigationRestrictionsType",e["Org.OData.Capabilities.V1.IndexableByKey"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.TopSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.SkipSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.ComputeSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.SelectSupport"]="Org.OData.Capabilities.V1.SelectSupportType",e["Org.OData.Capabilities.V1.BatchSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.BatchSupport"]="Org.OData.Capabilities.V1.BatchSupportType",e["Org.OData.Capabilities.V1.FilterRestrictions"]="Org.OData.Capabilities.V1.FilterRestrictionsType",e["Org.OData.Capabilities.V1.SortRestrictions"]="Org.OData.Capabilities.V1.SortRestrictionsType",e["Org.OData.Capabilities.V1.ExpandRestrictions"]="Org.OData.Capabilities.V1.ExpandRestrictionsType",e["Org.OData.Capabilities.V1.SearchRestrictions"]="Org.OData.Capabilities.V1.SearchRestrictionsType",e["Org.OData.Capabilities.V1.KeyAsSegmentSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.QuerySegmentSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.InsertRestrictions"]="Org.OData.Capabilities.V1.InsertRestrictionsType",e["Org.OData.Capabilities.V1.DeepInsertSupport"]="Org.OData.Capabilities.V1.DeepInsertSupportType",e["Org.OData.Capabilities.V1.UpdateRestrictions"]="Org.OData.Capabilities.V1.UpdateRestrictionsType",e["Org.OData.Capabilities.V1.DeepUpdateSupport"]="Org.OData.Capabilities.V1.DeepUpdateSupportType",e["Org.OData.Capabilities.V1.DeleteRestrictions"]="Org.OData.Capabilities.V1.DeleteRestrictionsType",e["Org.OData.Capabilities.V1.CollectionPropertyRestrictions"]="Org.OData.Capabilities.V1.CollectionPropertyRestrictionsType",e["Org.OData.Capabilities.V1.OperationRestrictions"]="Org.OData.Capabilities.V1.OperationRestrictionsType",e["Org.OData.Capabilities.V1.AnnotationValuesInQuerySupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.ModificationQueryOptions"]="Org.OData.Capabilities.V1.ModificationQueryOptionsType",e["Org.OData.Capabilities.V1.ReadRestrictions"]="Org.OData.Capabilities.V1.ReadRestrictionsType",e["Org.OData.Capabilities.V1.CustomHeaders"]="Org.OData.Capabilities.V1.CustomParameter",e["Org.OData.Capabilities.V1.CustomQueryOptions"]="Org.OData.Capabilities.V1.CustomParameter",e["Org.OData.Capabilities.V1.MediaLocationUpdateSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Aggregation.V1.ApplySupported"]="Org.OData.Aggregation.V1.ApplySupportedType",e["Org.OData.Aggregation.V1.Groupable"]="Org.OData.Core.V1.Tag",e["Org.OData.Aggregation.V1.Aggregatable"]="Org.OData.Core.V1.Tag",e["Org.OData.Aggregation.V1.ContextDefiningProperties"]="Edm.PropertyPath",e["Org.OData.Aggregation.V1.LeveledHierarchy"]="Edm.PropertyPath",e["Org.OData.Aggregation.V1.RecursiveHierarchy"]="Org.OData.Aggregation.V1.RecursiveHierarchyType",e["Org.OData.Aggregation.V1.AvailableOnAggregates"]="Org.OData.Aggregation.V1.AvailableOnAggregatesType",e["Org.OData.Validation.V1.Minimum"]="Edm.PrimitiveType",e["Org.OData.Validation.V1.Maximum"]="Edm.PrimitiveType",e["Org.OData.Validation.V1.Exclusive"]="Org.OData.Core.V1.Tag",e["Org.OData.Validation.V1.AllowedValues"]="Org.OData.Validation.V1.AllowedValue",e["Org.OData.Validation.V1.MultipleOf"]="Edm.Decimal",e["Org.OData.Validation.V1.Constraint"]="Org.OData.Validation.V1.ConstraintType",e["Org.OData.Validation.V1.ItemsOf"]="Org.OData.Validation.V1.ItemsOfType",e["Org.OData.Validation.V1.OpenPropertyTypeConstraint"]="Org.OData.Core.V1.QualifiedTypeName",e["Org.OData.Validation.V1.DerivedTypeConstraint"]="Org.OData.Core.V1.QualifiedTypeName",e["Org.OData.Validation.V1.AllowedTerms"]="Org.OData.Core.V1.QualifiedTermName",e["Org.OData.Validation.V1.ApplicableTerms"]="Org.OData.Core.V1.QualifiedTermName",e["Org.OData.Validation.V1.MaxItems"]="Edm.Int64",e["Org.OData.Validation.V1.MinItems"]="Edm.Int64",e["Org.OData.Measures.V1.Scale"]="Edm.Byte",e["Org.OData.Measures.V1.DurationGranularity"]="Org.OData.Measures.V1.DurationGranularityType",e["com.sap.vocabularies.Analytics.v1.Dimension"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Analytics.v1.Measure"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Analytics.v1.AccumulativeMeasure"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Analytics.v1.RolledUpPropertyCount"]="Edm.Int16",e["com.sap.vocabularies.Analytics.v1.PlanningAction"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Analytics.v1.AggregatedProperties"]="com.sap.vocabularies.Analytics.v1.AggregatedPropertyType",e["com.sap.vocabularies.Common.v1.ServiceVersion"]="Edm.Int32",e["com.sap.vocabularies.Common.v1.ServiceSchemaVersion"]="Edm.Int32",e["com.sap.vocabularies.Common.v1.TextFor"]="Edm.PropertyPath",e["com.sap.vocabularies.Common.v1.IsLanguageIdentifier"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.TextFormat"]="com.sap.vocabularies.Common.v1.TextFormatType",e["com.sap.vocabularies.Common.v1.IsDigitSequence"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsUpperCase"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCurrency"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsUnit"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.UnitSpecificScale"]="Edm.PrimitiveType",e["com.sap.vocabularies.Common.v1.UnitSpecificPrecision"]="Edm.PrimitiveType",e["com.sap.vocabularies.Common.v1.SecondaryKey"]="Edm.PropertyPath",e["com.sap.vocabularies.Common.v1.MinOccurs"]="Edm.Int64",e["com.sap.vocabularies.Common.v1.MaxOccurs"]="Edm.Int64",e["com.sap.vocabularies.Common.v1.AssociationEntity"]="Edm.NavigationPropertyPath",e["com.sap.vocabularies.Common.v1.DerivedNavigation"]="Edm.NavigationPropertyPath",e["com.sap.vocabularies.Common.v1.Masked"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.MaskedAlways"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.SemanticObjectMapping"]="com.sap.vocabularies.Common.v1.SemanticObjectMappingType",e["com.sap.vocabularies.Common.v1.IsInstanceAnnotation"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.FilterExpressionRestrictions"]="com.sap.vocabularies.Common.v1.FilterExpressionRestrictionType",e["com.sap.vocabularies.Common.v1.FieldControl"]="com.sap.vocabularies.Common.v1.FieldControlType",e["com.sap.vocabularies.Common.v1.Application"]="com.sap.vocabularies.Common.v1.ApplicationType",e["com.sap.vocabularies.Common.v1.Timestamp"]="Edm.DateTimeOffset",e["com.sap.vocabularies.Common.v1.ErrorResolution"]="com.sap.vocabularies.Common.v1.ErrorResolutionType",e["com.sap.vocabularies.Common.v1.Messages"]="Edm.ComplexType",e["com.sap.vocabularies.Common.v1.numericSeverity"]="com.sap.vocabularies.Common.v1.NumericMessageSeverityType",e["com.sap.vocabularies.Common.v1.MaximumNumericMessageSeverity"]="com.sap.vocabularies.Common.v1.NumericMessageSeverityType",e["com.sap.vocabularies.Common.v1.IsActionCritical"]="Edm.Boolean",e["com.sap.vocabularies.Common.v1.Attributes"]="Edm.PropertyPath",e["com.sap.vocabularies.Common.v1.RelatedRecursiveHierarchy"]="Edm.AnnotationPath",e["com.sap.vocabularies.Common.v1.Interval"]="com.sap.vocabularies.Common.v1.IntervalType",e["com.sap.vocabularies.Common.v1.ResultContext"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.WeakReferentialConstraint"]="com.sap.vocabularies.Common.v1.WeakReferentialConstraintType",e["com.sap.vocabularies.Common.v1.IsNaturalPerson"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.ValueList"]="com.sap.vocabularies.Common.v1.ValueListType",e["com.sap.vocabularies.Common.v1.ValueListRelevantQualifiers"]="com.sap.vocabularies.Common.v1.SimpleIdentifier",e["com.sap.vocabularies.Common.v1.ValueListWithFixedValues"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.ValueListMapping"]="com.sap.vocabularies.Common.v1.ValueListMappingType",e["com.sap.vocabularies.Common.v1.IsCalendarYear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarHalfyear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarQuarter"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarMonth"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarWeek"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsDayOfCalendarMonth"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsDayOfCalendarYear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarYearHalfyear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarYearQuarter"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarYearMonth"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarYearWeek"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarDate"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalYear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalPeriod"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalYearPeriod"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalQuarter"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalYearQuarter"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalWeek"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalYearWeek"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsDayOfFiscalYear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalYearVariant"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.MutuallyExclusiveTerm"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.DraftRoot"]="com.sap.vocabularies.Common.v1.DraftRootType",e["com.sap.vocabularies.Common.v1.DraftNode"]="com.sap.vocabularies.Common.v1.DraftNodeType",e["com.sap.vocabularies.Common.v1.DraftActivationVia"]="com.sap.vocabularies.Common.v1.SimpleIdentifier",e["com.sap.vocabularies.Common.v1.EditableFieldFor"]="Edm.PropertyPath",e["com.sap.vocabularies.Common.v1.SemanticKey"]="Edm.PropertyPath",e["com.sap.vocabularies.Common.v1.SideEffects"]="com.sap.vocabularies.Common.v1.SideEffectsType",e["com.sap.vocabularies.Common.v1.DefaultValuesFunction"]="com.sap.vocabularies.Common.v1.QualifiedName",e["com.sap.vocabularies.Common.v1.FilterDefaultValue"]="Edm.PrimitiveType",e["com.sap.vocabularies.Common.v1.FilterDefaultValueHigh"]="Edm.PrimitiveType",e["com.sap.vocabularies.Common.v1.SortOrder"]="com.sap.vocabularies.Common.v1.SortOrderType",e["com.sap.vocabularies.Common.v1.RecursiveHierarchy"]="com.sap.vocabularies.Common.v1.RecursiveHierarchyType",e["com.sap.vocabularies.Common.v1.CreatedAt"]="Edm.DateTimeOffset",e["com.sap.vocabularies.Common.v1.CreatedBy"]="com.sap.vocabularies.Common.v1.UserID",e["com.sap.vocabularies.Common.v1.ChangedAt"]="Edm.DateTimeOffset",e["com.sap.vocabularies.Common.v1.ChangedBy"]="com.sap.vocabularies.Common.v1.UserID",e["com.sap.vocabularies.Common.v1.ApplyMultiUnitBehaviorForSortingAndFiltering"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.CodeList.v1.CurrencyCodes"]="com.sap.vocabularies.CodeList.v1.CodeListSource",e["com.sap.vocabularies.CodeList.v1.UnitsOfMeasure"]="com.sap.vocabularies.CodeList.v1.CodeListSource",e["com.sap.vocabularies.CodeList.v1.StandardCode"]="Edm.PropertyPath",e["com.sap.vocabularies.CodeList.v1.ExternalCode"]="Edm.PropertyPath",e["com.sap.vocabularies.CodeList.v1.IsConfigurationDeprecationCode"]="Edm.Boolean",e["com.sap.vocabularies.Communication.v1.Contact"]="com.sap.vocabularies.Communication.v1.ContactType",e["com.sap.vocabularies.Communication.v1.Address"]="com.sap.vocabularies.Communication.v1.AddressType",e["com.sap.vocabularies.Communication.v1.IsEmailAddress"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Communication.v1.IsPhoneNumber"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Communication.v1.Event"]="com.sap.vocabularies.Communication.v1.EventData",e["com.sap.vocabularies.Communication.v1.Task"]="com.sap.vocabularies.Communication.v1.TaskData",e["com.sap.vocabularies.Communication.v1.Message"]="com.sap.vocabularies.Communication.v1.MessageData",e["com.sap.vocabularies.Hierarchy.v1.RecursiveHierarchy"]="com.sap.vocabularies.Hierarchy.v1.RecursiveHierarchyType",e["com.sap.vocabularies.PersonalData.v1.EntitySemantics"]="com.sap.vocabularies.PersonalData.v1.EntitySemanticsType",e["com.sap.vocabularies.PersonalData.v1.FieldSemantics"]="com.sap.vocabularies.PersonalData.v1.FieldSemanticsType",e["com.sap.vocabularies.PersonalData.v1.IsPotentiallyPersonal"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.PersonalData.v1.IsPotentiallySensitive"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Session.v1.StickySessionSupported"]="com.sap.vocabularies.Session.v1.StickySessionSupportedType",e["com.sap.vocabularies.UI.v1.HeaderInfo"]="com.sap.vocabularies.UI.v1.HeaderInfoType",e["com.sap.vocabularies.UI.v1.Identification"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",e["com.sap.vocabularies.UI.v1.Badge"]="com.sap.vocabularies.UI.v1.BadgeType",e["com.sap.vocabularies.UI.v1.LineItem"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",e["com.sap.vocabularies.UI.v1.StatusInfo"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",e["com.sap.vocabularies.UI.v1.FieldGroup"]="com.sap.vocabularies.UI.v1.FieldGroupType",e["com.sap.vocabularies.UI.v1.ConnectedFields"]="com.sap.vocabularies.UI.v1.ConnectedFieldsType",e["com.sap.vocabularies.UI.v1.GeoLocations"]="com.sap.vocabularies.UI.v1.GeoLocationType",e["com.sap.vocabularies.UI.v1.GeoLocation"]="com.sap.vocabularies.UI.v1.GeoLocationType",e["com.sap.vocabularies.UI.v1.Contacts"]="Edm.AnnotationPath",e["com.sap.vocabularies.UI.v1.MediaResource"]="com.sap.vocabularies.UI.v1.MediaResourceType",e["com.sap.vocabularies.UI.v1.DataPoint"]="com.sap.vocabularies.UI.v1.DataPointType",e["com.sap.vocabularies.UI.v1.KPI"]="com.sap.vocabularies.UI.v1.KPIType",e["com.sap.vocabularies.UI.v1.Chart"]="com.sap.vocabularies.UI.v1.ChartDefinitionType",e["com.sap.vocabularies.UI.v1.ValueCriticality"]="com.sap.vocabularies.UI.v1.ValueCriticalityType",e["com.sap.vocabularies.UI.v1.CriticalityLabels"]="com.sap.vocabularies.UI.v1.CriticalityLabelType",e["com.sap.vocabularies.UI.v1.SelectionFields"]="Edm.PropertyPath",e["com.sap.vocabularies.UI.v1.Facets"]="com.sap.vocabularies.UI.v1.Facet",e["com.sap.vocabularies.UI.v1.HeaderFacets"]="com.sap.vocabularies.UI.v1.Facet",e["com.sap.vocabularies.UI.v1.QuickViewFacets"]="com.sap.vocabularies.UI.v1.Facet",e["com.sap.vocabularies.UI.v1.QuickCreateFacets"]="com.sap.vocabularies.UI.v1.Facet",e["com.sap.vocabularies.UI.v1.FilterFacets"]="com.sap.vocabularies.UI.v1.ReferenceFacet",e["com.sap.vocabularies.UI.v1.SelectionPresentationVariant"]="com.sap.vocabularies.UI.v1.SelectionPresentationVariantType",e["com.sap.vocabularies.UI.v1.PresentationVariant"]="com.sap.vocabularies.UI.v1.PresentationVariantType",e["com.sap.vocabularies.UI.v1.SelectionVariant"]="com.sap.vocabularies.UI.v1.SelectionVariantType",e["com.sap.vocabularies.UI.v1.ThingPerspective"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.IsSummary"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.PartOfPreview"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.Map"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.Gallery"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.IsImageURL"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.IsImage"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.MultiLineText"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.TextArrangement"]="com.sap.vocabularies.UI.v1.TextArrangementType",e["com.sap.vocabularies.UI.v1.Importance"]="com.sap.vocabularies.UI.v1.ImportanceType",e["com.sap.vocabularies.UI.v1.Hidden"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.CreateHidden"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.UpdateHidden"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.DeleteHidden"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.HiddenFilter"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.DataFieldDefault"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",e["com.sap.vocabularies.UI.v1.Criticality"]="com.sap.vocabularies.UI.v1.CriticalityType",e["com.sap.vocabularies.UI.v1.CriticalityCalculation"]="com.sap.vocabularies.UI.v1.CriticalityCalculationType",e["com.sap.vocabularies.UI.v1.Emphasized"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.OrderBy"]="Edm.PropertyPath",e["com.sap.vocabularies.UI.v1.ParameterDefaultValue"]="Edm.PrimitiveType",e["com.sap.vocabularies.UI.v1.RecommendationState"]="com.sap.vocabularies.UI.v1.RecommendationStateType",e["com.sap.vocabularies.UI.v1.RecommendationList"]="com.sap.vocabularies.UI.v1.RecommendationListType",e["com.sap.vocabularies.UI.v1.ExcludeFromNavigationContext"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.HTML5.v1.CssDefaults"]="com.sap.vocabularies.HTML5.v1.CssDefaultsType"}(r||(r={})),t.defaultReferences=[{alias:"Capabilities",namespace:"Org.OData.Capabilities.V1",uri:""},{alias:"Aggregation",namespace:"Org.OData.Aggregation.V1",uri:""},{alias:"Validation",namespace:"Org.OData.Validation.V1",uri:""},{namespace:"Org.OData.Core.V1",alias:"Core",uri:""},{namespace:"Org.OData.Measures.V1",alias:"Measures",uri:""},{namespace:"com.sap.vocabularies.Common.v1",alias:"Common",uri:""},{namespace:"com.sap.vocabularies.UI.v1",alias:"UI",uri:""},{namespace:"com.sap.vocabularies.Session.v1",alias:"Session",uri:""},{namespace:"com.sap.vocabularies.Analytics.v1",alias:"Analytics",uri:""},{namespace:"com.sap.vocabularies.CodeList.v1",alias:"CodeList",uri:""},{namespace:"com.sap.vocabularies.PersonalData.v1",alias:"PersonalData",uri:""},{namespace:"com.sap.vocabularies.Communication.v1",alias:"Communication",uri:""},{namespace:"com.sap.vocabularies.HTML5.v1",alias:"HTML5",uri:""}];var v=[],b={};function P(e,t){var a;if("string"==typeof t){var r=t.match(/(\w+)\.\w+\/.*/);a=r&&e.find((function(e){return e.alias===r[1]}))?{type:"EnumMember",EnumMember:t}:{type:"String",String:t}}else Array.isArray(t)?a={type:"Collection",Collection:t.map((function(t){return O(e,t)}))}:"boolean"==typeof t?a={type:"Bool",Bool:t}:"number"==typeof t?a=t.toString()===t.toFixed()?{type:"Int",Int:t}:{type:"Decimal",Decimal:t}:"object"==typeof t&&t.isDecimal&&t.isDecimal()?a={type:"Decimal",Decimal:t.valueOf()}:"Path"===t.type?a={type:"Path",Path:t.path}:"AnnotationPath"===t.type?a={type:"AnnotationPath",AnnotationPath:t.value}:"PropertyPath"===t.type?a={type:"PropertyPath",PropertyPath:t.value}:"NavigationPropertyPath"===t.type?a={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(a={type:"Record",Record:O(e,t)});return a}function O(e,t){if("string"==typeof t)return t;if("object"==typeof t){if(t.hasOwnProperty("$Type")){var a={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach((function(r){if("$Type"!==r&&"term"!==r&&"__source"!==r&&"qualifier"!==r&&"ActionTarget"!==r&&"fullyQualifiedName"!==r&&"annotations"!==r){var n=t[r];a.propertyValues.push({name:r,value:P(e,n)})}else if("annotations"===r){var i=t[r];a.annotations=[],Object.keys(i).filter((function(e){return"_annotations"!==e})).forEach((function(t){Object.keys(i[t]).forEach((function(r){var n,s=T(e,i[t][r]);if(!s.term){var c=o(e,t+"."+r);if(c){var l=c.split("#");s.term=l[0],l.length>1&&(s.qualifier=l[1])}}null===(n=a.annotations)||void 0===n||n.push(s)}))}))}})),a}if("PropertyPath"===t.type)return{type:"PropertyPath",PropertyPath:t.value};if("AnnotationPath"===t.type)return{type:"AnnotationPath",AnnotationPath:t.value};if("NavigationPropertyPath"===t.type)return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value}}}function T(e,t){var r={term:t.term,qualifier:t.qualifier};if(Array.isArray(t)){if(t.hasOwnProperty("annotations")){r.annotations=[];var n=t.annotations;Object.keys(n).filter((function(e){return"_annotations"!==e})).forEach((function(t){Object.keys(n[t]).forEach((function(a){var i,s=T(e,n[t][a]);if(!s.term){var c=o(e,t+"."+a);if(c){var l=c.split("#");s.term=l[0],l.length>1&&(s.qualifier=l[1])}}null===(i=r.annotations)||void 0===i||i.push(s)}))}))}return a(a({},r),{collection:t.map((function(t){return O(e,t)}))})}return t.hasOwnProperty("$Type")?a(a({},r),{record:O(e,t)}):a(a({},r),{value:P(e,t)})}t.convertTypes=function(e){v=[];var a=function(e){var t={};return e.schema.entityContainer&&e.schema.entityContainer.fullyQualifiedName&&(t[e.schema.entityContainer.fullyQualifiedName]=e.schema.entityContainer),e.schema.entitySets.forEach((function(e){t[e.fullyQualifiedName]=e})),e.schema.actions.forEach((function(e){t[e.fullyQualifiedName]=e,t[e.fullyQualifiedName.split("(")[0]]=e,e.parameters.forEach((function(e){t[e.fullyQualifiedName]=e}))})),e.schema.complexTypes.forEach((function(e){t[e.fullyQualifiedName]=e,e.properties.forEach((function(e){t[e.fullyQualifiedName]=e}))})),e.schema.entityTypes.forEach((function(e){t[e.fullyQualifiedName]=e,e.entityProperties.forEach((function(e){if(t[e.fullyQualifiedName]=e,-1===e.type.indexOf("Edm")){var a=t[e.type];a&&a.properties&&a.properties.forEach((function(a){var r=Object.assign(a,{_type:"Property",fullyQualifiedName:e.fullyQualifiedName+"/"+a.name});t[r.fullyQualifiedName]=r}))}})),e.navigationProperties.forEach((function(e){t[e.fullyQualifiedName]=e}))})),Object.keys(e.schema.annotations).forEach((function(a){e.schema.annotations[a].forEach((function(a){var r=o(e.references,a.target);a.annotations.forEach((function(a){var n=r+"@"+o(e.references,a.term);a.qualifier&&(n+="#"+a.qualifier),t[n]=a,a.fullyQualifiedName=n}))}))})),t}(e);g(e.schema.entityTypes,e.schema.associations,a),e.schema.entityContainer.annotations||(e.schema.entityContainer.annotations={}),function(e,t,a){t.forEach((function(t){if(t.annotations||(t.annotations={}),t.isBound){var r=a[t.sourceType];t.sourceEntityType=r,r&&(r.actions||(r.actions={}),r.actions[t.name]=t,r.actions[e+"."+t.name]=t),t.returnEntityType=a[t.returnType]}}))}(e.schema.namespace,e.schema.actions,a),function(e,t,a){e.forEach((function(e){e.entityType=t[e.entityTypeName],e.entityType||(e.entityType=t[o(a,e.entityTypeName)]),e.annotations||(e.annotations={}),e.entityType.annotations||(e.entityType.annotations={}),e.entityType.keys.forEach((function(e){e.isKey=!0}))}))}(e.schema.entitySets,a,e.references),function(e,t){e.forEach((function(e){e.entityProperties.forEach((function(e){if(e.annotations||(e.annotations={}),-1===e.type.indexOf("Edm")){var a=t[e.type];a&&(e.targetType=a)}}))}))}(e.schema.entityTypes,a),function(e,t,a){e.forEach((function(e){e.annotations={},e.properties.forEach((function(e){e.annotations||(e.annotations={})})),e.navigationProperties=e.navigationProperties.map((function(e){e.annotations||(e.annotations={});var r={_type:"NavigationProperty",name:e.name,fullyQualifiedName:e.fullyQualifiedName,partner:e.hasOwnProperty("partner")?e.partner:void 0,isCollection:!!e.hasOwnProperty("isCollection")&&e.isCollection,containsTarget:!!e.hasOwnProperty("containsTarget")&&e.containsTarget,referentialConstraint:e.referentialConstraint?e.referentialConstraint:[]};if(e.targetTypeName)r.targetType=a[e.targetTypeName];else if(e.relationship){var n=t.find((function(t){return t.fullyQualifiedName===e.relationship}));if(n){var i=n.associationEnd.find((function(t){return t.role===e.toRole}));i&&(r.targetType=a[i.type],r.isCollection="*"===i.multiplicity)}}r.targetType&&(r.targetTypeName=r.targetType.fullyQualifiedName);var o=r;return a[o.fullyQualifiedName]=o,o}))}))}(e.schema.complexTypes,e.schema.associations,a);var r=[],n=[];Object.keys(e.schema.annotations).forEach((function(i){e.schema.annotations[i].forEach((function(s){var c=o(e.references,s.target),l=a[c];l?"object"==typeof l&&(l.annotations||(l.annotations={}),s.annotations.forEach((function(s){var u=y(t.defaultReferences,s.term),p=u[0],f=u[1];l.annotations[p]||(l.annotations[p]={}),l.annotations._annotations||(l.annotations._annotations={});var d=f+(s.qualifier?"#"+s.qualifier:"");switch(l.annotations[p][d]=h(s,e,l,a,r,i,n),typeof l.annotations[p][d]){case"string":l.annotations[p][d]=new String(l.annotations[p][d]);break;case"boolean":l.annotations[p][d]=new Boolean(l.annotations[p][d])}null!==l.annotations[p][d]&&"object"==typeof l.annotations[p][d]&&(l.annotations[p][d].term=o(t.defaultReferences,p+"."+f),l.annotations[p][d].qualifier=s.qualifier,l.annotations[p][d].__source=i);var m=c+"@"+o(t.defaultReferences,p+"."+d);if(s.annotations&&Array.isArray(s.annotations)){var g={target:m,annotations:s.annotations,__source:i};n.push(g)}else s.annotations&&!l.annotations[p][d].annotations&&(l.annotations[p][d].annotations=s.annotations);l.annotations._annotations[p+"."+d]=l.annotations[p][d],a[m]=l.annotations[p][d]}))):c&&-1!==c.indexOf("@")&&(s.__source=i,n.push(s))}))}));var i=[];for(var s in n.forEach((function(n){var s=o(e.references,n.target),c=s.split("@"),l=c[0],u=c[1].split("/");l=l+"@"+u[0];var p=u.slice(1).reduce((function(e,t){return e?e[t]:null}),a[l]);p?"object"==typeof p&&(p.annotations||(p.annotations={}),n.annotations.forEach((function(c){var l=y(t.defaultReferences,c.term),u=l[0],f=l[1];p.annotations[u]||(p.annotations[u]={}),p.annotations._annotations||(p.annotations._annotations={});var d=f+(c.qualifier?"#"+c.qualifier:"");p.annotations[u][d]=h(c,e,p,a,r,n.__source,i),null!==p.annotations[u][d]&&"object"==typeof p.annotations[u][d]&&(p.annotations[u][d].term=o(t.defaultReferences,u+"."+f),p.annotations[u][d].qualifier=c.qualifier,p.annotations[u][d].__source=n.__source),p.annotations._annotations[u+"."+d]=p.annotations[u][d],a[s+"@"+o(t.defaultReferences,u+"."+d)]=p.annotations[u][d]}))):v.push({message:"The following annotation target was not found on the service "+s})})),r.forEach((function(e){var t=e.$target,r=e.annotationsTerm,n=e.annotationType;if(e.$target=a[t],delete e.annotationType,delete e.annotationsTerm,!e.$target)if(e.targetString=t,r&&n){c(t,{message:"Unable to resolve the path expression: "+t+"\n\nHint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application): \n\n<Annotation Term = "+r+">\n<Record Type = "+n+">\n<AnnotationPath = "+t+">"})}else{var i=e.term,o=e.path,s=t?t.split("/")[0]:t;c(t,{message:"Unable to resolve the path expression: "+t+"\n\nHint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application): \n\n<Annotation Term = "+s+">\n<PropertyValue Property = "+i+" Path= "+o+">"})}})),b)v.push(b[s][0]);e.entitySets=e.schema.entitySets;var u={version:e.version,annotations:e.schema.annotations,namespace:e.schema.namespace,entityContainer:e.schema.entityContainer,actions:e.schema.actions,entitySets:e.schema.entitySets,entityTypes:e.schema.entityTypes,complexTypes:e.schema.complexTypes,references:t.defaultReferences,diagnostics:v.concat()};return u.resolvePath=function(e,t){return function(a){var r=a.split("/");if(""!==r.shift())throw new Error("Cannot deal with relative path");var n=r.shift(),i=e.entitySets.find((function(e){return e.name===n}));if(!i)return{target:e.entityContainer,objectPath:[e.entityContainer]};if(0===r.length)return{target:i,objectPath:[e.entityContainer,i]};var o=l(t,i,"/"+r.join("/"),!1,!0);return o.target&&o.visitedObjects.push(o.target),{target:o.target,objectPath:o.visitedObjects}}}(u,a),u},t.revertTermToGenericType=T},1014:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(5129);Object.defineProperty(t,"parseEDMX",{enumerable:!0,get:function(){return r.parseEDMX}});var n=a(8027);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return n.merge}})},8027:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;const r=a(1878);t.merge=function(e){const t=new r.MergedParserOutput(e[0]);return e.forEach((e=>{t.addParserOutput(e)})),t}},5129:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEDMX=void 0;const r=a(4139),n=a(1878),i=a(6162),o=a(6511),s=/Collection\(([^)]+)\)/;function c(e,t,a,r){return e.reduce(((e,n)=>{const i={_type:"Property",name:n._attributes.Name,fullyQualifiedName:`${a}/${n._attributes.Name}`,type:n._attributes.Type};if(n._attributes.MaxLength&&(i.maxLength=parseInt(n._attributes.MaxLength)),n._attributes.Precision&&(i.precision=parseInt(n._attributes.Precision)),n._attributes.Scale&&(i.scale=parseInt(n._attributes.Scale)),n._attributes.Nullable&&(i.nullable="false"!==n._attributes.Nullable),n._attributes.DefaultValue)switch(i.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":i.defaultValue=parseInt(n._attributes.DefaultValue);break;case"Edm.Decimal":i.defaultValue=parseFloat(n._attributes.DefaultValue);break;case"Edm.Boolean":i.defaultValue="true"===n._attributes.DefaultValue;break;default:i.defaultValue=n._attributes.DefaultValue}e.entityProperties.push(i),-1!==t.indexOf(i.name)&&e.entityKeys.push(i);const s=o.convertV2Annotations(n._attributes,"Property",n._attributes.Name);return s.length>0&&r.push(P(i.fullyQualifiedName,s)),e}),{entityProperties:[],entityKeys:[]})}function l(e,t,a,r){return e.reduce(((e,i)=>{const c=i._attributes;if(null!==(f=c).Type&&void 0!==f.Type){const r=c.Type.match(s),o=null!==r,f=r?r[1]:c.Type;e.push({_type:"NavigationProperty",name:c.Name,fullyQualifiedName:`${a}/${c.Name}`,partner:c.Partner,containsTarget:"true"===c.ContainsTarget,isCollection:o,targetTypeName:f,referentialConstraint:(l=n.ensureArray(i.ReferentialConstraint),u=t._attributes.Name,p=f,l.reduce(((e,t)=>(e.push({sourceTypeName:u,sourceProperty:t._attributes.Property,targetTypeName:p,targetProperty:t._attributes.ReferencedProperty}),e)),[]))})}else{const{Relationship:t,ToRole:n,FromRole:i}=c;e.push({_type:"NavigationProperty",name:c.Name,fullyQualifiedName:`${a}/${c.Name}`,relationship:t,toRole:n,fromRole:i});const s=o.convertV2Annotations(c,"Property",c.Name);s.length>0&&r.push(P(`${a}/${c.Name}`,s))}var l,u,p,f;return e}),[])}function u(e){switch(e){case"1":return i.Multiplicity.One;case"0..1":return i.Multiplicity.ZeroOrOne;case"*":return i.Multiplicity.Many}return i.Multiplicity.Unknown}function p(e,t,a){return e.map((e=>{const{Annotation:r,_attributes:i,...o}=e,s={};if(i){const r=Object.keys(i).find((e=>"Property"!==e));s.name=i.Property;let c=`${t}/${s.name}`;if(o&&Object.keys(o).length>0?s.value=v(o,c,a):r&&(s.value=y({[r]:i[r]},c,a)),e.Annotation){const t=b(n.ensureArray(e.Annotation),c,a);t&&t.length>0&&a.push(P(c,t))}}return s}))}function f(e,t,a){const r=b(n.ensureArray(e.Annotation),t,a);return r&&r.length>0&&a.push(P(t,r)),{type:e._attributes?C(e._attributes.Type):void 0,propertyValues:p(n.ensureArray(e.PropertyValue),t,a)}}function d(e,t){return null!=e[t]}function m(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}function h(e,t,a){if(d(e,"Record")){const r=n.ensureArray(e.Record).map(((e,r)=>f(e,t+"/"+r,a)));return r.type="Record",r}if(d(e,"PropertyPath")){const t=n.ensureArray(e.PropertyPath).map((e=>m(e,"PropertyPath")));return t.type="PropertyPath",t}if(d(e,"NavigationPropertyPath")){const t=n.ensureArray(e.NavigationPropertyPath).map((e=>m(e,"NavigationPropertyPath")));return t.type="NavigationPropertyPath",t}if(d(e,"String")){const t=n.ensureArray(e.String).map((e=>e._text));return t.type="String",t}if(d(e,"AnnotationPath")){const t=n.ensureArray(e.AnnotationPath).map((e=>m(e,"AnnotationPath")));return t.type="AnnotationPath",t}if(d(e,"Path")){const t=n.ensureArray(e.Path).map((e=>m(e,"Path")));return t.type="Path",t}if(d(e,"If")){const t=n.ensureArray(e.If).map((e=>e._text));return t.type="String",t}return 0===Object.keys(e).length||console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`),[]}function g(e,t){return null!=e[t]}function y(e,t,a){const r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);const n=r[0];switch(n){case"String":return{type:"String",String:e[n]};case"Bool":return{type:"Bool",Bool:"true"===e.Bool};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[n]};case"Collection":return{type:"Collection",Collection:h(e.Collection,t,a)};case"Record":return{type:"Record",Record:f(e.Record,t,a)};case"Apply":return{type:"Apply",Apply:e.Apply};default:return console.error("Unsupported inline expression type "+n),{type:"Unknown"}}}function v(e,t,a){const r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);const n=r[0];switch(n){case"String":return{type:"String",String:e[n]._text};case"Bool":return{type:"Bool",Bool:"true"===e.Bool._text};case"Int":return{type:"Int",Int:parseInt(e.Int._text)};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[n]._text};case"Collection":return{type:"Collection",Collection:h(e.Collection,t,a)};case"Record":return{type:"Record",Record:f(e.Record,t,a)};case"Apply":return{type:"Apply",Apply:e.Apply};default:return console.error("Unsupported expression type "+n),{type:"Unknown"}}}function b(e,t,a){return e.map((e=>function(e,t,a){const{Term:r,Qualifier:i,...o}=e._attributes;let s={term:C(r),qualifier:i},c=`${t}@${C(r)}`;if(""!==i&&void 0!==i&&(c+=`#${i}`),o&&Object.keys(o).length>0&&(s.value=y(o,c,a)),e.Annotation){const t=b(n.ensureArray(e.Annotation),c,a);t&&t.length>0&&a.push(P(c,t))}const l=Object.keys(e).filter((e=>"_attributes"!==e&&"Annotation"!==e));return g(e,"Record")?s.record=f(e.Record,c,a):g(e,"Collection")?s.collection=h(e.Collection,c,a):1===l.length?s.value=v({[l[0]]:e[l[0]]},c,a):l.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}(e,t,a)))}function P(e,t){return{target:e,annotations:t}}function O(e,t){const a=e._attributes.Namespace,r=[],i=function(e,t,a){return e.reduce(((e,r)=>{const i=r.Key?n.ensureArray(r.Key.PropertyRef).map((e=>e._attributes.Name)):[],o=`${a}.${r._attributes.Name}`,{entityProperties:s,entityKeys:u}=c(n.ensureArray(r.Property),i,o,t),p=l(n.ensureArray(r.NavigationProperty),r,o,t);return e.push({_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:o,keys:u,entityProperties:s,navigationProperties:p}),e}),[])}(n.ensureArray(e.EntityType),r,a),s=function(e,t,a){return e.reduce(((e,r)=>{const i=`${a}.${r._attributes.Name}`,{entityProperties:o,entityKeys:s}=c(n.ensureArray(r.Property),[],i,t),u=l(n.ensureArray(r.NavigationProperty),r,i,t);return e.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:i,properties:o,navigationProperties:u}),e}),[])}(n.ensureArray(e.ComplexType),r,a);let p=[],f=[],d={},m=[];e.EntityContainer&&(p=function(e,t,a,r){const i=e.map((e=>{const n={_type:"EntitySet",name:e._attributes.Name,entityTypeName:e._attributes.EntityType,navigationPropertyBinding:{},fullyQualifiedName:`${t}.${a}/${e._attributes.Name}`},i=o.convertV2Annotations(e._attributes,"EntitySet",e._attributes.Name);return i.length>0&&r.push(P(n.fullyQualifiedName,i)),n}));return e.forEach((e=>{const t=i.find((t=>t.name===e._attributes.Name));t&&n.ensureArray(e.NavigationPropertyBinding).forEach((e=>{const a=i.find((t=>t.name===e._attributes.Target));a&&(t.navigationPropertyBinding[e._attributes.Path]=a)}))})),i}(n.ensureArray(e.EntityContainer.EntitySet),a,e.EntityContainer._attributes.Name,r),f=function(e,t){return e.map((e=>{const a=`${t}.${e._attributes.Name}`,r=n.ensureArray(e.End).map((e=>({entitySet:e._attributes.EntitySet,role:e._attributes.Role})));return{fullyQualifiedName:a,name:e._attributes.Name,association:e._attributes.Association,associationEnd:r}}))}(n.ensureArray(e.EntityContainer.AssociationSet),a),d={name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${a}.${e.EntityContainer._attributes.Name}`},m=m.concat(function(e,t,a){return e.map((e=>{const r=t.find((t=>t.name===e._attributes.EntitySet));let i=`${a}/${e._attributes.Name}()`;return{_type:"Action",name:e._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:i,parameters:n.ensureArray(e.Parameter).map((e=>({_type:"ActionParameter",fullyQualifiedName:`${i}/${e._attributes.Name}`,type:e._attributes.Type,isEntitySet:!1}))),returnType:e._attributes.ReturnType?e._attributes.ReturnType:""}}))}(n.ensureArray(e.EntityContainer.FunctionImport),p,d.fullyQualifiedName))),m=m.concat(function(e,t){return e.map((e=>{const a=`${n.ensureArray(e.Parameter).filter((t=>t._attributes.Name===e._attributes.EntitySetPath)).map((e=>e._attributes.Type))}`,r="true"===e._attributes.IsBound;let i=`${e._attributes.Name}()`;return r&&(i=`${t}.${e._attributes.Name}(${a})`),{_type:"Action",name:e._attributes.Name,isBound:r,sourceType:a,fullyQualifiedName:i,parameters:n.ensureArray(e.Parameter).map((t=>({_type:"ActionParameter",fullyQualifiedName:`${i}/${t._attributes.Name}`,type:t._attributes.Type,isEntitySet:t._attributes.Name===e._attributes.EntitySetPath}))),returnType:e.ReturnType?e.ReturnType._attributes.Type:""}}))}(n.ensureArray(e.Action),a));const h=function(e,t){return e.map((e=>{const a=`${t}.${e._attributes.Name}`,r=n.ensureArray(e.End).map((e=>({type:e._attributes.Type,role:e._attributes.Role,multiplicity:u(e._attributes.Multiplicity)})));return{fullyQualifiedName:a,name:e._attributes.Name,associationEnd:r,referentialConstraints:(i=n.ensureArray(e.ReferentialConstraint),o=r,i.reduce(((e,t)=>{const a=o.find((e=>e.role===t.Dependent._attributes.Role)),r=o.find((e=>e.role===t.Principal._attributes.Role));if(a&&r){const i=n.ensureArray(t.Dependent.PropertyRef),o=n.ensureArray(t.Principal.PropertyRef);i.forEach(((t,n)=>{e.push({sourceTypeName:a.type,sourceProperty:t._attributes.Name,targetTypeName:r.type,targetProperty:o[n]._attributes.Name})}))}return e}),[]))};var i,o}))}(n.ensureArray(e.Association),a);var g,y;f.length>0&&p.forEach((e=>{const t=i.find((t=>t.fullyQualifiedName===e.entityTypeName));null==t||t.navigationProperties.forEach((t=>{const a=t,r=f.find((e=>e.fullyQualifiedName===a.relationship));if(r){const a=r.associationEnd.map((e=>p.find((t=>t.name===e.entitySet)))).find((t=>(null==t?void 0:t.fullyQualifiedName)!==e.fullyQualifiedName));a&&(e.navigationPropertyBinding[t.name]=a)}}))})),h.length>0&&i.forEach((e=>{e.navigationProperties.forEach((e=>{const t=e,a=h.find((e=>e.fullyQualifiedName===t.relationship));a&&a.referentialConstraints&&(t.referentialConstraint=a.referentialConstraints)}))})),g=n.ensureArray(e.Annotations),y=r,g.filter((e=>void 0!==e._attributes)).forEach((e=>{y.push(P(e._attributes.Target,b(n.ensureArray(e.Annotation),e._attributes.Target,y)))}));var v={};return v[t]=r,{associations:h,annotations:v,entityContainer:d,namespace:a,entitySets:p,complexTypes:s,actions:m,entityTypes:i}}let T={};function C(e){if(!e)return e;const[t,a]=e.split("."),r=T[t];if(r)return`${r.namespace}.${a}`;if(-1!==e.indexOf("@")){const[t,a]=e.split("@");return`${t}@${C(a)}`}return e}t.parseEDMX=function(e,t="serviceFile"){const a=r.xml2js(e,{compact:!0}),i=n.ensureArray(a["edmx:Edmx"]["edmx:DataServices"].Schema),o=function(e,t){const a=e.reduce(((e,t)=>(n.ensureArray(t["edmx:Include"]).forEach((a=>{e.push({uri:t._attributes.Uri,alias:a._attributes.Alias,namespace:a._attributes.Namespace})})),e)),[]);return t.forEach((e=>{e&&e._attributes.Alias&&a.push({uri:"",alias:e._attributes.Alias,namespace:e._attributes.Namespace})})),a}(n.ensureArray(a["edmx:Edmx"]["edmx:Reference"]),i);T=o.reduce(((e,t)=>(e[t.alias]=t,e)),{});const s=i.map((e=>O(e,t)));return new n.ParserOutputInstance(t,a["edmx:Edmx"]._attributes.Version,function(e){if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e.concat(t.associations)),[]),a=e.reduce(((e,t)=>e.concat(t.entitySets)),[]),r=e.reduce(((e,t)=>e.concat(t.entityTypes)),[]),n=e.reduce(((e,t)=>e.concat(t.actions)),[]),i=e.reduce(((e,t)=>e.concat(t.complexTypes)),[]);let o,s,c={};return e.forEach((e=>{c=Object.assign(c,e.annotations)})),e.forEach((e=>{e.entityContainer&&Object.keys(e.entityContainer).length>0&&(o=e.entityContainer,s=e.namespace)})),{associations:t,annotations:c,entityContainer:o,namespace:s,entitySets:a,complexTypes:i,actions:n,entityTypes:r}}(s),o)}},1878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MergedParserOutput=t.ParserOutputInstance=t.ensureArray=void 0,t.ensureArray=function(e){return null==e?[]:Array.isArray(e)?e:[e]};t.ParserOutputInstance=class ParserOutputInstance{constructor(e,t,a,r){this.identification=e,this.references=r,this.version=t,this.schema=a}unalias(e){if(!e)return e;const[t,a]=e.split("."),r=this.references.find((e=>e.alias===t));if(r)return`${r.namespace}.${a}`;if(-1!==e.indexOf("@")){const[t,a]=e.split("@");return`${t}@${this.unalias(a)}`}return e}};t.MergedParserOutput=class MergedParserOutput{constructor(e){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._entitySets=[],this._actions=[],this._entityContainer={},this._entityTypes=[],this._complexTypes=[],this.identification="mergedParserInstance",this.version=e.version,this._namespace=e.schema.namespace}get references(){return this._references}get schema(){return{associations:this._associations,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,complexTypes:this._complexTypes,actions:this._actions,entityTypes:this._entityTypes}}addParserOutput(e){this._parserOutput.push(e),this._references=this._references.concat(e.references),this._associations=this._associations.concat(e.schema.associations),this._annotations=Object.assign(this._annotations,e.schema.annotations),this._entitySets=this._entitySets.concat(e.schema.entitySets),this._actions=this._actions.concat(e.schema.actions),this._entityTypes=this._entityTypes.concat(e.schema.entityTypes),this._complexTypes=this._complexTypes.concat(e.schema.complexTypes),this._entityContainer=Object.assign(this._entityContainer,e.schema.entityContainer)}unalias(e){if(!e)return e;const[t,a]=e.split("."),r=this.references.find((e=>e.alias===t));if(r)return`${r.namespace}.${a}`;if(-1!==e.indexOf("@")){const[t,a]=e.split("@");return`${t}@${this.unalias(a)}`}return e}}},6511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertV2Annotations=void 0,t.convertV2Annotations=function(e,t,a){const r=[];if(e["sap:schema-version"]&&r.push({term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),e["sap:creatable"]&&"EntitySet"===t&&r.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:"true"===e["sap:creatable"]}}]}}),e["sap:creatable"]&&"NavigationProperty"===t&&r.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:"true"===e["sap:creatable"]}}]}}}]}}}]}}),e["sap:creatable-path"]&&"NavigationProperty"===t&&r.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:updatable"]&&"EntitySet"===t&&r.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:"true"===e["sap:updatable"]}}]}}),e["sap:updatable-path"]&&"EntitySet"===t&&r.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&"EntitySet"===t&&r.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:"true"===e["sap:updatable"]}}]}}),e["sap:deletable-path"]&&"EntitySet"===t&&r.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}}),"true"===e["sap:creatable"]&&"false"===e["sap:updatable"]&&"Property"===t&&r.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),"false"===e["sap:creatable"]&&"false"===e["sap:updatable"]&&"Property"===t&&r.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&"Property"===t&&r.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:searchable"]&&r.push({term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searachable",value:{type:"Bool",Bool:"true"===e["sap:searchable"]}}]}}),e["sap:pageable"]&&(r.push({term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:"true"===e["sap:pageable"]}}),r.push({term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:"true"===e["sap:pageable"]}})),e["sap:topable"]&&r.push({term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:"true"===e["sap:topable"]}}),e["sap:requires-filter"]&&r.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:"true"===e["sap:requires-filter"]}}]}}),e["sap:required-in-filter"]&&r.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:a}]}}]}}),"false"===e["sap:filterable"]&&"Property"===t&&r.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:a}]}}]}}),"false"===e["sap:filterable"]&&"NavigationProperty"===t&&r.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:a}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}}),e["sap:filter-restricton"]&&r.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:a}}]}]}}]}}),"false"===e["sap:sortable"]&&r.push({term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:a}}]}}),"false"===e["sap:visible"]&&r.push({term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),e["sap:label"]&&r.push({term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),e["sap:heading"]&&r.push({term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),e["sap:quickinfo"]&&r.push({term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),e["sap:text"]&&r.push({term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),e["sap:unit"]&&(r.push({term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),r.push({term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}})),e["sap:precision"]&&r.push({term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"])}}),"fixed-value"===e["sap:value-list"]&&r.push({term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),"NonNegative"===e["sap:display-format"]&&r.push({term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),"UpperCase"===e["sap:display-format"]&&r.push({term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){const t=[];e["sap:lower-boundary"]&&t.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&t.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),r.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:t}})}return e["sap:field-control"]&&r.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),e["sap:applicable-path"]&&r.push({term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),e["sap:minoccurs"]&&r.push({term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"])}}),e["sap:maxoccurs"]&&r.push({term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"])}}),"mandatory"===e["sap:parameter"]&&r.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),"optional"===e["sap:parameter"]&&r.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),e["sap:attribute-for"]&&r.push({term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:a}]}}),r}},6162:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Multiplicity=void 0,function(e){e.One="1",e.ZeroOrOne="0..1",e.Many="*",e.Unknown="unknown"}(t.Multiplicity||(t.Multiplicity={}))},2281:(e,t,a)=>{e.exports={change:a(6527)}},6527:e=>{let t=0;const a="changeUtils: ";function r(e){return JSON.stringify({fileName:e.id||("id-"+(new Date).valueOf()+"-"+t++).replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||(new Date).valueOf(),originalLanguage:"",support:{generator:a+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}e.exports={parse:function(e){const t=JSON.parse(e);if(!(t.fileName&&t.changeType&&t.selector&&t.reference&&t.creation&&t.content&&t.layer&&t.support))throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:"CUSTOMER_BASE"===t.layer,creatingTool:t.support.generator.replace(a,""),content:t.content,sapui5Version:t.support.sapui5Version}},createChangeString:function(e,t){if(!e.type||!e.controlId||"boolean"!=typeof e.isCustomer||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=function(e){const t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return(a=t.componentName)&&a.indexOf(".Component")<0&&(a+=".Component"),a}var a;const r=e["sap.app"];if(!r||!r.id)throw Error("app ID could not be determined");return r.id}(t),e.appVersion=function(e){const t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}(t),e.projectId=function(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}(t,e.reference),r(e)},toString:function(e){if(!(e.type&&e.controlId&&"boolean"==typeof e.isCustomer&&e.creatingTool&&e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return r(e)}}},1199:(e,t,a)=>{"use strict";var r=a(5520),n=a(216),i=a(294),o=a(493),s=a(9003),c=a(8636),l=a(4653),u=a(5701),p=a(7559);e.exports=y,y.prototype.validate=function(e,t){var a;if("string"==typeof e){if(!(a=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var r=this._addSchema(e);a=r.validate||this._compile(r)}var n=a(t);!0!==a.$async&&(this.errors=a.errors);return n},y.prototype.compile=function(e,t){var a=this._addSchema(e,void 0,t);return a.validate||this._compile(a)},y.prototype.addSchema=function(e,t,a,r){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,a,r);return this}var o=this._getId(e);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return C(this,t=n.normalizeId(t||o)),this._schemas[t]=this._addSchema(e,a,r,!0),this},y.prototype.addMetaSchema=function(e,t,a){return this.addSchema(e,t,a,!0),this},y.prototype.validateSchema=function(e,t){var a=e.$schema;if(void 0!==a&&"string"!=typeof a)throw new Error("$schema must be a string");if(!(a=a||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(m)?m:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var r=this.validate(a,e);if(!r&&t){var n="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(n);this.logger.error(n)}return r},y.prototype.getSchema=function(e){var t=v(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var a=n.schema.call(e,{schema:{}},t);if(a){var i=a.schema,s=a.root,c=a.baseId,l=r.call(e,i,s,void 0,c);return e._fragments[t]=new o({ref:t,fragment:!0,schema:i,root:s,baseId:c,validate:l}),l}}(this,e)}},y.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=v(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var a=this._opts.serialize,r=a?a(e):e;this._cache.del(r);var i=this._getId(e);i&&(i=n.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},y.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},y.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var a=void 0===(t=t||{}).separator?", ":t.separator,r=void 0===t.dataVar?"data":t.dataVar,n="",i=0;i<e.length;i++){var o=e[i];o&&(n+=r+o.dataPath+" "+o.message+a)}return n.slice(0,-a.length)},y.prototype._addSchema=function(e,t,a,r){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,s=i?i(e):e,c=this._cache.get(s);if(c)return c;r=r||!1!==this._opts.addUsedSchema;var l=n.normalizeId(this._getId(e));l&&r&&C(this,l);var u,p=!1!==this._opts.validateSchema&&!t;p&&!(u=l&&l==n.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=n.ids.call(this,e),d=new o({id:l,schema:e,localRefs:f,cacheKey:s,meta:a});"#"!=l[0]&&r&&(this._refs[l]=d);this._cache.put(s,d),p&&u&&this.validateSchema(e,!0);return d},y.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var a,n;e.compiling=!0,e.meta&&(a=this._opts,this._opts=this._metaOpts);try{n=r.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=a)}return e.validate=n,e.refs=n.refs,e.refVal=n.refVal,e.root=n.root,n;function i(){var t=e.validate,a=t.apply(this,arguments);return i.errors=t.errors,a}},y.prototype.compileAsync=a(7850);var f=a(6019);y.prototype.addKeyword=f.add,y.prototype.getKeyword=f.get,y.prototype.removeKeyword=f.remove,y.prototype.validateKeyword=f.validate;var d=a(5587);y.ValidationError=d.Validation,y.MissingRefError=d.MissingRef,y.$dataMetaSchema=u;var m="http://json-schema.org/draft-07/schema",h=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],g=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=p.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:S,warn:S,error:S};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=c(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=l(),this._getId=function(e){switch(e.schemaId){case"auto":return T;case"id":return P;default:return O}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=p.copy(e._opts),a=0;a<h.length;a++)delete t[h[a]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var a=e._opts.formats[t];e.addFormat(t,a)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var a=e._opts.keywords[t];e.addKeyword(t,a)}}(this),function(e){var t;e._opts.$data&&(t=a(601),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=a(8938);e._opts.$data&&(r=u(r,g));e.addMetaSchema(r,m,!0),e._refs["http://json-schema.org/schema"]=m}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var a in t)e.addSchema(t[a],a)}(this)}function v(e,t){return t=n.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,a){for(var r in t){var n=t[r];n.meta||a&&!a.test(r)||(e._cache.del(n.cacheKey),delete t[r])}}function P(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function O(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function T(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function C(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function S(){}},294:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},7850:(e,t,a)=>{"use strict";var r=a(5587).MissingRef;e.exports=function e(t,a,n){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof a&&(n=a,a=void 0);var o=s(t).then((function(){var e=i._addSchema(t,void 0,a);return e.validate||c(e)}));n&&o.then((function(e){n(null,e)}),n);return o;function s(t){var a=t.$schema;return a&&!i.getSchema(a)?e.call(i,{$ref:a},!0):Promise.resolve()}function c(e){try{return i._compile(e)}catch(t){if(t instanceof r)return function(t){var r=t.missingSchema;if(l(r))throw new Error("Schema "+r+" is loaded but "+t.missingRef+" cannot be resolved");var n=i._loadingSchemas[r];n||(n=i._loadingSchemas[r]=i._opts.loadSchema(r)).then(o,o);return n.then((function(e){if(!l(r))return s(e).then((function(){l(r)||i.addSchema(e,r,void 0,a)}))})).then((function(){return c(e)}));function o(){delete i._loadingSchemas[r]}function l(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}}},5587:(e,t,a)=>{"use strict";var r=a(216);function n(e,t,a){this.message=a||n.message(e,t),this.missingRef=r.url(e,t),this.missingSchema=r.normalizeId(r.fullPath(this.missingRef))}function i(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:i((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:i(n)},n.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},8636:(e,t,a)=>{"use strict";var r=a(7559),n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,f=/^(?:\/(?:[^~/]|~0|~1)*)*$/,d=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function h(e){return e="full"==e?"full":"fast",r.copy(h[e])}function g(e){var t=e.match(n);if(!t)return!1;var a=+t[1],r=+t[2],o=+t[3];return r>=1&&r<=12&&o>=1&&o<=(2==r&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(a)?29:i[r])}function y(e,t){var a=e.match(o);if(!a)return!1;var r=a[1],n=a[2],i=a[3],s=a[5];return(r<=23&&n<=59&&i<=59||23==r&&59==n&&60==i)&&(!t||s)}e.exports=h,h.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:O,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":d,"relative-json-pointer":m},h.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&c.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":l,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:O,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":d,"relative-json-pointer":m};var v=/t|\s/i;var b=/\/|:/;var P=/[^\\]\\Z/;function O(e){if(P.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},5520:(e,t,a)=>{"use strict";var r=a(216),n=a(7559),i=a(5587),o=a(9003),s=a(2599),c=n.ucs2length,l=a(8926),u=i.Validation;function p(e,t,a){var r=d.call(this,e,t,a);return r>=0?{index:r,compiling:!0}:(r=this._compilations.length,this._compilations[r]={schema:e,root:t,baseId:a},{index:r,compiling:!1})}function f(e,t,a){var r=d.call(this,e,t,a);r>=0&&this._compilations.splice(r,1)}function d(e,t,a){for(var r=0;r<this._compilations.length;r++){var n=this._compilations[r];if(n.schema==e&&n.root==t&&n.baseId==a)return r}return-1}function m(e,t){return"var pattern"+e+" = new RegExp("+n.toQuotedString(t[e])+");"}function h(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function y(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var a="",r=0;r<e.length;r++)a+=t(r,e);return a}e.exports=function e(t,a,d,b){var P=this,O=this._opts,T=[void 0],C={},S=[],E={},_=[],I={},x=[];a=a||{schema:t,refVal:T,refs:C};var w=p.call(this,t,a,b),F=this._compilations[w.index];if(w.compiling)return F.callValidate=function e(){var t=F.validate,a=t.apply(this,arguments);return e.errors=t.errors,a};var A=this._formats,R=this.RULES;try{var N=j(t,a,d,b);F.validate=N;var D=F.callValidate;return D&&(D.schema=N.schema,D.errors=null,D.refs=N.refs,D.refVal=N.refVal,D.root=N.root,D.$async=N.$async,O.sourceCode&&(D.source=N.source)),N}finally{f.call(this,t,a,b)}function j(t,o,p,f){var d=!o||o&&o.schema==t;if(o.schema!=a.schema)return e.call(P,t,o,p,f);var b,E=!0===t.$async,I=s({isTop:!0,schema:t,isRoot:d,baseId:f,root:o,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:R,validate:s,util:n,resolve:r,resolveRef:V,usePattern:M,useDefault:$,useCustomRule:U,opts:O,formats:A,logger:P.logger,self:P});I=v(T,g)+v(S,m)+v(_,h)+v(x,y)+I,O.processCode&&(I=O.processCode(I,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",I)(P,R,A,a,T,_,x,l,c,u),T[0]=b}catch(e){throw P.logger.error("Error compiling schema, function code:",I),e}return b.schema=t,b.errors=null,b.refs=C,b.refVal=T,b.root=d?b:o,E&&(b.$async=!0),!0===O.sourceCode&&(b.source={code:I,patterns:S,defaults:_}),b}function V(t,n,i){n=r.url(t,n);var o,s,c=C[n];if(void 0!==c)return k(o=T[c],s="refVal["+c+"]");if(!i&&a.refs){var l=a.refs[n];if(void 0!==l)return k(o=a.refVal[l],s=L(n,o))}s=L(n);var u=r.call(P,j,a,n);if(void 0===u){var p=d&&d[n];p&&(u=r.inlineRef(p,O.inlineRefs)?p:e.call(P,p,a,d,t))}if(void 0!==u)return function(e,t){var a=C[e];T[a]=t}(n,u),k(u,s);!function(e){delete C[e]}(n)}function L(e,t){var a=T.length;return T[a]=t,C[e]=a,"refVal"+a}function k(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function M(e){var t=E[e];return void 0===t&&(t=E[e]=S.length,S[t]=e),"pattern"+t}function $(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return n.toQuotedString(e);case"object":if(null===e)return"null";var t=o(e),a=I[t];return void 0===a&&(a=I[t]=_.length,_[a]=e),"default"+a}}function U(e,t,a,r){if(!1!==P._opts.validateSchema){var n=e.definition.dependencies;if(n&&!n.every((function(e){return Object.prototype.hasOwnProperty.call(a,e)})))throw new Error("parent schema must have all required keywords: "+n.join(","));var i=e.definition.validateSchema;if(i)if(!i(t)){var o="keyword schema is invalid: "+P.errorsText(i.errors);if("log"!=P._opts.validateSchema)throw new Error(o);P.logger.error(o)}}var s,c=e.definition.compile,l=e.definition.inline,u=e.definition.macro;if(c)s=c.call(P,t,a,r);else if(u)s=u.call(P,t,a,r),!1!==O.validateSchema&&P.validateSchema(s,!0);else if(l)s=l.call(P,r,e.keyword,t,a);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var p=x.length;return x[p]=s,{code:"customRule"+p,validate:s}}}},216:(e,t,a)=>{"use strict";var r=a(5858),n=a(8926),i=a(7559),o=a(493),s=a(8125);function c(e,t,a){var r=this._refs[a];if("string"==typeof r){if(!this._refs[r])return c.call(this,e,t,r);r=this._refs[r]}if((r=r||this._schemas[a])instanceof o)return m(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r);var n,i,s,u=l.call(this,t,a);return u&&(n=u.schema,t=u.root,s=u.baseId),n instanceof o?i=n.validate||e.call(this,n.schema,t,void 0,s):void 0!==n&&(i=m(n,this._opts.inlineRefs)?n:e.call(this,n,t,void 0,s)),i}function l(e,t){var a=r.parse(t),n=v(a),i=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==i){var s=P(n),c=this._refs[s];if("string"==typeof c)return u.call(this,e,c,a);if(c instanceof o)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof o))return;if(c.validate||this._compile(c),s==P(t))return{schema:c,root:e,baseId:i};e=c}if(!e.schema)return;i=y(this._getId(e.schema))}return f.call(this,a,i,e.schema,e)}function u(e,t,a){var r=l.call(this,e,t);if(r){var n=r.schema,i=r.baseId;e=r.root;var o=this._getId(n);return o&&(i=O(i,o)),f.call(this,a,i,n,e)}}e.exports=c,c.normalizeId=P,c.fullPath=y,c.url=O,c.ids=function(e){var t=P(this._getId(e)),a={"":t},o={"":y(t,!1)},c={},l=this;return s(e,{allKeys:!0},(function(e,t,s,u,p,f,d){if(""!==t){var m=l._getId(e),h=a[u],g=o[u]+"/"+p;if(void 0!==d&&(g+="/"+("number"==typeof d?d:i.escapeFragment(d))),"string"==typeof m){m=h=P(h?r.resolve(h,m):m);var y=l._refs[m];if("string"==typeof y&&(y=l._refs[y]),y&&y.schema){if(!n(e,y.schema))throw new Error('id "'+m+'" resolves to more than one schema')}else if(m!=P(g))if("#"==m[0]){if(c[m]&&!n(e,c[m]))throw new Error('id "'+m+'" resolves to more than one schema');c[m]=e}else l._refs[m]=g}a[t]=h,o[t]=g}})),c},c.inlineRef=m,c.schema=l;var p=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function f(e,t,a,r){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var n=e.fragment.split("/"),o=1;o<n.length;o++){var s=n[o];if(s){if(void 0===(a=a[s=i.unescapeFragment(s)]))break;var c;if(!p[s]&&((c=this._getId(a))&&(t=O(t,c)),a.$ref)){var u=O(t,a.$ref),f=l.call(this,r,u);f&&(a=f.schema,r=f.root,t=f.baseId)}}}return void 0!==a&&a!==r.schema?{schema:a,root:r,baseId:t}:void 0}}var d=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function m(e,t){return!1!==t&&(void 0===t||!0===t?h(e):t?g(e)<=t:void 0)}function h(e){var t;if(Array.isArray(e)){for(var a=0;a<e.length;a++)if("object"==typeof(t=e[a])&&!h(t))return!1}else for(var r in e){if("$ref"==r)return!1;if("object"==typeof(t=e[r])&&!h(t))return!1}return!0}function g(e){var t,a=0;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&(a+=g(t)),a==1/0)return 1/0}else for(var n in e){if("$ref"==n)return 1/0;if(d[n])a++;else if("object"==typeof(t=e[n])&&(a+=g(t)+1),a==1/0)return 1/0}return a}function y(e,t){return!1!==t&&(e=P(e)),v(r.parse(e))}function v(e){return r.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function P(e){return e?e.replace(b,""):""}function O(e,t){return t=P(t),r.resolve(e,t)}},4653:(e,t,a)=>{"use strict";var r=a(4478),n=a(7559).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=n(t),e.types=n(["number","integer","string","array","object","boolean","null"]),e.forEach((function(a){a.rules=a.rules.map((function(a){var n;if("object"==typeof a){var i=Object.keys(a)[0];n=a[i],a=i,n.forEach((function(a){t.push(a),e.all[a]=!0}))}return t.push(a),e.all[a]={keyword:a,code:r[a],implements:n}})),e.all.$comment={keyword:"$comment",code:r.$comment},a.type&&(e.types[a.type]=a)})),e.keywords=n(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},493:(e,t,a)=>{"use strict";var r=a(7559);e.exports=function(e){r.copy(e,this)}},7463:e=>{"use strict";e.exports=function(e){for(var t,a=0,r=e.length,n=0;n<r;)a++,(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<r&&56320==(64512&(t=e.charCodeAt(n)))&&n++;return a}},7559:(e,t,a)=>{"use strict";function r(e,t,a,r){var n=r?" !== ":" === ",i=r?" || ":" && ",o=r?"!":"",s=r?"":"!";switch(e){case"null":return t+n+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+i+"typeof "+t+n+'"object"'+i+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+n+'"number"'+i+s+"("+t+" % 1)"+i+t+n+t+(a?i+o+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+n+'"'+e+'"'+(a?i+o+"isFinite("+t+")":"")+")";default:return"typeof "+t+n+'"'+e+'"'}}e.exports={copy:function(e,t){for(var a in t=t||{},e)t[a]=e[a];return t},checkDataType:r,checkDataTypes:function(e,t,a){switch(e.length){case 1:return r(e[0],t,a,!0);default:var n="",o=i(e);for(var s in o.array&&o.object&&(n=o.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)n+=(n?" && ":"")+r(s,t,a,!0);return n}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var a=[],r=0;r<t.length;r++){var i=t[r];(n[i]||"array"===e&&"array"===i)&&(a[a.length]=i)}if(a.length)return a}else{if(n[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:i,getProperty:c,escapeQuotes:l,equal:a(8926),ucs2length:a(7463),varOccurences:function(e,t){t+="[^0-9]";var a=e.match(new RegExp(t,"g"));return a?a.length:0},varReplace:function(e,t,a){return t+="([^0-9])",a=a.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),a+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var a in e)if(t[a])return!0},schemaHasRulesExcept:function(e,t,a){if("boolean"==typeof e)return!e&&"not"!=a;for(var r in e)if(r!=a&&t[r])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var a in e)if(!t[a])return a},toQuotedString:u,getPathExpr:function(e,t,a,r){return d(e,a?"'/' + "+t+(r?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):r?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,a){var r=u(a?"/"+m(t):c(t));return d(e,r)},getData:function(e,t,a){var r,n,i,o;if(""===e)return"rootData";if("/"==e[0]){if(!p.test(e))throw new Error("Invalid JSON-pointer: "+e);n=e,i="rootData"}else{if(!(o=e.match(f)))throw new Error("Invalid JSON-pointer: "+e);if(r=+o[1],"#"==(n=o[2])){if(r>=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return a[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(i="data"+(t-r||""),!n)return i}for(var s=i,l=n.split("/"),u=0;u<l.length;u++){var d=l[u];d&&(i+=c(h(d)),s+=" && "+i)}return s},unescapeFragment:function(e){return h(decodeURIComponent(e))},unescapeJsonPointer:h,escapeFragment:function(e){return encodeURIComponent(m(e))},escapeJsonPointer:m};var n=i(["string","number","integer","boolean","null"]);function i(e){for(var t={},a=0;a<e.length;a++)t[e[a]]=!0;return t}var o=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":o.test(e)?"."+e:"['"+l(e)+"']"}function l(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function u(e){return"'"+l(e)+"'"}var p=/^\/(?:[^~]|~0|~1)*$/,f=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function d(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function m(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function h(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},5701:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,a){for(var r=0;r<a.length;r++){e=JSON.parse(JSON.stringify(e));var n,i=a[r].split("/"),o=e;for(n=1;n<i.length;n++)o=o[i[n]];for(n=0;n<t.length;n++){var s=t[n],c=o[s];c&&(o[s]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},4614:(e,t,a)=>{"use strict";var r=a(8938);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:r.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:r.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},5946:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s;var d="maximum"==t,m=d?"exclusiveMaximum":"exclusiveMinimum",h=e.schema[m],g=e.opts.$data&&h&&h.$data,y=d?"<":">",v=d?">":"<",b=void 0;if(!f&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==h&&"number"!=typeof h&&"boolean"!=typeof h)throw new Error(m+" must be number or boolean");if(g){var P=e.util.getData(h.$data,o,e.dataPathArr),O="exclusive"+i,T="exclType"+i,C="exclIsNumber"+i,S="' + "+(I="op"+i)+" + '";n+=" var schemaExcl"+i+" = "+P+"; ",n+=" var "+O+"; var "+T+" = typeof "+(P="schemaExcl"+i)+"; if ("+T+" != 'boolean' && "+T+" != 'undefined' && "+T+" != 'number') { ";var E;b=m;(E=E||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(n+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),n+=" "+T+" == 'number' ? ( ("+O+" = "+r+" === undefined || "+P+" "+y+"= "+r+") ? "+p+" "+v+"= "+P+" : "+p+" "+v+" "+r+" ) : ( ("+O+" = "+P+" === true) ? "+p+" "+v+"= "+r+" : "+p+" "+v+" "+r+" ) || "+p+" !== "+p+") { var op"+i+" = "+O+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=m,l=e.errSchemaPath+"/"+m,r=P,f=g)}else{S=y;if((C="number"==typeof h)&&f){var I="'"+S+"'";n+=" if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),n+=" ( "+r+" === undefined || "+h+" "+y+"= "+r+" ? "+p+" "+v+"= "+h+" : "+p+" "+v+" "+r+" ) || "+p+" !== "+p+") { "}else{C&&void 0===s?(O=!0,b=m,l=e.errSchemaPath+"/"+m,r=h,v+="="):(C&&(r=Math[d?"min":"max"](h,s)),h===(!C||r)?(O=!0,b=m,l=e.errSchemaPath+"/"+m,v+="="):(O=!1,S+="="));I="'"+S+"'";n+=" if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),n+=" "+p+" "+v+" "+r+" || "+p+" !== "+p+") { "}}b=b||t,(E=E||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+I+", limit: "+r+", exclusive: "+O+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be "+S+" ",n+=f?"' + "+r:r+"'"),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";_=n;return n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n}},953:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;if(f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");n+="if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),n+=" "+p+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var d=t,m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have ",n+="maxItems"==t?"more":"fewer",n+=" than ",n+=f?"' + "+r+" + '":""+s,n+=" items' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var h=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+h+"]); ":n+=" validate.errors = ["+h+"]; return false; ":n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},849:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;if(f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");var d="maxLength"==t?">":"<";n+="if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?n+=" "+p+".length ":n+=" ucs2length("+p+") ",n+=" "+d+" "+r+") { ";var m=t,h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be ",n+="maxLength"==t?"longer":"shorter",n+=" than ",n+=f?"' + "+r+" + '":""+s,n+=" characters' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=h.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},6107:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;if(f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");n+="if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),n+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+r+") { ";var d=t,m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have ",n+="maxProperties"==t?"more":"fewer",n+=" than ",n+=f?"' + "+r+" + '":""+s,n+=" properties' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var h=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+h+"]); ":n+=" validate.errors = ["+h+"]; return false; ":n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},2809:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.schema[t],i=e.schemaPath+e.util.getProperty(t),o=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),l="";c.level++;var u="valid"+c.level,p=c.baseId,f=!0,d=n;if(d)for(var m,h=-1,g=d.length-1;h<g;)m=d[h+=1],(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all))&&(f=!1,c.schema=m,c.schemaPath=i+"["+h+"]",c.errSchemaPath=o+"/"+h,r+=" "+e.validate(c)+" ",c.baseId=p,s&&(r+=" if ("+u+") { ",l+="}"));return s&&(r+=f?" if (true) { ":" "+l.slice(0,-1)+" "),r}},3407:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f="errs__"+n,d=e.util.copy(e),m="";d.level++;var h="valid"+d.level;if(o.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}))){var g=d.baseId;r+=" var "+f+" = errors; var "+p+" = false; ";var y=e.compositeRule;e.compositeRule=d.compositeRule=!0;var v=o;if(v)for(var b,P=-1,O=v.length-1;P<O;)b=v[P+=1],d.schema=b,d.schemaPath=s+"["+P+"]",d.errSchemaPath=c+"/"+P,r+=" "+e.validate(d)+" ",d.baseId=g,r+=" "+p+" = "+p+" || "+h+"; if (!"+p+") { ",m+="}";e.compositeRule=d.compositeRule=y,r+=" "+m+" if (!"+p+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else l&&(r+=" if (true) { ");return r}},8667:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.schema[t],i=e.errSchemaPath+"/"+t,o=(e.opts.allErrors,e.util.toQuotedString(n));return!0===e.opts.$comment?r+=" console.log("+o+");":"function"==typeof e.opts.$comment&&(r+=" self._opts.$comment("+o+", "+e.util.toQuotedString(i)+", validate.root.schema);"),r}},737:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f=e.opts.$data&&o&&o.$data;f&&(r+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; "),f||(r+=" var schema"+n+" = validate.schema"+s+";"),r+="var "+p+" = equal("+u+", schema"+n+"); if (!"+p+") { ";var d=d||[];d.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+n+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to constant' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var m=r;return r=d.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+m+"]); ":r+=" validate.errors = ["+m+"]; return false; ":r+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",l&&(r+=" else { "),r}},5894:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f="errs__"+n,d=e.util.copy(e);d.level++;var m="valid"+d.level,h="i"+n,g=d.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all);if(r+="var "+f+" = errors;var "+p+";",b){var P=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=o,d.schemaPath=s,d.errSchemaPath=c,r+=" var "+m+" = false; for (var "+h+" = 0; "+h+" < "+u+".length; "+h+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers,!0);var O=u+"["+h+"]";d.dataPathArr[g]=h;var T=e.validate(d);d.baseId=v,e.util.varOccurences(T,y)<2?r+=" "+e.util.varReplace(T,y,O)+" ":r+=" var "+y+" = "+O+"; "+T+" ",r+=" if ("+m+") break; } ",e.compositeRule=d.compositeRule=P,r+=" if (!"+m+") {"}else r+=" if ("+u+".length == 0) {";var C=C||[];C.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should contain a valid item' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var S=r;return r=C.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",b&&(r+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(r+=" } "),r}},1120:e=>{"use strict";e.exports=function(e,t,a){var r,n,i=" ",o=e.level,s=e.dataLevel,c=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,f="data"+(s||""),d="valid"+o,m="errs__"+o,h=e.opts.$data&&c&&c.$data;h?(i+=" var schema"+o+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=c;var g,y,v,b,P,O=this,T="definition"+o,C=O.definition,S="";if(h&&C.$data){P="keywordValidate"+o;var E=C.validateSchema;i+=" var "+T+" = RULES.custom['"+t+"'].definition; var "+P+" = "+T+".validate;"}else{if(!(b=e.useCustomRule(O,c,e.schema,e)))return;n="validate.schema"+l,P=b.code,g=C.compile,y=C.inline,v=C.macro}var _=P+".errors",I="i"+o,x="ruleErr"+o,w=C.async;if(w&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(i+=_+" = null;"),i+="var "+m+" = errors;var "+d+";",h&&C.$data&&(S+="}",i+=" if ("+n+" === undefined) { "+d+" = true; } else { ",E&&(S+="}",i+=" "+d+" = "+T+".validateSchema("+n+"); if ("+d+") { ")),y)C.statements?i+=" "+b.validate+" ":i+=" "+d+" = "+b.validate+"; ";else if(v){var F=e.util.copy(e);S="";F.level++;var A="valid"+F.level;F.schema=b.validate,F.schemaPath="";var R=e.compositeRule;e.compositeRule=F.compositeRule=!0;var N=e.validate(F).replace(/validate\.schema/g,P);e.compositeRule=F.compositeRule=R,i+=" "+N}else{(L=L||[]).push(i),i="",i+=" "+P+".call( ",e.opts.passContext?i+="this":i+="self",g||!1===C.schema?i+=" , "+f+" ":i+=" , "+n+" , "+f+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var D=s?"data"+(s-1||""):"parentData",j=s?e.dataPathArr[s]:"parentDataProperty",V=i+=" , "+D+" , "+j+" , rootData ) ";i=L.pop(),!1===C.errors?(i+=" "+d+" = ",w&&(i+="await "),i+=V+"; "):i+=w?" var "+(_="customErrors"+o)+" = null; try { "+d+" = await "+V+"; } catch (e) { "+d+" = false; if (e instanceof ValidationError) "+_+" = e.errors; else throw e; } ":" "+_+" = null; "+d+" = "+V+"; "}if(C.modifying&&(i+=" if ("+D+") "+f+" = "+D+"["+j+"];"),i+=""+S,C.valid)p&&(i+=" if (true) { ");else{var L;i+=" if ( ",void 0===C.valid?(i+=" !",i+=v?""+A:""+d):i+=" "+!C.valid+" ",i+=") { ",r=O.keyword,(L=L||[]).push(i),i="",(L=L||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+O.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+O.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var k=i;i=L.pop(),!e.compositeRule&&p?e.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var M=i;i=L.pop(),y?C.errors?"full"!=C.errors&&(i+=" for (var "+I+"="+m+"; "+I+"<errors; "+I+"++) { var "+x+" = vErrors["+I+"]; if ("+x+".dataPath === undefined) "+x+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+x+".schemaPath === undefined) { "+x+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+x+".schema = "+n+"; "+x+".data = "+f+"; "),i+=" } "):!1===C.errors?i+=" "+M+" ":(i+=" if ("+m+" == errors) { "+M+" } else { for (var "+I+"="+m+"; "+I+"<errors; "+I+"++) { var "+x+" = vErrors["+I+"]; if ("+x+".dataPath === undefined) "+x+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+x+".schemaPath === undefined) { "+x+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+x+".schema = "+n+"; "+x+".data = "+f+"; "),i+=" } } "):v?(i+=" var err = ",!1!==e.createErrors?(i+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+O.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+O.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===C.errors?i+=" "+M+" ":(i+=" if (Array.isArray("+_+")) { if (vErrors === null) vErrors = "+_+"; else vErrors = vErrors.concat("+_+"); errors = vErrors.length; for (var "+I+"="+m+"; "+I+"<errors; "+I+"++) { var "+x+" = vErrors["+I+"]; if ("+x+".dataPath === undefined) "+x+".dataPath = (dataPath || '') + "+e.errorPath+"; "+x+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(i+=" "+x+".schema = "+n+"; "+x+".data = "+f+"; "),i+=" } } else { "+M+" } "),i+=" } ",p&&(i+=" else { ")}return i}},3995:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="errs__"+n,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,h={},g={},y=e.opts.ownProperties;for(O in o)if("__proto__"!=O){var v=o[O],b=Array.isArray(v)?g:h;b[O]=v}r+="var "+p+" = errors;";var P=e.errorPath;for(var O in r+="var missing"+n+";",g)if((b=g[O]).length){if(r+=" if ( "+u+e.util.getProperty(O)+" !== undefined ",y&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(O)+"') "),l){r+=" && ( ";var T=b;if(T)for(var C=-1,S=T.length-1;C<S;){F=T[C+=1],C&&(r+=" || "),r+=" ( ( "+(D=u+(N=e.util.getProperty(F)))+" === undefined ",y&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(F)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?F:N)+") ) "}r+=")) { ";var E="missing"+n,_="' + "+E+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,E,!0):P+" + "+E);var I=I||[];I.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(O)+"', missingProperty: '"+_+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have ",1==b.length?r+="property "+e.util.escapeQuotes(b[0]):r+="properties "+e.util.escapeQuotes(b.join(", ")),r+=" when property "+e.util.escapeQuotes(O)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var x=r;r=I.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+x+"]); ":r+=" validate.errors = ["+x+"]; return false; ":r+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var w=b;if(w)for(var F,A=-1,R=w.length-1;A<R;){F=w[A+=1];var N=e.util.getProperty(F),D=(_=e.util.escapeQuotes(F),u+N);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,F,e.opts.jsonPointers)),r+=" if ( "+D+" === undefined ",y&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(F)+"') "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(O)+"', missingProperty: '"+_+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have ",1==b.length?r+="property "+e.util.escapeQuotes(b[0]):r+="properties "+e.util.escapeQuotes(b.join(", ")),r+=" when property "+e.util.escapeQuotes(O)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",l&&(d+="}",r+=" else { ")}e.errorPath=P;var j=f.baseId;for(var O in h){v=h[O];(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(r+=" "+m+" = true; if ( "+u+e.util.getProperty(O)+" !== undefined ",y&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(O)+"') "),r+=") { ",f.schema=v,f.schemaPath=s+e.util.getProperty(O),f.errSchemaPath=c+"/"+e.util.escapeFragment(O),r+=" "+e.validate(f)+" ",f.baseId=j,r+=" } ",l&&(r+=" if ("+m+") { ",d+="}"))}return l&&(r+=" "+d+" if ("+p+" == errors) {"),r}},6783:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f=e.opts.$data&&o&&o.$data;f&&(r+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ");var d="i"+n,m="schema"+n;f||(r+=" var "+m+" = validate.schema"+s+";"),r+="var "+p+";",f&&(r+=" if (schema"+n+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+n+")) "+p+" = false; else {"),r+=p+" = false;for (var "+d+"=0; "+d+"<"+m+".length; "+d+"++) if (equal("+u+", "+m+"["+d+"])) { "+p+" = true; break; }",f&&(r+=" } "),r+=" if (!"+p+") { ";var h=h||[];h.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+n+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",l&&(r+=" else { "),r}},184:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||"");if(!1===e.opts.format)return l&&(r+=" if (true) { "),r;var p,f=e.opts.$data&&o&&o.$data;f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ",p="schema"+n):p=o;var d=e.opts.unknownFormats,m=Array.isArray(d);if(f){r+=" var "+(h="format"+n)+" = formats["+p+"]; var "+(g="isObject"+n)+" = typeof "+h+" == 'object' && !("+h+" instanceof RegExp) && "+h+".validate; var "+(y="formatType"+n)+" = "+g+" && "+h+".type || 'string'; if ("+g+") { ",e.async&&(r+=" var async"+n+" = "+h+".async; "),r+=" "+h+" = "+h+".validate; } if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),r+=" (","ignore"!=d&&(r+=" ("+p+" && !"+h+" ",m&&(r+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),r+=") || "),r+=" ("+h+" && "+y+" == '"+a+"' && !(typeof "+h+" == 'function' ? ",e.async?r+=" (async"+n+" ? await "+h+"("+u+") : "+h+"("+u+")) ":r+=" "+h+"("+u+") ",r+=" : "+h+".test("+u+"))))) {"}else{var h;if(!(h=e.formats[o])){if("ignore"==d)return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(r+=" if (true) { "),r;if(m&&d.indexOf(o)>=0)return l&&(r+=" if (true) { "),r;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof h&&!(h instanceof RegExp)&&h.validate)&&h.type||"string";if(g){var v=!0===h.async;h=h.validate}if(y!=a)return l&&(r+=" if (true) { "),r;if(v){if(!e.async)throw new Error("async format in sync schema");r+=" if (!(await "+(b="formats"+e.util.getProperty(o)+".validate")+"("+u+"))) { "}else{r+=" if (! ";var b="formats"+e.util.getProperty(o);g&&(b+=".validate"),r+="function"==typeof h?" "+b+"("+u+") ":" "+b+".test("+u+") ",r+=") { "}}var P=P||[];P.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",r+=f?""+p:""+e.util.toQuotedString(o),r+=" } ",!1!==e.opts.messages&&(r+=" , message: 'should match format \"",r+=f?"' + "+p+" + '":""+e.util.escapeQuotes(o),r+="\"' "),e.opts.verbose&&(r+=" , schema: ",r+=f?"validate.schema"+s:""+e.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var O=r;return r=P.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+O+"]); ":r+=" validate.errors = ["+O+"]; return false; ":r+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",l&&(r+=" else { "),r}},555:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f="errs__"+n,d=e.util.copy(e);d.level++;var m="valid"+d.level,h=e.schema.then,g=e.schema.else,y=void 0!==h&&(e.opts.strictKeywords?"object"==typeof h&&Object.keys(h).length>0||!1===h:e.util.schemaHasRules(h,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=d.baseId;if(y||v){var P;d.createErrors=!1,d.schema=o,d.schemaPath=s,d.errSchemaPath=c,r+=" var "+f+" = errors; var "+p+" = true; ";var O=e.compositeRule;e.compositeRule=d.compositeRule=!0,r+=" "+e.validate(d)+" ",d.baseId=b,d.createErrors=!0,r+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=O,y?(r+=" if ("+m+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",r+=" "+e.validate(d)+" ",d.baseId=b,r+=" "+p+" = "+m+"; ",y&&v?r+=" var "+(P="ifClause"+n)+" = 'then'; ":P="'then'",r+=" } ",v&&(r+=" else { ")):r+=" if (!"+m+") { ",v&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",r+=" "+e.validate(d)+" ",d.baseId=b,r+=" "+p+" = "+m+"; ",y&&v?r+=" var "+(P="ifClause"+n)+" = 'else'; ":P="'else'",r+=" } "),r+=" if (!"+p+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+P+" } ",!1!==e.opts.messages&&(r+=" , message: 'should match \"' + "+P+" + '\" schema' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",l&&(r+=" else { ")}else l&&(r+=" if (true) { ");return r}},4478:(e,t,a)=>{"use strict";e.exports={$ref:a(1954),allOf:a(2809),anyOf:a(3407),$comment:a(8667),const:a(737),contains:a(5894),dependencies:a(3995),enum:a(6783),format:a(184),if:a(555),items:a(1244),maximum:a(5946),minimum:a(5946),maxItems:a(953),minItems:a(953),maxLength:a(849),minLength:a(849),maxProperties:a(6107),minProperties:a(6107),multipleOf:a(9159),not:a(3537),oneOf:a(9426),pattern:a(2955),properties:a(5224),propertyNames:a(3194),required:a(395),uniqueItems:a(1628),validate:a(2599)}},1244:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f="errs__"+n,d=e.util.copy(e),m="";d.level++;var h="valid"+d.level,g="i"+n,y=d.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(r+="var "+f+" = errors;var "+p+";",Array.isArray(o)){var P=e.schema.additionalItems;if(!1===P){r+=" "+p+" = "+u+".length <= "+o.length+"; ";var O=c;c=e.errSchemaPath+"/additionalItems",r+=" if (!"+p+") { ";var T=T||[];T.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+o.length+" } ",!1!==e.opts.messages&&(r+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;r=T.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",c=O,l&&(m+="}",r+=" else { ")}var S=o;if(S)for(var E,_=-1,I=S.length-1;_<I;)if(E=S[_+=1],e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all)){r+=" "+h+" = true; if ("+u+".length > "+_+") { ";var x=u+"["+_+"]";d.schema=E,d.schemaPath=s+"["+_+"]",d.errSchemaPath=c+"/"+_,d.errorPath=e.util.getPathExpr(e.errorPath,_,e.opts.jsonPointers,!0),d.dataPathArr[y]=_;var w=e.validate(d);d.baseId=b,e.util.varOccurences(w,v)<2?r+=" "+e.util.varReplace(w,v,x)+" ":r+=" var "+v+" = "+x+"; "+w+" ",r+=" } ",l&&(r+=" if ("+h+") { ",m+="}")}if("object"==typeof P&&(e.opts.strictKeywords?"object"==typeof P&&Object.keys(P).length>0||!1===P:e.util.schemaHasRules(P,e.RULES.all))){d.schema=P,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",r+=" "+h+" = true; if ("+u+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+u+".length; "+g+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);x=u+"["+g+"]";d.dataPathArr[y]=g;w=e.validate(d);d.baseId=b,e.util.varOccurences(w,v)<2?r+=" "+e.util.varReplace(w,v,x)+" ":r+=" var "+v+" = "+x+"; "+w+" ",l&&(r+=" if (!"+h+") break; "),r+=" } } ",l&&(r+=" if ("+h+") { ",m+="}")}}else if(e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){d.schema=o,d.schemaPath=s,d.errSchemaPath=c,r+=" for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);x=u+"["+g+"]";d.dataPathArr[y]=g;w=e.validate(d);d.baseId=b,e.util.varOccurences(w,v)<2?r+=" "+e.util.varReplace(w,v,x)+" ":r+=" var "+v+" = "+x+"; "+w+" ",l&&(r+=" if (!"+h+") break; "),r+=" }"}return l&&(r+=" "+m+" if ("+f+" == errors) {"),r}},9159:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;if(f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");n+="var division"+i+";if (",f&&(n+=" "+r+" !== undefined && ( typeof "+r+" != 'number' || "),n+=" (division"+i+" = "+p+" / "+r+", ",e.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":n+=" division"+i+" !== parseInt(division"+i+") ",n+=" ) ",f&&(n+=" ) "),n+=" ) { ";var d=d||[];d.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+r+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be multiple of ",n+=f?"' + "+r:r+"'"),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var m=n;return n=d.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},3537:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="errs__"+n,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=s,f.errSchemaPath=c,r+=" var "+p+" = errors; ";var m,h=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1,f.opts.allErrors&&(m=f.opts.allErrors,f.opts.allErrors=!1),r+=" "+e.validate(f)+" ",f.createErrors=!0,m&&(f.opts.allErrors=m),e.compositeRule=f.compositeRule=h,r+=" if ("+d+") { ";var g=g||[];g.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var y=r;r=g.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else r+=" var err = ",!1!==e.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(r+=" if (false) { ");return r}},9426:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f="errs__"+n,d=e.util.copy(e),m="";d.level++;var h="valid"+d.level,g=d.baseId,y="prevValid"+n,v="passingSchemas"+n;r+="var "+f+" = errors , "+y+" = false , "+p+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=d.compositeRule=!0;var P=o;if(P)for(var O,T=-1,C=P.length-1;T<C;)O=P[T+=1],(e.opts.strictKeywords?"object"==typeof O&&Object.keys(O).length>0||!1===O:e.util.schemaHasRules(O,e.RULES.all))?(d.schema=O,d.schemaPath=s+"["+T+"]",d.errSchemaPath=c+"/"+T,r+=" "+e.validate(d)+" ",d.baseId=g):r+=" var "+h+" = true; ",T&&(r+=" if ("+h+" && "+y+") { "+p+" = false; "+v+" = ["+v+", "+T+"]; } else { ",m+="}"),r+=" if ("+h+") { "+p+" = "+y+" = true; "+v+" = "+T+"; }";return e.compositeRule=d.compositeRule=b,r+=m+"if (!"+p+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(r+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(r+=" } "),r}},2955:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,n+="if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'string') || "),n+=" !"+(f?"(new RegExp("+r+"))":e.usePattern(s))+".test("+p+") ) { ";var d=d||[];d.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",n+=f?""+r:""+e.util.toQuotedString(s),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match pattern \"",n+=f?"' + "+r+" + '":""+e.util.escapeQuotes(s),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+e.util.toQuotedString(s),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var m=n;return n=d.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},5224:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="errs__"+n,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,h="key"+n,g="idx"+n,y=f.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+n,P=Object.keys(o||{}).filter(N),O=e.schema.patternProperties||{},T=Object.keys(O).filter(N),C=e.schema.additionalProperties,S=P.length||T.length,E=!1===C,_="object"==typeof C&&Object.keys(C).length,I=e.opts.removeAdditional,x=E||_||I,w=e.opts.ownProperties,F=e.baseId,A=e.schema.required;if(A&&(!e.opts.$data||!A.$data)&&A.length<e.opts.loopRequired)var R=e.util.toHash(A);function N(e){return"__proto__"!==e}if(r+="var "+p+" = errors;var "+m+" = true;",w&&(r+=" var "+b+" = undefined;"),x){if(r+=w?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+h+" = "+b+"["+g+"]; ":" for (var "+h+" in "+u+") { ",S){if(r+=" var isAdditional"+n+" = !(false ",P.length)if(P.length>8)r+=" || validate.schema"+s+".hasOwnProperty("+h+") ";else{var D=P;if(D)for(var j=-1,V=D.length-1;j<V;)z=D[j+=1],r+=" || "+h+" == "+e.util.toQuotedString(z)+" "}if(T.length){var L=T;if(L)for(var k=-1,M=L.length-1;k<M;)ie=L[k+=1],r+=" || "+e.usePattern(ie)+".test("+h+") "}r+=" ); if (isAdditional"+n+") { "}if("all"==I)r+=" delete "+u+"["+h+"]; ";else{var $=e.errorPath,U="' + "+h+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers)),E)if(I)r+=" delete "+u+"["+h+"]; ";else{r+=" "+m+" = false; ";var B=c;c=e.errSchemaPath+"/additionalProperties",(ae=ae||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+U+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var K=r;r=ae.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+K+"]); ":r+=" validate.errors = ["+K+"]; return false; ":r+=" var err = "+K+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=B,l&&(r+=" break; ")}else if(_)if("failing"==I){r+=" var "+p+" = errors; ";var Q=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=C,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var H=u+"["+h+"]";f.dataPathArr[y]=h;var J=e.validate(f);f.baseId=F,e.util.varOccurences(J,v)<2?r+=" "+e.util.varReplace(J,v,H)+" ":r+=" var "+v+" = "+H+"; "+J+" ",r+=" if (!"+m+") { errors = "+p+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+h+"]; } ",e.compositeRule=f.compositeRule=Q}else{f.schema=C,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);H=u+"["+h+"]";f.dataPathArr[y]=h;J=e.validate(f);f.baseId=F,e.util.varOccurences(J,v)<2?r+=" "+e.util.varReplace(J,v,H)+" ":r+=" var "+v+" = "+H+"; "+J+" ",l&&(r+=" if (!"+m+") break; ")}e.errorPath=$}S&&(r+=" } "),r+=" } ",l&&(r+=" if ("+m+") { ",d+="}")}var q=e.opts.useDefaults&&!e.compositeRule;if(P.length){var G=P;if(G)for(var z,W=-1,X=G.length-1;W<X;){var Y=o[z=G[W+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){var Z=e.util.getProperty(z),ee=(H=u+Z,q&&void 0!==Y.default);f.schema=Y,f.schemaPath=s+Z,f.errSchemaPath=c+"/"+e.util.escapeFragment(z),f.errorPath=e.util.getPath(e.errorPath,z,e.opts.jsonPointers),f.dataPathArr[y]=e.util.toQuotedString(z);J=e.validate(f);if(f.baseId=F,e.util.varOccurences(J,v)<2){J=e.util.varReplace(J,v,H);var te=H}else{te=v;r+=" var "+v+" = "+H+"; "}if(ee)r+=" "+J+" ";else{if(R&&R[z]){r+=" if ( "+te+" === undefined ",w&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(z)+"') "),r+=") { "+m+" = false; ";$=e.errorPath,B=c;var ae,re=e.util.escapeQuotes(z);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath($,z,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(ae=ae||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+re+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+re+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";K=r;r=ae.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+K+"]); ":r+=" validate.errors = ["+K+"]; return false; ":r+=" var err = "+K+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=B,e.errorPath=$,r+=" } else { "}else l?(r+=" if ( "+te+" === undefined ",w&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(z)+"') "),r+=") { "+m+" = true; } else { "):(r+=" if ("+te+" !== undefined ",w&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(z)+"') "),r+=" ) { ");r+=" "+J+" } "}}l&&(r+=" if ("+m+") { ",d+="}")}}if(T.length){var ne=T;if(ne)for(var ie,oe=-1,se=ne.length-1;oe<se;){Y=O[ie=ne[oe+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){f.schema=Y,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),r+=w?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+h+" = "+b+"["+g+"]; ":" for (var "+h+" in "+u+") { ",r+=" if ("+e.usePattern(ie)+".test("+h+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);H=u+"["+h+"]";f.dataPathArr[y]=h;J=e.validate(f);f.baseId=F,e.util.varOccurences(J,v)<2?r+=" "+e.util.varReplace(J,v,H)+" ":r+=" var "+v+" = "+H+"; "+J+" ",l&&(r+=" if (!"+m+") break; "),r+=" } ",l&&(r+=" else "+m+" = true; "),r+=" } ",l&&(r+=" if ("+m+") { ",d+="}")}}}return l&&(r+=" "+d+" if ("+p+" == errors) {"),r}},3194:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="errs__"+n,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(r+="var "+p+" = errors;",e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=s,f.errSchemaPath=c;var m="key"+n,h="idx"+n,g="i"+n,y="' + "+m+" + '",v="data"+(f.dataLevel=e.dataLevel+1),b="dataProperties"+n,P=e.opts.ownProperties,O=e.baseId;P&&(r+=" var "+b+" = undefined; "),r+=P?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+h+"=0; "+h+"<"+b+".length; "+h+"++) { var "+m+" = "+b+"["+h+"]; ":" for (var "+m+" in "+u+") { ",r+=" var startErrs"+n+" = errors; ";var T=m,C=e.compositeRule;e.compositeRule=f.compositeRule=!0;var S=e.validate(f);f.baseId=O,e.util.varOccurences(S,v)<2?r+=" "+e.util.varReplace(S,v,T)+" ":r+=" var "+v+" = "+T+"; "+S+" ",e.compositeRule=f.compositeRule=C,r+=" if (!"+d+") { for (var "+g+"=startErrs"+n+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+m+"; } var err = ",!1!==e.createErrors?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+y+"' } ",!1!==e.opts.messages&&(r+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),l&&(r+=" break; "),r+=" } }"}return l&&(r+=" if ("+p+" == errors) {"),r}},1954:e=>{"use strict";e.exports=function(e,t,a){var r,n,i=" ",o=e.level,s=e.dataLevel,c=e.schema[t],l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(s||""),f="valid"+o;if("#"==c||"#/"==c)e.isRoot?(r=e.async,n="validate"):(r=!0===e.root.schema.$async,n="root.refVal[0]");else{var d=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===d){var m=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(m),(v=v||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var h=i;i=v.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+h+"]); ":i+=" validate.errors = ["+h+"]; return false; ":i+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,m);e.logger.warn(m),u&&(i+=" if (true) { ")}}else if(d.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=d.schema,g.schemaPath="",g.errSchemaPath=c,i+=" "+e.validate(g).replace(/validate\.schema/g,d.code)+" ",u&&(i+=" if ("+y+") { ")}else r=!0===d.$async||e.async&&!1!==d.$async,n=d.code}if(n){var v;(v=v||[]).push(i),i="",e.opts.passContext?i+=" "+n+".call(this, ":i+=" "+n+"( ",i+=" "+p+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var b=i+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(i=v.pop(),r){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(i+=" var "+f+"; "),i+=" try { await "+b+"; ",u&&(i+=" "+f+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(i+=" "+f+" = false; "),i+=" } ",u&&(i+=" if ("+f+") { ")}else i+=" if (!"+b+") { if (vErrors === null) vErrors = "+n+".errors; else vErrors = vErrors.concat("+n+".errors); errors = vErrors.length; } ",u&&(i+=" else { ")}return i}},395:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f=e.opts.$data&&o&&o.$data;f&&(r+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ");var d="schema"+n;if(!f)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[],h=o;if(h)for(var g,y=-1,v=h.length-1;y<v;){g=h[y+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(m[m.length]=g)}}else m=o;if(f||m.length){var P=e.errorPath,O=f||m.length>=e.opts.loopRequired,T=e.opts.ownProperties;if(l)if(r+=" var missing"+n+"; ",O){f||(r+=" var "+d+" = validate.schema"+s+"; ");var C="' + "+(w="schema"+n+"["+(_="i"+n)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,w,e.opts.jsonPointers)),r+=" var "+p+" = true; ",f&&(r+=" if (schema"+n+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+n+")) "+p+" = false; else {"),r+=" for (var "+_+" = 0; "+_+" < "+d+".length; "+_+"++) { "+p+" = "+u+"["+d+"["+_+"]] !== undefined ",T&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", "+d+"["+_+"]) "),r+="; if (!"+p+") break; } ",f&&(r+=" } "),r+=" if (!"+p+") { ",(x=x||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var S=r;r=x.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var E=m;if(E)for(var _=-1,I=E.length-1;_<I;){A=E[_+=1],_&&(r+=" || "),r+=" ( ( "+(j=u+(D=e.util.getProperty(A)))+" === undefined ",T&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?A:D)+") ) "}r+=") { ";var x;C="' + "+(w="missing"+n)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,w,!0):P+" + "+w),(x=x||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";S=r;r=x.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(O){f||(r+=" var "+d+" = validate.schema"+s+"; ");var w;C="' + "+(w="schema"+n+"["+(_="i"+n)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,w,e.opts.jsonPointers)),f&&(r+=" if ("+d+" && !Array.isArray("+d+")) { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+d+" !== undefined) { "),r+=" for (var "+_+" = 0; "+_+" < "+d+".length; "+_+"++) { if ("+u+"["+d+"["+_+"]] === undefined ",T&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+d+"["+_+"]) "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(r+=" } ")}else{var F=m;if(F)for(var A,R=-1,N=F.length-1;R<N;){A=F[R+=1];var D=e.util.getProperty(A),j=(C=e.util.escapeQuotes(A),u+D);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,A,e.opts.jsonPointers)),r+=" if ( "+j+" === undefined ",T&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=P}else l&&(r+=" if (true) {");return r}},1628:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f="valid"+i,d=e.opts.$data&&s&&s.$data;if(d?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,(s||d)&&!1!==e.opts.uniqueItems){d&&(n+=" var "+f+"; if ("+r+" === false || "+r+" === undefined) "+f+" = true; else if (typeof "+r+" != 'boolean') "+f+" = false; else { "),n+=" var i = "+p+".length , "+f+" = true , j; if (i > 1) { ";var m=e.schema.items&&e.schema.items.type,h=Array.isArray(m);if(!m||"object"==m||"array"==m||h&&(m.indexOf("object")>=0||m.indexOf("array")>=0))n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+f+" = false; break outer; } } } ";else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var g="checkDataType"+(h?"s":"");n+=" if ("+e.util[g](m,"item",e.opts.strictNumbers,!0)+") continue; ",h&&(n+=" if (typeof item == 'string') item = '\"' + item; "),n+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ",d&&(n+=" } "),n+=" if (!"+f+") { ";var y=y||[];y.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var v=n;n=y.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n}},2599:e=>{"use strict";e.exports=function(e,t,a){var r="",n=!0===e.schema.$async,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(r+=" var validate = ",n&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" /*# sourceURL="+o+" */ ")),"boolean"==typeof e.schema||!i&&!e.schema.$ref){t="false schema";var l=e.level,u=e.dataLevel,p=e.schema[t],f=e.schemaPath+e.util.getProperty(t),d=e.errSchemaPath+"/"+t,m=!e.opts.allErrors,h="data"+(u||""),g="valid"+l;if(!1===e.schema){e.isTop?m=!0:r+=" var "+g+" = false; ",(W=W||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";var y=r;r=W.pop(),!e.compositeRule&&m?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?r+=n?" return data; ":" validate.errors = null; return true; ":r+=" var "+g+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var v=e.isTop;l=e.level=0,u=e.dataLevel=0,h="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{l=e.level,h="data"+((u=e.dataLevel)||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+l+" = errors;"}g="valid"+l,m=!e.opts.allErrors;var P="",O="",T=e.schema.type,C=Array.isArray(T);if(T&&e.opts.nullable&&!0===e.schema.nullable&&(C?-1==T.indexOf("null")&&(T=T.concat("null")):"null"!=T&&(T=[T,"null"],C=!0)),C&&1==T.length&&(T=T[0],C=!1),e.schema.$ref&&i){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(i=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),T){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,T);var E=e.RULES.types[T];if(S||C||!0===E||E&&!X(E)){f=e.schemaPath+".type",d=e.errSchemaPath+"/type",f=e.schemaPath+".type",d=e.errSchemaPath+"/type";var _=C?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[_](T,h,e.opts.strictNumbers,!0)+") { ",S){var I="dataType"+l,x="coerced"+l;r+=" var "+I+" = typeof "+h+"; var "+x+" = undefined; ","array"==e.opts.coerceTypes&&(r+=" if ("+I+" == 'object' && Array.isArray("+h+") && "+h+".length == 1) { "+h+" = "+h+"[0]; "+I+" = typeof "+h+"; if ("+e.util.checkDataType(e.schema.type,h,e.opts.strictNumbers)+") "+x+" = "+h+"; } "),r+=" if ("+x+" !== undefined) ; ";var w=S;if(w)for(var F,A=-1,R=w.length-1;A<R;)"string"==(F=w[A+=1])?r+=" else if ("+I+" == 'number' || "+I+" == 'boolean') "+x+" = '' + "+h+"; else if ("+h+" === null) "+x+" = ''; ":"number"==F||"integer"==F?(r+=" else if ("+I+" == 'boolean' || "+h+" === null || ("+I+" == 'string' && "+h+" && "+h+" == +"+h+" ","integer"==F&&(r+=" && !("+h+" % 1)"),r+=")) "+x+" = +"+h+"; "):"boolean"==F?r+=" else if ("+h+" === 'false' || "+h+" === 0 || "+h+" === null) "+x+" = false; else if ("+h+" === 'true' || "+h+" === 1) "+x+" = true; ":"null"==F?r+=" else if ("+h+" === '' || "+h+" === 0 || "+h+" === false) "+x+" = null; ":"array"==e.opts.coerceTypes&&"array"==F&&(r+=" else if ("+I+" == 'string' || "+I+" == 'number' || "+I+" == 'boolean' || "+h+" == null) "+x+" = ["+h+"]; ");r+=" else { ",(W=W||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=C?""+T.join(","):""+T,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=C?""+T.join(","):""+T,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";y=r;r=W.pop(),!e.compositeRule&&m?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+x+" !== undefined) { ";var N=u?"data"+(u-1||""):"parentData";r+=" "+h+" = "+x+"; ",u||(r+="if ("+N+" !== undefined)"),r+=" "+N+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+x+"; } "}else{(W=W||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=C?""+T.join(","):""+T,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=C?""+T.join(","):""+T,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";y=r;r=W.pop(),!e.compositeRule&&m?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!i)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",m&&(r+=" } if (errors === ",r+=v?"0":"errs_"+l,r+=") { ",O+="}");else{var D=e.RULES;if(D)for(var j=-1,V=D.length-1;j<V;)if(X(E=D[j+=1])){if(E.type&&(r+=" if ("+e.util.checkDataType(E.type,h,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==E.type&&e.schema.properties){p=e.schema.properties;var L=Object.keys(p);if(L)for(var k,M=-1,$=L.length-1;M<$;){if(void 0!==(K=p[k=L[M+=1]]).default){var U=h+e.util.getProperty(k);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+U;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else r+=" if ("+U+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+U+" === null || "+U+" === '' "),r+=" ) "+U+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(K.default)+" ":r+=" "+JSON.stringify(K.default)+" ",r+="; "}}}else if("array"==E.type&&Array.isArray(e.schema.items)){var B=e.schema.items;if(B){A=-1;for(var K,Q=B.length-1;A<Q;)if(void 0!==(K=B[A+=1]).default){U=h+"["+A+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+U;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else r+=" if ("+U+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+U+" === null || "+U+" === '' "),r+=" ) "+U+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(K.default)+" ":r+=" "+JSON.stringify(K.default)+" ",r+="; "}}}var H=E.rules;if(H)for(var J,q=-1,G=H.length-1;q<G;)if(Y(J=H[q+=1])){var z=J.code(e,J.keyword,E.type);z&&(r+=" "+z+" ",m&&(P+="}"))}if(m&&(r+=" "+P+" ",P=""),E.type&&(r+=" } ",T&&T===E.type&&!S)){r+=" else { ";var W;f=e.schemaPath+".type",d=e.errSchemaPath+"/type";(W=W||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=C?""+T.join(","):""+T,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=C?""+T.join(","):""+T,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";y=r;r=W.pop(),!e.compositeRule&&m?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}m&&(r+=" if (errors === ",r+=v?"0":"errs_"+l,r+=") { ",O+="}")}}function X(e){for(var t=e.rules,a=0;a<t.length;a++)if(Y(t[a]))return!0}function Y(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var a=t.implements,r=0;r<a.length;r++)if(void 0!==e.schema[a[r]])return!0}(t)}return m&&(r+=" "+O+" "),v?(n?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+g+" = errors === errs_"+l+";",r}},6019:(e,t,a)=>{"use strict";var r=/^[a-z_$][a-z0-9_$-]*$/i,n=a(1120),i=a(4614);e.exports={add:function(e,t){var a=this.RULES;if(a.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!r.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var i=t.type;if(Array.isArray(i))for(var o=0;o<i.length;o++)c(e,i[o],t);else c(e,i,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function c(e,t,r){for(var i,o=0;o<a.length;o++){var s=a[o];if(s.type==t){i=s;break}}i||(i={type:t,rules:[]},a.push(i));var c={keyword:e,definition:r,custom:!0,code:n,implements:r.implements};i.rules.push(c),a.custom[e]=c}return a.keywords[e]=a.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var a=0;a<t.length;a++)for(var r=t[a].rules,n=0;n<r.length;n++)if(r[n].keyword==e){r.splice(n,1);break}return this},validate:function e(t,a){e.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(r(t))return!0;if(e.errors=r.errors,a)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}}},4225:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===a}(e)}(e)};var a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((a=e,Array.isArray(a)?[]:{}),e,t):e;var a}function n(e,t,a){return e.concat(t).map((function(e){return r(e,a)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function s(e,t,a){var n={};return a.isMergeableObject(e)&&i(e).forEach((function(t){n[t]=r(e[t],a)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&a.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return c;var a=t.customMerge(e);return"function"==typeof a?a:c}(i,a)(e[i],t[i],a):n[i]=r(t[i],a))})),n}function c(e,a,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var o=Array.isArray(a);return o===Array.isArray(e)?o?i.arrayMerge(e,a,i):s(e,a,i):r(a,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,a){return c(e,a,t)}),{})};var l=c;e.exports=l},5179:(e,t,a)=>{"use strict";var r=a(5747),n=a(5622),i=a(2781),o=!1,s=a(7740).i8,c="locals",l=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],u=l.concat("cache"),p=/^\uFEFF/;function f(e,a){var n;if(a.some((function(a){return n=t.resolveInclude(e,a,!0),r.existsSync(n)})))return n}function d(e,a){var r,n=e.filename,i=arguments.length>1;if(e.cache){if(!n)throw new Error("cache option requires a filename");if(r=t.cache.get(n))return r;i||(a=h(n).toString().replace(p,""))}else if(!i){if(!n)throw new Error("Internal EJS error: no file name or template provided");a=h(n).toString().replace(p,"")}return r=t.compile(a,e),e.cache&&t.cache.set(n,r),r}function m(e,a,r){var n;if(!r){if("function"==typeof t.promiseImpl)return new t.promiseImpl((function(t,r){try{t(n=d(e)(a))}catch(e){r(e)}}));throw new Error("Please provide a callback function")}try{n=d(e)(a)}catch(e){return r(e)}r(null,n)}function h(e){return t.fileLoader(e)}function g(e,a){var n=i.shallowCopy({},a);if(n.filename=function(e,a){var n,i,o=a.views,s=/^[A-Za-z]+:\\|^\//.exec(e);if(s&&s.length)e=e.replace(/^\/*/,""),n=Array.isArray(a.root)?f(e,a.root):t.resolveInclude(e,a.root||"/",!0);else if(a.filename&&(i=t.resolveInclude(e,a.filename),r.existsSync(i)&&(n=i)),!n&&Array.isArray(o)&&(n=f(e,o)),!n&&"function"!=typeof a.includer)throw new Error('Could not find the include file "'+a.escapeFunction(e)+'"');return n}(e,n),"function"==typeof a.includer){var o=a.includer(e,n.filename);if(o&&(o.filename&&(n.filename=o.filename),o.template))return d(n,o.template)}return d(n)}function y(e,t,a,r,n){var i=t.split("\n"),o=Math.max(r-3,0),s=Math.min(i.length,r+3),c=n(a),l=i.slice(o,s).map((function(e,t){var a=t+o+1;return(a==r?" >> ":" ")+a+"| "+e})).join("\n");throw e.path=c,e.message=(c||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e}function v(e){return e.replace(/;(\s*$)/,"$1")}function b(e,a){a=a||{};var r={};this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",r.client=a.client||!1,r.escapeFunction=a.escape||a.escapeFunction||i.escapeXML,r.compileDebug=!1!==a.compileDebug,r.debug=!!a.debug,r.filename=a.filename,r.openDelimiter=a.openDelimiter||t.openDelimiter||"<",r.closeDelimiter=a.closeDelimiter||t.closeDelimiter||">",r.delimiter=a.delimiter||t.delimiter||"%",r.strict=a.strict||!1,r.context=a.context,r.cache=a.cache||!1,r.rmWhitespace=a.rmWhitespace,r.root=a.root,r.includer=a.includer,r.outputFunctionName=a.outputFunctionName,r.localsName=a.localsName||t.localsName||c,r.views=a.views,r.async=a.async,r.destructuredLocals=a.destructuredLocals,r.legacyInclude=void 0===a.legacyInclude||!!a.legacyInclude,r.strict?r._with=!1:r._with=void 0===a._with||a._with,this.opts=r,this.regex=this.createRegex()}t.cache=i.cache,t.fileLoader=r.readFileSync,t.localsName=c,t.promiseImpl=new Function("return this;")().Promise,t.resolveInclude=function(e,t,a){var r=n.dirname,i=n.extname,o=(0,n.resolve)(a?t:r(t),e);return i(e)||(o+=".ejs"),o},t.compile=function(e,t){return t&&t.scope&&(o||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),o=!0),t.context||(t.context=t.scope),delete t.scope),new b(e,t).compile()},t.render=function(e,t,a){var r=t||{},n=a||{};return 2==arguments.length&&i.shallowCopyFromList(n,r,l),d(n,e)(r)},t.renderFile=function(){var e,t,a,r=Array.prototype.slice.call(arguments),n=r.shift(),o={filename:n};return"function"==typeof arguments[arguments.length-1]&&(e=r.pop()),r.length?(t=r.shift(),r.length?i.shallowCopy(o,r.pop()):(t.settings&&(t.settings.views&&(o.views=t.settings.views),t.settings["view cache"]&&(o.cache=!0),(a=t.settings["view options"])&&i.shallowCopy(o,a)),i.shallowCopyFromList(o,t,u)),o.filename=n):t={},m(o,t,e)},t.Template=b,t.clearCache=function(){t.cache.reset()},b.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"},b.prototype={createRegex:function(){var e="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",t=i.escapeRegExpChars(this.opts.delimiter),a=i.escapeRegExpChars(this.opts.openDelimiter),r=i.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,a).replace(/>/g,r),new RegExp(e)},compile:function(){var e,t,a,r=this.opts,o="",s="",c=r.escapeFunction,l=r.filename?JSON.stringify(r.filename):"undefined";if(!this.source){if(this.generateSource(),o+=' var __output = "";\n function __append(s) { if (s !== undefined && s !== null) __output += s }\n',r.outputFunctionName&&(o+=" var "+r.outputFunctionName+" = __append;\n"),r.destructuredLocals&&r.destructuredLocals.length){for(var u=" var __locals = ("+r.localsName+" || {}),\n",p=0;p<r.destructuredLocals.length;p++){var f=r.destructuredLocals[p];p>0&&(u+=",\n "),u+=f+" = __locals."+f}o+=u+";\n"}!1!==r._with&&(o+=" with ("+r.localsName+" || {}) {\n",s+=" }\n"),s+=" return __output;\n",this.source=o+this.source+s}e=r.compileDebug?"var __line = 1\n , __lines = "+JSON.stringify(this.templateText)+"\n , __filename = "+l+";\ntry {\n"+this.source+"} catch (e) {\n rethrow(e, __lines, __filename, __line, escapeFn);\n}\n":this.source,r.client&&(e="escapeFn = escapeFn || "+c.toString()+";\n"+e,r.compileDebug&&(e="rethrow = rethrow || "+y.toString()+";\n"+e)),r.strict&&(e='"use strict";\n'+e),r.debug&&console.log(e),r.compileDebug&&r.filename&&(e=e+"\n//# sourceURL="+l+"\n");try{if(r.async)try{a=new Function("return (async function(){}).constructor;")()}catch(e){throw e instanceof SyntaxError?new Error("This environment does not support async/await"):e}else a=Function;t=new a(r.localsName+", escapeFn, include, rethrow",e)}catch(e){throw e instanceof SyntaxError&&(r.filename&&(e.message+=" in "+r.filename),e.message+=" while compiling ejs\n\n",e.message+="If the above error is not helpful, you may want to try EJS-Lint:\n",e.message+="https://github.com/RyanZim/EJS-Lint",r.async||(e.message+="\n",e.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),e}var d=r.client?t:function(e){return t.apply(r.context,[e||{},c,function(t,a){var n=i.shallowCopy({},e);return a&&(n=i.shallowCopy(n,a)),g(t,r)(n)},y])};if(r.filename&&"function"==typeof Object.defineProperty){var m=r.filename,h=n.basename(m,n.extname(m));try{Object.defineProperty(d,"name",{value:h,writable:!1,enumerable:!1,configurable:!0})}catch(e){}}return d},generateSource:function(){this.opts.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,"\n").replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var e=this,t=this.parseTemplateText(),a=this.opts.delimiter,r=this.opts.openDelimiter,n=this.opts.closeDelimiter;t&&t.length&&t.forEach((function(i,o){var s;if(0===i.indexOf(r+a)&&0!==i.indexOf(r+a+a)&&(s=t[o+2])!=a+n&&s!="-"+a+n&&s!="_"+a+n)throw new Error('Could not find matching close tag for "'+i+'".');e.scanLine(i)}))},parseTemplateText:function(){for(var e,t=this.templateText,a=this.regex,r=a.exec(t),n=[];r;)0!==(e=r.index)&&(n.push(t.substring(0,e)),t=t.slice(e)),n.push(r[0]),t=t.slice(r[0].length),r=a.exec(t);return t&&n.push(t),n},_addOutput:function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=(e=(e=(e=e.replace(/\\/g,"\\\\")).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/"/g,'\\"'),this.source+=' ; __append("'+e+'")\n'},scanLine:function(e){var t,a=this.opts.delimiter,r=this.opts.openDelimiter,n=this.opts.closeDelimiter;switch(t=e.split("\n").length-1,e){case r+a:case r+a+"_":this.mode=b.modes.EVAL;break;case r+a+"=":this.mode=b.modes.ESCAPED;break;case r+a+"-":this.mode=b.modes.RAW;break;case r+a+"#":this.mode=b.modes.COMMENT;break;case r+a+a:this.mode=b.modes.LITERAL,this.source+=' ; __append("'+e.replace(r+a+a,r+a)+'")\n';break;case a+a+n:this.mode=b.modes.LITERAL,this.source+=' ; __append("'+e.replace(a+a+n,a+n)+'")\n';break;case a+n:case"-"+a+n:case"_"+a+n:this.mode==b.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=0===e.indexOf("-")||0===e.indexOf("_");break;default:if(this.mode){switch(this.mode){case b.modes.EVAL:case b.modes.ESCAPED:case b.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf("\n")&&(e+="\n")}switch(this.mode){case b.modes.EVAL:this.source+=" ; "+e+"\n";break;case b.modes.ESCAPED:this.source+=" ; __append(escapeFn("+v(e)+"))\n";break;case b.modes.RAW:this.source+=" ; __append("+v(e)+")\n";break;case b.modes.COMMENT:break;case b.modes.LITERAL:this._addOutput(e)}}else this._addOutput(e)}this.opts.compileDebug&&t&&(this.currentLine+=t,this.source+=" ; __line = "+this.currentLine+"\n")}},t.escapeXML=i.escapeXML,t.__express=t.renderFile,t.VERSION=s,t.name="ejs","undefined"!=typeof window&&(window.ejs=t)},2781:(e,t)=>{"use strict";var a=/[|\\{}()[\]^$+*?.]/g;t.escapeRegExpChars=function(e){return e?String(e).replace(a,"\\$&"):""};var r={"&":"&","<":"<",">":">",'"':""","'":"'"},n=/[&<>'"]/g;function i(e){return r[e]||e}t.escapeXML=function(e){return null==e?"":String(e).replace(n,i)},t.escapeXML.toString=function(){return Function.prototype.toString.call(this)+';\nvar _ENCODE_HTML_RULES = {\n "&": "&"\n , "<": "<"\n , ">": ">"\n , \'"\': """\n , "\'": "'"\n }\n , _MATCH_HTML = /[&<>\'"]/g;\nfunction encode_char(c) {\n return _ENCODE_HTML_RULES[c] || c;\n};\n'},t.shallowCopy=function(e,t){for(var a in t=t||{})e[a]=t[a];return e},t.shallowCopyFromList=function(e,t,a){for(var r=0;r<a.length;r++){var n=a[r];void 0!==t[n]&&(e[n]=t[n])}return e},t.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}},t.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,(function(e){return e[1].toUpperCase()}))}},8926:e=>{"use strict";e.exports=function e(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var r,n,i;if(Array.isArray(t)){if((r=t.length)!=a.length)return!1;for(n=r;0!=n--;)if(!e(t[n],a[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(a,i[n]))return!1;for(n=r;0!=n--;){var o=i[n];if(!e(t[o],a[o]))return!1}return!0}return t!=t&&a!=a}},9003:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var a,r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(a=t.cmp,function(e){return function(t,r){var n={key:t,value:e[t]},i={key:r,value:e[r]};return a(n,i)}}),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var a,o;if(Array.isArray(t)){for(o="[",a=0;a<t.length;a++)a&&(o+=","),o+=e(t[a])||"null";return o+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,c=Object.keys(t).sort(n&&n(t));for(o="",a=0;a<c.length;a++){var l=c[a],u=e(t[l]);u&&(o&&(o+=","),o+=JSON.stringify(l)+":"+u)}return i.splice(s,1),"{"+o+"}"}}(e)}},9154:(e,t,a)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){n(e,t,a[t])}))}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,a){return t&&s(e.prototype,t),a&&s(e,a),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}a.r(t),a.d(t,{default:()=>H});var m={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},h=new(function(){function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.init(t,a)}return c(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||m,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,a,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(a).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),g=function(){function e(){o(this,e),this.observers={}}return c(e,[{key:"on",value:function(e,t){var a=this;return e.split(" ").forEach((function(e){a.observers[e]=a.observers[e]||[],a.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];if(this.observers[e]){var n=[].concat(this.observers[e]);n.forEach((function(e){e.apply(void 0,a)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(a))}))}}}]),e}();function y(){var e,t,a=new Promise((function(a,r){e=a,t=r}));return a.resolve=e,a.reject=t,a}function v(e){return null==e?"":""+e}function b(e,t,a){e.forEach((function(e){t[e]&&(a[e]=t[e])}))}function P(e,t,a){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function n(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(n())return{};var o=r(i.shift());!e[o]&&a&&(e[o]=new a),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return n()?{}:{obj:e,k:r(i.shift())}}function O(e,t,a){var r=P(e,t,Object);r.obj[r.k]=a}function T(e,t){var a=P(e,t),r=a.obj,n=a.k;if(r)return r[n]}function C(e,t,a){var r=T(e,a);return void 0!==r?r:T(t,a)}function S(e,t,a){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?a&&(e[r]=t[r]):S(e[r],t[r],a):e[r]=t[r]);return e}function E(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function I(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return _[e]})):e}var x="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function w(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(a),n=e,i=0;i<r.length;++i){if("string"==typeof n[r[i]]&&i+1<r.length)return;if(void 0===n[r[i]]){for(var o=2,s=r.slice(i,i+o).join(a),c=n[s];void 0===c&&r.length>i+o;)o++,c=n[s=r.slice(i,i+o).join(a)];if(void 0===c)return;if("string"==typeof c)return c;if(s&&"string"==typeof c[s])return c[s];var l=r.slice(i+o).join(a);return l?w(c,l,a):void 0}n=n[r[i]]}return n}}var F=function(e){function t(e){var a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return o(this,t),a=u(this,p(t).call(this)),x&&g.call(l(a)),a.data=e||{},a.options=r,void 0===a.options.keySeparator&&(a.options.keySeparator="."),void 0===a.options.ignoreJSONStructure&&(a.options.ignoreJSONStructure=!0),a}return d(t,e),c(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,o=[e,t];a&&"string"!=typeof a&&(o=o.concat(a)),a&&"string"==typeof a&&(o=o.concat(n?a.split(n):a)),e.indexOf(".")>-1&&(o=e.split("."));var s=T(this.data,o);return s||!i||"string"!=typeof a?s:w(this.data&&this.data[e]&&this.data[e][t],a,n)}},{key:"addResource",value:function(e,t,a,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var o=[e,t];a&&(o=o.concat(i?a.split(i):a)),e.indexOf(".")>-1&&(r=t,t=(o=e.split("."))[1]),this.addNamespaces(t),O(this.data,o,r),n.silent||this.emit("added",e,t,a,r)}},{key:"addResources",value:function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var n in a)"string"!=typeof a[n]&&"[object Array]"!==Object.prototype.toString.apply(a[n])||this.addResource(e,t,n,a[n],{silent:!0});r.silent||this.emit("added",e,t,a)}},{key:"addResourceBundle",value:function(e,t,a,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=a,a=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var c=T(this.data,s)||{};r?S(c,a,n):c=i({},c,a),O(this.data,s,c),o.silent||this.emit("added",e,t,a)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(g),A={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,a,r,n){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,a,r,n))})),t}},R={},N=function(e){function t(e){var a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),a=u(this,p(t).call(this)),x&&g.call(l(a)),b(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,l(a)),a.options=r,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=h.create("translator"),a}return d(t,e),c(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},a=this.resolve(e,t);return a&&void 0!==a.res}},{key:"extractFromKey",value:function(e,t){var a=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===a&&(a=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(a&&e.indexOf(a)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:n};var o=e.split(a);(a!==r||a===r&&this.options.ns.indexOf(o[0])>-1)&&(n=o.shift()),e=o.join(r)}return"string"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:"translate",value:function(e,a,n){var o=this;if("object"!==r(a)&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],a),l=c.key,u=c.namespaces,p=u[u.length-1],f=a.lng||this.language,d=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(d){var m=a.nsSeparator||this.options.nsSeparator;return p+m+l}return l}var h=this.resolve(e,a),g=h&&h.res,y=h&&h.usedKey||l,v=h&&h.exactUsedKey||l,b=Object.prototype.toString.apply(g),P=["[object Number]","[object Function]","[object RegExp]"],O=void 0!==a.joinArrays?a.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,C="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(T&&g&&C&&P.indexOf(b)<0&&("string"!=typeof O||"[object Array]"!==b)){if(!a.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,g,i({},a,{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(s){var S="[object Array]"===b,E=S?[]:{},_=S?v:y;for(var I in g)if(Object.prototype.hasOwnProperty.call(g,I)){var x="".concat(_).concat(s).concat(I);E[I]=this.translate(x,i({},a,{joinArrays:!1,ns:u})),E[I]===x&&(E[I]=g[I])}g=E}}else if(T&&"string"==typeof O&&"[object Array]"===b)(g=g.join(O))&&(g=this.extendTranslation(g,e,a,n));else{var w=!1,F=!1,A=void 0!==a.count&&"string"!=typeof a.count,R=t.hasDefaultValue(a),N=A?this.pluralResolver.getSuffix(f,a.count):"",D=a["defaultValue".concat(N)]||a.defaultValue;!this.isValidLookup(g)&&R&&(w=!0,g=D),this.isValidLookup(g)||(F=!0,g=l);var j=R&&D!==g&&this.options.updateMissing;if(F||w||j){if(this.logger.log(j?"updateKey":"missingKey",f,p,l,j?D:g),s){var V=this.resolve(l,i({},a,{keySeparator:!1}));V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if("fallback"===this.options.saveMissingTo&&k&&k[0])for(var M=0;M<k.length;M++)L.push(k[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(a.lng||this.language):L.push(a.lng||this.language);var $=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,p,t,j?r:g,j,a):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,p,t,j?r:g,j,a),o.emit("missingKey",e,p,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){$([e],l+t,a["defaultValue".concat(t)]||D)}))})):$(L,l,D))}g=this.extendTranslation(g,e,a,h,n),F&&g===l&&this.options.appendNamespaceToMissingKey&&(g="".concat(p,":").concat(l)),F&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(e,t,a,r,n){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,a,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(i({},a,{interpolation:i({},this.options.interpolation,a.interpolation)}));var s,c=a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(c){var l=e.match(this.interpolator.nestingRegexp);s=l&&l.length}var u=a.replace&&"string"!=typeof a.replace?a.replace:a;if(this.options.interpolation.defaultVariables&&(u=i({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,a.lng||this.language,a),c){var p=e.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(a.nest=!1)}!1!==a.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n&&n[0]===r[0]&&!a.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}),a)),a.interpolation&&this.interpolator.reset()}var f=a.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==a.applyPostProcessor&&(e=A.handle(d,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},a):a,this)),e}},{key:"resolve",value:function(e){var t,a,r,n,i,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var c=o.extractFromKey(e,s),l=c.key;a=l;var u=c.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var p=void 0!==s.count&&"string"!=typeof s.count,f=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,d=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);u.forEach((function(e){o.isValidLookup(t)||(i=e,!R["".concat(d[0],"-").concat(e)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(i)&&(R["".concat(d[0],"-").concat(e)]=!0,o.logger.warn('key "'.concat(a,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(a){if(!o.isValidLookup(t)){n=a;var i,c,u=l,d=[u];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(d,l,a,e,s);else p&&(i=o.pluralResolver.getSuffix(a,s.count)),p&&f&&d.push(u+i),f&&d.push(u+="".concat(o.options.contextSeparator).concat(s.context)),p&&d.push(u+=i);for(;c=d.pop();)o.isValidLookup(t)||(r=c,t=o.getResource(a,e,c,s))}})))}))}})),{res:t,usedKey:a,exactUsedKey:r,usedLng:n,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,a,r):this.resourceStore.getResource(e,t,a,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t===a.substring(0,t.length)&&void 0!==e[a])return!0;return!1}}]),t}(g);function D(e){return e.charAt(0).toUpperCase()+e.slice(1)}var j=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=h.create("languageUtils")}return c(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],a=e.split("-");return this.options.lowerCaseLng?a=a.map((function(e){return e.toLowerCase()})):2===a.length?(a[0]=a[0].toLowerCase(),a[1]=a[1].toUpperCase(),t.indexOf(a[1].toLowerCase())>-1&&(a[1]=D(a[1].toLowerCase()))):3===a.length&&(a[0]=a[0].toLowerCase(),2===a[1].length&&(a[1]=a[1].toUpperCase()),"sgn"!==a[0]&&2===a[2].length&&(a[2]=a[2].toUpperCase()),t.indexOf(a[1].toLowerCase())>-1&&(a[1]=D(a[1].toLowerCase())),t.indexOf(a[2].toLowerCase())>-1&&(a[2]=D(a[2].toLowerCase()))),a.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,a=this;return e?(e.forEach((function(e){if(!t){var r=a.formatLanguageCode(e);a.options.supportedLngs&&!a.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=a.getLanguagePartFromCode(e);if(a.isSupportedCode(r))return t=r;t=a.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var a=e[t];return a||(a=e[this.getScriptPartFromCode(t)]),a||(a=e[this.formatLanguageCode(t)]),a||(a=e[this.getLanguagePartFromCode(t)]),a||(a=e.default),a||[]}},{key:"toResolveHierarchy",value:function(e,t){var a=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],i=function(e){e&&(a.isSupportedCode(e)?n.push(e):a.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){n.indexOf(e)<0&&i(a.formatLanguageCode(e))})),n}}]),e}(),V=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],L={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function k(){var e={};return V.forEach((function(t){t.lngs.forEach((function(a){e[a]={numbers:t.nr,plurals:L[t.fc]}}))})),e}var M=function(){function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.languageUtils=t,this.options=a,this.logger=h.create("pluralResolver"),this.rules=k()}return c(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,a=this.getRule(e);return a?a.numbers.map((function(a){return t.getSuffix(e,a)})):[]}},{key:"getSuffix",value:function(e,t){var a=this,r=this.getRule(e);if(r){var n=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[n];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return a.options.prepend&&i.toString()?a.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),$=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.logger=h.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return c(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:I,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?E(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?E(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?E(t.nestingPrefix):t.nestingPrefixEscaped||E("$t("),this.nestingSuffix=t.nestingSuffix?E(t.nestingSuffix):t.nestingSuffixEscaped||E(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var a="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(a,"g")}},{key:"interpolate",value:function(e,t,a,r){var n,o,s,c=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var p=function(e){if(e.indexOf(c.formatSeparator)<0){var n=C(t,l,e);return c.alwaysFormat?c.format(n,void 0,a,i({},r,t,{interpolationkey:e})):n}var o=e.split(c.formatSeparator),s=o.shift().trim(),u=o.join(c.formatSeparator).trim();return c.format(C(t,l,s),u,a,i({},r,t,{interpolationkey:s}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return c.escapeValue?u(c.escape(e)):u(e)}}].forEach((function(t){for(s=0;n=t.regex.exec(e);){if(void 0===(o=p(n[1].trim())))if("function"==typeof f){var a=f(e,n,r);o="string"==typeof a?a:""}else{if(d){o=n[0];continue}c.logger.warn("missed to pass in variable ".concat(n[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||c.useRawValueToEscape||(o=v(o));var i=t.safeValue(o);if(e=e.replace(n[0],i),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=n[0].length):t.regex.lastIndex=0,++s>=c.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var a,r,n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i({},o);function c(e,t){var a=this.nestingOptionsSeparator;if(e.indexOf(a)<0)return e;var r=e.split(new RegExp("".concat(a,"[ ]*{"))),n="{".concat(r[1]);e=r[0],n=(n=this.interpolate(n,s)).replace(/'/g,'"');try{s=JSON.parse(n),t&&(s=i({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(a).concat(n)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;a=this.nestingRegexp.exec(e);){var l=[],u=!1;if(-1!==a[0].indexOf(this.formatSeparator)&&!/{.*}/.test(a[1])){var p=a[1].split(this.formatSeparator).map((function(e){return e.trim()}));a[1]=p.shift(),l=p,u=!0}if((r=t(c.call(this,a[1].trim(),s),s))&&a[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=v(r)),r||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce((function(e,t){return n.format(e,t,o.lng,i({},o,{interpolationkey:a[1].trim()}))}),r.trim())),e=e.replace(a[0],r),this.regexp.lastIndex=0}return e}}]),e}();var U=function(e){function t(e,a,r){var n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),n=u(this,p(t).call(this)),x&&g.call(l(n)),n.backend=e,n.store=a,n.services=r,n.languageUtils=r.languageUtils,n.options=i,n.logger=h.create("backendConnector"),n.state={},n.queue=[],n.backend&&n.backend.init&&n.backend.init(r,i.backend,i),n}return d(t,e),c(t,[{key:"queueLoad",value:function(e,t,a,r){var n=this,i=[],o=[],s=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!a.reload&&n.store.hasResourceBundle(e,t)?n.state[s]=2:n.state[s]<0||(1===n.state[s]?o.indexOf(s)<0&&o.push(s):(n.state[s]=1,r=!1,o.indexOf(s)<0&&o.push(s),i.indexOf(s)<0&&i.push(s),c.indexOf(t)<0&&c.push(t)))})),r||s.push(e)})),(i.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:r}),{toLoad:i,pending:o,toLoadLanguages:s,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,a){var r=e.split("|"),n=r[0],i=r[1];t&&this.emit("failedLoading",n,i,t),a&&this.store.addResourceBundle(n,i,a),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(a){var r,s,c,l,u,p;r=a.loaded,s=i,l=P(r,[n],Object),u=l.obj,p=l.k,u[p]=u[p]||[],c&&(u[p]=u[p].concat(s)),c||u[p].push(s),function(e,t){for(var a=e.indexOf(t);-1!==a;)e.splice(a,1),a=e.indexOf(t)}(a.pending,e),t&&a.errors.push(t),0!==a.pending.length||a.done||(Object.keys(a.loaded).forEach((function(e){o[e]||(o[e]=[]),a.loaded[e].length&&a.loaded[e].forEach((function(t){o[e].indexOf(t)<0&&o[e].push(t)}))})),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())})),this.emit("loaded",o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,a){var r=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[a](e,t,(function(s,c){s&&c&&n<5?setTimeout((function(){r.read.call(r,e,t,a,n+1,2*i,o)}),i):o(s,c)})):o(null,{})}},{key:"prepareLoading",value:function(e,t){var a=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach((function(e){a.loadOne(e)}))}},{key:"load",value:function(e,t,a){this.prepareLoading(e,t,{},a)}},{key:"reload",value:function(e,t,a){this.prepareLoading(e,t,{reload:!0},a)}},{key:"loadOne",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(function(r,o){r&&t.logger.warn("".concat(a,"loading namespace ").concat(i," for language ").concat(n," failed"),r),!r&&o&&t.logger.log("".concat(a,"loaded namespace ").concat(i," for language ").concat(n),o),t.loaded(e,r,o)}))}},{key:"saveMissing",value:function(e,t,a,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=a&&""!==a&&(this.backend&&this.backend.create&&this.backend.create(e,t,a,r,null,i({},o,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,a,r))}}]),t}(g);function B(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var a=e[3]||e[2];Object.keys(a).forEach((function(e){t[e]=a[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,a,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function K(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Q(){}const H=new(function(e){function t(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(o(this,t),e=u(this,p(t).call(this)),x&&g.call(l(e)),e.options=K(a),e.services={},e.logger=h,e.modules={external:[]},r&&!e.isInitialized&&!a.isClone){if(!e.options.initImmediate)return e.init(a,r),u(e,l(e));setTimeout((function(){e.init(a,r)}),0)}return e}return d(t,e),c(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(a=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},B(),this.options,K(t)),this.format=this.options.interpolation.format,a||(a=Q),!this.options.isClone){this.modules.logger?h.init(r(this.modules.logger),this.options):h.init(null,this.options);var n=new j(this.options);this.store=new F(this.options.resources,this.options);var o=this.services;o.logger=h,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new M(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o.interpolator=new $(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new U(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new N(this.services,this.options),this.translator.on("*",(function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var a;return(a=e.store)[t].apply(a,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var a;return(a=e.store)[t].apply(a,arguments),e}}));var u=y(),p=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),a(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}},{key:"loadResources",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q,r=a,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();var i=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(n)o(n);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return o(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,a){var r=y();return e||(e=this.languages),t||(t=this.options.ns),a||(a=Q),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),a(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&A.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var a=this;this.isLanguageChangingTo=e;var r=y();this.emit("languageChanging",e);var n=function(n){e||n||!a.services.languageDetector||(n=[]);var i="string"==typeof n?n:a.services.languageUtils.getBestMatchFromCodes(n);i&&(a.language||(a.language=i,a.languages=a.services.languageUtils.toResolveHierarchy(i)),a.translator.language||a.translator.changeLanguage(i),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(i)),a.loadResources(i,(function(e){!function(e,n){n?(a.language=n,a.languages=a.services.languageUtils.toResolveHierarchy(n),a.translator.changeLanguage(n),a.isLanguageChangingTo=void 0,a.emit("languageChanged",n),a.logger.log("languageChanged",n)):a.isLanguageChangingTo=void 0,r.resolve((function(){return a.t.apply(a,arguments)})),t&&t(e,(function(){return a.t.apply(a,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(n):n(e):n(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var a=this,n=function e(t,n){var o;if("object"!==r(n)){for(var s=arguments.length,c=new Array(s>2?s-2:0),l=2;l<s;l++)c[l-2]=arguments[l];o=a.options.overloadTranslationOptionHandler([t,n].concat(c))}else o=i({},n);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,a.t(t,o)};return"string"==typeof e?n.lng=e:n.lngs=e,n.ns=t,n}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,a){var r=t.services.backendConnector.state["".concat(e,"|").concat(a)];return-1===r||2===r};if(a.precheck){var s=a.precheck(this,o);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!o(r,e)||n&&!o(i,e)))}},{key:"loadNamespaces",value:function(e,t){var a=this,r=y();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){a.options.ns.indexOf(e)<0&&a.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var a=y();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],n=e.filter((function(e){return r.indexOf(e)<0}));return n.length?(this.options.preload=r.concat(n),this.loadResources((function(e){a.resolve(),t&&t(e)})),a):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new t(e,a)}},{key:"cloneInstance",value:function(){var e=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q,n=i({},this.options,a,{isClone:!0}),o=new t(n),s=["store","services","language"];return s.forEach((function(t){o[t]=e[t]})),o.services=i({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new N(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];o.emit.apply(o,[e].concat(a))})),o.init(n,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(g))},8125:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),a(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function a(e,r,n,i,o,s,c,l,u,p){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var f in r(i,o,s,c,l,u,p),i){var d=i[f];if(Array.isArray(d)){if(f in t.arrayKeywords)for(var m=0;m<d.length;m++)a(e,r,n,d[m],o+"/"+f+"/"+m,s,o,f,i,m)}else if(f in t.propsKeywords){if(d&&"object"==typeof d)for(var h in d)a(e,r,n,d[h],o+"/"+f+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),s,o,f,i,h)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&a(e,r,n,d,o+"/"+f,s,o,f,i)}n(i,o,s,c,l,u,p)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},4366:e=>{var t="__lodash_hash_undefined__",a="[object Function]",r="[object GeneratorFunction]",n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/,o=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,u="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,f=u||p||Function("return this")();var d,m=Array.prototype,h=Function.prototype,g=Object.prototype,y=f["__core-js_shared__"],v=(d=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",b=h.toString,P=g.hasOwnProperty,O=g.toString,T=RegExp("^"+b.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=f.Symbol,S=m.splice,E=L(f,"Map"),_=L(Object,"create"),I=C?C.prototype:void 0,x=I?I.toString:void 0;function w(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function F(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function A(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function R(e,t){for(var a,r,n=e.length;n--;)if((a=e[n][0])===(r=t)||a!=a&&r!=r)return n;return-1}function N(e){return!(!K(e)||(t=e,v&&v in t))&&(function(e){var t=K(e)?O.call(e):"";return t==a||t==r}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?T:l).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function D(e,t){e=function(e,t){return 1==t.length?e:function(e,t){for(var a=0,r=(t=k(t,e)?[t]:j(t)).length;null!=e&&a<r;)e=e[$(t[a++])];return a&&a==r?e:void 0}(e,function(e,t,a){var r=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(a=a>n?n:a)<0&&(a+=n),n=t>a?0:a-t>>>0,t>>>=0;for(var i=Array(n);++r<n;)i[r]=e[r+t];return i}(t,0,-1))}(e,t=k(t,e)?[t]:j(t));var a,r,n=$((r=(a=t)?a.length:0)?a[r-1]:void 0);return!(null!=e&&P.call(e,n))||delete e[n]}function j(e){return B(e)?e:M(e)}function V(e,t){var a,r,n=e.__data__;return("string"==(r=typeof(a=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==a:null===a)?n["string"==typeof t?"string":"hash"]:n.map}function L(e,t){var a=function(e,t){return null==e?void 0:e[t]}(e,t);return N(a)?a:void 0}function k(e,t){if(B(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!Q(e))||(i.test(e)||!n.test(e)||null!=t&&e in Object(t))}w.prototype.clear=function(){this.__data__=_?_(null):{}},w.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},w.prototype.get=function(e){var a=this.__data__;if(_){var r=a[e];return r===t?void 0:r}return P.call(a,e)?a[e]:void 0},w.prototype.has=function(e){var t=this.__data__;return _?void 0!==t[e]:P.call(t,e)},w.prototype.set=function(e,a){return this.__data__[e]=_&&void 0===a?t:a,this},F.prototype.clear=function(){this.__data__=[]},F.prototype.delete=function(e){var t=this.__data__,a=R(t,e);return!(a<0)&&(a==t.length-1?t.pop():S.call(t,a,1),!0)},F.prototype.get=function(e){var t=this.__data__,a=R(t,e);return a<0?void 0:t[a][1]},F.prototype.has=function(e){return R(this.__data__,e)>-1},F.prototype.set=function(e,t){var a=this.__data__,r=R(a,e);return r<0?a.push([e,t]):a[r][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new w,map:new(E||F),string:new w}},A.prototype.delete=function(e){return V(this,e).delete(e)},A.prototype.get=function(e){return V(this,e).get(e)},A.prototype.has=function(e){return V(this,e).has(e)},A.prototype.set=function(e,t){return V(this,e).set(e,t),this};var M=U((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Q(e))return x?x.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var a=[];return o.test(e)&&a.push(""),e.replace(s,(function(e,t,r,n){a.push(r?n.replace(c,"$1"):t||e)})),a}));function $(e){if("string"==typeof e||Q(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function U(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var a=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=a.cache;if(i.has(n))return i.get(n);var o=e.apply(this,r);return a.cache=i.set(n,o),o};return a.cache=new(U.Cache||A),a}U.Cache=A;var B=Array.isArray;function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Q(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==O.call(e)}e.exports=function(e,t){return null==e||D(e,t)}},2775:()=>{var e;!function(e){!function(t){var a="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=n(e);function n(e,t){return function(a,r){"function"!=typeof e[a]&&Object.defineProperty(e,a,{configurable:!0,writable:!0,value:r}),t&&t(a,r)}}void 0===a.Reflect?a.Reflect=e:r=n(a.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,a="function"==typeof Symbol,r=a&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",n=a&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,o={__proto__:[]}instanceof Array,s=!i&&!o,c={create:i?function(){return re(Object.create(null))}:o?function(){return re({__proto__:null})}:function(){return re({})},has:s?function(e,a){return t.call(e,a)}:function(e,t){return t in e},get:s?function(e,a){return t.call(e,a)?e[a]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),u="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=u||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?ee():Map,f=u||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?te():Set,d=new(u||"function"!=typeof WeakMap?ae():WeakMap);function m(e,t,a,r){if(j(a)){if(!Q(e))throw new TypeError;if(!J(t))throw new TypeError;return S(e,t)}if(!Q(e))throw new TypeError;if(!k(t))throw new TypeError;if(!k(r)&&!j(r)&&!V(r))throw new TypeError;return V(r)&&(r=void 0),E(e,t,a=K(a),r)}function h(e,t){function a(a,r){if(!k(a))throw new TypeError;if(!j(r)&&!q(r))throw new TypeError;A(e,t,a,r)}return a}function g(e,t,a,r){if(!k(a))throw new TypeError;return j(r)||(r=K(r)),A(e,t,a,r)}function y(e,t,a){if(!k(t))throw new TypeError;return j(a)||(a=K(a)),I(e,t,a)}function v(e,t,a){if(!k(t))throw new TypeError;return j(a)||(a=K(a)),x(e,t,a)}function b(e,t,a){if(!k(t))throw new TypeError;return j(a)||(a=K(a)),w(e,t,a)}function P(e,t,a){if(!k(t))throw new TypeError;return j(a)||(a=K(a)),F(e,t,a)}function O(e,t){if(!k(e))throw new TypeError;return j(t)||(t=K(t)),R(e,t)}function T(e,t){if(!k(e))throw new TypeError;return j(t)||(t=K(t)),N(e,t)}function C(e,t,a){if(!k(t))throw new TypeError;j(a)||(a=K(a));var r=_(t,a,!1);if(j(r))return!1;if(!r.delete(e))return!1;if(r.size>0)return!0;var n=d.get(t);return n.delete(a),n.size>0||d.delete(t),!0}function S(e,t){for(var a=e.length-1;a>=0;--a){var r=(0,e[a])(t);if(!j(r)&&!V(r)){if(!J(r))throw new TypeError;t=r}}return t}function E(e,t,a,r){for(var n=e.length-1;n>=0;--n){var i=(0,e[n])(t,a,r);if(!j(i)&&!V(i)){if(!k(i))throw new TypeError;r=i}}return r}function _(e,t,a){var r=d.get(e);if(j(r)){if(!a)return;r=new p,d.set(e,r)}var n=r.get(t);if(j(n)){if(!a)return;n=new p,r.set(t,n)}return n}function I(e,t,a){if(x(e,t,a))return!0;var r=Z(t);return!V(r)&&I(e,r,a)}function x(e,t,a){var r=_(t,a,!1);return!j(r)&&U(r.has(e))}function w(e,t,a){if(x(e,t,a))return F(e,t,a);var r=Z(t);return V(r)?void 0:w(e,r,a)}function F(e,t,a){var r=_(t,a,!1);if(!j(r))return r.get(e)}function A(e,t,a,r){_(a,r,!0).set(e,t)}function R(e,t){var a=N(e,t),r=Z(e);if(null===r)return a;var n=R(r,t);if(n.length<=0)return a;if(a.length<=0)return n;for(var i=new f,o=[],s=0,c=a;s<c.length;s++){var l=c[s];i.has(l)||(i.add(l),o.push(l))}for(var u=0,p=n;u<p.length;u++){l=p[u];i.has(l)||(i.add(l),o.push(l))}return o}function N(e,t){var a=[],r=_(e,t,!1);if(j(r))return a;for(var n=z(r.keys()),i=0;;){var o=X(n);if(!o)return a.length=i,a;var s=W(o);try{a[i]=s}catch(e){try{Y(n)}finally{throw e}}i++}}function D(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function V(e){return null===e}function L(e){return"symbol"==typeof e}function k(e){return"object"==typeof e?null!==e:"function"==typeof e}function M(e,t){switch(D(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var a=3===t?"string":5===t?"number":"default",n=G(e,r);if(void 0!==n){var i=n.call(e,a);if(k(i))throw new TypeError;return i}return $(e,"default"===a?"number":a)}function $(e,t){if("string"===t){var a=e.toString;if(H(a))if(!k(n=a.call(e)))return n;if(H(r=e.valueOf))if(!k(n=r.call(e)))return n}else{var r;if(H(r=e.valueOf))if(!k(n=r.call(e)))return n;var n,i=e.toString;if(H(i))if(!k(n=i.call(e)))return n}throw new TypeError}function U(e){return!!e}function B(e){return""+e}function K(e){var t=M(e,3);return L(t)?t:B(t)}function Q(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function H(e){return"function"==typeof e}function J(e){return"function"==typeof e}function q(e){switch(D(e)){case 3:case 4:return!0;default:return!1}}function G(e,t){var a=e[t];if(null!=a){if(!H(a))throw new TypeError;return a}}function z(e){var t=G(e,n);if(!H(t))throw new TypeError;var a=t.call(e);if(!k(a))throw new TypeError;return a}function W(e){return e.value}function X(e){var t=e.next();return!t.done&&t}function Y(e){var t=e.return;t&&t.call(e)}function Z(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===l)return t;if(t!==l)return t;var a=e.prototype,r=a&&Object.getPrototypeOf(a);if(null==r||r===Object.prototype)return t;var n=r.constructor;return"function"!=typeof n||n===e?t:n}function ee(){var e={},t=[],a=function(){function e(e,t,a){this._index=0,this._keys=e,this._values=t,this._selector=a}return e.prototype["@@iterator"]=function(){return this},e.prototype[n]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var a=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:a,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var a=this._find(e,!0);return this._values[a]=t,this},t.prototype.delete=function(t){var a=this._find(t,!1);if(a>=0){for(var r=this._keys.length,n=a+1;n<r;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new a(this._keys,this._values,r)},t.prototype.values=function(){return new a(this._keys,this._values,i)},t.prototype.entries=function(){return new a(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[n]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}function te(){return function(){function e(){this._map=new p}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[n]=function(){return this.keys()},e}()}function ae(){var e=16,a=c.create(),r=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?c.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var e;do{e="@@WeakMap@@"+l()}while(c.has(a,e));return a[e]=!0,e}function i(e,a){if(!t.call(e,r)){if(!a)return;Object.defineProperty(e,r,{value:c.create()})}return e[r]}function o(e,t){for(var a=0;a<t;++a)e[a]=255*Math.random()|0;return e}function s(e){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):o(new Uint8Array(e),e):o(new Array(e),e)}function l(){var t=s(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var a="",r=0;r<e;++r){var n=t[r];4!==r&&6!==r&&8!==r||(a+="-"),n<16&&(a+="0"),a+=n.toString(16).toLowerCase()}return a}}function re(e){return e.__=void 0,delete e.__,e}e("decorate",m),e("metadata",h),e("defineMetadata",g),e("hasMetadata",y),e("hasOwnMetadata",v),e("getMetadata",b),e("getOwnMetadata",P),e("getMetadataKeys",O),e("getOwnMetadataKeys",T),e("deleteMetadata",C)}(r)}()}(e||(e={}))},9871:(e,t,a)=>{!function(e){e.parser=function(e,t){return new n(e,t)},e.SAXParser=n,e.SAXStream=o,e.createStream=function(e,t){return new o(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function n(t,a){if(!(this instanceof n))return new n(t,a);var i=this;!function(e){for(var t=0,a=r.length;t<a;t++)e[r[t]]=""}(i),i.q=i.c="",i.bufferCheckPosition=e.MAX_BUFFER_LENGTH,i.opt=a||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!t,i.noscript=!(!t&&!i.opt.noscript),i.state=T.BEGIN,i.strictEntities=i.opt.strictEntities,i.ENTITIES=i.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=Object.create(l)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),S(i,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var a in e)e.hasOwnProperty(a)&&t.push(a);return t}),n.prototype={end:function(){w(this)},write:function(t){var a=this;if(this.error)throw this.error;if(a.closed)return x(a,"Cannot write after close. Assign an onready handler.");if(null===t)return w(a);"object"==typeof t&&(t=t.toString());var n=0,i="";for(;i=k(t,n++),a.c=i,i;)switch(a.trackPosition&&(a.position++,"\n"===i?(a.line++,a.column=0):a.column++),a.state){case T.BEGIN:if(a.state=T.BEGIN_WHITESPACE,"\ufeff"===i)continue;L(a,i);continue;case T.BEGIN_WHITESPACE:L(a,i);continue;case T.TEXT:if(a.sawRoot&&!a.closedRoot){for(var o=n-1;i&&"<"!==i&&"&"!==i;)(i=k(t,n++))&&a.trackPosition&&(a.position++,"\n"===i?(a.line++,a.column=0):a.column++);a.textNode+=t.substring(o,n-1)}"<"!==i||a.sawRoot&&a.closedRoot&&!a.strict?(m(i)||a.sawRoot&&!a.closedRoot||F(a,"Text data outside of root node."),"&"===i?a.state=T.TEXT_ENTITY:a.textNode+=i):(a.state=T.OPEN_WAKA,a.startTagPosition=a.position);continue;case T.SCRIPT:"<"===i?a.state=T.SCRIPT_ENDING:a.script+=i;continue;case T.SCRIPT_ENDING:"/"===i?a.state=T.CLOSE_TAG:(a.script+="<"+i,a.state=T.SCRIPT);continue;case T.OPEN_WAKA:if("!"===i)a.state=T.SGML_DECL,a.sgmlDecl="";else if(m(i));else if(y(u,i))a.state=T.OPEN_TAG,a.tagName=i;else if("/"===i)a.state=T.CLOSE_TAG,a.tagName="";else if("?"===i)a.state=T.PROC_INST,a.procInstName=a.procInstBody="";else{if(F(a,"Unencoded <"),a.startTagPosition+1<a.position){var s=a.position-a.startTagPosition;i=new Array(s).join(" ")+i}a.textNode+="<"+i,a.state=T.TEXT}continue;case T.SGML_DECL:"[CDATA["===(a.sgmlDecl+i).toUpperCase()?(E(a,"onopencdata"),a.state=T.CDATA,a.sgmlDecl="",a.cdata=""):a.sgmlDecl+i==="--"?(a.state=T.COMMENT,a.comment="",a.sgmlDecl=""):"DOCTYPE"===(a.sgmlDecl+i).toUpperCase()?(a.state=T.DOCTYPE,(a.doctype||a.sawRoot)&&F(a,"Inappropriately located doctype declaration"),a.doctype="",a.sgmlDecl=""):">"===i?(E(a,"onsgmldeclaration",a.sgmlDecl),a.sgmlDecl="",a.state=T.TEXT):h(i)?(a.state=T.SGML_DECL_QUOTED,a.sgmlDecl+=i):a.sgmlDecl+=i;continue;case T.SGML_DECL_QUOTED:i===a.q&&(a.state=T.SGML_DECL,a.q=""),a.sgmlDecl+=i;continue;case T.DOCTYPE:">"===i?(a.state=T.TEXT,E(a,"ondoctype",a.doctype),a.doctype=!0):(a.doctype+=i,"["===i?a.state=T.DOCTYPE_DTD:h(i)&&(a.state=T.DOCTYPE_QUOTED,a.q=i));continue;case T.DOCTYPE_QUOTED:a.doctype+=i,i===a.q&&(a.q="",a.state=T.DOCTYPE);continue;case T.DOCTYPE_DTD:a.doctype+=i,"]"===i?a.state=T.DOCTYPE:h(i)&&(a.state=T.DOCTYPE_DTD_QUOTED,a.q=i);continue;case T.DOCTYPE_DTD_QUOTED:a.doctype+=i,i===a.q&&(a.state=T.DOCTYPE_DTD,a.q="");continue;case T.COMMENT:"-"===i?a.state=T.COMMENT_ENDING:a.comment+=i;continue;case T.COMMENT_ENDING:"-"===i?(a.state=T.COMMENT_ENDED,a.comment=I(a.opt,a.comment),a.comment&&E(a,"oncomment",a.comment),a.comment=""):(a.comment+="-"+i,a.state=T.COMMENT);continue;case T.COMMENT_ENDED:">"!==i?(F(a,"Malformed comment"),a.comment+="--"+i,a.state=T.COMMENT):a.state=T.TEXT;continue;case T.CDATA:"]"===i?a.state=T.CDATA_ENDING:a.cdata+=i;continue;case T.CDATA_ENDING:"]"===i?a.state=T.CDATA_ENDING_2:(a.cdata+="]"+i,a.state=T.CDATA);continue;case T.CDATA_ENDING_2:">"===i?(a.cdata&&E(a,"oncdata",a.cdata),E(a,"onclosecdata"),a.cdata="",a.state=T.TEXT):"]"===i?a.cdata+="]":(a.cdata+="]]"+i,a.state=T.CDATA);continue;case T.PROC_INST:"?"===i?a.state=T.PROC_INST_ENDING:m(i)?a.state=T.PROC_INST_BODY:a.procInstName+=i;continue;case T.PROC_INST_BODY:if(!a.procInstBody&&m(i))continue;"?"===i?a.state=T.PROC_INST_ENDING:a.procInstBody+=i;continue;case T.PROC_INST_ENDING:">"===i?(E(a,"onprocessinginstruction",{name:a.procInstName,body:a.procInstBody}),a.procInstName=a.procInstBody="",a.state=T.TEXT):(a.procInstBody+="?"+i,a.state=T.PROC_INST_BODY);continue;case T.OPEN_TAG:y(p,i)?a.tagName+=i:(A(a),">"===i?D(a):"/"===i?a.state=T.OPEN_TAG_SLASH:(m(i)||F(a,"Invalid character in tag name"),a.state=T.ATTRIB));continue;case T.OPEN_TAG_SLASH:">"===i?(D(a,!0),j(a)):(F(a,"Forward-slash in opening tag not followed by >"),a.state=T.ATTRIB);continue;case T.ATTRIB:if(m(i))continue;">"===i?D(a):"/"===i?a.state=T.OPEN_TAG_SLASH:y(u,i)?(a.attribName=i,a.attribValue="",a.state=T.ATTRIB_NAME):F(a,"Invalid attribute name");continue;case T.ATTRIB_NAME:"="===i?a.state=T.ATTRIB_VALUE:">"===i?(F(a,"Attribute without value"),a.attribValue=a.attribName,N(a),D(a)):m(i)?a.state=T.ATTRIB_NAME_SAW_WHITE:y(p,i)?a.attribName+=i:F(a,"Invalid attribute name");continue;case T.ATTRIB_NAME_SAW_WHITE:if("="===i)a.state=T.ATTRIB_VALUE;else{if(m(i))continue;F(a,"Attribute without value"),a.tag.attributes[a.attribName]="",a.attribValue="",E(a,"onattribute",{name:a.attribName,value:""}),a.attribName="",">"===i?D(a):y(u,i)?(a.attribName=i,a.state=T.ATTRIB_NAME):(F(a,"Invalid attribute name"),a.state=T.ATTRIB)}continue;case T.ATTRIB_VALUE:if(m(i))continue;h(i)?(a.q=i,a.state=T.ATTRIB_VALUE_QUOTED):(F(a,"Unquoted attribute value"),a.state=T.ATTRIB_VALUE_UNQUOTED,a.attribValue=i);continue;case T.ATTRIB_VALUE_QUOTED:if(i!==a.q){"&"===i?a.state=T.ATTRIB_VALUE_ENTITY_Q:a.attribValue+=i;continue}N(a),a.q="",a.state=T.ATTRIB_VALUE_CLOSED;continue;case T.ATTRIB_VALUE_CLOSED:m(i)?a.state=T.ATTRIB:">"===i?D(a):"/"===i?a.state=T.OPEN_TAG_SLASH:y(u,i)?(F(a,"No whitespace between attributes"),a.attribName=i,a.attribValue="",a.state=T.ATTRIB_NAME):F(a,"Invalid attribute name");continue;case T.ATTRIB_VALUE_UNQUOTED:if(!g(i)){"&"===i?a.state=T.ATTRIB_VALUE_ENTITY_U:a.attribValue+=i;continue}N(a),">"===i?D(a):a.state=T.ATTRIB;continue;case T.CLOSE_TAG:if(a.tagName)">"===i?j(a):y(p,i)?a.tagName+=i:a.script?(a.script+="</"+a.tagName,a.tagName="",a.state=T.SCRIPT):(m(i)||F(a,"Invalid tagname in closing tag"),a.state=T.CLOSE_TAG_SAW_WHITE);else{if(m(i))continue;v(u,i)?a.script?(a.script+="</"+i,a.state=T.SCRIPT):F(a,"Invalid tagname in closing tag."):a.tagName=i}continue;case T.CLOSE_TAG_SAW_WHITE:if(m(i))continue;">"===i?j(a):F(a,"Invalid characters in closing tag");continue;case T.TEXT_ENTITY:case T.ATTRIB_VALUE_ENTITY_Q:case T.ATTRIB_VALUE_ENTITY_U:var c,l;switch(a.state){case T.TEXT_ENTITY:c=T.TEXT,l="textNode";break;case T.ATTRIB_VALUE_ENTITY_Q:c=T.ATTRIB_VALUE_QUOTED,l="attribValue";break;case T.ATTRIB_VALUE_ENTITY_U:c=T.ATTRIB_VALUE_UNQUOTED,l="attribValue"}";"===i?(a[l]+=V(a),a.entity="",a.state=c):y(a.entity.length?d:f,i)?a.entity+=i:(F(a,"Invalid character in entity name"),a[l]+="&"+a.entity+i,a.entity="",a.state=c);continue;default:throw new Error(a,"Unknown state: "+a.state)}a.position>=a.bufferCheckPosition&&function(t){for(var a=Math.max(e.MAX_BUFFER_LENGTH,10),n=0,i=0,o=r.length;i<o;i++){var s=t[r[i]].length;if(s>a)switch(r[i]){case"textNode":_(t);break;case"cdata":E(t,"oncdata",t.cdata),t.cdata="";break;case"script":E(t,"onscript",t.script),t.script="";break;default:x(t,"Max buffer length exceeded: "+r[i])}n=Math.max(n,s)}var c=e.MAX_BUFFER_LENGTH-n;t.bufferCheckPosition=c+t.position}(a);return a},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;_(e=this),""!==e.cdata&&(E(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(E(e,"onscript",e.script),e.script="")}};try{t=a(2413).Stream}catch(e){t=function(){}}var i=e.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function o(e,a){if(!(this instanceof o))return new o(e,a);t.apply(this),this._parser=new n(e,a),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,i.forEach((function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})}))}o.prototype=Object.create(t.prototype,{constructor:{value:o}}),o.prototype.write=function(e){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e)){if(!this._decoder){var t=a(4304).StringDecoder;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},o.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},o.prototype.on=function(e,a){var r=this;return r._parser["on"+e]||-1===i.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),t.prototype.on.call(r,e,a)};var s="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/2000/xmlns/",l={xml:s,xmlns:c},u=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function h(e){return'"'===e||"'"===e}function g(e){return">"===e||m(e)}function y(e,t){return e.test(t)}function v(e,t){return!y(e,t)}var b,P,O,T=0;for(var C in e.STATE={BEGIN:T++,BEGIN_WHITESPACE:T++,TEXT:T++,TEXT_ENTITY:T++,OPEN_WAKA:T++,SGML_DECL:T++,SGML_DECL_QUOTED:T++,DOCTYPE:T++,DOCTYPE_QUOTED:T++,DOCTYPE_DTD:T++,DOCTYPE_DTD_QUOTED:T++,COMMENT_STARTING:T++,COMMENT:T++,COMMENT_ENDING:T++,COMMENT_ENDED:T++,CDATA:T++,CDATA_ENDING:T++,CDATA_ENDING_2:T++,PROC_INST:T++,PROC_INST_BODY:T++,PROC_INST_ENDING:T++,OPEN_TAG:T++,OPEN_TAG_SLASH:T++,ATTRIB:T++,ATTRIB_NAME:T++,ATTRIB_NAME_SAW_WHITE:T++,ATTRIB_VALUE:T++,ATTRIB_VALUE_QUOTED:T++,ATTRIB_VALUE_CLOSED:T++,ATTRIB_VALUE_UNQUOTED:T++,ATTRIB_VALUE_ENTITY_Q:T++,ATTRIB_VALUE_ENTITY_U:T++,CLOSE_TAG:T++,CLOSE_TAG_SAW_WHITE:T++,SCRIPT:T++,SCRIPT_ENDING:T++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var a=e.ENTITIES[t],r="number"==typeof a?String.fromCharCode(a):a;e.ENTITIES[t]=r})),e.STATE)e.STATE[e.STATE[C]]=C;function S(e,t,a){e[t]&&e[t](a)}function E(e,t,a){e.textNode&&_(e),S(e,t,a)}function _(e){e.textNode=I(e.opt,e.textNode),e.textNode&&S(e,"ontext",e.textNode),e.textNode=""}function I(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function x(e,t){return _(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,S(e,"onerror",t),e}function w(e){return e.sawRoot&&!e.closedRoot&&F(e,"Unclosed root tag"),e.state!==T.BEGIN&&e.state!==T.BEGIN_WHITESPACE&&e.state!==T.TEXT&&x(e,"Unexpected end"),_(e),e.c="",e.closed=!0,S(e,"onend"),n.call(e,e.strict,e.opt),e}function F(e,t){if("object"!=typeof e||!(e instanceof n))throw new Error("bad call to strictFail");e.strict&&x(e,t)}function A(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,a=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(a.ns=t.ns),e.attribList.length=0,E(e,"onopentagstart",a)}function R(e,t){var a=e.indexOf(":")<0?["",e]:e.split(":"),r=a[0],n=a[1];return t&&"xmlns"===e&&(r="xmlns",n=""),{prefix:r,local:n}}function N(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=R(e.attribName,!0),a=t.prefix,r=t.local;if("xmlns"===a)if("xml"===r&&e.attribValue!==s)F(e,"xml: prefix must be bound to "+s+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==c)F(e,"xmlns: prefix must be bound to "+c+"\nActual: "+e.attribValue);else{var n=e.tag,i=e.tags[e.tags.length-1]||e;n.ns===i.ns&&(n.ns=Object.create(i.ns)),n.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,E(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function D(e,t){if(e.opt.xmlns){var a=e.tag,r=R(e.tagName);a.prefix=r.prefix,a.local=r.local,a.uri=a.ns[r.prefix]||"",a.prefix&&!a.uri&&(F(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),a.uri=r.prefix);var n=e.tags[e.tags.length-1]||e;a.ns&&n.ns!==a.ns&&Object.keys(a.ns).forEach((function(t){E(e,"onopennamespace",{prefix:t,uri:a.ns[t]})}));for(var i=0,o=e.attribList.length;i<o;i++){var s=e.attribList[i],c=s[0],l=s[1],u=R(c,!0),p=u.prefix,f=u.local,d=""===p?"":a.ns[p]||"",m={name:c,value:l,prefix:p,local:f,uri:d};p&&"xmlns"!==p&&!d&&(F(e,"Unbound namespace prefix: "+JSON.stringify(p)),m.uri=p),e.tag.attributes[c]=m,E(e,"onattribute",m)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),E(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=T.TEXT:e.state=T.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function j(e){if(!e.tagName)return F(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=T.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=T.SCRIPT);E(e,"onscript",e.script),e.script=""}var t=e.tags.length,a=e.tagName;e.strict||(a=a[e.looseCase]());for(var r=a;t--;){if(e.tags[t].name===r)break;F(e,"Unexpected close tag")}if(t<0)return F(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=T.TEXT);e.tagName=a;for(var n=e.tags.length;n-- >t;){var i=e.tag=e.tags.pop();e.tagName=e.tag.name,E(e,"onclosetag",e.tagName);var o={};for(var s in i.ns)o[s]=i.ns[s];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&i.ns!==c.ns&&Object.keys(i.ns).forEach((function(t){var a=i.ns[t];E(e,"onclosenamespace",{prefix:t,uri:a})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=T.TEXT}function V(e){var t,a=e.entity,r=a.toLowerCase(),n="";return e.ENTITIES[a]?e.ENTITIES[a]:e.ENTITIES[r]?e.ENTITIES[r]:("#"===(a=r).charAt(0)&&("x"===a.charAt(1)?(a=a.slice(2),n=(t=parseInt(a,16)).toString(16)):(a=a.slice(1),n=(t=parseInt(a,10)).toString(10))),a=a.replace(/^0+/,""),isNaN(t)||n.toLowerCase()!==a?(F(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function L(e,t){"<"===t?(e.state=T.OPEN_WAKA,e.startTagPosition=e.position):m(t)||(F(e,"Non-whitespace before first tag."),e.textNode=t,e.state=T.TEXT)}function k(e,t){var a="";return t<e.length&&(a=e.charAt(t)),a}T=e.STATE,String.fromCodePoint||(b=String.fromCharCode,P=Math.floor,O=function(){var e,t,a=16384,r=[],n=-1,i=arguments.length;if(!i)return"";for(var o="";++n<i;){var s=Number(arguments[n]);if(!isFinite(s)||s<0||s>1114111||P(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(e=55296+((s-=65536)>>10),t=s%1024+56320,r.push(e,t)),(n+1===i||r.length>a)&&(o+=b.apply(null,r),r.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:O,configurable:!0,writable:!0}):String.fromCodePoint=O)}(t)},5858:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,n=1;n<r;++n)t[n]=t[n].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function a(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function n(e){return e.toUpperCase()}function i(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function o(e,t){var a=e;if(t)for(var r in t)a[r]=t[r];return a}function s(e){var r="[A-Za-z]",n="[0-9]",i=t(n,"[A-Fa-f]"),o=a(a("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+a("%[89A-Fa-f]"+i+"%"+i+i)+"|"+a("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(r,n,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),p=a(r+t(r,n,"[\\+\\-\\.]")+"*"),f=a(a(o+"|"+t(u,s,"[\\:]"))+"*"),d=(a(a("25[0-5]")+"|"+a("2[0-4]"+n)+"|"+a("1"+n+n)+"|"+a("[1-9]"+n)+"|"+n),a(a("25[0-5]")+"|"+a("2[0-4]"+n)+"|"+a("1"+n+n)+"|"+a("0?[1-9]"+n)+"|0?0?"+n)),m=a(d+"\\."+d+"\\."+d+"\\."+d),h=a(i+"{1,4}"),g=a(a(h+"\\:"+h)+"|"+m),y=a(a(h+"\\:")+"{6}"+g),v=a("\\:\\:"+a(h+"\\:")+"{5}"+g),b=a(a(h)+"?\\:\\:"+a(h+"\\:")+"{4}"+g),P=a(a(a(h+"\\:")+"{0,1}"+h)+"?\\:\\:"+a(h+"\\:")+"{3}"+g),O=a(a(a(h+"\\:")+"{0,2}"+h)+"?\\:\\:"+a(h+"\\:")+"{2}"+g),T=a(a(a(h+"\\:")+"{0,3}"+h)+"?\\:\\:"+h+"\\:"+g),C=a(a(a(h+"\\:")+"{0,4}"+h)+"?\\:\\:"+g),S=a(a(a(h+"\\:")+"{0,5}"+h)+"?\\:\\:"+h),E=a(a(a(h+"\\:")+"{0,6}"+h)+"?\\:\\:"),_=a([y,v,b,P,O,T,C,S,E].join("|")),I=a(a(u+"|"+o)+"+"),x=(a(_+"\\%25"+I),a(_+a("\\%25|\\%(?!"+i+"{2})")+I)),w=a("[vV]"+i+"+\\."+t(u,s,"[\\:]")+"+"),F=a("\\["+a(x+"|"+_+"|"+w)+"\\]"),A=a(a(o+"|"+t(u,s))+"*"),R=a(F+"|"+m+"(?!"+A+")|"+A),N=a(n+"*"),D=a(a(f+"@")+"?"+R+a("\\:"+N)+"?"),j=a(o+"|"+t(u,s,"[\\:\\@]")),V=a(j+"*"),L=a(j+"+"),k=a(a(o+"|"+t(u,s,"[\\@]"))+"+"),M=a(a("\\/"+V)+"*"),$=a("\\/"+a(L+M)+"?"),U=a(k+M),B=a(L+M),K="(?!"+j+")",Q=(a(M+"|"+$+"|"+U+"|"+B+"|"+K),a(a(j+"|"+t("[\\/\\?]",l))+"*")),H=a(a(j+"|[\\/\\?]")+"*"),J=a(a("\\/\\/"+D+M)+"|"+$+"|"+B+"|"+K),q=a(p+"\\:"+J+a("\\?"+Q)+"?"+a("\\#"+H)+"?"),G=a(a("\\/\\/"+D+M)+"|"+$+"|"+U+"|"+K),z=a(G+a("\\?"+Q)+"?"+a("\\#"+H)+"?");return a(q+"|"+z),a(p+"\\:"+J+a("\\?"+Q)+"?"),a(a("\\/\\/("+a("("+f+")@")+"?("+R+")"+a("\\:("+N+")")+"?)")+"?("+M+"|"+$+"|"+B+"|"+K+")"),a("\\?("+Q+")"),a("\\#("+H+")"),a(a("\\/\\/("+a("("+f+")@")+"?("+R+")"+a("\\:("+N+")")+"?)")+"?("+M+"|"+$+"|"+U+"|"+K+")"),a("\\?("+Q+")"),a("\\#("+H+")"),a(a("\\/\\/("+a("("+f+")@")+"?("+R+")"+a("\\:("+N+")")+"?)")+"?("+M+"|"+$+"|"+B+"|"+K+")"),a("\\?("+Q+")"),a("\\#("+H+")"),a("("+f+")@"),a("\\:("+N+")"),{NOT_SCHEME:new RegExp(t("[^]",r,n,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,s),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+m+")$"),IPV6ADDRESS:new RegExp("^\\[?("+_+")"+a(a("\\%25|\\%(?!"+i+"{2})")+"("+I+")")+"?\\]?$")}}var c=s(!1),l=s(!0),u=function(){function e(e,t){var a=[],r=!0,n=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(a.push(o.value),!t||a.length!==t);r=!0);}catch(e){n=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(n)throw i}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)},f=2147483647,d=36,m=1,h=26,g=38,y=700,v=72,b=128,P="-",O=/^xn--/,T=/[^\0-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=d-m,_=Math.floor,I=String.fromCharCode;function x(e){throw new RangeError(S[e])}function w(e,t){for(var a=[],r=e.length;r--;)a[r]=t(e[r]);return a}function F(e,t){var a=e.split("@"),r="";return a.length>1&&(r=a[0]+"@",e=a[1]),r+w((e=e.replace(C,".")).split("."),t).join(".")}function A(e){for(var t=[],a=0,r=e.length;a<r;){var n=e.charCodeAt(a++);if(n>=55296&&n<=56319&&a<r){var i=e.charCodeAt(a++);56320==(64512&i)?t.push(((1023&n)<<10)+(1023&i)+65536):(t.push(n),a--)}else t.push(n)}return t}var R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:d},N=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},D=function(e,t,a){var r=0;for(e=a?_(e/y):e>>1,e+=_(e/t);e>E*h>>1;r+=d)e=_(e/E);return _(r+(E+1)*e/(e+g))},j=function(e){var t=[],a=e.length,r=0,n=b,i=v,o=e.lastIndexOf(P);o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&x("not-basic"),t.push(e.charCodeAt(s));for(var c=o>0?o+1:0;c<a;){for(var l=r,u=1,p=d;;p+=d){c>=a&&x("invalid-input");var g=R(e.charCodeAt(c++));(g>=d||g>_((f-r)/u))&&x("overflow"),r+=g*u;var y=p<=i?m:p>=i+h?h:p-i;if(g<y)break;var O=d-y;u>_(f/O)&&x("overflow"),u*=O}var T=t.length+1;i=D(r-l,T,0==l),_(r/T)>f-n&&x("overflow"),n+=_(r/T),r%=T,t.splice(r++,0,n)}return String.fromCodePoint.apply(String,t)},V=function(e){var t=[],a=(e=A(e)).length,r=b,n=0,i=v,o=!0,s=!1,c=void 0;try{for(var l,u=e[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var p=l.value;p<128&&t.push(I(p))}}catch(e){s=!0,c=e}finally{try{!o&&u.return&&u.return()}finally{if(s)throw c}}var g=t.length,y=g;for(g&&t.push(P);y<a;){var O=f,T=!0,C=!1,S=void 0;try{for(var E,w=e[Symbol.iterator]();!(T=(E=w.next()).done);T=!0){var F=E.value;F>=r&&F<O&&(O=F)}}catch(e){C=!0,S=e}finally{try{!T&&w.return&&w.return()}finally{if(C)throw S}}var R=y+1;O-r>_((f-n)/R)&&x("overflow"),n+=(O-r)*R,r=O;var j=!0,V=!1,L=void 0;try{for(var k,M=e[Symbol.iterator]();!(j=(k=M.next()).done);j=!0){var $=k.value;if($<r&&++n>f&&x("overflow"),$==r){for(var U=n,B=d;;B+=d){var K=B<=i?m:B>=i+h?h:B-i;if(U<K)break;var Q=U-K,H=d-K;t.push(I(N(K+Q%H,0))),U=_(Q/H)}t.push(I(N(U,0))),i=D(n,R,y==g),n=0,++y}}}catch(e){V=!0,L=e}finally{try{!j&&M.return&&M.return()}finally{if(V)throw L}}++n,++r}return t.join("")},L=function(e){return F(e,(function(e){return O.test(e)?j(e.slice(4).toLowerCase()):e}))},k=function(e){return F(e,(function(e){return T.test(e)?"xn--"+V(e):e}))},M={version:"2.1.0",ucs2:{decode:A,encode:function(e){return String.fromCodePoint.apply(String,p(e))}},decode:j,encode:V,toASCII:k,toUnicode:L},$={};function U(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function B(e){for(var t="",a=0,r=e.length;a<r;){var n=parseInt(e.substr(a+1,2),16);if(n<128)t+=String.fromCharCode(n),a+=3;else if(n>=194&&n<224){if(r-a>=6){var i=parseInt(e.substr(a+4,2),16);t+=String.fromCharCode((31&n)<<6|63&i)}else t+=e.substr(a,6);a+=6}else if(n>=224){if(r-a>=9){var o=parseInt(e.substr(a+4,2),16),s=parseInt(e.substr(a+7,2),16);t+=String.fromCharCode((15&n)<<12|(63&o)<<6|63&s)}else t+=e.substr(a,9);a+=9}else t+=e.substr(a,3),a+=3}return t}function K(e,t){function a(e){var a=B(e);return a.match(t.UNRESERVED)?a:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,a).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,a).replace(t.NOT_USERINFO,U).replace(t.PCT_ENCODED,n)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,a).toLowerCase().replace(t.NOT_HOST,U).replace(t.PCT_ENCODED,n)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,a).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,U).replace(t.PCT_ENCODED,n)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,a).replace(t.NOT_QUERY,U).replace(t.PCT_ENCODED,n)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,a).replace(t.NOT_FRAGMENT,U).replace(t.PCT_ENCODED,n)),e}function Q(e){return e.replace(/^0*(.*)/,"$1")||"0"}function H(e,t){var a=e.match(t.IPV4ADDRESS)||[],r=u(a,2)[1];return r?r.split(".").map(Q).join("."):e}function J(e,t){var a=e.match(t.IPV6ADDRESS)||[],r=u(a,3),n=r[1],i=r[2];if(n){for(var o=n.toLowerCase().split("::").reverse(),s=u(o,2),c=s[0],l=s[1],p=l?l.split(":").map(Q):[],f=c.split(":").map(Q),d=t.IPV4ADDRESS.test(f[f.length-1]),m=d?7:8,h=f.length-m,g=Array(m),y=0;y<m;++y)g[y]=p[y]||f[h+y]||"";d&&(g[m-1]=H(g[m-1],t));var v=g.reduce((function(e,t,a){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===a?r.length++:e.push({index:a,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(v&&v.length>1){var P=g.slice(0,v.index),O=g.slice(v.index+v.length);b=P.join(":")+"::"+O.join(":")}else b=g.join(":");return i&&(b+="%"+i),b}return e}var q=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={},r=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var n=e.match(q);if(n){G?(a.scheme=n[1],a.userinfo=n[3],a.host=n[4],a.port=parseInt(n[5],10),a.path=n[6]||"",a.query=n[7],a.fragment=n[8],isNaN(a.port)&&(a.port=n[5])):(a.scheme=n[1]||void 0,a.userinfo=-1!==e.indexOf("@")?n[3]:void 0,a.host=-1!==e.indexOf("//")?n[4]:void 0,a.port=parseInt(n[5],10),a.path=n[6]||"",a.query=-1!==e.indexOf("?")?n[7]:void 0,a.fragment=-1!==e.indexOf("#")?n[8]:void 0,isNaN(a.port)&&(a.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?n[4]:void 0)),a.host&&(a.host=J(H(a.host,r),r)),void 0!==a.scheme||void 0!==a.userinfo||void 0!==a.host||void 0!==a.port||a.path||void 0!==a.query?void 0===a.scheme?a.reference="relative":void 0===a.fragment?a.reference="absolute":a.reference="uri":a.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==a.reference&&(a.error=a.error||"URI is not a "+t.reference+" reference.");var i=$[(t.scheme||a.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)K(a,r);else{if(a.host&&(t.domainHost||i&&i.domainHost))try{a.host=M.toASCII(a.host.replace(r.PCT_ENCODED,B).toLowerCase())}catch(e){a.error=a.error||"Host's domain name can not be converted to ASCII via punycode: "+e}K(a,c)}i&&i.parse&&i.parse(a,t)}else a.error=a.error||"URI can not be parsed.";return a}function W(e,t){var a=!1!==t.iri?l:c,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(J(H(String(e.host),a),a).replace(a.IPV6ADDRESS,(function(e,t,a){return"["+t+(a?"%25"+a:"")+"]"}))),"number"==typeof e.port&&(r.push(":"),r.push(e.port.toString(10))),r.length?r.join(""):void 0}var X=/^\.\.?\//,Y=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Y))e=e.replace(Y,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var a=e.match(ee);if(!a)throw new Error("Unexpected dot segment condition");var r=a[0];e=e.slice(r.length),t.push(r)}return t.join("")}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.iri?l:c,r=[],n=$[(t.scheme||e.scheme||"").toLowerCase()];if(n&&n.serialize&&n.serialize(e,t),e.host)if(a.IPV6ADDRESS.test(e.host));else if(t.domainHost||n&&n.domainHost)try{e.host=t.iri?M.toUnicode(e.host):M.toASCII(e.host.replace(a.PCT_ENCODED,B).toLowerCase())}catch(a){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+a}K(e,a),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=W(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var o=e.path;t.absolutePath||n&&n.absolutePath||(o=te(o)),void 0===i&&(o=o.replace(/^\/\//,"/%2F")),r.push(o)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function re(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=z(ae(e,a),a),t=z(ae(t,a),a)),!(a=a||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=te(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function ne(e,t,a){var r=o({scheme:"null"},a);return ae(re(z(e,r),z(t,r),r,!0),r)}function ie(e,t){return"string"==typeof e?e=ae(z(e,t),t):"object"===r(e)&&(e=z(ae(e,t),t)),e}function oe(e,t,a){return"string"==typeof e?e=ae(z(e,a),a):"object"===r(e)&&(e=ae(e,a)),"string"==typeof t?t=ae(z(t,a),a):"object"===r(t)&&(t=ae(t,a)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,U)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,B)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ue={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize},pe={},fe="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",de="[0-9A-Fa-f]",me=a(a("%[EFef]"+de+"%"+de+de+"%"+de+de)+"|"+a("%[89A-Fa-f]"+de+"%"+de+de)+"|"+a("%"+de+de)),he="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ge=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ye="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ve=new RegExp(fe,"g"),be=new RegExp(me,"g"),Pe=new RegExp(t("[^]",he,"[\\.]",'[\\"]',ge),"g"),Oe=new RegExp(t("[^]",fe,ye),"g"),Te=Oe;function Ce(e){var t=B(e);return t.match(ve)?t:e}var Se={scheme:"mailto",parse:function(e,t){var a=e,r=a.to=a.path?a.path.split(","):[];if(a.path=void 0,a.query){for(var n=!1,i={},o=a.query.split("&"),s=0,c=o.length;s<c;++s){var l=o[s].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),p=0,f=u.length;p<f;++p)r.push(u[p]);break;case"subject":a.subject=ce(l[1],t);break;case"body":a.body=ce(l[1],t);break;default:n=!0,i[ce(l[0],t)]=ce(l[1],t)}}n&&(a.headers=i)}a.query=void 0;for(var d=0,m=r.length;d<m;++d){var h=r[d].split("@");if(h[0]=ce(h[0]),t.unicodeSupport)h[1]=ce(h[1],t).toLowerCase();else try{h[1]=M.toASCII(ce(h[1],t).toLowerCase())}catch(e){a.error=a.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[d]=h.join("@")}return a},serialize:function(e,t){var a=e,r=i(e.to);if(r){for(var o=0,s=r.length;o<s;++o){var c=String(r[o]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(be,Ce).replace(be,n).replace(Pe,U),p=c.slice(l+1);try{p=t.iri?M.toUnicode(p):M.toASCII(ce(p,t).toLowerCase())}catch(e){a.error=a.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}r[o]=u+"@"+p}a.path=r.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var d=[];for(var m in f)f[m]!==pe[m]&&d.push(m.replace(be,Ce).replace(be,n).replace(Oe,U)+"="+f[m].replace(be,Ce).replace(be,n).replace(Te,U));return d.length&&(a.query=d.join("&")),a}},Ee=/^([^\:]+)\:(.*)/,_e={scheme:"urn",parse:function(e,t){var a=e.path&&e.path.match(Ee),r=e;if(a){var n=t.scheme||r.scheme||"urn",i=a[1].toLowerCase(),o=a[2],s=n+":"+(t.nid||i),c=$[s];r.nid=i,r.nss=o,r.path=void 0,c&&(r=c.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var a=t.scheme||e.scheme||"urn",r=e.nid,n=a+":"+(t.nid||r),i=$[n];i&&(e=i.serialize(e,t));var o=e,s=e.nss;return o.path=(r||t.nid)+":"+s,o}},Ie=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,xe={scheme:"urn:uuid",parse:function(e,t){var a=e;return a.uuid=a.nss,a.nss=void 0,t.tolerant||a.uuid&&a.uuid.match(Ie)||(a.error=a.error||"UUID is not valid."),a},serialize:function(e,t){var a=e;return a.nss=(e.uuid||"").toLowerCase(),a}};$[le.scheme]=le,$[ue.scheme]=ue,$[Se.scheme]=Se,$[_e.scheme]=_e,$[xe.scheme]=xe,e.SCHEMES=$,e.pctEncChar=U,e.pctDecChars=B,e.parse=z,e.removeDotSegments=te,e.serialize=ae,e.resolveComponents=re,e.resolve=ne,e.normalize=ie,e.equal=oe,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)},7725:e=>{e.exports={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}}},4139:(e,t,a)=>{var r=a(5707),n=a(4096),i=a(2160),o=a(1473);e.exports={xml2js:r,xml2json:n,js2xml:i,json2xml:o}},2160:(e,t,a)=>{var r,n,i=a(4314),o=a(7725).isArray;function s(e,t,a){return(!a&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function c(e,t,a){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,n,r));var i,o,c,l,u=[];for(i in e)e.hasOwnProperty(i)&&null!==e[i]&&void 0!==e[i]&&(l=t.noQuotesForNativeAttributes&&"string"!=typeof e[i]?"":'"',o=(o=""+e[i]).replace(/"/g,"""),c="attributeNameFn"in t?t.attributeNameFn(i,o,n,r):i,u.push(t.spaces&&t.indentAttributes?s(t,a+1,!1):" "),u.push(c+"="+l+("attributeValueFn"in t?t.attributeValueFn(o,i,n,r):o)+l));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&u.push(s(t,a,!1)),u.join("")}function l(e,t,a){return r=e,n="xml",t.ignoreDeclaration?"":"<?xml"+c(e[t.attributesKey],t,a)+"?>"}function u(e,t,a){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var o="instructionNameFn"in t?t.instructionNameFn(i,e[i],n,r):i;if("object"==typeof e[i])return r=e,n=o,"<?"+o+c(e[i][t.attributesKey],t,a)+"?>";var s=e[i]?e[i]:"";return"instructionFn"in t&&(s=t.instructionFn(s,i,n,r)),"<?"+o+(s?" "+s:"")+"?>"}function p(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,n,r):e)+"--\x3e"}function f(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,n,r):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function d(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,n,r):e)+">"}function m(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&/g,"&")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,n,r):e)}function h(e,t,a,i){return e.reduce((function(e,o){var l=s(t,a,i&&!e);switch(o.type){case"element":return e+l+function(e,t,a){r=e,n=e.name;var i=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+o),e[t.attributesKey]&&i.push(c(e[t.attributesKey],t,a));var s=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&"preserve"===e[t.attributesKey]["xml:space"];return s||(s="fullTagEmptyElementFn"in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement),s?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(h(e[t.elementsKey],t,a+1)),r=e,n=e.name),i.push(t.spaces&&function(e,t){var a;if(e.elements&&e.elements.length)for(a=0;a<e.elements.length;++a)switch(e.elements[a][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":default:return!0}return!1}(e,t)?"\n"+Array(a+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}(o,t,a);case"comment":return e+l+p(o[t.commentKey],t);case"doctype":return e+l+d(o[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?l:"")+f(o[t.cdataKey],t);case"text":return e+(t.indentText?l:"")+m(o[t.textKey],t);case"instruction":var g={};return g[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],e+(t.indentInstruction?l:"")+u(g,t,a)}}),"")}function g(e,t,a){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||a)return!0;break;case t.cdataKey:if(t.indentCdata||a)return!0;break;case t.instructionKey:if(t.indentInstruction||a)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}function y(e,t,a,i,o){r=e,n=t;var l="elementNameFn"in a?a.elementNameFn(t,e):t;if(null==e||""===e)return"fullTagEmptyElementFn"in a&&a.fullTagEmptyElementFn(t,e)||a.fullTagEmptyElement?"<"+l+"></"+l+">":"<"+l+"/>";var u=[];if(t){if(u.push("<"+l),"object"!=typeof e)return u.push(">"+m(e,a)+"</"+l+">"),u.join("");e[a.attributesKey]&&u.push(c(e[a.attributesKey],a,i));var p=g(e,a,!0)||e[a.attributesKey]&&"preserve"===e[a.attributesKey]["xml:space"];if(p||(p="fullTagEmptyElementFn"in a?a.fullTagEmptyElementFn(t,e):a.fullTagEmptyElement),!p)return u.push("/>"),u.join("");u.push(">")}return u.push(v(e,a,i+1,!1)),r=e,n=t,t&&u.push((o?s(a,i,!1):"")+"</"+l+">"),u.join("")}function v(e,t,a,r){var n,i,c,h=[];for(i in e)if(e.hasOwnProperty(i))for(c=o(e[i])?e[i]:[e[i]],n=0;n<c.length;++n){switch(i){case t.declarationKey:h.push(l(c[n],t,a));break;case t.instructionKey:h.push((t.indentInstruction?s(t,a,r):"")+u(c[n],t,a));break;case t.attributesKey:case t.parentKey:break;case t.textKey:h.push((t.indentText?s(t,a,r):"")+m(c[n],t));break;case t.cdataKey:h.push((t.indentCdata?s(t,a,r):"")+f(c[n],t));break;case t.doctypeKey:h.push(s(t,a,r)+d(c[n],t));break;case t.commentKey:h.push(s(t,a,r)+p(c[n],t));break;default:h.push(s(t,a,r)+y(c[n],i,t,a,g(c[n],t)))}r=r&&!h.length}return h.join("")}e.exports=function(e,t){t=function(e){var t=i.copyOptions(e);return i.ensureFlagExists("ignoreDeclaration",t),i.ensureFlagExists("ignoreInstruction",t),i.ensureFlagExists("ignoreAttributes",t),i.ensureFlagExists("ignoreText",t),i.ensureFlagExists("ignoreComment",t),i.ensureFlagExists("ignoreCdata",t),i.ensureFlagExists("ignoreDoctype",t),i.ensureFlagExists("compact",t),i.ensureFlagExists("indentText",t),i.ensureFlagExists("indentCdata",t),i.ensureFlagExists("indentAttributes",t),i.ensureFlagExists("indentInstruction",t),i.ensureFlagExists("fullTagEmptyElement",t),i.ensureFlagExists("noQuotesForNativeAttributes",t),i.ensureSpacesExists(t),"number"==typeof t.spaces&&(t.spaces=Array(t.spaces+1).join(" ")),i.ensureKeyExists("declaration",t),i.ensureKeyExists("instruction",t),i.ensureKeyExists("attributes",t),i.ensureKeyExists("text",t),i.ensureKeyExists("comment",t),i.ensureKeyExists("cdata",t),i.ensureKeyExists("doctype",t),i.ensureKeyExists("type",t),i.ensureKeyExists("name",t),i.ensureKeyExists("elements",t),i.checkFnExists("doctype",t),i.checkFnExists("instruction",t),i.checkFnExists("cdata",t),i.checkFnExists("comment",t),i.checkFnExists("text",t),i.checkFnExists("instructionName",t),i.checkFnExists("elementName",t),i.checkFnExists("attributeName",t),i.checkFnExists("attributeValue",t),i.checkFnExists("attributes",t),i.checkFnExists("fullTagEmptyElement",t),t}(t);var a=[];return r=e,n="_root_",t.compact?a.push(v(e,t,0,!0)):(e[t.declarationKey]&&a.push(l(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&a.push(h(e[t.elementsKey],t,0,!a.length))),a.join("")}},1473:(e,t,a)=>{var r=a(2160);e.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var a=null;if("string"==typeof e)try{a=JSON.parse(e)}catch(e){throw new Error("The JSON structure is invalid")}else a=e;return r(a,t)}},4314:(e,t,a)=>{var r=a(7725).isArray;e.exports={copyOptions:function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);return a},ensureFlagExists:function(e,t){e in t&&"boolean"==typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!=typeof e.spaces&&"string"!=typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"==typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},5707:(e,t,a)=>{var r,n,i=a(9871),o=a(4314),s=a(7725).isArray;function c(e){var t=Number(e);if(!isNaN(t))return t;var a=e.toLowerCase();return"true"===a||"false"!==a&&e}function l(e,t){var a;if(r.compact){if(!n[r[e+"Key"]]&&(s(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(n[r[e+"Key"]]=[]),n[r[e+"Key"]]&&!s(n[r[e+"Key"]])&&(n[r[e+"Key"]]=[n[r[e+"Key"]]]),e+"Fn"in r&&"string"==typeof t&&(t=r[e+"Fn"](t,n)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r))for(a in t)if(t.hasOwnProperty(a))if("instructionFn"in r)t[a]=r.instructionFn(t[a],a,n);else{var i=t[a];delete t[a],t[r.instructionNameFn(a,i,n)]=i}s(n[r[e+"Key"]])?n[r[e+"Key"]].push(t):n[r[e+"Key"]]=t}else{n[r.elementsKey]||(n[r.elementsKey]=[]);var o={};if(o[r.typeKey]=e,"instruction"===e){for(a in t)if(t.hasOwnProperty(a))break;o[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(a,t,n):a,r.instructionHasAttributes?(o[r.attributesKey]=t[a][r.attributesKey],"instructionFn"in r&&(o[r.attributesKey]=r.instructionFn(o[r.attributesKey],a,n))):("instructionFn"in r&&(t[a]=r.instructionFn(t[a],a,n)),o[r.instructionKey]=t[a])}else e+"Fn"in r&&(t=r[e+"Fn"](t,n)),o[r[e+"Key"]]=t;r.addParent&&(o[r.parentKey]=n),n[r.elementsKey].push(o)}}function u(e){var t;if("attributesFn"in r&&e&&(e=r.attributesFn(e,n)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=c(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,n)),"attributeNameFn"in r)){var a=e[t];delete e[t],e[r.attributeNameFn(t,e[t],n)]=a}return e}function p(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){for(var a,i=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(a=i.exec(e.body));)t[a[1]]=a[2]||a[3]||a[4];t=u(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;n[r.declarationKey]={},Object.keys(t).length&&(n[r.declarationKey][r.attributesKey]=t),r.addParent&&(n[r.declarationKey][r.parentKey]=n)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var o={};r.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][r.attributesKey]=t):o[e.name]=e.body,l("instruction",o)}}function f(e,t){var a;if("object"==typeof e&&(t=e.attributes,e=e.name),t=u(t),"elementNameFn"in r&&(e=r.elementNameFn(e,n)),r.compact){var i;if(a={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(i in a[r.attributesKey]={},t)t.hasOwnProperty(i)&&(a[r.attributesKey][i]=t[i]);!(e in n)&&(s(r.alwaysArray)?-1!==r.alwaysArray.indexOf(e):r.alwaysArray)&&(n[e]=[]),n[e]&&!s(n[e])&&(n[e]=[n[e]]),s(n[e])?n[e].push(a):n[e]=a}else n[r.elementsKey]||(n[r.elementsKey]=[]),(a={})[r.typeKey]="element",a[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(a[r.attributesKey]=t),r.alwaysChildren&&(a[r.elementsKey]=[]),n[r.elementsKey].push(a);a[r.parentKey]=n,n=a}function d(e){r.ignoreText||(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=c(e)),r.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),l("text",e))}function m(e){r.ignoreComment||(r.trim&&(e=e.trim()),l("comment",e))}function h(e){var t=n[r.parentKey];r.addParent||delete n[r.parentKey],n=t}function g(e){r.ignoreCdata||(r.trim&&(e=e.trim()),l("cdata",e))}function y(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),l("doctype",e))}function v(e){e.note=e}e.exports=function(e,t){var a=i.parser(!0,{}),s={};if(n=s,r=function(e){return r=o.copyOptions(e),o.ensureFlagExists("ignoreDeclaration",r),o.ensureFlagExists("ignoreInstruction",r),o.ensureFlagExists("ignoreAttributes",r),o.ensureFlagExists("ignoreText",r),o.ensureFlagExists("ignoreComment",r),o.ensureFlagExists("ignoreCdata",r),o.ensureFlagExists("ignoreDoctype",r),o.ensureFlagExists("compact",r),o.ensureFlagExists("alwaysChildren",r),o.ensureFlagExists("addParent",r),o.ensureFlagExists("trim",r),o.ensureFlagExists("nativeType",r),o.ensureFlagExists("nativeTypeAttributes",r),o.ensureFlagExists("sanitize",r),o.ensureFlagExists("instructionHasAttributes",r),o.ensureFlagExists("captureSpacesBetweenElements",r),o.ensureAlwaysArrayExists(r),o.ensureKeyExists("declaration",r),o.ensureKeyExists("instruction",r),o.ensureKeyExists("attributes",r),o.ensureKeyExists("text",r),o.ensureKeyExists("comment",r),o.ensureKeyExists("cdata",r),o.ensureKeyExists("doctype",r),o.ensureKeyExists("type",r),o.ensureKeyExists("name",r),o.ensureKeyExists("elements",r),o.ensureKeyExists("parent",r),o.checkFnExists("doctype",r),o.checkFnExists("instruction",r),o.checkFnExists("cdata",r),o.checkFnExists("comment",r),o.checkFnExists("text",r),o.checkFnExists("instructionName",r),o.checkFnExists("elementName",r),o.checkFnExists("attributeName",r),o.checkFnExists("attributeValue",r),o.checkFnExists("attributes",r),r}(t),a.opt={strictEntities:!0},a.onopentag=f,a.ontext=d,a.oncomment=m,a.onclosetag=h,a.onerror=v,a.oncdata=g,a.ondoctype=y,a.onprocessinginstruction=p,a.write(e).close(),s[r.elementsKey]){var c=s[r.elementsKey];delete s[r.elementsKey],s[r.elementsKey]=c,delete s.text}return s}},4096:(e,t,a)=>{var r=a(4314),n=a(5707);e.exports=function(e,t){var a,i,o;return a=function(e){var t=r.copyOptions(e);return r.ensureSpacesExists(t),t}(t),i=n(e,a),o="compact"in a&&a.compact?"_parent":"parent",("addParent"in a&&a.addParent?JSON.stringify(i,(function(e,t){return e===o?"_":t}),a.spaces):JSON.stringify(i,null,a.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},1097:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(4681),n=a(3435),i=a(1918),o=a(2432),s=a(4330),c=a(5008);var l=a(3435);t.getGenericSchema=l.getGenericSchema,t.generateSchema=function(e){let t;if(e[r.FioriElementsVersion.v2]){const a=e[r.FioriElementsVersion.v2];if(a[n.SchemaType.ListReport]){const{genericSchema:e,entitySet:r,annotations:o,manifest:s,fragments:c}=a[n.SchemaType.ListReport];t=i.generateListReportInterfaceV2(e,r,o,s,c)}else if(a[n.SchemaType.ObjectPage]){const{genericSchema:e,entitySet:r,annotations:o,manifest:s,fragments:c}=a[n.SchemaType.ObjectPage];t=i.generateObjectPageInterfaceV2(e,r,o,s,c)}else if(a[n.SchemaType.OverviewPage]){const{genericSchema:e,manifest:r}=a[n.SchemaType.OverviewPage];t=i.generateOVPInterfaceV2(e,r)}else if(a[n.SchemaType.AnalyticalListPage]){const{genericSchema:e,entitySet:r,annotations:o,manifest:s,fragments:c}=a[n.SchemaType.AnalyticalListPage];t=i.generateAnalyticalListPageInterfaceV2(e,r,o,s,c)}}return t},t.exportConfig=function(e){let t;if(e[r.FioriElementsVersion.v2]){const a=e[r.FioriElementsVersion.v2];t=o.exportPageV2(a,e.ui5Version)}return t},t.importConfig=function(e){let t;if(e[r.FioriElementsVersion.v2]){const a=e[r.FioriElementsVersion.v2];if(a[n.SchemaType.ListReport]){const{manifest:e,flex:r,jsonSchema:i,fragments:o,logger:c}=a[n.SchemaType.ListReport];t=s.createListReportConfig(e,r,i,o,c)}else if(a[n.SchemaType.ObjectPage]){const{manifest:e,flex:r,jsonSchema:i,entitySet:o,fragments:c,logger:l}=a[n.SchemaType.ObjectPage];t=s.createObjectPageConfig(e,r,i,o,c,l)}else if(a[n.SchemaType.OverviewPage]){const{manifest:e,jsonSchema:r}=a[n.SchemaType.OverviewPage];t=s.createOverviewPageConfig(e,r)}else if(a[n.SchemaType.AnalyticalListPage]){const{manifest:e,flex:r,jsonSchema:i,fragments:o,logger:c}=a[n.SchemaType.AnalyticalListPage];t=s.createAnalyticalListPageConfig(e,r,i,o,c)}}return t},t.importProject=async function(e){return await c.importProjectSchemaAndConfig(e)},t.importProjectSchema=async function(e){return await c.importProjectSchema(e)},t.getApiVersion=function(){return{version:"1"}}},5921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"},t.log=(e,a,...r)=>{e?e[a.severity](a.message,a.location,...r):a.location?console.log(t.LogSeverityLabel[a.severity]+":"+a.message+"/nlocation: "+a.location,...r):console.log(t.LogSeverityLabel[a.severity]+":"+a.message,...r)}},2449:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(a(9154)),i=r(a(2892)),o=a(1997);t.initI18n=function(e="en"){n.default.init({resources:{en:{translation:i.default}},lng:e,fallbackLng:"en",joinArrays:"\n\n"}),o.initI18n(n.default)}},4027:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(6971)),r(a(8517)),r(a(1097)),r(a(3435)),r(a(5921)),r(a(2735))},2735:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(5622),n=a(5747),i=async e=>new Promise(((t,a)=>{n.readFile(e,{encoding:"utf8"},((e,r)=>{e?a(e):t(r)}))}));t.readDirectory=async e=>new Promise(((t,a)=>{n.readdir(e,{encoding:"utf8"},((e,r)=>{e?a(e):t(r)}))})),t.isDirectory=async e=>new Promise((t=>{n.stat(e,((e,a)=>{t(!e&&a.isDirectory())}))}));const o=async e=>new Promise((t=>{n.exists(e,(e=>{t(e)}))})),s=async e=>await(async e=>JSON.parse(await i(e)))(r.join(e,"manifest.json"));t.getProject=async e=>{const a=r.basename(e),n=r.join(e,"webapp"),c=await s(n);return{root:e,name:a,manifest:c,annotations:await(async(e,t)=>{const a=[],n=e["sap.app"].dataSources;if(n.mainService&&n.mainService.settings&&n.mainService.settings.localUri){const e=r.join(t,n.mainService.settings.localUri);a.push({dataSourceUri:e,fileContent:await i(e)})}if(n&&n.mainService&&n.mainService.settings&&n.mainService.settings.annotations)for(const e of n.mainService.settings.annotations){const o=r.join(t,n[e].settings.localUri);a.push({dataSourceUri:o,fileContent:await i(o)})}if(0===a.length)for(const e in n){const o=n[e];if("ODataAnnotation"===o.type&&o.settings&&o.settings.localUri){const e=r.join(t,o.settings.localUri);a.push({dataSourceUri:e,fileContent:await i(e)})}}return a})(c,n),changes:await(async e=>{const a=[],n=r.join(e,"changes");if(!await o(n))return a;const s=await t.readDirectory(n);for(const t of s)a.push(await i(r.join(e,"changes",t)));return a})(n),fragments:await(async e=>{const a=[],n=r.join(e,"ext","fragments");if(!await o(n))return a;const s=await t.readDirectory(n);for(const e of s){const t=r.join(n,e),o=await i(t);a.push({dataSourceUri:t,fileContent:o})}return a})(n)}}},6971:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(4681)),r(a(3404)),r(a(3435)),r(a(6904))},4681:(e,t)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage"}(a=t.PageType||(t.PageType={})),function(e){e.v2="v2",e.v4="v4"}(t.FioriElementsVersion||(t.FioriElementsVersion={})),function(e){e.v2="v2",e.v4="v4"}(t.OdataVersion||(t.OdataVersion={})),t.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP=new Map([[a.ListReport,"sap.suite.ui.generic.template.ListReport.view.ListReport"],[a.AnalyticalListPage,"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],[a.ObjectPage,"sap.suite.ui.generic.template.ObjectPage.view.Details"]])},6904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen"}(t.FlexibleColumnLayoutType||(t.FlexibleColumnLayoutType={}))},6442:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.OData="OData",e.ODataAnnotation="ODataAnnotation"}(t.DataSourceType||(t.DataSourceType={}))},3404:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(6442)),r(a(5281))},5281:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIORI_FCL_ROOT_VIEW_NAME="sap.fe.templates.RootContainer.view.Fcl",t.FIORI_FCL_ROOT_ID="appRootView",function(e){e.XML="XML",e.HTML="HTML",e.JS="JS",e.JSON="JSON"}(t.ViewTypes||(t.ViewTypes={})),t.SAPUI5_VIEW_CLASS="sap.ui.core.mvc.View",t.SAPUI5_FRAGMENT_CLASS="sap.ui.core.Fragment"},3435:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(5747),n=a(5622);var i;!function(e){e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage"}(i=t.SchemaType||(t.SchemaType={}));t.getGenericSchema=async(e,t)=>{try{const a=((e,t)=>{const a=t===i.Application?i.Application+e.toUpperCase()+".json":t+"Config.json";return n.join(__dirname,"schemas",e,a)})(e,t);return await(async e=>new Promise(((t,a)=>{r.readFile(e,{encoding:"utf8"},((e,r)=>{e?a(e):t(JSON.parse(r))}))})))(a)}catch(a){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${a.message}`)}}},2387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall"}(t.ChartType||(t.ChartType={}))},6745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut"}(t.ChartCardType||(t.ChartCardType={})),function(e){e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack"}(t.CardTemplateType||(t.CardTemplateType={})),t.cardTemplateTypeMap={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},function(e){e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings"}(t.CardSettingsType||(t.CardSettingsType={})),function(e){e.standard="standard",e.bar="bar",e.carousel="carousel"}(t.ListFlavorType||(t.ListFlavorType={})),function(e){e.extended="extended",e.condensed="condensed"}(t.ListTypeType||(t.ListTypeType={})),function(e){e.ascending="ascending",e.descending="descending"}(t.SortOrderType||(t.SortOrderType={})),function(e){e.standard="standard",e.carousel="carousel"}(t.LinkListFlavorType||(t.LinkListFlavorType={}))},3872:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Circle="Circle",e.Square="Square"}(t.AvatarShape||(t.AvatarShape={}))},163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Editable="{ui>/editable}",e.NotEditable="{= !${ui>/editable}}"}(t.BindingValue||(t.BindingValue={}))},7876:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet"}(t.SectionPosition||(t.SectionPosition={})),function(e){e.XML="XML"}(t.ExtensionFragmentTypes||(t.ExtensionFragmentTypes={}))},9649:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.inline="inline"}(t.CreateMode||(t.CreateMode={}))},2906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End"}(t.HAlign||(t.HAlign={})),function(e){e.XML="XML"}(t.customColumnViewTypes||(t.customColumnViewTypes={})),function(e){e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable"}(t.TableTypeV2||(t.TableTypeV2={})),function(e){e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension"}(t.TableColumnExtensionTypeV2||(t.TableColumnExtensionTypeV2={})),function(e){e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall"}(t.PopinLayout||(t.PopinLayout={})),function(e){e.extension="extension"}(t.Strategy||(t.Strategy={})),function(e){e.charttable="charttable",e.chart="chart",e.table="table"}(t.DefaultContentView||(t.DefaultContentView={})),function(e){e.visual="visual",e.compact="compact"}(t.DefaultFilterMode||(t.DefaultFilterMode={}))},6402:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(2906)),r(a(3872)),r(a(163)),r(a(7876)),r(a(6745)),r(a(9649)),r(a(2387))},390:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(3800)),r(a(6402)),r(a(9809))},2505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.fixed="fixed",e.resizable="resizable"}(t.ContainerLayoutType||(t.ContainerLayoutType={}))},3800:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}(a(2505))},9809:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}(a(4149))},4149:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(4867)),r(a(1374))},1374:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SAPUI5_VIEW_EXTENSION="sap.ui.viewExtensions",t.SAPUI5_CONTROLLER_EXTENSION="sap.ui.controllerExtensions",t.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE="sap.suite.ui.generic.template.ObjectPage.view.Details",t.SAPUI5_VIEW_EXTENSION_LIST_REPORT="sap.suite.ui.generic.template.ListReport.view.ListReport",t.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"},4867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FE_TEMPLATE_V2_OBJECT_PAGE="sap.suite.ui.generic.template.ObjectPage",t.FE_TEMPLATE_V2_LIST_REPORT="sap.suite.ui.generic.template.ListReport",t.FE_TEMPLATE_V2_ALP="sap.suite.ui.generic.template.AnalyticalListPage"},4093:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(6971),n=a(8517),i=a(9081),o=a(3435);t.AppProvider=class AppProvider{constructor(e,t,a,n,s,c){this.unhandledControllers=[];const l=i.getSchemaFilePath(o.SchemaType.Application);this.app=Object.assign({$schema:l.path,id:e["sap.app"].id,pages:n,home:a,target:{fioriElements:s,odata:s===r.FioriElementsVersion.v2?r.OdataVersion.v2:r.OdataVersion.v4}},c&&{settings:c}),this.schemas=t}createConfigFiles(){const e={},t={};let a;for(const t in this.app.pages)if(a=this.app.pages[t],a.config){const r=i.getSchemaFilePath(a.pageType,a.entitySet),o=a.config;if(this.schemas[r.filename])o.$schema=r.path;else{const e=i.getSchemaFilePath(a.pageType);o.$schema=e.path}e[`${n.DirName.Pages}/${t}.json`]=o}const r=JSON.parse(JSON.stringify(this.app));for(const e in r.pages)delete r.pages[e].config;return t[n.FileName.App]=r,{appConfig:t,pageConfigs:e}}}},3265:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(8517),n=a(9081);function i(e){return e.replace(/[^-A-Za-z0-9_.:]/g,(function(e){const t=e.charCodeAt(0).toString(16);return":"+(1===t.length?"0":"")+t}))}t.buildControlIdFromParent=(e,t)=>e+t.join("::"),t.buildControlIdForPage=(e,t,a)=>e+t.join("::")+a[0],t.convertSectionId=(e,t)=>{let a;const n=r.FacetTitlePrefix;return a=void 0!==t?t.split(n)[1]:e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),a},t.escapeId=i,t.buildColumnControlId=(e,a,r,n,o)=>{let s,c="listReport";const l=[...r];a=a.map((function(e){if("sections"===e)for(let e=0;e<l.length;e++){if("sections"===l[e]&&(s=l[e+1],-1!==s.indexOf("LineItem")))return l[e+1]=t.convertSectionId(s,o)+"::Table"}return e})),"sections"===l[0]&&(c=l[1].replace(/::com.sap.vocabularies/g,"/@com.sap.vocabularies").replace(/::@com.sap.vocabularies/g,"/@com.sap.vocabularies"));const u=l[l.length-1].replace(/::com.sap.vocabularies/g,"/@com.sap.vocabularies").replace(/::@com.sap.vocabularies/g,"/@com.sap.vocabularies").replace("sTarget/@","sTarget::@");let p;const f=u.indexOf(":::");return p=u.startsWith("DataField")&&f>-1?e+"template:::TableColumn:::"+u.substr(0,f)+":::sSmartTableId::"+c.replace("::Table",":3a:3aTable")+":::"+u.substr(f+3):e+a.join("::")+"-"+u,i(p)},t.addPatternForBindingChangeOfEnum=(e,t,a)=>{const i=t&&t.properties,o=i[a];let s,c=r.BindingPropertyRegexAsString;s=o.$ref?e.definitions[o.$ref.split(n.DEFINITION_LINK_PREFIX)[1]]:o;const l=o.description?o.description:s.description;if(s.enum){let e;s.enum.forEach((t=>{t.toString().startsWith("{")||(e=e?e+"|"+t.toString():t.toString())})),c="^("+e+")$|"+c}i[a]={pattern:c,anyOf:[o,{type:"string"}]},l&&(i[a].description=l,delete o.description)}},2762:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a(2775),t.reflectMetadataKey=Symbol("specificationMetadataKey"),t.syncRule=e=>Reflect.metadata(t.reflectMetadataKey,e),t.getReflectMetadata=function(e,a){if(e)return Reflect.getMetadata(t.reflectMetadataKey,e,a)},t.pageLayoutInformation=e=>t=>{t.prototype.pageLayoutInformation=e};const r=Symbol("childId");t.childId=e=>Reflect.metadata(r,e),t.getChildId=(e,t)=>Reflect.getMetadata(r,e,t),t.getPageLayoutInformation=e=>Object.getPrototypeOf(e).pageLayoutInformation,t.validityMetadataKey=Symbol("validityMetadataKey"),t.validity=e=>Reflect.metadata(t.validityMetadataKey,e),t.getTextForDeprecated=function(e,t){let a=e+" is deprecated";return t&&t.deprecated&&(a=t.deprecated.since?a+" since "+t.deprecated.since:a,a=t.deprecated.text?a+". "+t.deprecated.text:a),a}},6785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MetadataFactory=class MetadataFactory{constructor(e,t,a){this.controls=e,this.pages=t,this.pageTypes=a}createInstance(e,t,a,r){let n=this.controls[r]?this.controls[r]:this.controls[t];n||(n=this.pageTypes[e][r]?this.pageTypes[e][r]:this.pageTypes[e][t]);return n?Object.assign(new n,a):a}createPageInstance(e,t){const a=this.pages[e];return a?Object.assign(new a,t):null}}},4792:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(1684);t.exportToFlexChange=function(e,t){return r.createChangeString(e,t)}},5599:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(3265)),r(a(2762)),r(a(4792))},1684:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=r(a(2281)).default.change,i={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};t.createChangeString=function(e,t){let a="";try{for(const t in i)void 0===e[t]&&(e[t]=i[t]);a=n.createChangeString(e,t)}catch(e){console.error("Error while create flex change.",e)}return a},t.parseChangeString=function(e){return n.parse(e)},t.createFlexChange=function(e,t,a,r,n,i,o,s){const c={controlId:a.flex.controlId(n,i,t,a.flex.controlType,o),controlType:a.flex.controlType(),content:{property:s},sapui5Version:r};return void 0!==e[s]?a.flex.exportFlexValue?a.flex.exportFlexValue(c,e,s):e[s].toString().startsWith("{")?(c.content.newBinding=e[s],c.type="propertyBindingChange"):c.content.newValue=e[s]:c.content.newValue=null,c}},7108:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=a(6971),i=a(3435),o=r(a(4867)),s=a(1918),c=a(3073),l=a(4370),u=a(9081),p=a(8517),f=a(2449);function d(e){const t={Facets:[],LineItems:[]},a=e&&e.entityTypes;if(a){const r=u.findAlias("com.sap.vocabularies.UI.v1",e);for(const e of a){if(!e.annotations||!e.annotations[r])continue;const a=e.name||e.fullyQualifiedName.split(".").pop(),{LineItem:n,Facets:i}=e.annotations[r];n&&!n.qualifier&&n.find((e=>"com.sap.vocabularies.UI.v1.DataField"===e.$Type||"com.sap.vocabularies.UI.v1.DataFieldForAnnotation"===e.$Type))&&t.LineItems.push(a),i&&!i.qualifier&&t.Facets.push(a)}}return t}function m(e,t){return(null==t?void 0:t.entitySets)&&t.entitySets.find((t=>t.name===e))}function h(e,t,a,r,i,l){const p=c.getPages(t["sap.ui.generic.app"].pages,o.FE_TEMPLATE_V2_OBJECT_PAGE);for(const o in p){const c=p[o].entitySet,f=m(c,a),d=f&&f.entityType&&f.entityType.name,h=u.getSchemaFilePath(n.SchemaType.ObjectPage,(null==f?void 0:f.name)||c),g=u.getSchemaFilePath(n.SchemaType.ObjectPage);r[h.filename]=s.generateObjectPageSchemaV2(e[g.filename],d,a,t,i,l)}}async function g(e,t,a,r,l,p){const f=await async function(e,t){const a={};let r=[];switch(r=[n.SchemaType.Application],e){case u.TemplateType.ListReportObjectPageV2:r.push(n.SchemaType.ListReport,n.SchemaType.ObjectPage);break;case u.TemplateType.AnalyticalListPageV2:r.push(n.SchemaType.AnalyticalListPage,n.SchemaType.ObjectPage);break;case u.TemplateType.OverviewPageV2:r.push(n.SchemaType.OverviewPage)}for(const e of r)a[u.getSchemaFilePath(e).filename]=await i.getGenericSchema(t,e);return a}(l,t);if(t===n.FioriElementsVersion.v2)return function(e,t,a,r,i,l){const p={},f=a&&a.entityTypes;if(i===u.TemplateType.ListReportObjectPageV2&&t){const t=c.getPages(r["sap.ui.generic.app"].pages,o.FE_TEMPLATE_V2_LIST_REPORT);for(const i in t){const o=t[i].entitySet,c=m(o,a),d=c&&c.entityType&&c.entityType.name,h=u.getSchemaFilePath(n.SchemaType.ListReport,(null==c?void 0:c.name)||o),g=u.getSchemaFilePath(n.SchemaType.ListReport);p[h.filename]=s.generateListReportSchemaV2(e[g.filename],d,f,r,l)}h(e,r,a,p)}else if(i===u.TemplateType.AnalyticalListPageV2&&t){const t=c.getPages(r["sap.ui.generic.app"].pages,o.FE_TEMPLATE_V2_ALP);for(const i in t){const o=t[i].entitySet,c=m(o,a),d=c&&c.entityType&&c.entityType.name,h=u.getSchemaFilePath(n.SchemaType.AnalyticalListPage,(null==c?void 0:c.name)||o),g=u.getSchemaFilePath(n.SchemaType.AnalyticalListPage);p[h.filename]=s.generateAnalyticalListReportSchemaV2(e[g.filename],d,f,r,l)}h(e,r,a,p)}else if(i===u.TemplateType.OverviewPageV2){const t=u.getSchemaFilePath(n.SchemaType.OverviewPage),a=u.getSchemaFilePath(n.SchemaType.OverviewPage);p[t.filename]=s.generateOVPInterfaceV2(e[a.filename],r)}return Object.assign(Object.assign({},e),p)}(f,e,a,r,l,p)}function y(e,t){let a=[];for(const t of Object.keys(e).sort()){let r;r=t===n.SchemaType.Application?`${p.DirName.Schemas}/${p.FileName.App[0].toUpperCase()}${p.FileName.App.slice(1)}`:`${p.DirName.Schemas}/${t}.json`,a.push({dataSourceUri:r,fileContent:JSON.stringify(e[t],null,4)})}return t&&(a=a.concat(t)),a}t.getEntitySetByEntitySetName=m,t.importProjectSchema=async function(e){f.initI18n();let t=[];const{manifest:a,annotations:r,fragments:n,logger:i}=e,o=u.getVersionFromManifest(a),s=u.parseAndMergeAndConvert(r,i),c=d(s),l=u.getTemplateTypeFromManifest(a,o,i);if(!l)return;return t=y(await g(c,o,s,a,l,n)),t},t.importProjectSchemaAndConfig=async function(e){f.initI18n();let t=[],a=[];const{manifest:r,annotations:n,flex:i,fragments:o,logger:s}=e,p=u.getVersionFromManifest(r),m=u.parseAndMergeAndConvert(n,s),h=d(m),v=u.getTemplateTypeFromManifest(r,p,s);if(!v)return;const b=await g(h,p,m,r,v,o);return a=function(e,t,a,r,n,i){let o;const s=[];switch(n){case u.TemplateType.ListReportObjectPageV2:case u.TemplateType.AnalyticalListPageV2:o=new c.V2AppProvider(e,t,a,i);break;case u.TemplateType.OverviewPageV2:o=new l.V2OvpProvider(e,a)}if(o){const{appConfig:e,pageConfigs:t}=o.createConfigFiles();for(const t in e)s.push({dataSourceUri:t,fileContent:JSON.stringify(e[t],null,4)});for(const e in t)s.push({dataSourceUri:e,fileContent:JSON.stringify(t[e],null,4)})}return s}(r,i,b,0,v,o),t=y(b,a),t}},5008:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(9081)),r(a(8517)),r(a(5599)),r(a(1684));var n=a(7108);t.importProjectSchemaAndConfig=n.importProjectSchemaAndConfig,t.importProjectSchema=n.importProjectSchema},8517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.flex="flex",e.manifest="manifest"}(t.ExportArtifacts||(t.ExportArtifacts={})),function(e){e.Schemas=".schemas",e.Pages="pages"}(t.DirName||(t.DirName={})),function(e){e.App="app.json"}(t.FileName||(t.FileName={})),t.FacetTitlePrefix="Facet ID: ",function(e){e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart"}(t.ControlType||(t.ControlType={})),function(e){e.LineItemFacet="LineItemFacet",e.CollectionFacet="CollectionFacet",e.ChartFacet="ChartFacet",e.FormFacet="FormFacet",e.Identification="Identification",e.Unknown=""}(t.FacetBase||(t.FacetBase={})),t.BindingPropertyRegexAsString="^{[A-Za-z0-9{}&$@#!? _|,<>'()[\\]\\/:=.]+}$",function(e){e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension"}(t.ViewTemplateType||(t.ViewTemplateType={}))},9081:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=a(8517),o=a(4350),s=a(1014),c=a(6971),l=a(3435),u=r(a(5747)),p=n(a(9154)),f=a(5921),d=n(a(4225));var m;function h(e,t){var a,r;let n,i;return e.Value?"string"==typeof e.Value?i=t.entityProperties.find((t=>t.name===e.Value)):(i=t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&e.Target.$target.Value&&(i=e.Target.$target.Value.$target),(null===(r=null===(a=null==i?void 0:i.annotations)||void 0===a?void 0:a.Common)||void 0===r?void 0:r.Label)&&(n=i.annotations.Common.Label.toString()),n}function g(e){if(e)return e.split("sap.suite.ui.generic.template.")[1]}function y(e,a=!1,r=c.FioriElementsVersion.v2,n,i,o){var s,l;let u=n;const d=e.fullyQualifiedName.substr(e.fullyQualifiedName.lastIndexOf("@"));let m=e.ID?e.ID.toString():d;if("com.sap.vocabularies.UI.v1.CollectionFacet"!==e.$Type&&"Target"in e){const d=t.getAnnotationPropertyValue(e.Target);if(!d)return void f.log(o,{severity:"error",message:p.default.t("NOTARGET",{target:e.Target})});const h=r===c.FioriElementsVersion.v2?"::":"/",g=r===c.FioriElementsVersion.v2?"::":"#",y=d.split("/"),v=y.length>1?y[0]:"";v&&(u=null===(s=n.resolvePath(v))||void 0===s?void 0:s.targetType);const b=(y[1]||y[0]).split("#")[0];if(b.includes(".LineItem")){const e=m.split("::");e[e.length-1]=(a?"":"@")+"com.sap.vocabularies.UI.v1.LineItem",m=e.join("::")}else m=b.replace("@UI",(a?"":"@")+"com.sap.vocabularies.UI.v1");const P=d.split(".")[d.split(".").length-1],O=null===(l=null==u?void 0:u.annotations[i])||void 0===l?void 0:l[P];if(!O)return;m=function(e,t=!1){return`${t?"":"@"}${e.qualifier?e.term+"#"+e.qualifier:e.term}`}(O,a).replace("#",g),v&&(m=`${v}${h}${m}`)}return m=m.replace(/\//gi,"::"),m?Object.assign(Object.assign(Object.assign({key:m},e.Label&&{label:e.Label.toString()}),e.ID&&{ID:e.ID.toString()}),{entityType:u}):void 0}function v(e,t){const a=t.references.find((t=>t.namespace===e));return a&&a.alias}function b(e,t,a,r,n,o=c.FioriElementsVersion.v2,s){switch(e.$Type){case"com.sap.vocabularies.UI.v1.ReferenceFacet":!function(e,t,a,r,n=c.FioriElementsVersion.v2,o){var s,l;const u=v("com.sap.vocabularies.UI.v1",r),p=y(e,!1,n,a,u,o);if(!p)return;let f=p?p.key:"";const d=p.entityType;let m,h,g,b=u;if(f.includes("com.sap.vocabularies.UI.v1.Chart")||f.includes(u+".Chart"))t[f]={base:i.FacetBase.ChartFacet},t[f].entityType=d;else if(f.includes("com.sap.vocabularies.UI.v1.Identification")||f.includes(u+".Identification"))h=f.split(".")[f.split(".").length-1],g=d.annotations[b][h],t[f]={base:i.FacetBase.Identification},t[f].entityType=d,t[f].form=g;else if(f.includes("com.sap.vocabularies.UI.v1.LineItem")||f.includes(u+".LineItem")){if(a){if(f.includes("com.sap.vocabularies.UI.v1.LineItem"))[b,m,h]=f.split("com.sap.vocabularies.")[1].split(".");else if(f.includes(".LineItem")){h="LineItem";const e=f.split("::");e[e.length-1]="@com.sap.vocabularies.UI.v1.LineItem",f=e.join("::")}t[f]={base:i.FacetBase.LineItemFacet},t[f].lineItem=null===(s=null==e?void 0:e.Target)||void 0===s?void 0:s.$target,t[f].entityType=d}}else f.includes("com.sap.vocabularies.UI.v1.FieldGroup")||f.includes(u+".FieldGroup")?(t[f]={base:i.FacetBase.FormFacet},t[f].form=null===(l=null==e?void 0:e.Target)||void 0===l?void 0:l.$target,t[f].entityType=d):t[f]={base:i.FacetBase.Unknown};t[f]&&(t[f].annotationPath=`/${e.fullyQualifiedName.replace("@com.sap.vocabularies","/@com.sap.vocabularies")}`,e.Label&&(t[f].Label=e.Label),e.ID&&(t[f].ID=e.ID),p&&p.entityType&&(t[f].entityType=p.entityType))}(e,n,r,t,o,s);break;case"com.sap.vocabularies.UI.v1.CollectionFacet":{const c=v("com.sap.vocabularies.UI.v1",t),l=y(e,!1,o,r,c,s);if(l){const c=`/${r.fullyQualifiedName}/${e.fullyQualifiedName.split(r.fullyQualifiedName)[1]}`,u=n[l.key]={base:i.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:c,Label:l.label};e.Facets.forEach((e=>{b(e,t,a,r,u.facets,o,s)}))}break}}}!function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2"}(m=t.TemplateType||(t.TemplateType={})),t.DEFINITION_LINK_PREFIX="#/definitions/",t.readFile=async function(e){return new Promise(((t,a)=>{u.readFile(e,{encoding:"utf8"},((e,r)=>{e?a(e):t(r)}))}))},t.parseAndMergeAndConvert=function(e,t){const a=[];try{if(e&&e.forEach((function(e){a.push(s.parseEDMX(e.fileContent,e.dataSourceUri))})),0===a.length)return;const r=o.convertTypes(s.merge(a));if(t&&r.diagnostics)for(let e=0;e<r.diagnostics.length;e++){const a=r.diagnostics[e];f.log(t,{severity:"error",message:a.message})}return r}catch(e){f.log(t,{severity:"error",message:p.default.t("ANNOERR")},...e)}},t.getAnnotationPropertyValue=e=>(null==e?void 0:e.value)||(null==e?void 0:e.path),t.getDatafieldDescription=function(e,t){let a,r="";const n=function(e,t){var a,r;if("string"==typeof e)return e;if("object"==typeof e&&e.path){const n=t.resolvePath(e.path);if(!n||0===n.length)return;{const e=n[0];if(null===(r=null===(a=null==e?void 0:e.annotations)||void 0===a?void 0:a.Common)||void 0===r?void 0:r.Label)return e.annotations.Common.Label.toString()}}}(e.Label,t);switch(e.$Type){case"com.sap.vocabularies.UI.v1.DataField":a=h(e,t),r=n||a||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path);break;case"com.sap.vocabularies.UI.v1.DataFieldWithUrl":a=h(e,t),r=n||a||("string"==typeof e.Value?e.Value:e.Value.path);break;case"com.sap.vocabularies.UI.v1.DataFieldForAnnotation":a=h(e,t),r=n||a||e.Target.$target.Title||e.Target.value;break;case"com.sap.vocabularies.UI.v1.DataFieldForAction":case"com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation":r=n&&"string"==typeof n?n:e.Action;break;case"com.sap.vocabularies.UI.v1.DataFieldWithIntentBasedNavigation":a=h(e,t),r=a||e.Value.path;break;case"com.sap.vocabularies.UI.v1.DataFieldWithNavigationPath":a=h(e,t),r=n||a||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}return r},t.getPageTypeV2=g,t.getSectionFacet=y,t.getManifestSectionByPathV4=(e,t,a,r)=>{let n=e;return t.split("/").forEach((function(e){r&&r===e&&(e=a),n[e]||(n[e]={}),n=n[e]})),n},t.findAlias=v,t.getSchemaKeyOfLineItemRecord=function(e){let a,r,n;switch(e.$Type){case"com.sap.vocabularies.UI.v1.DataField":a=t.getAnnotationPropertyValue(e.Value);break;case"com.sap.vocabularies.UI.v1.DataFieldWithUrl":a="string"==typeof e.Value?e.Value:t.getAnnotationPropertyValue(e.Value);break;case"com.sap.vocabularies.UI.v1.DataFieldForAnnotation":r=e.Target.value,r&&(a="DataFieldForAnnotation:::sTarget::"+r.replace("@UI","@com.sap.vocabularies.UI.v1").replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case"com.sap.vocabularies.UI.v1.DataFieldForAction":e.Inline&&(a="DataFieldForAction:::sAction::"+e.Action);break;case"com.sap.vocabularies.UI.v1.DataFieldWithIntentBasedNavigation":n=t.getAnnotationPropertyValue(e.Value),a="DataFieldWithIntentBasedNavigation:::sProperty::"+n+":::sSemanticObject::"+e.SemanticObject+":::sAction::"+e.Action;break;case"com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation":e.Inline&&(a="DataFieldForIntentBasedNavigation:::sSemanticObject::"+e.SemanticObject+":::sAction::"+e.Action);break;case"com.sap.vocabularies.UI.v1.DataFieldWithNavigationPath":n=t.getAnnotationPropertyValue(e.Value),r=t.getAnnotationPropertyValue(e.Target),a="DataFieldWithNavigationPath:::sProperty::"+n+":::sTarget::"+r}return a},t.getObjectPageFacets=function(e,t,a=c.FioriElementsVersion.v2,r){const n={};if(!e||!e.annotations)return;const i=v("com.sap.vocabularies.UI.v1",t),o=i&&e.annotations[i]&&e.annotations[i].Facets;if(o){const i=e.fullyQualifiedName.lastIndexOf("."),s=e.fullyQualifiedName.substr(0,i);o.forEach((i=>{b(i,t,s,e,n,a,r)}))}return n},t.getVersionFromManifest=function(e){return e["sap.ui.generic.app"]||e["sap.ovp"]?c.FioriElementsVersion.v2:c.FioriElementsVersion.v4},t.getTemplateTypeFromManifest=function(e,t,a){let r;if(e["sap.ovp"])r=m.OverviewPageV2;else if(t===c.FioriElementsVersion.v2)if(e["sap.ui.generic.app"]){const t=e["sap.ui.generic.app"].pages;if(!t)return void f.log(a,{severity:"error",message:p.default.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}});for(const e in t){const a=t[e];if(g(a.component.name)===c.PageType.AnalyticalListPage){r=m.AnalyticalListPageV2;break}if(g(a.component.name)===c.PageType.ListReport){r=m.ListReportObjectPageV2;break}}}else r||f.log(a,{severity:"error",message:p.default.t("NOTEMPLATE",{section:"sap.ui.generic.app"}),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}});else r=m.ListReportObjectPageV4;return r},t.createSectionWithoutProperties=function(e){const t={type:"object",properties:{},additionalProperties:!1,annotationPath:e.annotationPath,isViewNode:!0};return e&&e.ID&&(t.title=i.FacetTitlePrefix+e.ID),e&&e.Label&&(t.description=e.Label),t},t.getObjectPageFacetSection=function(e,t,a,r=c.FioriElementsVersion.v2){const n=v("com.sap.vocabularies.UI.v1",t);if(e){const t=n&&e.annotations&&e.annotations[n]&&e.annotations[n].Facets;return t?t.reduce((function(t,i){const o=y(i,!0,r,e,n,a);return o&&t.push(o),t}),[]):[]}},t.deleteEmptyStructure=(e,a,r,n)=>{let i=e;const o=a.split("/");o.forEach((function(a){if(a===n&&(a=r),i[a])return 0===Object.keys(i[a]).length?(delete i[a],o.pop(),void t.deleteEmptyStructure(e,o.join("/"),r,n)):void(i=i&&i[a])}))};const P=e=>`${e}`;t.getSchemaFilePath=(e,t)=>{const a={filename:"",path:""};switch(e){case l.SchemaType.Application:a.filename="App",a.path=`./${i.DirName.Schemas}/${a.filename}`;break;case l.SchemaType.ListReport:case l.SchemaType.ObjectPage:a.filename=t?`${e}_${t}`:P(e),a.path=`../${i.DirName.Schemas}/${a.filename}`;break;default:a.filename=P(e),a.path=`../${i.DirName.Schemas}/${a.filename}`}return a.path+=".json",a},t.generatePageId=function(e,t,a,r,n){if(t===c.PageType.CustomPage){const e=n&&n.split(".");return e&&e[e.length-1]+"Page"}const i=[];return i.push(t),a&&i.push(a),r&&i.push(r),i.join("_")},t.getNextTargetDefinition=function e(a,r,n,i,o,s,c){let l={configObject:void 0,targetDefinition:{},title:""};const u=[];if("array"===i.type)return l=e(a,r,n,i.items,o,s,c),l;if(i.$ref)u.push(i.$ref.split(t.DEFINITION_LINK_PREFIX)[1]);else if(i.anyOf&&(n&&i.anyOf.forEach((e=>{if(e.$ref){const r=e.$ref.split(t.DEFINITION_LINK_PREFIX)[1];if(a.definitions[r]){const t=a.definitions[r].controlProperty;e.$ref.includes(n[t])&&u.push(r)}}})),0===u.length))return;if(u.length){const t=u[u.length-1];if(l.targetDefinition=a.definitions[t],l.targetDefinition.$ref||"array"===l.targetDefinition.type)return l=e(a,r,n,l.targetDefinition,o,s,c),l;u.length>1&&u.forEach((e=>{""!=e&&(l.targetDefinition.properties=Object.assign(Object.assign({},l.targetDefinition.properties),a.definitions[e].properties))})),l.title=l.targetDefinition&&l.targetDefinition.title?l.targetDefinition.title:r;const i=t.split("<")[0];l.configObject=s.createInstance(c,i,n,l.targetDefinition.controlProperty)}else l.targetDefinition=i,l.title=l.targetDefinition.title?l.targetDefinition.title:o,l.configObject=n;return l},t.addDefinitionForRelatedFacetKeys=function(e,a,r,n){const i=r.map((e=>{const t=n.find((t=>!!e[t])),a=e[t];return Object.assign(Object.assign({const:a},e.label&&{description:e.label}),e.custom&&{custom:e.custom})}));if(i.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:i};for(const r of a){const a=e.definitions[r],n=a.properties.relatedFacet;a.properties.relatedFacet={anyOf:[{$ref:t.DEFINITION_LINK_PREFIX+"RelatedFacetKeys"},n]}}}},t.arrayCombineMerge=(e,t,a)=>{const r=e.slice();return t.forEach(((t,n)=>{void 0===r[n]?r[n]=a.cloneUnlessOtherwiseSpecified(t,a):a.isMergeableObject(t)?r[n]=d.default(e[n],t,a):-1===e.indexOf(t)&&r.push(t)})),r},t.createAnnotationPath=(e,t,a)=>{let r=`/${e}/@${t}`;return a&&(r+=`#${a}`),r}},1997:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=r(a(6354));t.initI18n=function(e){e.addResourceBundle(e.language,"translation",n)}},6088:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5599),i=a(390);t.getAppSettingPathV2=e=>"sap.ui.generic.app/pages/"+e[0]+"/component/settings",t.getTableSettingPathV2=e=>t.getAppSettingPathV2(e)+"/tableSettings",t.getOVPsettingPath=()=>"sap.ovp",t.getCardSettingsPath=e=>{const t=["sap.ovp/cards"];return e.forEach((e=>{e in i.CardSettingsType?t.push("settings"):t.push(e)})),t.pop(),t.join("/")},t.getGlobalSettingsPath=e=>{const t=["sap.ovp"];return e.forEach((e=>{t.push(e)})),t.pop(),t.join("/")},t.getAppSettingOBJPathV2=e=>{const t=["sap.ui.generic.app"];return e.forEach((e=>{t.push("pages/"+e)})),t.push("component/settings"),t.join("/")},t.getKPISettingsPath=(e,t,a)=>"sap.ui.generic.app/pages/"+e[0]+"/component/settings/keyPerformanceIndicators/"+a,t.getAppRootSettingOBJPath=e=>{const t=["sap.ui.generic.app"];return e.forEach((e=>{t.push("pages/"+e)})),t.join("/")},t.getAppSettingOBJsectionPathV2=(e,a,r)=>{const n=[];n.push(t.getAppRootSettingOBJPath(e));const i=r.replace("::@com.sap.vocabularies","::com.sap.vocabularies");return n.push("component/settings/sections/"+i),n.join("/")},t.getTableSettingsOBJsectionPathV2=(e,a,r)=>t.getAppSettingOBJsectionPathV2(e,{},r)+"/tableSettings",t.getChartSettingsOBJsectionPathV2=(e,a,r)=>t.getAppSettingOBJsectionPathV2(e,{},r)+"/chartSettings",t.getViewExtensionsPath=()=>`sap.ui5/extends/extensions/${i.SAPUI5_VIEW_EXTENSION}/${i.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,t.getObjectPageCustomSectionPath=(e,a,r,...n)=>{const i="|",o=r.split(i),s=e[e.length-1].split(i);let c="";4===o.length?c=[o[2],o[3]].join(i):3===o.length&&(c=o[2]);const l=[o[0],s[s.length-1],c].join(i);return n.unshift(l),t.getViewExtensionsPath()+"/"+n.join("/")};class ApplicationV2{}r([n.childId("settings")],ApplicationV2.prototype,"settings",void 0),t.ApplicationV2=ApplicationV2;class AppSettings{}r([n.syncRule({manifest:{path:()=>"sap.app"}})],AppSettings.prototype,"title",void 0),r([n.syncRule({manifest:{path:()=>"sap.app"}})],AppSettings.prototype,"description",void 0),r([n.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),n.validity({since:"1.50.0"})],AppSettings.prototype,"flexibleColumnLayout",void 0),r([n.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),n.validity({since:"1.46.0"})],AppSettings.prototype,"forceGlobalRefresh",void 0),t.AppSettings=AppSettings},8722:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5599),i=a(2762),o=a(8517),s=e=>e+"chart";class ChartSettings{}r([i.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.SmartChart,createFlexChange:n.exportToFlexChange}})],ChartSettings.prototype,"showLegendButton",void 0),r([i.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.SmartChart,createFlexChange:n.exportToFlexChange}})],ChartSettings.prototype,"showDownloadButton",void 0),r([i.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.SmartChart,createFlexChange:n.exportToFlexChange}})],ChartSettings.prototype,"showChartTypeSelectionButton",void 0),r([i.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.SmartChart,exportFlexValue:(e,t,a)=>{e.content.newValue=t[a].join()},importFlexValue:(e,t,a)=>{e.content.newValue=e.content.newValue,t[a]=e.content.newValue.split(",")},createFlexChange:n.exportToFlexChange}})],ChartSettings.prototype,"ignoredChartTypes",void 0),t.ChartSettings=ChartSettings},8378:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(6088);class KPISettings{}r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"model",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"entitySet",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"qualifier",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"filterable",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"detailNavigation",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"groupId",void 0),t.KPISettings=KPISettings},5682:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(6088);class CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"entitySet",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"title",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"subTitle",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"identificationAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"selectionAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"presentationAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"defaultSpan",void 0),t.CommonCardSettings=CommonCardSettings;class CustomCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"entitySet",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"itemText",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"valueSelectionInfo",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"staticContent",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"listFlavor",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"listType",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"sortBy",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"sortOrder",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"annotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"chartAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"dataPointAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"kpiAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"selectionPresentationAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"dynamicSubtitleAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"ignoreSapText",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"objectStreamCardsSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"enableLocaleCurrencyFormatting",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"navigation",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"showFilterInHeader",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"showSortingInHeader",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"imageSupported",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"showLineItemDetail",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"showLabelText",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"customParams",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"chartProperties",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"colorPalette",void 0),t.CustomCard=CustomCard;class ListCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"listCardSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"tabs",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"listFlavor",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"listType",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"annotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"valueSelectionInfo",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"sortBy",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"sortOrder",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"addODataSelect",void 0),t.ListCard=ListCard;class AnalyticalCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"analyticalCardSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"chartAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"dataPointAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"valueSelectionInfo",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"tabs",void 0),t.AnalyticalCard=AnalyticalCard;class StackCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"stackCardSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"tabs",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"itemText",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"objectStreamCardsNavigationProperty",void 0),t.StackCard=StackCard;class LinklistCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"linkListCardSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"entitySet",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"title",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"subTitle",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"targetUri",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"listFlavor",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"sortBy",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"sortOrder",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"headerAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"identificationAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"defaultSpan",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"staticContent",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"tabs",void 0),t.LinklistCard=LinklistCard;class TableCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"disableTableCardFlexibility",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"tableCardSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"annotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"listFlavor",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"listType",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"dataPointAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"selectionPresentationAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"valueSelectionInfo",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"tabs",void 0),t.TableCard=TableCard},296:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(5599),o=a(6088),s=a(8517);class FilterBar{}r([n.syncRule({manifest:{path:e=>o.getAppSettingPathV2(e)}}),n.validity({since:"1.38.0"})],FilterBar.prototype,"smartVariantManagement",void 0),r([n.syncRule({flex:{controlId:i.buildControlIdFromParent,controlType:()=>s.ControlType.SmartFilterBar,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.40.0"})],FilterBar.prototype,"liveMode",void 0),r([n.syncRule({manifest:{path:e=>o.getAppSettingPathV2(e)}}),n.validity({since:"1.48.0"})],FilterBar.prototype,"variantManagementHidden",void 0),r([n.syncRule({manifest:{path:e=>o.getAppSettingPathV2(e)}}),n.validity({since:"1.52.0"})],FilterBar.prototype,"subTitleIfVariantMgmtHidden",void 0),t.FilterBar=FilterBar;class AnalyticalListPageFilterBar extends FilterBar{}r([n.syncRule({manifest:{path:e=>o.getAppSettingPathV2(e)}})],AnalyticalListPageFilterBar.prototype,"showGoButtonOnFilterBar",void 0),t.AnalyticalListPageFilterBar=AnalyticalListPageFilterBar},8049:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(8517),i=a(4139),o=a(4667),s=r(a(9154)),c=a(5921),l=a(390),u=a(1350),p=a(5622);t.FRAGMENT_DEFINITION="core:FragmentDefinition";const f=new Map([[n.ViewTemplateType.AnalyticalTableColumnsExtension,"table:AnalyticalColumn"],[n.ViewTemplateType.ResponsiveTableColumnsExtension,"Column"],[n.ViewTemplateType.TreeTableColumnsExtension,"table:Column"],[n.ViewTemplateType.GridTableColumnsExtension,"table:Column"]]),d=new Map([[l.FE_TEMPLATE_V2_LIST_REPORT,l.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[l.FE_TEMPLATE_V2_ALP,l.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[l.FE_TEMPLATE_V2_OBJECT_PAGE,l.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),m={type:"element",name:"Text",attributes:{text:"Placeholder"}},h=JSON.stringify(m);function g(e){const t=f.keys();for(const a of t){const t=f.get(a);if(e[t])return t}}function y(e){return e[g(e)]}function v(e,t){let a=!1;const r=e.customData||e["table:customData"];if(r){let n=r["core:CustomData"]._attributes.value;const i=JSON.parse(n.substr(1,n.length)),o=t.findIndex((e=>e.columnKey===i.columnKey));return o>-1&&(a=!0,n='\\{"columnKey": "'+t[o].columnKey+'"',void 0!==t[o].columnIndex&&(n+=', "columnIndex": "'+t[o].columnIndex.toString()+'"'),t[o].leadingProperty&&(n+=', "leadingProperty": "'+t[o].leadingProperty+'"'),n+="}",r["core:CustomData"]._attributes.value=n,e.Text||e.Label||(e.Text={_attributes:{}}),e.Text?e.Text._attributes.text=t[o].text:e.Label&&(e.Label._attributes.text=t[o].text),e._attributes||(e._attributes={}),e._attributes.id=t[o].id,t.splice(o,1)),a}}t.getTagNameFromFragmentJSON=g,t.getRootCustomColumnFromFragmentJSON=y,t.deleteColumnFromFragment=function(e,a,r,o){if(o){let s=e[a].fragmentName.substr(r.length+1),c=e.type?e.type.toLowerCase():"xml",l=s.split("."),u=l[l.length-1]+".fragment."+c;for(let e=0;e<o.length;e++){const a=o[e],r=a.dataSourceUri.split(p.sep);if(r[r.length-1]===u){const e=JSON.parse(i.xml2json(a.fileContent,{compact:!0})),r=g(e[t.FRAGMENT_DEFINITION]);r&&(delete e[t.FRAGMENT_DEFINITION][r],a.fileContent=i.json2xml(JSON.stringify(e),{compact:!0,spaces:4}));break}}const f=e[a.replace(n.ViewTemplateType.ResponsiveTableColumnsExtension,n.ViewTemplateType.ResponsiveTableCellsExtension)];if(f){c=f.type?f.type.toLowerCase():"xml",s=f.fragmentName.substr(r.length+1),l=s.split("."),u=l[l.length-1]+".fragment."+c;for(let e=0;e<o.length;e++){const t=o[e];if(t.dataSourceUri.endsWith(u)){const e=JSON.parse(i.xml2json(t.fileContent)),a=e.elements[0].elements&&e.elements[0].elements.filter((e=>"element"===e.type));if(a)for(let e=0;e<a.length;e++)JSON.stringify(a[e])===h&&a.splice(e,1);break}}}}},t.exportToFragment=function(e,a,r,l,d,b){var P;const O=e.fragments,T=e.manifest;let C,S;const E=u.getManifestSectionByPathV2(T,a),_=E.type?E.type.toLowerCase():"xml";E.type=_.toUpperCase();for(let e=0;e<r.length;e++)r[e].fragmentName?(E.fragmentName=r[e].fragmentName,E.className=r[e].className,S=(null===(P=r[e].fragmentName)||void 0===P?void 0:P.replace(l,"<root>/webapp").replace(/[.]/g,p.sep))+".fragment."+_):c.log(b,{severity:"error",message:s.default.t("NOFRAGMENT",{columnKey:r[e].columnKey})});if(a.indexOf(n.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){const e=a.replace(n.ViewTemplateType.ResponsiveTableColumnsExtension,n.ViewTemplateType.ResponsiveTableCellsExtension),t=u.getManifestSectionByPathV2(T,e),i=r.reduce(((e,t)=>t.cellsFragmentName?t:e));i&&i.cellsFragmentName?(t.fragmentName=C=i.cellsFragmentName,t.className=r[0].className,t.type=_.toUpperCase()):u.deleteManifestSectionByPathV2(T,e)}const I=JSON.parse(JSON.stringify(r));let x=E.fragmentName,w=!1,F=!1;const A=x.substr(l.length+1),R=A.split(".");x=R[R.length-1]+".fragment."+_;const N=null==C?void 0:C.split("."),D=N?N[N.length-1]:null,j=D?D+".fragment."+_:null;if(O){for(let e=0;e<O.length;e++){const a=O[e];if(a.dataSourceUri.endsWith(x)){let e={};if(w=!0,a.fileContent&&0!==a.fileContent.length){const r=JSON.parse(i.xml2json(a.fileContent,{compact:!0}));if(e=y(r[t.FRAGMENT_DEFINITION]),e)if(Array.isArray(e))for(let t=0;t<e.length;t++){v(e[t],I)||(e.splice(t,1),t-=1)}else{if(!v(e,I)){const a=g(r[t.FRAGMENT_DEFINITION]);a&&(delete r[t.FRAGMENT_DEFINITION][a],e=void 0)}}for(let t=0;t<I.length;t++)if(I[t].fragmentName.endsWith(A)){const a=o.getSingleColumnContent(I[t],d);if(a){const t=y(JSON.parse(i.xml2json(a,{compact:!0})));Array.isArray(e)?e.push(t):e=e?[e,t]:[t]}}const n=f.get(d);r[t.FRAGMENT_DEFINITION][n]=e,a.fileContent=i.json2xml(JSON.stringify(r),{compact:!0,spaces:4})}else a.fileContent=o.getColumnFragmentContent(I,d);break}}if(C)for(let e=0;e<O.length;e++){const t=O[e],a=t.dataSourceUri.split(p.sep);if(a[a.length-1]===j){if(F=!0,t.fileContent&&0!==Object.keys(t.fileContent).length){const e=JSON.parse(i.xml2json(t.fileContent)),a=e.elements[0].elements&&e.elements[0].elements.filter((e=>"element"===e.type));if(!a||Object.keys(a).length!==Object.keys(r).length){if(!a||Object.keys(a).length<Object.keys(r).length){const t=a?Object.keys(a).length:0;e.elements[0].elements||(e.elements[0].elements=[]);for(let a=t;a<Object.keys(r).length;a++)e.elements[0].elements.push(m)}else if(Object.keys(a).length>Object.keys(r).length){let t=Object.keys(a).length-Object.keys(r).length;for(let a=0;a<Object.keys(e.elements[0].elements).length&&(JSON.stringify(e.elements[0].elements[a])!==h||(e.elements[0].elements.splice(a,1),t-=1,0!==t));a++);}t.fileContent=i.json2xml(JSON.stringify(e),{spaces:4})}}else t.fileContent=o.getResponsiveTableCellsFragment(r);break}}else F=!0}if(!w){const t={fileContent:o.getColumnFragmentContent(I,d),dataSourceUri:S};e.fragments.push(t)}if(!F){const t={fileContent:o.getResponsiveTableCellsFragment(r),dataSourceUri:S.replace(x,j)};e.fragments.push(t)}},t.getCustomColumnPath=(e,t,a,r)=>{const n=d.get(e.component.name);if(!r){let t=e.component.settings&&e.component.settings.tableSettings&&e.component.settings.tableSettings.type;t||(t="ResponsiveTable"),"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"===n&&(t="AnalyticalTable"),r=t+"ColumnsExtension"}let i=`${r}|${t}`;a&&(i+="|"+a);return{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+n+"/"+i,viewTemplateType:r}}},708:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(6088);class BaseCustomSection{}r([n.syncRule({manifest:{path:i.getObjectPageCustomSectionPath,export:!1,import:(e,t)=>t.split("|")[2]}}),n.validity({since:"1.52.0"})],BaseCustomSection.prototype,"relatedFacet",void 0),r([n.syncRule({manifest:{path:i.getObjectPageCustomSectionPath,export:!1,import:(e,t)=>t.split("|")[0]}}),n.validity({since:"1.52.0"})],BaseCustomSection.prototype,"relativePosition",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getObjectPageCustomSectionPath(e,{},a,"sap.ui.generic.app")}}),n.validity({since:"1.52.0"})],BaseCustomSection.prototype,"title",void 0),r([n.syncRule({manifest:{path:i.getObjectPageCustomSectionPath}}),n.validity({since:"1.52.0"})],BaseCustomSection.prototype,"className",void 0),t.BaseCustomSection=BaseCustomSection;class ObjectPageCustomSectionFragment extends BaseCustomSection{}r([n.syncRule({manifest:{path:i.getObjectPageCustomSectionPath}}),n.validity({since:"1.52.0"})],ObjectPageCustomSectionFragment.prototype,"fragmentName",void 0),r([n.syncRule({manifest:{path:i.getObjectPageCustomSectionPath}}),n.validity({since:"1.52.0"})],ObjectPageCustomSectionFragment.prototype,"type",void 0),t.ObjectPageCustomSectionFragment=ObjectPageCustomSectionFragment;class ObjectPageCustomSectionView extends BaseCustomSection{}r([n.syncRule({manifest:{path:i.getObjectPageCustomSectionPath}}),n.validity({since:"1.52.0"})],ObjectPageCustomSectionView.prototype,"viewName",void 0),r([n.syncRule({manifest:{path:i.getObjectPageCustomSectionPath}}),n.validity({since:"1.52.0"})],ObjectPageCustomSectionView.prototype,"type",void 0),t.ObjectPageCustomSectionView=ObjectPageCustomSectionView},3284:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5599),i=a(6088),o=a(5008);class ObjectPageHeader{}r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.46.0"})],ObjectPageHeader.prototype,"showRelatedApps",void 0),r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.46.0"})],ObjectPageHeader.prototype,"editableHeaderContent",void 0),r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.48.0"})],ObjectPageHeader.prototype,"simpleHeaderFacets",void 0),r([n.syncRule({flex:{controlId:(e,t)=>{const a=t.slice(0);return a[t.length-1]="objectImage",n.buildControlIdFromParent(e,a)},controlType:()=>o.ControlType.Avatar,createFlexChange:n.exportToFlexChange},generate:o.addPatternForBindingChangeOfEnum})],ObjectPageHeader.prototype,"displayShape",void 0),t.ObjectPageHeader=ObjectPageHeader},338:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5599),i=a(8517),o=a(5008);class HeaderAction{}r([n.syncRule({flex:{controlId:(e,t,a,r)=>{if("sap.m.Button"===r()){return e+"action::"+a[2]}return n.buildControlIdFromParent(e,t)},controlType:()=>i.ControlType.Button,createFlexChange:n.exportToFlexChange},generate:o.addPatternForBindingChangeOfEnum})],HeaderAction.prototype,"visible",void 0),t.HeaderAction=HeaderAction},8763:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(5599),o=a(8517),s=(e,t)=>{const a=t.slice(0);return a[t.length-1]="objectPage",i.buildControlIdFromParent(e,a)};class ObjectPageLayout{}r([n.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.ObjectPageLayout,createFlexChange:i.exportToFlexChange}})],ObjectPageLayout.prototype,"showHeaderContent",void 0),r([n.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.ObjectPageLayout,createFlexChange:i.exportToFlexChange}})],ObjectPageLayout.prototype,"showAnchorBar",void 0),r([n.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.ObjectPageLayout,createFlexChange:i.exportToFlexChange}})],ObjectPageLayout.prototype,"useIconTabBar",void 0),r([n.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.ObjectPageLayout,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.34.0"})],ObjectPageLayout.prototype,"alwaysShowContentHeader",void 0),t.ObjectPageLayout=ObjectPageLayout},2269:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(5599),o=a(6088),s=a(5008),c=(e,t,a,r,n)=>{const o=a.slice(1,2);let s;return"sap.ui.comp.smarttable.SmartTable"===r()?s="Table":"sap.m.Table"===r()&&(s="responsiveTable"),o.push(s),o[0]=i.convertSectionId(o[0],n),i.buildControlIdFromParent(e,o)};class QuickVariantSelectionOP{}r([n.syncRule({manifest:{path:(e,t,a)=>o.getAppSettingOBJsectionPathV2(e,t,a)+"/quickVariantSelection"}}),n.validity({since:"1.48.0"})],QuickVariantSelectionOP.prototype,"showCounts",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>o.getAppSettingOBJsectionPathV2(e,t,a)+"/quickVariantSelection"}}),n.validity({since:"1.48.0"})],QuickVariantSelectionOP.prototype,"variants",void 0),t.QuickVariantSelectionOP=QuickVariantSelectionOP;class ObjectPageCommonTableSettings{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}}r([n.syncRule({flex:{controlId:c,controlType:()=>s.ControlType.SmartTable,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.28.0"})],ObjectPageCommonTableSettings.prototype,"editable",void 0),r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}}),n.validity({since:"1.54.0"})],ObjectPageCommonTableSettings.prototype,"multiSelect",void 0),r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}}),n.validity({since:"1.70.0"})],ObjectPageCommonTableSettings.prototype,"selectAll",void 0),r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}}),n.validity({since:"1.70.0"})],ObjectPageCommonTableSettings.prototype,"selectionLimit",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2},hasDistinctDefinition:!0}),n.validity({since:"1.63.0"})],ObjectPageCommonTableSettings.prototype,"quickVariantSelection",void 0),r([n.syncRule({flex:{controlId:c,controlType:()=>s.ControlType.SmartTable,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.26.0"})],ObjectPageCommonTableSettings.prototype,"useExportToExcel",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2}}),n.validity({since:"1.48.5"})],ObjectPageCommonTableSettings.prototype,"createMode",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2}}),n.validity({since:"1.61.0"})],ObjectPageCommonTableSettings.prototype,"disableDefaultInlineCreateSort",void 0),t.ObjectPageCommonTableSettings=ObjectPageCommonTableSettings;class ObjectPageResponsiveTable extends ObjectPageCommonTableSettings{}r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}})],ObjectPageResponsiveTable.prototype,"type",void 0),r([n.syncRule({flex:{controlId:c,controlType:()=>s.ControlType.Table,createFlexChange:i.exportToFlexChange}})],ObjectPageResponsiveTable.prototype,"includeItemInSelection",void 0),r([n.syncRule({flex:{controlId:c,controlType:()=>s.ControlType.Table,createFlexChange:i.exportToFlexChange},generate:s.addPatternForBindingChangeOfEnum}),n.validity({since:"1.52.0"})],ObjectPageResponsiveTable.prototype,"popinLayout",void 0),t.ObjectPageResponsiveTable=ObjectPageResponsiveTable;class ObjectPageAnalyticalTable extends ObjectPageCommonTableSettings{}r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}})],ObjectPageAnalyticalTable.prototype,"type",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2}}),n.validity({since:"1.67.0"})],ObjectPageAnalyticalTable.prototype,"condensedTableLayout",void 0),t.ObjectPageAnalyticalTable=ObjectPageAnalyticalTable;class ObjectPageGridTable extends ObjectPageCommonTableSettings{}r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}})],ObjectPageGridTable.prototype,"type",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2}}),n.validity({since:"1.67.0"})],ObjectPageGridTable.prototype,"condensedTableLayout",void 0),t.ObjectPageGridTable=ObjectPageGridTable;class ObjectPageTreeTable extends ObjectPageCommonTableSettings{}r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}})],ObjectPageTreeTable.prototype,"type",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2}}),n.validity({since:"1.67.0"})],ObjectPageTreeTable.prototype,"condensedTableLayout",void 0),t.ObjectPageTreeTable=ObjectPageTreeTable},6138:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(390),i=a(5008),o=a(5599),s=a(6088),c=(e,t,a,r)=>"sap.m.Table"===r()?e+"responsiveTable":"sap.ui.comp.smarttable.SmartTable"===r()&&e.includes("AnalyticalListPage")?e+"table":o.buildControlIdFromParent(e,t);class CreateWithFilters{}function l(e){return e||n.TableTypeV2.ResponsiveTable}function u(e,t){t.type&&(e.type||t.type!==n.TableTypeV2.ResponsiveTable)?e.type=t.type:delete e.type}r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)+"/createWithFilters"}})],CreateWithFilters.prototype,"strategy",void 0),t.CreateWithFilters=CreateWithFilters,t.exportType=u;class QuickVariantSelection{}r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)+"/quickVariantSelection"}}),o.validity({since:"1.48.0"})],QuickVariantSelection.prototype,"showCounts",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)+"/quickVariantSelection"}}),o.validity({since:"1.48.0"})],QuickVariantSelection.prototype,"variants",void 0),t.QuickVariantSelection=QuickVariantSelection;class CommonTableSettings{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}}r([o.syncRule({flex:{controlId:o.buildControlIdFromParent,controlType:()=>i.ControlType.SmartTable,createFlexChange:o.exportToFlexChange}}),o.validity({since:"1.38.0"})],CommonTableSettings.prototype,"showTablePersonalisation",void 0),r([o.syncRule({flex:{controlId:c,controlType:()=>i.ControlType.SmartTable,createFlexChange:o.exportToFlexChange}}),o.validity({since:"1.26.0"})],CommonTableSettings.prototype,"useExportToExcel",void 0),r([o.syncRule({flex:{controlId:c,controlType:()=>i.ControlType.SmartTable,createFlexChange:o.exportToFlexChange}})],CommonTableSettings.prototype,"fitContainer",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)},hasDistinctDefinition:!0}),o.validity({since:"1.48.0"})],CommonTableSettings.prototype,"quickVariantSelection",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e),export:(e,t)=>{const a=JSON.parse(JSON.stringify(t.quickVariantSelectionX));e.quickVariantSelectionX=a}}}),o.validity({since:"1.48.0"})],CommonTableSettings.prototype,"quickVariantSelectionX",void 0),r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e)}}),o.validity({since:"1.38.0"})],CommonTableSettings.prototype,"multiSelect",void 0),r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e)}}),o.validity({since:"1.70.0"})],CommonTableSettings.prototype,"selectAll",void 0),r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e)}}),o.validity({since:"1.70.0"})],CommonTableSettings.prototype,"selectionLimit",void 0),r([o.syncRule({flex:{controlId:c,controlType:()=>i.ControlType.SmartTable,createFlexChange:o.exportToFlexChange}}),o.validity({since:"1.40.0"})],CommonTableSettings.prototype,"enableAutoBinding",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.42.0"})],CommonTableSettings.prototype,"condensedTableLayout",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.56.0"})],CommonTableSettings.prototype,"enableTableFilterInPageVariant",void 0),t.CommonTableSettings=CommonTableSettings;class ResponsiveTable extends CommonTableSettings{}r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e),import:l,export:u}}),o.validity({since:"1.50.0"})],ResponsiveTable.prototype,"type",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)},hasDistinctDefinition:!0}),o.validity({since:"1.54.0"})],ResponsiveTable.prototype,"createWithFilters",void 0),r([o.syncRule({flex:{controlId:c,controlType:()=>i.ControlType.Table,createFlexChange:o.exportToFlexChange},generate:i.addPatternForBindingChangeOfEnum}),o.validity({since:"1.52.0"})],ResponsiveTable.prototype,"popinLayout",void 0),r([o.syncRule({flex:{controlId:c,controlType:()=>i.ControlType.Table,createFlexChange:o.exportToFlexChange}})],ResponsiveTable.prototype,"includeItemInSelection",void 0),r([o.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),o.validity({since:"1.63.0"})],ResponsiveTable.prototype,"showDraftToggle",void 0),t.ResponsiveTable=ResponsiveTable;class TreeTable extends CommonTableSettings{}r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e),import:l,export:u}}),o.validity({since:"1.50.0"})],TreeTable.prototype,"type",void 0),r([o.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),o.validity({since:"1.63.0"})],TreeTable.prototype,"showDraftToggle",void 0),t.TreeTable=TreeTable;class AnalyticalTable extends CommonTableSettings{}r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e),import:l,export:u}}),o.validity({since:"1.50.0"})],AnalyticalTable.prototype,"type",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],AnalyticalTable.prototype,"qualifier",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],AnalyticalTable.prototype,"defaultContentView",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],AnalyticalTable.prototype,"defaultFilterMode",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.60.0"})],AnalyticalTable.prototype,"contentTitle",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],AnalyticalTable.prototype,"autoHide",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.60.0"})],AnalyticalTable.prototype,"filterDefaultsFromSelectionVariant",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)},hasDistinctDefinition:!0}),o.validity({since:"1.54.0"})],AnalyticalTable.prototype,"createWithFilters",void 0),r([o.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),o.validity({since:"1.63.0"})],AnalyticalTable.prototype,"showDraftToggle",void 0),t.AnalyticalTable=AnalyticalTable;class TableALP extends CommonTableSettings{}r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e),import:l,export:u}}),o.validity({since:"1.50.0"})],TableALP.prototype,"type",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],TableALP.prototype,"qualifier",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.38.0"}),o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],TableALP.prototype,"defaultContentView",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],TableALP.prototype,"defaultFilterMode",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.60.0"})],TableALP.prototype,"contentTitle",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],TableALP.prototype,"autoHide",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.60.0"})],TableALP.prototype,"filterDefaultsFromSelectionVariant",void 0),t.TableALP=TableALP;class GridTable extends CommonTableSettings{}r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e),import:l,export:u}}),o.validity({since:"1.50.0"})],GridTable.prototype,"type",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)},hasDistinctDefinition:!0}),o.validity({since:"1.54.0"})],GridTable.prototype,"createWithFilters",void 0),r([o.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),o.validity({since:"1.63.0"})],GridTable.prototype,"showDraftToggle",void 0),t.GridTable=GridTable},8210:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(8517),i=a(5599),o=a(5008);class TableColumn{}r([i.syncRule({flex:{controlId:i.buildColumnControlId,controlType:()=>n.ControlType.TableColumn,createFlexChange:i.exportToFlexChange}})],TableColumn.prototype,"width",void 0),r([i.syncRule({flex:{controlId:i.buildColumnControlId,controlType:()=>n.ControlType.TableColumn,createFlexChange:i.exportToFlexChange},generate:o.addPatternForBindingChangeOfEnum})],TableColumn.prototype,"hAlign",void 0),t.TableColumn=TableColumn;t.TableCustomColumn=class TableCustomColumn{}},7040:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(296)),r(a(6138)),r(a(8210)),r(a(8049)),r(a(3284)),r(a(338)),r(a(8763)),r(a(2269)),r(a(5682)),r(a(708)),r(a(8722)),r(a(8378))},2432:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(7072),i=r(a(1199)),o=r(a(4366)),s=r(a(4225)),c=a(7040),l=a(5008),u=a(3374),p=a(6088),f=a(1350),d=a(1403),m=r(a(9154)),h=e=>({flexChanges:[],manifest:{"sap.ui.generic.app":{pages:{}}},fragments:e||[]});function g(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={})}function y(e,t){if(e.includes(t)){const a=t.split("|");return 3===a.length?a.push("1"):a[3]=(parseInt(a[3])+1).toString(),y(e,a.join("|"))}return t}function v(e,t,a,r,n,i,o){n&&(n.properties?P(e,t,a,r,n.properties,i,o):n.additionalProperties&&P(e,t,a,r,n.additionalProperties,i,o))}function b(e,t,a,r){return e.createInstance(u.PageType.OverviewPage,r,a,t)}function P(e,t,a,r,n,i,o){let c,p=!1,d=!1;const m=["colorPalette","tabs"];for(const h in n){c=e[h];let y=l.getReflectMetadata(e,h);if("anyOfObject"===o[o.length-1]&&(p=!0,o.pop()),p&&(c=e[o[o.length-1]][h],y=l.getReflectMetadata(e,o[o.length-1])),"objectProperties"===o[o.length-1]&&(d=!0,o.pop()),d&&(c=e[o[o.length-1]][h],y=l.getReflectMetadata(e,o[o.length-1])),"anyOf"===o[o.length-1]){o.pop();for(const s in n.anyOf)if(n.anyOf[s].$ref){const l=n.anyOf[s].$ref.split("#/definitions/"),u=r.definitions[l[l.length-1]],p=o[1];c=e[p],c=b(i,p,c,"CustomCard"),v(c,t,a,r,u,i,[...o])}else"object"==typeof n.anyOf[s]&&P(e,t,a,r,n.anyOf[s].properties,i,[...o,"anyOfObject"])}if(y&&y.manifest){const t=y.manifest.path([...o,h]),r=f.getManifestSectionByPathV2(a.manifest,t);if(h in u.CardSettingsType||"settings"===h)r.settings=s.default(r.settings||{},c||{},{arrayMerge:l.arrayCombineMerge});else if(void 0!==c){const t=y.manifest.export;!1!==t&&(t&&"function"==typeof t?t(r,e,h):"object"!=typeof c||m.includes(h)?r[h]=c:r[h]=s.default(r[h]||{},c||{},{arrayMerge:l.arrayCombineMerge}))}else void 0!==r[h]&&delete r[h]}if(c&&"object"==typeof c&&n[h])if("cards"===h)Object.keys(c).forEach((e=>{const n=c[e].template;let o;o=Object.values(u.CardTemplateType).includes(n)?Object.keys(r.definitions).filter((t=>{var a,n,i;return(null===(i=null===(n=null===(a=r.definitions[t].properties)||void 0===a?void 0:a.template)||void 0===n?void 0:n.enum)||void 0===i?void 0:i.indexOf(c[e].template))>-1})):["CustomCard"],c[e]=b(i,o[0],c[e],"CustomCard"),g(e,a.manifest["sap.ovp"]),v(c[e],t,a,r,r.definitions[o[0]],i,[e])})),Object.keys(t["sap.ovp"].cards).forEach((e=>{c[e]||delete a.manifest["sap.ovp"].cards[e]}));else if(n[h].$ref){const e=n[h].$ref.split(l.DEFINITION_LINK_PREFIX),s=r.definitions[e[e.length-1]];c=b(i,h,c,"settings"===h?"CustomCard":""),v(c,t,a,r,s,i,[...o,h])}else n[h].anyOf?P(e,t,a,r,n[h],i,[...o,h,"anyOf"]):void 0!==n[h].properties&&P(e,t,a,r,n[h].properties,i,[...o,h,"objectProperties"])}}function O(e,t,a,r,n,i,o,s,c,u,p,d){let m,h=a.indexOf("subsections");for(;h>-1;)a.splice(h-1,2),h=a.indexOf("subsections");if(e.flex){m=0===a.length?["page"]:a;const u=l.createFlexChange(t,m,e,d,r,n,i,o);let p;const f=e.flex.createFlexChange(u,c);s.flexChanges.find((e=>{let t=JSON.parse(e);t={content:t.content,selector:t.selector};let a=JSON.parse(f);if(a={content:a.content,selector:a.selector},JSON.stringify(t)===JSON.stringify(a))return p=!0,p})),p||s.flexChanges.push(f)}else if(e.manifest){const r=function(){let r;return"sections"===a[0]?"custom"===a[1]?r=e.manifest.path(u,{},a[2]):(r=e.manifest.path(u,{},a[1]),r=r.replace("/@","::").replace(/::@com.sap.vocabularies/g,"::com.sap.vocabularies")):r="table"===a[0]?"columns"===a[1]&&"custom"===a[2]?e.manifest.path(u,c,t.tabKey):e.manifest.path(u,{},a[1]):"keyPerformanceIndicators"===a[0]?e.manifest.path(u,c,i):e.manifest.path(u),r}();p=f.getManifestSectionByPathV2(s.manifest,r);const n=e.manifest.key||o;if(void 0!==t[o])if(e.hasDistinctDefinition)void 0===p[n]&&(p[n]={});else{const a=e.manifest.export;!1!==a&&(a&&"function"==typeof a?a(p,t,o):p[n]=t[o])}else Object.prototype.hasOwnProperty.call(p,n)&&delete p[n];l.deleteEmptyStructure(s.manifest,r)}}function T(e,t,a,r,n,i,o){const s=o?o.key:void 0,p=(o?o.target:void 0)||i.entitySet;for(const r in u.TableColumnExtensionTypeV2){const{path:n,viewTemplateType:o}=c.getCustomColumnPath(i,p,s,r);if(!n)continue;const u=n.substr(0,n.lastIndexOf("/")),d=f.getManifestSectionByPathV2(t.manifest,u),m=n.substr(n.lastIndexOf("/")+1);for(const n in d)if(n.startsWith(m)){const[i,o,u]=n.split("|");if(o===p){const i=null==e?void 0:e.filter((e=>(e.tabKey===u||void 0===u&&""===e.tabKey||u&&s===u)&&e.extensionType===r));if((!i||0===i.length)&&(c.deleteColumnFromFragment(d,n,a,t.fragments),delete d[n],n.startsWith(l.ViewTemplateType.ResponsiveTableColumnsExtension))){const e=n.replace(l.ViewTemplateType.ResponsiveTableColumnsExtension,l.ViewTemplateType.ResponsiveTableCellsExtension);c.deleteColumnFromFragment(d,e,a,t.fragments),delete d[e]}}}}const d={};if(e){for(let t=0;t<e.length;t++){const a=e[t];if(!(a.className&&a.fragmentName&&a.columnKey&&a.extensionType))continue;if(r.properties.fragmentName.pattern){if(!1===new RegExp(r.properties.fragmentName.pattern).test(a.fragmentName))continue}const{path:n,viewTemplateType:o}=c.getCustomColumnPath(i,p,a.tabKey||s,a.extensionType);d[n]||(d[n]={viewTemplateType:o,columns:[]}),d[n].columns.push(a)}for(const e in d)c.exportToFragment(t,e,d[e].columns,a,d[e].viewTemplateType,n)}}function C(e,t,a,r,n,i,o,s,c,u,m,h,g,v,b){const P=[],O=a.split("|")[1];if(!t)return;for(const e of t){const t=y(P,[e.relativePosition,O,e.relatedFacet].join("|"));P.push(t)}for(const a in P){const p=g.anyOf.find((e=>e.$ref.includes(t[a].constructor.name))).$ref.split(l.DEFINITION_LINK_PREFIX),f=h.definitions[p[p.length-1]];E(e,r,t[a],n,i,[...o,P[a]],s,c,u,m,h,f,v,b)}const T=f.getManifestSectionByPathV2(s.manifest,p.getViewExtensionsPath());for(const e in T)d.isAssociatedCustomSection(e,O)&&!P.includes(e)&&delete T[e]}function S(e,t){let a;for(let t=e.length-1;t>=0;t--)if("table"===e[t]){a=e[t-1];break}return l.convertSectionId(a,t)}function E(e,t,a,r,n,i,o,s,c,u,p,f,m,h,g,y){let v;if(f&&f.properties)for(const b in f.properties){v=a&&a[b];const P=a&&l.getChildId(a,b),_=P?[...r,P]:r,I=l.getReflectMetadata(a,b);I&&O(I,a,i,c,_,g,b,o,t,u,undefined,m);const x=f.properties[b];if(v&&x.additionalProperties&&Object.keys(v).forEach((a=>{const r=l.getNextTargetDefinition(p,g,v[a],x.additionalProperties,b,h,e);E(e,t,r.configObject,_,n,[...i,b],o,s,c,u,p,r.targetDefinition,m,h,a,y)})),void 0!==v&&"object"!=typeof v||!x){if(x&&x.$ref===l.DEFINITION_LINK_PREFIX+"TableCustomColumns"){T([],o,s,p.definitions.TableCustomColumn,y,n);continue}}else{if("array"===x.type&&("sections"===i[0]||"subsections"===i[0])&&"custom"===b){C(e,a[b],u[u.length-1],t,_,n,[...i,b],o,s,c,u,p,x.items,m,h);continue}let r=l.getNextTargetDefinition(p,g,v,x,b,h,e);if(r&&"custom"===b){let e;const t=d.getTargetFromCustomColumnRef(x.$ref);t&&(e={target:t,key:S(i,g)}),T(null==a?void 0:a.custom,o,s,r.targetDefinition,y,n,e);continue}r?E(e,t,r.configObject,_,n,[...i,b],o,s,c,u,p,r.targetDefinition,m,h,r.title,y):x.anyOf&&x.anyOf.forEach((a=>{r=l.getNextTargetDefinition(p,g,v,a,b,h,e),E(e,t,r.configObject,_,n,[...i,b],o,s,c,u,p,r.targetDefinition,m,h,r.title,y)}))}}}function _(e,t,a,r,i,o,s){const c=t.config,p=t.entitySet,f=h(o),m=new n.MetadataInstanceFactoryV2,g=m.createPageInstance(u.PageType.ObjectPage,c);if(c){const t=`${e}::${l.getPageLayoutInformation(g).id}::${p}--`;f.manifest=JSON.parse(JSON.stringify(a));const n=[],o=d.findObjectPage(a["sap.ui.generic.app"].pages,p,n);return o?(c&&c.sections&&function(e,t,a,r){var n;function i(e,t,a,r){if(e&&"custom"===t&&Array.isArray(e))for(const t in e)e[t].className===u.SAPUI5_FRAGMENT_CLASS?e[t]=r.createInstance(u.PageType.ObjectPage,"ObjectPageCustomSectionFragment",e[t]):e[t]=r.createInstance(u.PageType.ObjectPage,"ObjectPageCustomSectionView",e[t])}function o(e,t){var r;if(e.subsections){let n,s;for(const c in e.subsections)n=e.subsections[c],s=(null===(r=a.component.settings)||void 0===r?void 0:r.sections)&&a.component.settings.sections[c],i(n,c,0,t),o(n,t)}}let s,c;for(const l in e.sections)s=t.sections[l],c=(null===(n=a.component.settings)||void 0===n?void 0:n.sections)&&a.component.settings.sections[l],i(s,l,0,r),o(s,r)}(c,g,o,m),c&&0!==Object.keys(c).length&&E(u.PageType.ObjectPage,f.manifest,g,[],o,[],f,e,t,n,r,r,i,m,void 0,s),f):f}return f.manifest=JSON.parse(JSON.stringify(a)),f}t.assignReflectMetadataRules=b;t.exportPageV2=function(e,t){if(e[u.SchemaType.ListReport]){const{appId:a,page:r,manifest:i,jsonSchema:o,fragments:s,logger:c}=e[u.SchemaType.ListReport];return function(e,t,a,r,i,o,s){const c=t.config,p=t.entitySet,f=h(o),g=new n.MetadataInstanceFactoryV2,y=g.createPageInstance(u.PageType.ListReport,c),v=`${e}::${l.getPageLayoutInformation(y).id}::${p}--`,b=[],P=d.findListReportPage(a["sap.ui.generic.app"].pages,b);if(P)return P.component.settings||(P.component.settings={}),f.manifest=JSON.parse(JSON.stringify(a)),c&&0!==Object.keys(c).length&&E(u.PageType.ListReport,f.manifest,y,[],P,[],f,e,v,b,r,r,i,g,void 0,s),f;u.log(s,{severity:"error",message:m.default.t("NOLR"),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}})}(a,r,i,o,t,s,c)}if(e[u.SchemaType.ObjectPage]){const{appId:a,page:r,manifest:n,jsonSchema:i,fragments:o,logger:s}=e[u.SchemaType.ObjectPage];return _(a,r,n,i,t,o,s)}if(e[u.SchemaType.OverviewPage]){const{page:t,manifest:a,jsonSchema:r}=e[u.SchemaType.OverviewPage];return((e,t,a)=>{const r=h(),s=new n.MetadataInstanceFactoryV2,c=s.createPageInstance(u.PageType.OverviewPage,e),l=new i.default({allErrors:!0}).compile(a);if(!l(c))for(const e of l.errors){const t=e.params.additionalProperty;"additionalProperties"!==e.keyword||Object.values(u.CardSettingsType).includes(e.params.additionalProperty)||"settings"===t||o.default(c,`${e.dataPath.slice(1)}.${t}`)}return r.manifest=JSON.parse(JSON.stringify(t)),e&&0!==Object.keys(e).length&&v(c,r.manifest,r,a,a,s,[]),r})(t.config,a,r)}if(e[u.SchemaType.Application]){const{application:t,manifest:a,jsonSchema:r}=e[u.SchemaType.Application];return((e,t,a)=>{const r=h();r.manifest=JSON.parse(JSON.stringify(t));const n=Object.assign(new p.ApplicationV2,e);n.settings=Object.assign(new p.AppSettings,e.settings);for(const t in a.definitions.AppSettings.properties){const a=l.getReflectMetadata(n.settings,t);if(a&&a.manifest){const n=a.manifest.path(),i=f.getManifestSectionByPathV2(r.manifest,n);e.settings&&void 0!==e.settings[t]?i[t]=e.settings[t]:delete i[t]}}const i=r.manifest["sap.ui.generic.app"]&&r.manifest["sap.ui.generic.app"].pages;return i&&e.pages&&f.transformPageToNewManifestV2(e.home,e.pages,Object.values(i)[0]),r})(t,a,r)}if(e[u.SchemaType.AnalyticalListPage]){const{appId:a,page:r,manifest:i,jsonSchema:o,fragments:s,logger:c}=e[u.SchemaType.AnalyticalListPage];return function(e,t,a,r,i,o,s){const c=t.config,p=t.entitySet,f=h(o);f.flexChanges=[],f.manifest=JSON.parse(JSON.stringify(a));const g=new n.MetadataInstanceFactoryV2,y=g.createPageInstance(u.PageType.AnalyticalListPage,c),v=`${e}::${l.getPageLayoutInformation(y).id}::${p}--`,b=[],P=d.findAnalyticalListPage(a["sap.ui.generic.app"].pages,b);if(P)return P.component.settings||(P.component.settings={}),f.manifest=JSON.parse(JSON.stringify(a)),c&&0!==Object.keys(c).length&&E(u.PageType.AnalyticalListPage,f.manifest,y,[],P,[],f,e,v,b,r,r,i,g,void 0,s),f;u.log(s,{severity:"error",message:m.default.t("NOALP"),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}})}(a,r,i,o,t,s,c)}}},7072:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=a(390),i=r(a(7040)),o=r(a(2486)),s=a(6785),c=a(6971),l={Table:i.ResponsiveTable,ResponsiveTableWithMultiSelect:i.ResponsiveTable,ResponsiveTableWithInlineDelete:i.ResponsiveTable},u={[n.CardSettingsType.listCardSettings]:i.ListCard,[n.CardSettingsType.analyticalCardSettings]:i.AnalyticalCard,[n.CardSettingsType.stackCardSettings]:i.StackCard,[n.CardSettingsType.linkListCardSettings]:i.LinklistCard,[n.CardSettingsType.tableCardSettings]:i.TableCard},p={[c.SAPUI5_VIEW_CLASS]:i.ObjectPageCustomSectionView,[c.SAPUI5_FRAGMENT_CLASS]:i.ObjectPageCustomSectionFragment,Table:i.ObjectPageResponsiveTable,ObjectPageResponsiveTableWithMultiSelect:i.ObjectPageResponsiveTable,ObjectPageResponsiveTableWithInlineDelete:i.ObjectPageResponsiveTable},f={[c.PageType.AnalyticalListPage]:{},[c.PageType.ListReport]:l,[c.PageType.ObjectPage]:p,[c.PageType.OverviewPage]:u};class MetadataInstanceFactoryV2 extends s.MetadataFactory{constructor(){super(i,o,f)}}t.MetadataInstanceFactoryV2=MetadataInstanceFactoryV2},1350:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(6971);function n(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}function i(e,t,a){if(e)for(const r in e){const n=e[r];if(n.entitySet===t&&n.navigationProperty===a)return n}}t.getManifestSectionByPathV2=(e,t)=>{let a=e;return t.split("/").forEach((function(e){a[e]||(a[e]={}),a=a&&a[e]})),a||{}},t.deleteEmptyStructure=(e,t)=>{let a=e;t.split("/").forEach((function(e){a[e]&&(0!==Object.keys(a[e]).length?a=a&&a[e]:delete a[e])}))},t.deleteManifestSectionByPathV2=(e,t)=>{let a=e;for(let e=0;e<t.split("/").length;e++){const r=t.split("/")[e];e===t.split("/").length-1?delete a[r]:a=a&&a[r]}},t.transformPageToNewManifestV2=function e(t,a,o){const s=a[t];if(s&&(s.entitySet&&(o.entitySet=s.entitySet),s.pageType===r.PageType.ListReport&&(o.component.list=!0),s.navigationProperty&&(o.navigationProperty=s.navigationProperty),s.defaultLayoutType?o.defaultLayoutType=s.defaultLayoutType:"defaultLayoutType"in o&&delete o.defaultLayoutType,s.navigation)){for(const t in s.navigation)if(a[t]&&(o.pages&&!Object.values(o.pages)[0]&&(o.pages[`${a[t].pageType}|${a[t].entitySet}`]=n(a[t].pageType)),o.pages||(o.pages={[`${a[t].pageType}|${a[t].entitySet}`]:n(a[t].pageType)}),!Array.isArray(o.pages))){let r=i(o.pages,a[t].entitySet,a[t].navigationProperty);r||(o.pages[`${a[t].pageType}|${a[t].entitySet}`]=r=n(a[t].pageType)),e(t,a,r)}Array.isArray(o.pages)||(o.pages&&Object.keys(o.pages).forEach((e=>{const t=o.pages[e];if("sap.suite.ui.generic.template.ObjectPage"===t.component.name){const r=t.navigationProperty?`ObjectPage_${t.entitySet}_${t.navigationProperty}`:`ObjectPage_${t.entitySet}`;a[r]||delete o.pages[e]}})),s.pageType!==r.PageType.ListReport&&s.pageType!==r.PageType.AnalyticalListPage||0!==Object.keys(s.navigation).length||delete o.pages)}}},3318:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(390),i=a(2762),o=a(2762),s=a(5599),c=a(8517);let l=class AnalyticalListPage{};r([o.syncRule({flex:{controlId:s.buildControlIdForPage,controlType:()=>c.ControlType.DynamicPage,createFlexChange:s.exportToFlexChange}})],l.prototype,"fitContent",void 0),r([i.childId("table")],l.prototype,"table",void 0),r([i.childId("analyticalListPageFilter")],l.prototype,"filterBar",void 0),r([i.childId("analyticalListPageChart")],l.prototype,"chart",void 0),l=r([i.pageLayoutInformation({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:n.FE_TEMPLATE_V2_ALP})],l),t.AnalyticalListPage=l},5972:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(390),i=a(2762),o=a(2762),s=a(5599),c=a(8517);let l=class ListReport{};r([o.syncRule({flex:{controlId:s.buildControlIdForPage,controlType:()=>c.ControlType.DynamicPage,createFlexChange:s.exportToFlexChange}})],l.prototype,"fitContent",void 0),r([i.childId("listReportFilter")],l.prototype,"filterBar",void 0),r([i.childId("listReport")],l.prototype,"table",void 0),l=r([i.pageLayoutInformation({id:n.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:n.FE_TEMPLATE_V2_LIST_REPORT})],l),t.ListReport=l},650:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(6088),o=a(390);let s=class ObjectPage{};r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.52.0"})],s.prototype,"showConfirmationOnDraftActivate",void 0),r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.52.1"})],s.prototype,"hideChevronForUnauthorizedExtNav",void 0),r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.48.0"})],s.prototype,"allowDeepLinking",void 0),r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.52.0"})],s.prototype,"navToListOnSave",void 0),r([n.childId("header")],s.prototype,"header",void 0),r([n.childId("sections")],s.prototype,"sections",void 0),r([n.childId("layout")],s.prototype,"layout",void 0),s=r([n.pageLayoutInformation({id:o.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:o.FE_TEMPLATE_V2_OBJECT_PAGE})],s),t.ObjectPage=s},8607:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(6088);let o=class OverviewPage{};r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"globalFilterModel",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"globalFilterEntityType",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"globalFilterEntitySet",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"containerLayout",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"smartVariantRequired",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"showDateInRelativeFormat",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"enableLiveFilter",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"imageSupported",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"considerAnalyticalParameters",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"refreshIntervalInMinutes",void 0),r([n.syncRule({manifest:{path:e=>i.getGlobalSettingsPath(e)}})],o.prototype,"useDateRangeType",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"showBasicSearch",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"disableErrorPage",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"bHeaderExpanded",void 0),o=r([n.pageLayoutInformation({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],o),t.OverviewPage=o},2486:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(3318)),r(a(5972)),r(a(650)),r(a(8607))},4667:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(5622),n=a(5179),i=a(5747),o=r.join(__dirname,"templates");var s;!function(e){e.XML="xml",e.HTML="html",e.JS="js",e.JSON="json"}(t.ViewTypes||(t.ViewTypes={})),function(e){e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode"}(s=t.DirName||(t.DirName={}));const c=(e,t)=>{const a=i.readFileSync(e,"utf8");return n.render(a,t)},l=e=>e.replace(/[^\w\s-]/gi,"");t.getControllerContent=(e,t,a=!1,n)=>{const i={name:t+"."+l(e),newControllerRouting:n};return c(r.join(o,a?"controllerFcl.js":"controller.js"),i)},t.getViewContent=(e,t,a,n=!1,i=!0)=>{const s=l(e),u={name:s,controllerName:"",page:i};return n&&(u.controllerName=t+".controller."+s),c(r.join(o,"view."+a),u)},t.getFragmentContent=(e,t,a,n=!1)=>{const i=l(e),u={name:i,handler:""};return n&&(u.handler=`${t.replace(/\./g,"/")}/${s.Fragment}/${i}`),c(r.join(o,"fragment."+a),u)},t.getSingleColumnContent=(e,t)=>{const a={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:void 0!==e.columnIndex?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return c(r.join(o,t+".xml"),a)},t.getColumnFragmentContent=(e,a)=>{let r="";if(r='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let n=0;n<e.length;n++){const i=e[n];r=r+"\n"+t.getSingleColumnContent(i,a)}return r+"\n</core:FragmentDefinition>"},t.getResponsiveTableCellsFragment=e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';if(e)for(let a=0;a<e.length;a++)t+='\n<Text text="Placeholder"></Text>';return t+"\n</core:FragmentDefinition>"},t.getFragmentJsContent=()=>c(r.join(o,"fragment.js"),{})},3026:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(468),n=a(4330),i=a(5008),o=a(390);t.generateAnalyticalListReportSchemaV2=function(e,t,a,s,c){var l,u;const p=JSON.parse(JSON.stringify(e));p.properties.table.$ref=i.DEFINITION_LINK_PREFIX+"TableALP<LineItems>";const f=JSON.parse(JSON.stringify(p.definitions.TableALP));f.properties.columns={$ref:i.DEFINITION_LINK_PREFIX+"LineItems"},p.definitions["TableALP<LineItems>"]=f,delete p.definitions.TableALP,delete p.definitions.GenericColumns,r.removeElementsFromEnum(p.definitions.TableColumnExtensionTypeV2.enum,[o.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);const d=null==a?void 0:a.find((e=>e.name===t)),m=null===(u=null===(l=null==d?void 0:d.annotations)||void 0===l?void 0:l.UI)||void 0===u?void 0:u.LineItem;r.addLineItemsType(p,m,d);const h=n.findAnalyticalListPage(s["sap.ui.generic.app"].pages,[]);return r.addListReportColumnExtensions(p,d,h,s,c),r.checkGenerateRules(p),p}},220:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(9081),n=a(8289),i=a(6083),o=a(3026),s=a(1353);t.generateObjectPageInterfaceV2=function(e,t,a,i,o,s){const c=r.parseAndMergeAndConvert(a,s);return n.generateObjectPageSchemaV2(e,t,c,i,o)},t.generateListReportInterfaceV2=function(e,t,a,n,o,s){const c=r.parseAndMergeAndConvert(a,s);return i.generateListReportSchemaV2(e,t,c.entityTypes,n,o)},t.generateOVPInterfaceV2=function(e,t){return s.generateOverviewPageSchemaV2(e,t)},t.generateAnalyticalListPageInterfaceV2=function(e,t,a,n,i,s){const c=r.parseAndMergeAndConvert(a,s);return o.generateAnalyticalListReportSchemaV2(e,t,null==c?void 0:c.entityTypes,n,i)}},1918:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(220);t.generateAnalyticalListPageInterfaceV2=r.generateAnalyticalListPageInterfaceV2,t.generateListReportInterfaceV2=r.generateListReportInterfaceV2,t.generateObjectPageInterfaceV2=r.generateObjectPageInterfaceV2,t.generateOVPInterfaceV2=r.generateOVPInterfaceV2;var n=a(8289);t.generateObjectPageSchemaV2=n.generateObjectPageSchemaV2;var i=a(6083);t.generateListReportSchemaV2=i.generateListReportSchemaV2;var o=a(3026);t.generateAnalyticalListReportSchemaV2=o.generateAnalyticalListReportSchemaV2},6083:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(468),n=a(4330),i=a(5008);t.generateListReportSchemaV2=function(e,t,a,o,s){const c=JSON.parse(JSON.stringify(e));c.properties.table.anyOf[0].$ref=i.DEFINITION_LINK_PREFIX+"ResponsiveTable<LineItems>",c.properties.table.anyOf[1].$ref=i.DEFINITION_LINK_PREFIX+"TreeTable<LineItems>",c.properties.table.anyOf[2].$ref=i.DEFINITION_LINK_PREFIX+"AnalyticalTable<LineItems>",c.properties.table.anyOf[3].$ref=i.DEFINITION_LINK_PREFIX+"GridTable<LineItems>";const l=JSON.parse(JSON.stringify(c.definitions.ResponsiveTable)),u=JSON.parse(JSON.stringify(c.definitions.TreeTable)),p=JSON.parse(JSON.stringify(c.definitions.AnalyticalTable)),f=JSON.parse(JSON.stringify(c.definitions.GridTable));l.properties.columns={$ref:i.DEFINITION_LINK_PREFIX+"LineItems"},u.properties.columns={$ref:i.DEFINITION_LINK_PREFIX+"LineItems"},p.properties.columns={$ref:i.DEFINITION_LINK_PREFIX+"LineItems"},f.properties.columns={$ref:i.DEFINITION_LINK_PREFIX+"LineItems"},c.definitions["ResponsiveTable<LineItems>"]=l,c.definitions["TreeTable<LineItems>"]=u,c.definitions["AnalyticalTable<LineItems>"]=p,c.definitions["GridTable<LineItems>"]=f,delete c.definitions.ResponsiveTable,delete c.definitions.TreeTable,delete c.definitions.AnalyticalTable,delete c.definitions.GridTable,delete c.definitions.GenericColumns;const d=a.find((e=>e.name===t)),m=d.annotations&&d.annotations.UI&&d.annotations.UI.LineItem;r.addLineItemsType(c,m,d);const h=n.findListReportPage(o["sap.ui.generic.app"].pages,[]);return r.addListReportColumnExtensions(c,d,h,o,s),r.checkGenerateRules(c),c}},8289:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5008),i=a(468),o=a(4330),s=a(6971),c=a(3374),l=r(a(9154)),u=a(5921);function p(e,t,a,r,s,c,l){if("LineItemFacet"!==a.base||!e)return;const u=e.split("::")[0],p="ObjectPageSectionV2<"+e+">";t.definitions[p]={type:"object",properties:{table:{anyOf:[{$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageResponsiveTable<"+e+">"},{$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageAnalyticalTable<"+e+">"},{$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageGridTable<"+e+">"},{$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageTreeTable<"+e+">"}]}},additionalProperties:!1,annotationPath:a.annotationPath},a.ID&&(t.definitions[p].title=n.FacetTitlePrefix+a.ID),a.Label&&(t.definitions[p].description=a.Label);const f=a.entityType?null==s?void 0:s.entitySets.find((e=>e.entityType.name===a.entityType.name||e.name===a.entityType.name)):void 0,d="ObjectPageResponsiveTable<"+e+">",m="ObjectPageAnalyticalTable<"+e+">",h="ObjectPageGridTable<"+e+">",g="ObjectPageTreeTable<"+e+">";let y;t.definitions[d]=JSON.parse(JSON.stringify(t.definitions.ObjectPageResponsiveTable)),t.definitions[d].properties.columns.$ref=n.DEFINITION_LINK_PREFIX+e,t.definitions[m]=JSON.parse(JSON.stringify(t.definitions.ObjectPageAnalyticalTable)),t.definitions[m].properties.columns.$ref=n.DEFINITION_LINK_PREFIX+e,t.definitions[h]=JSON.parse(JSON.stringify(t.definitions.ObjectPageGridTable)),t.definitions[h].properties.columns.$ref=n.DEFINITION_LINK_PREFIX+e,t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageTreeTable)),t.definitions[g].properties.columns.$ref=n.DEFINITION_LINK_PREFIX+e,f&&(y=function(e,t,a,r,n,s){const c=`${i.CUSTOM_COLUMNS_DEFINITION}<${a}>`;if(e.definitions[c])return i.CUSTOM_COLUMNS_DEFINITION;const l=`${i.CUSTOM_COLUMN_DEFINITION}<${a}>`,u=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn));e.definitions[l]=u;const p=n.entityTypes.find((e=>e.name===r)),f=o.findObjectPage(t["sap.ui.generic.app"].pages,a,[]);return i.addListReportColumnExtensions(e,p,f,t,s,c,l),c}(t,c,f.name,a.entityType.name,s,l));for(const a in r)"LineItemFacet"===r[a].base&&a.includes(u)&&i.addLineItemsType(t,r[a].lineItem,r[a].entityType,e,y)}function f(e,t,a,r,i,o,s){const c=e[t];if("CollectionFacet"===c.base){const e=t.replace("@com.sap.vocabularies.UI.v1.Facets",c.base);a.properties[e]=n.createSectionWithoutProperties(c);const l="ObjectPageSectionV2<"+e+">";a.properties[e].properties={subsections:{$ref:n.DEFINITION_LINK_PREFIX+l}},r.definitions[l]=n.createSectionWithoutProperties(c),r.definitions[l].description="Subsections";for(const e in c.facets)f(c.facets,e,r.definitions[l],r,i,o,s)}else"LineItemFacet"===c.base?(a.properties[t]={$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageSectionV2<"+t+">"},p(t,r,c,e,o,i,s)):a.properties[t]=n.createSectionWithoutProperties(c)}function d(e,t,a,r,i,o,c,l){const u=e.definitions.Sections={type:"object",properties:{},description:"Sections",additionalProperties:!1,isViewNode:!0};if(t&&(u.annotationPath=`/${t.fullyQualifiedName}/@com.sap.vocabularies.UI.v1.Facets`),!r)return;const p=n.getObjectPageFacets(t,i,s.FioriElementsVersion.v2,l);if(p&&0!==Object.keys(p).length){for(const n in r){const s=r[n];if(a.includes(s.entitySet))for(const t in p)f(p,t,u,e,o,i,c);else d(e,t,a,s.pages,i,o,c)}for(const t in e.definitions.CustomSections.properties)u.properties[t]=e.definitions.CustomSections.properties[t]}}t.generateObjectPageSchemaV2=function(e,t,a,r,o,s){const p=JSON.parse(JSON.stringify(e)),f={};for(const e in p.definitions.CustomSections.properties)f[e]=p.definitions.CustomSections.properties[e];p.properties.sections={$ref:n.DEFINITION_LINK_PREFIX+"Sections"},p.properties.header={$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageHeader"};const m=(null==a?void 0:a.entitySets)&&a.entitySets.find((e=>e.entityType.name===t||e.name===t));m||u.log(s,{severity:"error",message:l.default.t("NOENTITYSET4TYPE",{entityType:t}),location:{path:"webapp/localService/metadata.xml"}});const h=null==m?void 0:m.entityType;return m&&(d(p,h,m.name,r["sap.ui.generic.app"].pages,a,r,o,s),function(e,t,a){if(e.definitions.ObjectPageHeader=JSON.parse(JSON.stringify(e.definitions["ObjectPageHeader<GenericActions>"])),delete e.definitions.ObjectPageHeader.properties.actions,!t)return;const r=n.findAlias("com.sap.vocabularies.UI.v1",a),i=r&&t.annotations&&t.annotations[r]&&t.annotations[r].Identification;if(i){e.definitions.ObjectPageHeader.properties.actions={$ref:n.DEFINITION_LINK_PREFIX+"HeaderActions"};const a=e.definitions.HeaderActions={type:"object",properties:{},description:"Actions",additionalProperties:!1,isViewNode:!0};i.forEach((e=>{if(!e.Determining&&"com.sap.vocabularies.UI.v1.DataFieldForAction"===e.$Type){const r=e.Action.split(".")[1].split("/"),i=t.fullyQualifiedName.split(".")[0]+"."+r[0]+"::"+r[1];a.properties[i]={$ref:n.DEFINITION_LINK_PREFIX+"HeaderAction"}}}))}}(p,h,a),delete p.definitions.GenericActions,delete p.definitions["ObjectPageHeader<GenericActions>"],function(e,t,a,r){const i=n.getObjectPageFacetSection(t,a,r);i&&n.addDefinitionForRelatedFacetKeys(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],i,["ID","key"])}(p,h,a,s)),delete p.definitions.GenericSections,delete p.definitions.ObjectPageSectionTableV2,delete p.definitions.GenericColumns,delete p.definitions.ObjectPageSubSections,delete p.definitions.ObjectPageResponsiveTable,delete p.definitions.ObjectPageAnalyticalTable,delete p.definitions.ObjectPageTreeTable,delete p.definitions.ObjectPageGridTable,i.removeElementsFromEnum(p.definitions.TableColumnExtensionTypeV2.enum,[c.TableColumnExtensionTypeV2.TreeTableColumnsExtension]),p.definitions.Sections||(p.definitions.RelatedFacetKeys&&p.definitions.RelatedFacetKeys.oneOf.length?p.definitions.Sections={type:"object",properties:f,additionalProperties:!1,isViewNode:!0}:delete p.properties.sections),i.checkGenerateRules(p),p}},1353:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(6971),n=a(5008);function i(e){const t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map((e=>{const t=e.$ref.split("/");return t[t.length-1]}))}function o(e,t){const a=t&&t["sap.app"]&&t["sap.app"].dataSources||{},o=[];for(const e in a)a[e].type===r.DataSourceType.OData&&o.push(e);const s=e.definitions;s.CardModel={enum:o,type:"string"};const c=i(e);for(const e of c){const t=s[e].properties.model;delete t.type,t.$ref=n.DEFINITION_LINK_PREFIX+"CardModel"}}t.getCardDefinitionNames=i,t.addModelsEnum=o,t.generateOverviewPageSchemaV2=function(e,t){const a=JSON.parse(JSON.stringify(e));return a.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},o(a,t),a}},468:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(5008),n=a(7040),i=a(2762),o=a(5622),s=a(4139);function c(e,t,a){const r=e.definitions[a]&&e.definitions[a].properties&&e.definitions[a].properties.leadingProperty;if(r){const e=[...(null==t?void 0:t.entityProperties)||[],...(null==t?void 0:t.navigationProperties)||[]];r.enum=null==e?void 0:e.reduce(((e,t)=>(e.includes(t.name)||e.push(t.name),e)),[])}}function l(e,t,a){const r=e.definitions[t]&&e.definitions[t].properties&&e.definitions[t].properties.tabKey;if(a){const e=a.component&&a.component.settings&&a.component.settings.quickVariantSelectionX&&a.component.settings.quickVariantSelectionX.variants;if(e){const t=[];Object.keys(e).reduce(((t,a)=>{const r=e[a]&&void 0!==e[a].key?e[a].key:void 0;return void 0===r||t.includes(r)||t.push(r),t}),t),r.enum=t}}}function u(e,t,a,r,n){const i=e.definitions[n]&&e.definitions[n].properties&&e.definitions[n].properties[r];if(t&&a&&!a.startsWith("${")){const e=[];t.forEach((t=>{let n=t.dataSourceUri.split("webapp")[1];if(n&&n.indexOf(".fragment.xml")>0){const i=JSON.parse(s.xml2json(t.fileContent,{compact:!0}))["core:FragmentDefinition"];if("fragmentName"===r&&(!i||i.Column||i["table:Column"])||"cellsFragmentName"===r&&(!i||!i.Column&&!i["table:Column"]&&!i["smartfilterbar:ControlConfiguration"])){n=n.replace(new RegExp("\\"+o.sep,"g"),"/");const t=a+n.split(".fragment.xml")[0].replace(/\//g,".");e.push(t)}}})),e.length>0&&(i.enum=e)}}t.CUSTOM_COLUMNS_DEFINITION="TableCustomColumns",t.CUSTOM_COLUMN_DEFINITION="TableCustomColumn",t.addLineItemsType=function(e,t,a,n,i){let o;if(n=n||"LineItems",e.definitions[n]={type:"object",properties:{},description:"Columns",additionalProperties:!1,isViewNode:!0},t){const i=r.createAnnotationPath(a.fullyQualifiedName,t.term,t.qualifier);e.definitions[n].annotationPath=i;let s=0;t.forEach((t=>{("com.sap.vocabularies.UI.v1.DataFieldForAction"!==t.$Type||!0===t.Inline&&!0!==t.Determining)&&(o=r.getSchemaKeyOfLineItemRecord(t),o&&(e.definitions[n].properties[o]={$ref:r.DEFINITION_LINK_PREFIX+"TableColumn",description:r.getDatafieldDescription(t,a),propertyIndex:s,annotationPath:i+"/"+s},s++))}))}i&&(e.definitions[n].properties.custom={$ref:`#/definitions/${i}`})},t.addListReportLeadingProperties=c,t.addTabkeyEnum=l,t.addFragmentEnum=u,t.addListReportColumnExtensions=function(e,a,r,n,i,o=t.CUSTOM_COLUMNS_DEFINITION,s=t.CUSTOM_COLUMN_DEFINITION){e.definitions.LineItems&&(e.definitions.LineItems.properties.custom={$ref:`#/definitions/${o}`}),e.definitions[o]={type:"array",items:{$ref:`#/definitions/${s}`},isViewNode:!0,description:"Custom Columns"},c(e,a,s),l(e,s,r);const p=n&&n["sap.app"]&&n["sap.app"].id;u(e,i,p,"fragmentName",s),u(e,i,p,"cellsFragmentName",s)},t.checkGenerateRules=function(e){let t;for(const a in e.definitions){const r=e.definitions[a];switch(a){case"ObjectPageHeader":t=new n.ObjectPageHeader;break;case"HeaderAction":t=new n.HeaderAction;break;case"TableColumn":t=new n.TableColumn;break;case"ResponsiveTable":t=new n.ResponsiveTable;break;default:a.startsWith("ObjectPageResponsiveTable")&&(t=new n.ObjectPageResponsiveTable)}if(t)for(const a in r.properties){const n=r.properties[a];t[a]=n;const o=i.getReflectMetadata(t,a);o&&"function"==typeof o.generate&&o.generate(e,r,a)}}},t.removeElementsFromEnum=function(e,t){for(let a=0;a<t.length;a++){const r=e.indexOf(t[a]);-1!==r&&e.splice(r,1)}}},3073:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=a(6971),i=a(4093),o=a(1403),s=a(2687),c=a(961),l=a(2201),u=a(6088),p=a(5008),f=a(3435),d=r(a(4867));function m(e){return p.generatePageId(n.FioriElementsVersion.v2,p.getPageTypeV2(e.component.name),e.entitySet,e.navigationProperty)}function h(e,t,a,r,i,o){const u={};for(const f in e){const d=e[f],g=m(d),y=Object.assign(Object.assign({pageType:p.getPageTypeV2(d.component.name),entitySet:d.entitySet},d.navigationProperty&&{navigationProperty:d.navigationProperty}),d.defaultLayoutType&&{defaultLayoutType:d.defaultLayoutType});u[g]=y;const v=Object.keys(r).find((e=>e.includes(g)))||Object.keys(r).find((e=>e.includes(g.slice(0,-1))))||Object.keys(r).find((e=>e.includes(y.pageType)));if(v&&(y.pageType===n.PageType.ListReport?y.config=s.createListReportConfig(a,t,r[v],i):y.pageType===n.PageType.AnalyticalListPage?y.config=c.createAnalyticalListPageConfig(a,t,r[v],i):y.config=l.createObjectPageConfig(a,t,r[v],y.entitySet,i,o)),d.pages){y.navigation={};const e=h(d.pages,t,a,r,i);for(const t in e){const a=e[t];u[t]=a}for(const t in d.pages){const a=m(d.pages[t]);y.navigation[a]=e[a].navigationProperty?y.entitySet+"."+e[a].navigationProperty:y.entitySet}}}return u}class V2AppProvider extends i.AppProvider{constructor(e,t,a,r){const i=e["sap.ui.generic.app"].pages,s=new u.AppSettings,c=a[p.getSchemaFilePath(f.SchemaType.Application).filename];o.transferSettingsOfObject(s,e,c.definitions.AppSettings,[]),super(e,a,m(i[Object.keys(i)[0]]),h(i,t,e,a,r),n.FioriElementsVersion.v2,s)}}t.V2AppProvider=V2AppProvider,t.getPages=function e(t,a){const r={};for(const n in t){const i=t[n];if(i.component.name===a){r[m(i)]=i}if(a===d.FE_TEMPLATE_V2_OBJECT_PAGE&&i.pages){const t=e(i.pages,a);for(const e in t)r[e]=t[e]}}return r}},4370:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(6971),n=a(4093),i=a(1403),o=a(9836),s=a(6088),c=a(5008),l=a(3435);class V2OvpProvider extends n.AppProvider{constructor(e,t){const a={},n=e["sap.ovp"],u=new s.AppSettings,p=c.getSchemaFilePath(l.SchemaType.Application);i.transferSettingsOfObject(u,e,t[p.filename].definitions.AppSettings,[]);const f=Object.keys(t).find((e=>e.includes(r.PageType.OverviewPage))),d={pageType:r.PageType.OverviewPage,config:o.createOverviewPageConfig(e,t[f]),entitySet:n.globalFilterEntitySet},m=c.generatePageId(r.FioriElementsVersion.v2,d.pageType,d.entitySet,d.navigationProperty);a[m]=d,super(e,t,m,a,r.FioriElementsVersion.v2,u)}}t.V2OvpProvider=V2OvpProvider},9609:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(4681),i=a(3767),o=a(5008),s=a(2762),c=a(1350),l=a(390),u=a(5921),p=r(a(9154));function f(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}t.convertSelector=f,t.addFlex=function(e,t,a,r){var c,d,m,h,g,y,v;try{const r=o.parseChangeString(t),u=r.content.property;if((null===(c=r.controlId)||void 0===c?void 0:c.includes(n.PageType.ListReport))||(null===(d=r.controlId)||void 0===d?void 0:d.includes(n.PageType.AnalyticalListPage)))if(r.controlId=f(r.controlId),r.controlType===o.ControlType.SmartFilterBar){((null===(h=null===(m=a.definitions)||void 0===m?void 0:m.FilterBar)||void 0===h?void 0:h.properties[u])||(null===(y=null===(g=a.definitions)||void 0===g?void 0:g.AnalyticalListPageFilterBar)||void 0===y?void 0:y.properties[u]))&&(e.filterBar[u]=r.content.newBinding?r.content.newBinding:r.content.newValue)}else if(r.controlType===o.ControlType.DynamicPage){a.properties[u]&&(e[r.content.property]=r.content.newValue)}else if(r.controlType===o.ControlType.SmartChart){if(a.definitions.ChartSettings.properties[u]){const t=s.getReflectMetadata(e.chart,u);(null===(v=null==t?void 0:t.flex)||void 0===v?void 0:v.importFlexValue)?t.flex.importFlexValue(r,e.chart,u):e.chart[u]=r.content.newBinding?r.content.newBinding:r.content.newValue}}else{const t={controlId:r.controlId,propertyId:r.content.property,newValue:r.content.newBinding?r.content.newBinding:r.content.newValue,controlType:r.controlType};let s;s=e.table.type&&e.table.type!==l.TableTypeV2.ResponsiveTable||t.controlId.includes(n.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(n.PageType.AnalyticalListPage))?e.table.constructor.name:"ResponsiveTable";(a.definitions[`${s}<LineItems>`].properties[t.propertyId]||t.controlType===o.ControlType.TableColumn)&&i.addFlexForTable(e.table,t,a)}}catch(e){u.log(r,{severity:"error",message:p.default.t("FLEXERROR")},...e)}},t.transferSettingsOfObject=function(e,t,a,r,n,i){if(!a)return;let o=[],l={};if(e.getDeprecated&&(o=e.getDeprecated()),a.properties)for(const p in a.properties){const a=s.getReflectMetadata(e,p);if(a&&a.manifest){const f=a.manifest.path([r],void 0,i);l=c.getManifestSectionByPathV2(t,f);const d=a.manifest.key||p,m=a.manifest.import;if(m&&"function"==typeof m){const t=m(l[d]);void 0!==t&&(e[p]=t)}else void 0!==l[d]&&(e[d]=l[p]);if(l&&o)for(const e in l){const t=o[e];t&&(u.log(n,{severity:"warning",message:s.getTextForDeprecated(e,t),location:{path:"webapp/manifest.json/",range:f.split("/")}}),delete o[e])}}}},t.determineTableType=function(e,t){const a=e["sap.ui.generic.app"].pages[t];let r=l.TableTypeV2.ResponsiveTable;return"sap.suite.ui.generic.template.AnalyticalListPage"===a.component.name?r=l.TableTypeV2.AnalyticalTable:e["sap.ui.generic.app"].pages[t].component.settings&&e["sap.ui.generic.app"].pages[t].component.settings.tableSettings&&e["sap.ui.generic.app"].pages[t].component.settings.tableSettings.type&&(r=a.component.settings.tableSettings.type),r}},3767:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(8517);t.addFlexForTable=function(e,t,a){if(t.controlType.endsWith("Table"))e[t.propertyId]=t.newValue;else if(t.controlType===r.ControlType.TableColumn){if(!(null==a?void 0:a.definitions.TableColumn.properties[t.propertyId]))return;const r=t.controlId.split("-"),n=r[r.length-1].split("template:::TableColumn:::"),i=n[n.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies","::@com.sap.vocabularies");e.columns||(e.columns={}),e.columns[i]||(e.columns[i]={}),e.columns[i][t.propertyId]=t.newValue}}},4330:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(1403)),r(a(2687)),r(a(2201)),r(a(9836)),r(a(961))},961:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(9609),i=a(6971),o=a(5921),s=a(2449),c=r(a(9154)),l=a(1403),u=a(2687),p=a(7072);t.createAnalyticalListPageConfig=function(e,t,a,r,f){if(s.initI18n(),!e["sap.ui.generic.app"])return void o.log(f,{severity:"error",message:c.default.t("NOFE"),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}});if(!e["sap.ui.generic.app"].pages)return void o.log(f,{severity:"error",message:c.default.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}});const d=new p.MetadataInstanceFactoryV2,m=d.createPageInstance(i.PageType.AnalyticalListPage),h=[],g=l.findAnalyticalListPage(e["sap.ui.generic.app"].pages,h);if(g)return function(e,t,a,r,o,s){e.table=r.createInstance(i.PageType.AnalyticalListPage,"TableALP",e.table),n.transferSettingsOfObject(e.table,t,a.definitions["TableALP<LineItems>"],o,s),e.filterBar=r.createInstance(i.PageType.AnalyticalListPage,"AnalyticalListPageFilterBar",e.filterBar),n.transferSettingsOfObject(e.filterBar,t,a.definitions.AnalyticalListPageFilterBar,o,s),e.chart=r.createInstance(i.PageType.AnalyticalListPage,"ChartSettings",e.chart),n.transferSettingsOfObject(e.chart,t,a.definitions.ChartSettings,o,s),e.keyPerformanceIndicators={};const c=t["sap.ui.generic.app"].pages[o].component.settings.keyPerformanceIndicators;c&&Object.keys(c).forEach((c=>{e.keyPerformanceIndicators[c]=r.createInstance(i.PageType.AnalyticalListPage,"KPISettings"),e.keyPerformanceIndicators=r.createInstance(i.PageType.AnalyticalListPage,"KPISettings",e.keyPerformanceIndicators),n.transferSettingsOfObject(e.keyPerformanceIndicators[c],t,a.definitions.KPISettings,o,s,c)}))}(m,e,a,d,h[0],f),t.forEach((e=>{n.addFlex(m,e,a)})),u.addFragments(m,e,g,i.PageType.AnalyticalListPage,r),m;o.log(f,{severity:"error",message:c.default.t("NOALP"),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}})}},2687:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(9609),i=a(6971),o=a(5008),s=a(5921),c=r(a(9154)),l=a(2449),u=a(1403),p=a(4139),f=a(7040),d=a(7072);function m(e,t,a,r,n,i,o){if(e.customData||e["table:customData"]){const s=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,c=JSON.parse(s.substr(1,s.length));let l=e.Text&&e.Text._attributes&&e.Text._attributes.text;l||(l=e.Label&&e.Label._attributes&&e.Label._attributes.text);const u={id:e._attributes&&e._attributes.id,text:l,columnKey:c.columnKey,columnIndex:void 0!==c.columnIndex?Number(c.columnIndex):void 0,leadingProperty:c.leadingProperty,className:t[a].className,fragmentName:t[a].fragmentName,tabKey:r,extensionType:i};o&&(u.cellsFragmentName=o),n.table.columns.custom||(n.table.columns.custom=[]);n.table.columns.custom.push(u)}}function h(e,t,a,r,n,s){if(!n)return;const c="|"+(s&&s.target?s.target:a.entitySet);if(t["sap.ui5"]&&t["sap.ui5"].extends&&t["sap.ui5"].extends.extensions&&t["sap.ui5"].extends.extensions["sap.ui.viewExtensions"]){const a=i.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(r),l=t["sap.ui5"].extends.extensions["sap.ui.viewExtensions"][a];if(l)for(const t of Object.keys(l)){const a=t.split("|"),[r,i]=a,u=a[2],d=s&&u===s.key?void 0:u,h=o.ViewTemplateType[r];if(h&&"|"+i===c){const a=l[t].type?l[t].type.toLowerCase():"xml";let r,s=l[t].fragmentName;if(!s)continue;if(h===o.ViewTemplateType.ResponsiveTableColumnsExtension)for(const e of Object.keys(l)){const[t,a,n]=e.split("|");t===o.ViewTemplateType.ResponsiveTableCellsExtension&&a===i&&n===u&&(r=l[e].fragmentName)}const c=s.split(".");s=c[c.length-1]+".fragment."+a;const g=n.filter((e=>e.dataSourceUri.endsWith(s)));if(g[0]){const a=JSON.parse(p.xml2json(g[0].fileContent,{compact:!0}))[f.FRAGMENT_DEFINITION],n=f.getRootCustomColumnFromFragmentJSON(a);if(n)if(e.table.columns||(e.table.columns={}),Array.isArray(n))for(let a=0;a<n.length;a++)m(n[a],l,t,d,e,h,r);else m(n,l,t,d,e,h,r)}}}}}t.addFragments=h,t.createListReportConfig=function(e,t,a,r,o){if(l.initI18n(),!e["sap.ui.generic.app"])return void s.log(o,{severity:"error",message:c.default.t("NOFE"),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}});if(!e["sap.ui.generic.app"].pages)return void s.log(o,{severity:"error",message:c.default.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}});const p=new d.MetadataInstanceFactoryV2,f=p.createPageInstance(i.PageType.ListReport),m=[],g=u.findListReportPage(e["sap.ui.generic.app"].pages,m);if(g)return function(e,t,a,r,o,s){const c=n.determineTableType(t,o);let l;e.table=r.createInstance(i.PageType.ListReport,c,e.table),l=c?a.definitions[c+"<LineItems>"]:a.definitions["ResponsiveTable<LineItems>"],n.transferSettingsOfObject(e.table,t,l,o,s),e.filterBar=r.createInstance(i.PageType.ListReport,"FilterBar",e.filterBar),n.transferSettingsOfObject(e.filterBar,t,a.definitions.FilterBar,o,s)}(f,e,a,p,m[0],o),t.forEach((e=>{n.addFlex(f,e,a,o)})),h(f,e,g,i.PageType.ListReport,r),f;s.log(o,{severity:"error",message:c.default.t("NOLR"),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}})}},2201:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5008),i=a(3767),o=a(5921),s=a(1403),c=a(5008),l=a(1350),u=a(4867),p=r(a(9154)),f=a(2449),d=a(6971),m=a(2687),h=a(7072);function g(e,t,a,r,s,u,p,f,d,m){if(!a)return;let h=[],g={};e.getDeprecated&&(h=e.getDeprecated());const y=f&&f.replace(/::@com.sap.vocabularies/g,"/@com.sap.vocabularies");for(const v in a.properties||a){const a=c.getReflectMetadata(e,v);if(a||"columns"===v)if("columns"===v||a&&a.flex){if(f)for(const t in s)s[t].propertyId!==v&&("columns"!==v||s[t].controlType!==n.ControlType.TableColumn)||!s[t].facetId||s[t].facetId!==f&&s[t].facetId!==y&&s[t].facetId!==d||i.addFlexForTable(e,s[t],u);else for(const t in s)if((!m||t.endsWith(m))&&(s[t].propertyId===v&&!s[t].facetId||s[t].propertyId===v&&"action"===s[t].facetId)){e[v]=s[t].newValue;break}}else if(a.manifest){const n=f?f.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,i=a.manifest.path(r,{},n);g=l.getManifestSectionByPathV2(t,i);const s=a.manifest.import;if(s&&"function"==typeof s){const t=s(g,f);void 0!==t&&(e[v]=t)}else{const t=a.manifest.key||v;t in g&&(e[v]=g[t])}if(g&&h)for(const e in g){const t=h[e];t&&(o.log(p,{severity:"warning",message:c.getTextForDeprecated(e,t),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete h[e])}}}}function y(e,t,a,r,n,i,o,l,u,p,f,h){let v,b;for(const P in e){v=P.replace(/\/@/g,"::");let O=e[P];if(O.$ref&&O.$ref.startsWith(c.DEFINITION_LINK_PREFIX+"ObjectPageSectionV2")){O=n.definitions["ObjectPageSectionV2<"+v+">"],b=O.title?O.title.split("Facet ID: ")[1]:void 0;const e=v.replace("@com.sap","com.sap"),c=t&&t.sections&&t.sections[e];if(c||l){const e=c&&c.tableSettings&&c.tableSettings.type?c.tableSettings.type:"ResponsiveTable",t=i.createInstance(d.PageType.ObjectPage,"ObjectPage"+e);let p;a[v]={table:t},p=e?n.definitions["ObjectPage"+e+"<"+v+">"]:n.definitions["ObjectPageResponsiveTable<"+v+">"],g(a[v].table,r,p,o,l,n,h,P,b);const y=n.definitions[v].properties.custom,O=y?s.getTargetFromCustomColumnRef(y.$ref):void 0;if(O){const e={key:b||v.replace("@",""),target:O};m.addFragments(a[v],r,u,d.PageType.ObjectPage,f,e)}}}else if(O.properties&&O.properties.subsections)a[v]={subsections:{}},O=n.definitions["ObjectPageSectionV2<"+v+">"],b=O.title?O.title.split("Facet ID: ")[1]:void 0,y(O.properties,t,a[v].subsections,r,n,i,o,l,u,p,f,h);else if(O.$ref&&O.$ref===c.DEFINITION_LINK_PREFIX+"ObjectPageSectionChartV2"){O=n.definitions.ObjectPageSectionChartV2,b=O.title?O.title.split("Facet ID: ")[1]:void 0;const e=v.replace("@com.sap","com.sap"),s=t&&t.sections&&t.sections[e],c=i.createInstance(d.PageType.ObjectPage,"ObjectPageChart");a[v]={chart:c},(s||l)&&g(a[v].chart,r,n.definitions.ObjectPageChart,o,l,n,h,P,b)}}}function v(e,t,a,r,n,i,o,c,l,u){const p=o.component.settings;g(e,t,a.properties,r,i,a,u),e.header=c.createInstance(d.PageType.ObjectPage,"ObjectPageHeader"),g(e.header,t,a.definitions.ObjectPageHeader?a.definitions.ObjectPageHeader:a.definitions["ObjectPageHeader<GenericActions>"],r,i,a,u);const f=a.definitions.HeaderActions;f&&function(e,t,a,r,n,i,o,s){let c;if(t.actions={},o.constructor===Object&&0!==Object.keys(o).length)for(const l in e)c=l.replace(/\/@/g,"::"),t.actions[c]=n.createInstance(d.PageType.ObjectPage,"HeaderAction"),g(t.actions[c],a,r.definitions.HeaderAction,i,o,r,s,void 0,void 0,c)}(f.properties,e.header,t,a,c,r,i,u),e.layout=c.createInstance(d.PageType.ObjectPage,"ObjectPageLayout"),g(e.layout,t,a.definitions.ObjectPageLayout,r,i,a,u),0===Object.keys(e.layout).length&&delete e.layout,e.sections={};const m=a.definitions.Sections;m&&y(m.properties,p,e.sections,t,a,c,r,i,o,e,l,u);const h=s.findCustomSectionExtensions(t,n);if(Object.keys(h).length>0){e.sections.custom=[];for(const n in h){const o="fragmentName"in h[n]?c.createInstance(d.PageType.ObjectPage,"ObjectPageCustomSectionFragment"):c.createInstance(d.PageType.ObjectPage,"ObjectPageCustomSectionView");g(o,t,a.definitions["fragmentName"in h[n]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"],r,i,a,u,n),e.sections.custom.push(o)}}}t.createObjectPageConfig=function(e,t,a,r,n,i){if(f.initI18n(),!e["sap.ui.generic.app"])return void o.log(i,{severity:"error",message:p.default.t("NOFE"),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}});const l=[],m=e["sap.ui.generic.app"].pages;if(!m)return void o.log(i,{severity:"error",message:p.default.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}});const g=s.findObjectPage(m,r,l);if(!g)return void o.log(i,{severity:"error",message:p.default.t("NOENTITYSET",{entitySet:r}),location:{path:"webapp/manifest.json",range:["sap.ui.generic.app"]}});const y=function(e,t,a){const r={};let n=1;return e.forEach((e=>{var i,s;try{const a=c.parseChangeString(e);if((null===(i=a.controlId)||void 0===i?void 0:i.includes(u.FE_TEMPLATE_V2_OBJECT_PAGE))&&(null===(s=a.controlId)||void 0===s?void 0:s.includes(t))){let e=a.controlId.split("--")[1].replace(/:3a:3a/g,"::");null!==new RegExp(".+DataField.+:::sSmartTableId::.+").exec(e)&&(e=e.split("template:::TableColumn:::")[1]);const t=e.split(":::");let i,o;if(1===t.length){const e=t[0].split("-");if(i=e[e.length-1],t[0].indexOf("com.sap.vocabularies.UI.v1.LineItem")>=0||t[0].indexOf("UI.LineItem")>=0||t[0].indexOf("::Table")>=0)o=e[0].split("::Table")[0].split("::responsiveTable")[0].replace(/::/g,"/@");else{const t=i.split("::");t.length>1?(o=t[0],i=t[1]):e[0].indexOf("::")>-1&&(o=e[0].split("::")[0])}}else if(e.indexOf("sSmartTableId")>=0){i=e;for(let e=0;e<t.length;e++){const a=t[e];if(a.startsWith("sSmartTableId")){o=a.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace("::com.sap.vocabularies.UI.v1.LineItem","/@com.sap.vocabularies.UI.v1.LineItem");break}}}else o=t[0],i=t[1];e=e.replace(/:2f/g,"/").replace(/:40/g,"@").replace(/:23/g,"#").replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),r[e]&&r[e].propertyId!==a.content.property&&(e+=n,n++),r[e]={controlId:e,propertyId:a.content.property,facetId:o,newValue:void 0!==a.content.newBinding?a.content.newBinding:a.content.newValue,controlType:a.controlType}}}catch(e){o.log(a,{severity:"error",message:p.default.t("FLEXERROR")},...e)}})),r}(t,r),b=new h.MetadataInstanceFactoryV2,P=b.createPageInstance(d.PageType.ObjectPage);return v(P,e,a,l,r,y,g,b,n,i),P}},9836:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(6971),n=a(2762),i=a(1350),o=a(390),s=a(7072),c=a(2432);function l(e,t,a,r){if(a)for(const s in a){const a=n.getReflectMetadata(e,s);if(a&&a.manifest){const n=a.manifest.path([...r,s]),c=i.getManifestSectionByPathV2(t,n);if(Object.prototype.hasOwnProperty.call(c,s))if(0!==r.length)if("settings"===s)switch(c.template){case"sap.ovp.cards.charts.analytical":e[r[0]][o.CardSettingsType.analyticalCardSettings]=c[s];break;case"sap.ovp.cards.list":e[r[0]][o.CardSettingsType.listCardSettings]=c[s];break;case"sap.ovp.cards.stack":e[r[0]][o.CardSettingsType.stackCardSettings]=c[s];break;case"sap.ovp.cards.linklist":e[r[0]][o.CardSettingsType.linkListCardSettings]=c[s];break;case"sap.ovp.cards.table":e[r[0]][o.CardSettingsType.tableCardSettings]=c[s];break;default:e[r[0]].settings=c[s]}else e[r[0]][s]=c[s];else e[s]=c[s]}}}t.createOverviewPageConfig=function(e,t){const a=new s.MetadataInstanceFactoryV2,n=a.createPageInstance(r.PageType.OverviewPage);return function(e,t,a,r){l(e,t,a.properties,[]),e.cards={},Object.keys(t["sap.ovp"].cards).forEach((a=>{const n=t["sap.ovp"].cards[a].template,i=o.cardTemplateTypeMap[n];e.cards[a]=c.assignReflectMetadataRules(r,i,{},"CustomCard"),e.cards=c.assignReflectMetadataRules(r,i,e.cards,"CustomCard"),l(e.cards,t,t["sap.ovp"].cards[a],[a])}))}(n,e,t,a),n}},1403:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(390),n=a(6971),i=a(1350),o=a(5008),s=a(468);function c(e,t){const a=e.split("|");return r.SectionPosition[a[0]]&&a[1]===t}t.findObjectPage=function e(t,a,r){for(const i in t){const s=t[i];if(o.getPageTypeV2(s.component.name)===n.PageType.ObjectPage&&s.entitySet===a)return r.push(i),s;if(s.pages)return r.push(i),e(s.pages,a,r)}},t.findListReportPage=function(e,t){for(const a in e){const r=e[a];if(t.push(a),o.getPageTypeV2(r.component.name)===n.PageType.ListReport)return r}},t.findAnalyticalListPage=function(e,t){for(const a in e){const r=e[a];if(t.push(a),o.getPageTypeV2(r.component.name)===n.PageType.AnalyticalListPage)return r}},t.isAssociatedCustomSection=c,t.findCustomSectionExtensions=function(e,t){const a=i.getManifestSectionByPathV2(e,`sap.ui5/extends/extensions/${r.SAPUI5_VIEW_EXTENSION}/${r.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),n={};for(const e in a)c(e,t)&&(n[e]=a[e]);return n},t.transferSettingsOfObject=function(e,t,a,r,n){let s={};for(const c in a.properties||a){const a=o.getReflectMetadata(e,c);if(a&&a.manifest){n&&(n=n.replace(new RegExp("/@","g"),"::"));const o=a.manifest.path(r,{},n);s=i.getManifestSectionByPathV2(t,o);const l=a.manifest.import;if(l&&"function"==typeof l){const t=l(s,n);void 0!==t&&(e[c]=t)}else{const t=a.manifest.key||c;t in s&&(e[c]=s[t])}}}},t.getTargetFromCustomColumnRef=function(e){const t=e.split(`${s.CUSTOM_COLUMNS_DEFINITION}<`);if(t[1])return t[1].slice(0,-1)}},3374:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(4027)),r(a(390))},2892:e=>{"use strict";e.exports={}},6354:e=>{"use strict";e.exports=JSON.parse('{"NOPAGES":"No pages found in manifest for app with id \'{{- appId}}\'","NOFE":"The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing","NOENTITYSET":"No page found in manifest for entitySet \'{{- entitySet}}\'","ENTITYSETNOTFOUND":"Entity set \'{{- entitySetName}}\' was specified in manifest, but this entity set could not be found in metadata","NOLR":"No page found in manifest for list report","NOALP":"No page found in manifest for analytical list page","NOTEMPLATE":"No Fiori Elements template could be determined, as section \'{{- section}}\' is not defined in manifest","ANNOERR":"Error while parsing annotation files","NOROUTING":"Incomplete manifest definition: no routing defined","NOLINEITEMS":"UI.LineItem annotation has not been defined","NOTARGETS":"Incomplete manifest definition: no targets defined","NOROUTINGID":"No page found in manifest for routingId \'{{- routingId}}\'","FLEXERROR":"Error while parsing flex change","NOFRAGMENT":"fragmentName is undefined for columnKey \'{{- columnKey}}\'","NOENTITYPE":"Entity type \'{{- entityType}}\' is specified in manifest, but not present in metadata"}')},5747:e=>{"use strict";e.exports=require("fs")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")}},t={};function a(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,a),i.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r=a(4027);module.exports=r})();
|
|
2
|
+
(()=>{var e={601:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},8938:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},7740:e=>{"use strict";e.exports={i8:"3.1.6"}},4350:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||t.hasOwnProperty(a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(9335),t)},9335:function(e,t){"use strict";var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.revertTermToGenericType=t.convertTypes=t.defaultReferences=void 0;var r,n=function(e,t,a,r,n){this.path=e.Path,this.type="Path",this.$target=t,this.term=n,this.annotationType=r,this.annotationsTerm=a};function i(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((function(e,t){return e[t.namespace]=t,e}),{})),!t)return t;var a=t.lastIndexOf("."),r=t.substr(0,a),n=t.substr(a+1),o=e.reverseReferenceMap[r];if(o)return o.alias+"."+n;if(-1!==t.indexOf("@")){var s=t.split("@");return s[0]+"@"+i(e,s.slice(1).join("@"))}return t}function o(e,t){if(e.referenceMap||(e.referenceMap=e.reduce((function(e,t){return e[t.alias]=t,e}),{})),!t)return t;var a=t.split("."),r=a[0],n=a.slice(1),i=e.referenceMap[r];if(i)return i.namespace+"."+n.join(".");if(-1!==t.indexOf("@")){var s=t.split("@");return s[0]+"@"+o(e,s.slice(1).join("@"))}return t}function s(e,a){return a.startsWith("@")?e+o(t.defaultReferences,a):e+"/"+a}function c(e,t){b[e]?b[e].push(t):b[e]=[t]}function l(e,t,a,r,n,i,o){if(void 0===r&&(r=!1),void 0===n&&(n=!1),a){var u=[];t&&"Property"===t._type&&(t=e[t.fullyQualifiedName.split("/")[0]]);var p=(a=s(t.fullyQualifiedName,a)).split("/"),f=[];p.forEach((function(e){if(-1!==e.indexOf("@")){var t=e.split("@"),a=t[0],r=t[1];f.push(a),f.push("@"+r)}else f.push(e)}));var d=a,m=t,h=f.reduce((function(a,r){if("$Type"===r&&"EntityType"===a._type)return a;if(0===r.length)return a&&"EntitySet"===a._type&&a.entityType&&(u.push(a),a=a.entityType),a&&"NavigationProperty"===a._type&&a.targetType&&(u.push(a),a=a.targetType),a;if(n&&null!=a&&u.push(a),a){if("EntitySet"===a._type&&"$Type"===r)return a=a.targetType;if("EntitySet"===a._type&&a.entityType)d=s(a.entityTypeName,r);else if("NavigationProperty"===a._type&&a.targetTypeName)d=s(a.targetTypeName,r);else if("NavigationProperty"===a._type&&a.targetType)d=s(a.targetType.fullyQualifiedName,r);else if("Property"===a._type)d=a.targetType?s(a.targetType.fullyQualifiedName,r):s(a.fullyQualifiedName,r);else if("Action"===a._type&&a.isBound)d=s(a.fullyQualifiedName,r),e[d]||(d=s(a.sourceType,r));else if("ActionParameter"===a._type&&a.isEntitySet)d=s(a.type,r);else if("ActionParameter"!==a._type||a.isEntitySet){if(d=s(a.fullyQualifiedName,r),"name"!==r&&void 0!==a[r])return a[r];if("$AnnotationPath"===r&&a.$target){var i=e[a.fullyQualifiedName.split("@")[0]];return(o=l(e,i,a.value,!1,!0)).visitedObjects.forEach((function(e){-1===u.indexOf(e)&&u.push(e)})),o.target}var o;if("$Path"===r&&a.$target)return(m=u.concat().reverse().find((function(e){return"EntityType"===e._type||"EntitySet"===e._type||"NavigationProperty"===e._type})))?((o=l(e,m,a.path,!1,!0)).visitedObjects.forEach((function(e){-1===u.indexOf(e)&&u.push(e)})),o.target):a.$target;if(r.startsWith("$Path")&&a.$target){var c=a.$target;d=s(c.fullyQualifiedName,r.substr(5))}else if(a.hasOwnProperty("$Type")&&!e[d]){var p=e[a.fullyQualifiedName.split("@")[0]];p&&(d=s(p.fullyQualifiedName,r))}}else if(d=s(t.fullyQualifiedName.substr(0,t.fullyQualifiedName.lastIndexOf("/")),r),!e[d]){var f=t.fullyQualifiedName.lastIndexOf("/");-1===f&&(f=t.fullyQualifiedName.length),d=s(e[t.fullyQualifiedName.substr(0,f)].sourceType,r)}}else d=r;return e[d]}),null);if(!h)if(o&&i)c(a,{message:"Unable to resolve the path expression: \n"+a+"\n\nHint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application): \n\n<Annotation Term = "+o+">\n<Record Type = "+i+">\n<AnnotationPath = "+a+">"});else c(a,{message:"Unable to resolve the path expression: "+a+"\n\nHint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application): \n\n<Annotation Term = "+p[0]+">\n<PropertyValue Path= "+p[1]+">"});return r?d:n?{visitedObjects:u,target:h}:h}}function u(e){return-1!==e.indexOf("@")}function p(e,t,a,r,s,c,p,f,h,g){if(void 0!==e)switch(e.type){case"String":return e.String;case"Int":return e.Int;case"Bool":return e.Bool;case"Decimal":return e.Decimal;case"Date":return e.Date;case"EnumMember":return i(a.references,e.EnumMember);case"PropertyPath":return{type:"PropertyPath",value:e.PropertyPath,fullyQualifiedName:t,$target:l(s,r,e.PropertyPath,!1,!1,h,g)};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",value:e.NavigationPropertyPath,fullyQualifiedName:t,$target:l(s,r,e.NavigationPropertyPath,!1,!1,h,g)};case"AnnotationPath":var y=l(s,r,o(a.references,e.AnnotationPath),!0,!1,h,g),v={type:"AnnotationPath",value:e.AnnotationPath,fullyQualifiedName:t,$target:y,annotationType:h,annotationsTerm:g,term:"",path:""};return c.push({inline:!1,toResolve:v}),v;case"Path":var b=l(s,r,e.Path,!0,!1,h,g),P=new n(e,b,g,h,"");return c.push({inline:u(e.Path),toResolve:P}),P;case"Record":return d(e.Record,t,a,r,s,c,p,f,h,g);case"Collection":return m(e.Collection,t,a,r,s,c,p,f,h,g);case"Apply":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":return e}}function f(e,t,a){var n=r[e];return c(a+"/"+e,{isError:!1,message:"The type of the record used within the term "+e+" was not defined and was inferred as "+n+'.\nHint: If possible, try to maintain the Type property for each Record.\n<Annotations Target="'+a+'">\n\t<Annotation Term="'+e+'">\n\t\t<Record>...</Record>\n\t</Annotation>\n</Annotations>'}),n}function d(e,t,a,r,n,i,s,c,l,u){var d={$Type:!e.type&&u?f(u,0,r.fullyQualifiedName):o(a.references,e.type),fullyQualifiedName:t},m={};if(e.annotations&&Array.isArray(e.annotations)){var h={target:t,annotations:e.annotations,__source:s};c.push(h)}return e.propertyValues.forEach((function(e){if(m[e.name]=p(e.value,t+"/"+e.name,a,r,n,i,s,c,l,u),e.annotations&&Array.isArray(e.annotations)){var o={target:t+"/"+e.name,annotations:e.annotations,__source:s};c.push(o)}!m.hasOwnProperty("Action")||"com.sap.vocabularies.UI.v1.DataFieldForAction"!==d.$Type&&"com.sap.vocabularies.UI.v1.DataFieldWithAction"!==d.$Type||(m.ActionTarget=r.actions&&r.actions[m.Action]||n[m.Action],m.ActionTarget||v.push({message:"Unable to resolve the action "+m.Action+" defined for "+d.fullyQualifiedName}))})),Object.assign(d,m)}function m(e,t,a,r,i,o,s,c,p,f){switch(function(e){var t=e.type;if(void 0===t&&e.length>0){var a=e[0];a.hasOwnProperty("PropertyPath")?t="PropertyPath":a.hasOwnProperty("Path")?t="Path":a.hasOwnProperty("AnnotationPath")?t="AnnotationPath":a.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":"object"==typeof a&&(a.hasOwnProperty("type")||a.hasOwnProperty("propertyValues"))?t="Record":"string"==typeof a&&(t="String")}else void 0===t&&(t="EmptyCollection");return t}(e)){case"PropertyPath":return e.map((function(e,a){return{type:"PropertyPath",value:e.PropertyPath,fullyQualifiedName:t+"/"+a,$target:l(i,r,e.PropertyPath,!1,!1,p,f)}}));case"Path":return e.map((function(e){var t=l(i,r,e.Path,!0,!1,p,f),a=new n(e,t,f,p,"");return o.push({inline:u(e.Path),toResolve:a}),a}));case"AnnotationPath":return e.map((function(e,a){var n=l(i,r,e.AnnotationPath,!0,!1,p,f),s={type:"AnnotationPath",value:e.AnnotationPath,fullyQualifiedName:t+"/"+a,$target:n,annotationType:p,annotationsTerm:f,term:"",path:""};return o.push({inline:!1,toResolve:s}),s}));case"NavigationPropertyPath":return e.map((function(e,a){return{type:"NavigationPropertyPath",value:e.NavigationPropertyPath,fullyQualifiedName:t+"/"+a,$target:l(i,r,e.NavigationPropertyPath,!1,!1,p,f)}}));case"Record":return e.map((function(e,n){return d(e,t+"/"+n,a,r,i,o,s,c,p,f)}));case"Apply":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return e.map((function(e){return e}));case"String":return e.map((function(e){return"string"==typeof e||void 0===e?e:e.String}));default:if(0===e.length)return[];throw new Error("Unsupported case")}}function h(e,t,a,r,n,i,s){if(e.record){var c=e.record.type?o(t.references,e.record.type):f(e.term,0,a.fullyQualifiedName),l={$Type:c,fullyQualifiedName:e.fullyQualifiedName,qualifier:e.qualifier},u={};return e.record.propertyValues.forEach((function(o){u[o.name]=p(o.value,e.fullyQualifiedName+"/"+o.name,t,a,r,n,i,s,c,e.term),!u.hasOwnProperty("Action")||e.record&&"com.sap.vocabularies.UI.v1.DataFieldForAction"!==l.$Type&&"com.sap.vocabularies.UI.v1.DataFieldWithAction"!==l.$Type||(u.ActionTarget=a.actions&&a.actions[u.Action]||r[u.Action],u.ActionTarget||v.push({message:"Unable to resolve the action "+u.Action+" defined for "+e.fullyQualifiedName}))})),Object.assign(l,u)}if(void 0===e.collection)return!e.value||p(e.value,e.fullyQualifiedName,t,a,r,n,i,s,"",e.term);if(e.collection){var d=m(e.collection,e.fullyQualifiedName,t,a,r,n,i,s,"",e.term);return d.fullyQualifiedName=e.fullyQualifiedName,d}throw new Error("Unsupported case")}function g(e,t,a){e.forEach((function(e){e.navigationProperties=e.navigationProperties.map((function(e){var r={_type:"NavigationProperty",name:e.name,fullyQualifiedName:e.fullyQualifiedName,partner:e.hasOwnProperty("partner")?e.partner:void 0,isCollection:!!e.hasOwnProperty("isCollection")&&e.isCollection,containsTarget:!!e.hasOwnProperty("containsTarget")&&e.containsTarget,referentialConstraint:e.referentialConstraint?e.referentialConstraint:[],annotations:{}};if(e.targetTypeName)r.targetType=a[e.targetTypeName];else if(e.relationship){var n=t.find((function(t){return t.fullyQualifiedName===e.relationship}));if(n){var i=n.associationEnd.find((function(t){return t.role===e.toRole}));i&&(r.targetType=a[i.type],r.isCollection="*"===i.multiplicity)}}r.targetType&&(r.targetTypeName=r.targetType.fullyQualifiedName);var o=r;return a[o.fullyQualifiedName]=o,o})),e.resolvePath=function(e,t){return function(a,r){return l(t,e,a,!1,r,"","")}}(e,a)}))}function y(e,t){var a=i(e,t),r=a.lastIndexOf(".");return[a.substr(0,r),a.substr(r+1)]}!function(e){e["Org.OData.Authorization.V1.SecuritySchemes"]="Org.OData.Authorization.V1.SecurityScheme",e["Org.OData.Authorization.V1.Authorizations"]="Org.OData.Authorization.V1.Authorization",e["Org.OData.Core.V1.Revisions"]="Org.OData.Core.V1.RevisionType",e["Org.OData.Core.V1.Links"]="Org.OData.Core.V1.Link",e["Org.OData.Core.V1.Example"]="Org.OData.Core.V1.ExampleValue",e["Org.OData.Core.V1.Messages"]="Org.OData.Core.V1.MessageType",e["Org.OData.Core.V1.ValueException"]="Org.OData.Core.V1.ValueExceptionType",e["Org.OData.Core.V1.ResourceException"]="Org.OData.Core.V1.ResourceExceptionType",e["Org.OData.Core.V1.DataModificationException"]="Org.OData.Core.V1.DataModificationExceptionType",e["Org.OData.Core.V1.IsLanguageDependent"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.DereferenceableIDs"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.ConventionalIDs"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.Permissions"]="Org.OData.Core.V1.Permission",e["Org.OData.Core.V1.DefaultNamespace"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.Immutable"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.Computed"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.ComputedDefaultValue"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.IsURL"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.IsMediaType"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.ContentDisposition"]="Org.OData.Core.V1.ContentDispositionType",e["Org.OData.Core.V1.OptimisticConcurrency"]="Edm.PropertyPath",e["Org.OData.Core.V1.AdditionalProperties"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.AutoExpand"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.AutoExpandReferences"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.MayImplement"]="Org.OData.Core.V1.QualifiedTypeName",e["Org.OData.Core.V1.Ordered"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.PositionalInsert"]="Org.OData.Core.V1.Tag",e["Org.OData.Core.V1.AlternateKeys"]="Org.OData.Core.V1.AlternateKey",e["Org.OData.Core.V1.OptionalParameter"]="Org.OData.Core.V1.OptionalParameterType",e["Org.OData.Core.V1.OperationAvailable"]="Edm.Boolean",e["Org.OData.Core.V1.SymbolicName"]="Org.OData.Core.V1.SimpleIdentifier",e["Org.OData.Capabilities.V1.ConformanceLevel"]="Org.OData.Capabilities.V1.ConformanceLevelType",e["Org.OData.Capabilities.V1.AsynchronousRequestsSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.BatchContinueOnErrorSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.IsolationSupported"]="Org.OData.Capabilities.V1.IsolationLevel",e["Org.OData.Capabilities.V1.CrossJoinSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.CallbackSupported"]="Org.OData.Capabilities.V1.CallbackType",e["Org.OData.Capabilities.V1.ChangeTracking"]="Org.OData.Capabilities.V1.ChangeTrackingType",e["Org.OData.Capabilities.V1.CountRestrictions"]="Org.OData.Capabilities.V1.CountRestrictionsType",e["Org.OData.Capabilities.V1.NavigationRestrictions"]="Org.OData.Capabilities.V1.NavigationRestrictionsType",e["Org.OData.Capabilities.V1.IndexableByKey"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.TopSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.SkipSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.ComputeSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.SelectSupport"]="Org.OData.Capabilities.V1.SelectSupportType",e["Org.OData.Capabilities.V1.BatchSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.BatchSupport"]="Org.OData.Capabilities.V1.BatchSupportType",e["Org.OData.Capabilities.V1.FilterRestrictions"]="Org.OData.Capabilities.V1.FilterRestrictionsType",e["Org.OData.Capabilities.V1.SortRestrictions"]="Org.OData.Capabilities.V1.SortRestrictionsType",e["Org.OData.Capabilities.V1.ExpandRestrictions"]="Org.OData.Capabilities.V1.ExpandRestrictionsType",e["Org.OData.Capabilities.V1.SearchRestrictions"]="Org.OData.Capabilities.V1.SearchRestrictionsType",e["Org.OData.Capabilities.V1.KeyAsSegmentSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.QuerySegmentSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.InsertRestrictions"]="Org.OData.Capabilities.V1.InsertRestrictionsType",e["Org.OData.Capabilities.V1.DeepInsertSupport"]="Org.OData.Capabilities.V1.DeepInsertSupportType",e["Org.OData.Capabilities.V1.UpdateRestrictions"]="Org.OData.Capabilities.V1.UpdateRestrictionsType",e["Org.OData.Capabilities.V1.DeepUpdateSupport"]="Org.OData.Capabilities.V1.DeepUpdateSupportType",e["Org.OData.Capabilities.V1.DeleteRestrictions"]="Org.OData.Capabilities.V1.DeleteRestrictionsType",e["Org.OData.Capabilities.V1.CollectionPropertyRestrictions"]="Org.OData.Capabilities.V1.CollectionPropertyRestrictionsType",e["Org.OData.Capabilities.V1.OperationRestrictions"]="Org.OData.Capabilities.V1.OperationRestrictionsType",e["Org.OData.Capabilities.V1.AnnotationValuesInQuerySupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Capabilities.V1.ModificationQueryOptions"]="Org.OData.Capabilities.V1.ModificationQueryOptionsType",e["Org.OData.Capabilities.V1.ReadRestrictions"]="Org.OData.Capabilities.V1.ReadRestrictionsType",e["Org.OData.Capabilities.V1.CustomHeaders"]="Org.OData.Capabilities.V1.CustomParameter",e["Org.OData.Capabilities.V1.CustomQueryOptions"]="Org.OData.Capabilities.V1.CustomParameter",e["Org.OData.Capabilities.V1.MediaLocationUpdateSupported"]="Org.OData.Core.V1.Tag",e["Org.OData.Aggregation.V1.ApplySupported"]="Org.OData.Aggregation.V1.ApplySupportedType",e["Org.OData.Aggregation.V1.Groupable"]="Org.OData.Core.V1.Tag",e["Org.OData.Aggregation.V1.Aggregatable"]="Org.OData.Core.V1.Tag",e["Org.OData.Aggregation.V1.ContextDefiningProperties"]="Edm.PropertyPath",e["Org.OData.Aggregation.V1.LeveledHierarchy"]="Edm.PropertyPath",e["Org.OData.Aggregation.V1.RecursiveHierarchy"]="Org.OData.Aggregation.V1.RecursiveHierarchyType",e["Org.OData.Aggregation.V1.AvailableOnAggregates"]="Org.OData.Aggregation.V1.AvailableOnAggregatesType",e["Org.OData.Validation.V1.Minimum"]="Edm.PrimitiveType",e["Org.OData.Validation.V1.Maximum"]="Edm.PrimitiveType",e["Org.OData.Validation.V1.Exclusive"]="Org.OData.Core.V1.Tag",e["Org.OData.Validation.V1.AllowedValues"]="Org.OData.Validation.V1.AllowedValue",e["Org.OData.Validation.V1.MultipleOf"]="Edm.Decimal",e["Org.OData.Validation.V1.Constraint"]="Org.OData.Validation.V1.ConstraintType",e["Org.OData.Validation.V1.ItemsOf"]="Org.OData.Validation.V1.ItemsOfType",e["Org.OData.Validation.V1.OpenPropertyTypeConstraint"]="Org.OData.Core.V1.QualifiedTypeName",e["Org.OData.Validation.V1.DerivedTypeConstraint"]="Org.OData.Core.V1.QualifiedTypeName",e["Org.OData.Validation.V1.AllowedTerms"]="Org.OData.Core.V1.QualifiedTermName",e["Org.OData.Validation.V1.ApplicableTerms"]="Org.OData.Core.V1.QualifiedTermName",e["Org.OData.Validation.V1.MaxItems"]="Edm.Int64",e["Org.OData.Validation.V1.MinItems"]="Edm.Int64",e["Org.OData.Measures.V1.Scale"]="Edm.Byte",e["Org.OData.Measures.V1.DurationGranularity"]="Org.OData.Measures.V1.DurationGranularityType",e["com.sap.vocabularies.Analytics.v1.Dimension"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Analytics.v1.Measure"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Analytics.v1.AccumulativeMeasure"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Analytics.v1.RolledUpPropertyCount"]="Edm.Int16",e["com.sap.vocabularies.Analytics.v1.PlanningAction"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Analytics.v1.AggregatedProperties"]="com.sap.vocabularies.Analytics.v1.AggregatedPropertyType",e["com.sap.vocabularies.Common.v1.ServiceVersion"]="Edm.Int32",e["com.sap.vocabularies.Common.v1.ServiceSchemaVersion"]="Edm.Int32",e["com.sap.vocabularies.Common.v1.TextFor"]="Edm.PropertyPath",e["com.sap.vocabularies.Common.v1.IsLanguageIdentifier"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.TextFormat"]="com.sap.vocabularies.Common.v1.TextFormatType",e["com.sap.vocabularies.Common.v1.IsDigitSequence"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsUpperCase"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCurrency"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsUnit"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.UnitSpecificScale"]="Edm.PrimitiveType",e["com.sap.vocabularies.Common.v1.UnitSpecificPrecision"]="Edm.PrimitiveType",e["com.sap.vocabularies.Common.v1.SecondaryKey"]="Edm.PropertyPath",e["com.sap.vocabularies.Common.v1.MinOccurs"]="Edm.Int64",e["com.sap.vocabularies.Common.v1.MaxOccurs"]="Edm.Int64",e["com.sap.vocabularies.Common.v1.AssociationEntity"]="Edm.NavigationPropertyPath",e["com.sap.vocabularies.Common.v1.DerivedNavigation"]="Edm.NavigationPropertyPath",e["com.sap.vocabularies.Common.v1.Masked"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.MaskedAlways"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.SemanticObjectMapping"]="com.sap.vocabularies.Common.v1.SemanticObjectMappingType",e["com.sap.vocabularies.Common.v1.IsInstanceAnnotation"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.FilterExpressionRestrictions"]="com.sap.vocabularies.Common.v1.FilterExpressionRestrictionType",e["com.sap.vocabularies.Common.v1.FieldControl"]="com.sap.vocabularies.Common.v1.FieldControlType",e["com.sap.vocabularies.Common.v1.Application"]="com.sap.vocabularies.Common.v1.ApplicationType",e["com.sap.vocabularies.Common.v1.Timestamp"]="Edm.DateTimeOffset",e["com.sap.vocabularies.Common.v1.ErrorResolution"]="com.sap.vocabularies.Common.v1.ErrorResolutionType",e["com.sap.vocabularies.Common.v1.Messages"]="Edm.ComplexType",e["com.sap.vocabularies.Common.v1.numericSeverity"]="com.sap.vocabularies.Common.v1.NumericMessageSeverityType",e["com.sap.vocabularies.Common.v1.MaximumNumericMessageSeverity"]="com.sap.vocabularies.Common.v1.NumericMessageSeverityType",e["com.sap.vocabularies.Common.v1.IsActionCritical"]="Edm.Boolean",e["com.sap.vocabularies.Common.v1.Attributes"]="Edm.PropertyPath",e["com.sap.vocabularies.Common.v1.RelatedRecursiveHierarchy"]="Edm.AnnotationPath",e["com.sap.vocabularies.Common.v1.Interval"]="com.sap.vocabularies.Common.v1.IntervalType",e["com.sap.vocabularies.Common.v1.ResultContext"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.WeakReferentialConstraint"]="com.sap.vocabularies.Common.v1.WeakReferentialConstraintType",e["com.sap.vocabularies.Common.v1.IsNaturalPerson"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.ValueList"]="com.sap.vocabularies.Common.v1.ValueListType",e["com.sap.vocabularies.Common.v1.ValueListRelevantQualifiers"]="com.sap.vocabularies.Common.v1.SimpleIdentifier",e["com.sap.vocabularies.Common.v1.ValueListWithFixedValues"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.ValueListMapping"]="com.sap.vocabularies.Common.v1.ValueListMappingType",e["com.sap.vocabularies.Common.v1.IsCalendarYear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarHalfyear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarQuarter"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarMonth"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarWeek"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsDayOfCalendarMonth"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsDayOfCalendarYear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarYearHalfyear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarYearQuarter"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarYearMonth"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarYearWeek"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsCalendarDate"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalYear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalPeriod"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalYearPeriod"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalQuarter"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalYearQuarter"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalWeek"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalYearWeek"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsDayOfFiscalYear"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.IsFiscalYearVariant"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.MutuallyExclusiveTerm"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Common.v1.DraftRoot"]="com.sap.vocabularies.Common.v1.DraftRootType",e["com.sap.vocabularies.Common.v1.DraftNode"]="com.sap.vocabularies.Common.v1.DraftNodeType",e["com.sap.vocabularies.Common.v1.DraftActivationVia"]="com.sap.vocabularies.Common.v1.SimpleIdentifier",e["com.sap.vocabularies.Common.v1.EditableFieldFor"]="Edm.PropertyPath",e["com.sap.vocabularies.Common.v1.SemanticKey"]="Edm.PropertyPath",e["com.sap.vocabularies.Common.v1.SideEffects"]="com.sap.vocabularies.Common.v1.SideEffectsType",e["com.sap.vocabularies.Common.v1.DefaultValuesFunction"]="com.sap.vocabularies.Common.v1.QualifiedName",e["com.sap.vocabularies.Common.v1.FilterDefaultValue"]="Edm.PrimitiveType",e["com.sap.vocabularies.Common.v1.FilterDefaultValueHigh"]="Edm.PrimitiveType",e["com.sap.vocabularies.Common.v1.SortOrder"]="com.sap.vocabularies.Common.v1.SortOrderType",e["com.sap.vocabularies.Common.v1.RecursiveHierarchy"]="com.sap.vocabularies.Common.v1.RecursiveHierarchyType",e["com.sap.vocabularies.Common.v1.CreatedAt"]="Edm.DateTimeOffset",e["com.sap.vocabularies.Common.v1.CreatedBy"]="com.sap.vocabularies.Common.v1.UserID",e["com.sap.vocabularies.Common.v1.ChangedAt"]="Edm.DateTimeOffset",e["com.sap.vocabularies.Common.v1.ChangedBy"]="com.sap.vocabularies.Common.v1.UserID",e["com.sap.vocabularies.Common.v1.ApplyMultiUnitBehaviorForSortingAndFiltering"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.CodeList.v1.CurrencyCodes"]="com.sap.vocabularies.CodeList.v1.CodeListSource",e["com.sap.vocabularies.CodeList.v1.UnitsOfMeasure"]="com.sap.vocabularies.CodeList.v1.CodeListSource",e["com.sap.vocabularies.CodeList.v1.StandardCode"]="Edm.PropertyPath",e["com.sap.vocabularies.CodeList.v1.ExternalCode"]="Edm.PropertyPath",e["com.sap.vocabularies.CodeList.v1.IsConfigurationDeprecationCode"]="Edm.Boolean",e["com.sap.vocabularies.Communication.v1.Contact"]="com.sap.vocabularies.Communication.v1.ContactType",e["com.sap.vocabularies.Communication.v1.Address"]="com.sap.vocabularies.Communication.v1.AddressType",e["com.sap.vocabularies.Communication.v1.IsEmailAddress"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Communication.v1.IsPhoneNumber"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Communication.v1.Event"]="com.sap.vocabularies.Communication.v1.EventData",e["com.sap.vocabularies.Communication.v1.Task"]="com.sap.vocabularies.Communication.v1.TaskData",e["com.sap.vocabularies.Communication.v1.Message"]="com.sap.vocabularies.Communication.v1.MessageData",e["com.sap.vocabularies.Hierarchy.v1.RecursiveHierarchy"]="com.sap.vocabularies.Hierarchy.v1.RecursiveHierarchyType",e["com.sap.vocabularies.PersonalData.v1.EntitySemantics"]="com.sap.vocabularies.PersonalData.v1.EntitySemanticsType",e["com.sap.vocabularies.PersonalData.v1.FieldSemantics"]="com.sap.vocabularies.PersonalData.v1.FieldSemanticsType",e["com.sap.vocabularies.PersonalData.v1.IsPotentiallyPersonal"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.PersonalData.v1.IsPotentiallySensitive"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.Session.v1.StickySessionSupported"]="com.sap.vocabularies.Session.v1.StickySessionSupportedType",e["com.sap.vocabularies.UI.v1.HeaderInfo"]="com.sap.vocabularies.UI.v1.HeaderInfoType",e["com.sap.vocabularies.UI.v1.Identification"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",e["com.sap.vocabularies.UI.v1.Badge"]="com.sap.vocabularies.UI.v1.BadgeType",e["com.sap.vocabularies.UI.v1.LineItem"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",e["com.sap.vocabularies.UI.v1.StatusInfo"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",e["com.sap.vocabularies.UI.v1.FieldGroup"]="com.sap.vocabularies.UI.v1.FieldGroupType",e["com.sap.vocabularies.UI.v1.ConnectedFields"]="com.sap.vocabularies.UI.v1.ConnectedFieldsType",e["com.sap.vocabularies.UI.v1.GeoLocations"]="com.sap.vocabularies.UI.v1.GeoLocationType",e["com.sap.vocabularies.UI.v1.GeoLocation"]="com.sap.vocabularies.UI.v1.GeoLocationType",e["com.sap.vocabularies.UI.v1.Contacts"]="Edm.AnnotationPath",e["com.sap.vocabularies.UI.v1.MediaResource"]="com.sap.vocabularies.UI.v1.MediaResourceType",e["com.sap.vocabularies.UI.v1.DataPoint"]="com.sap.vocabularies.UI.v1.DataPointType",e["com.sap.vocabularies.UI.v1.KPI"]="com.sap.vocabularies.UI.v1.KPIType",e["com.sap.vocabularies.UI.v1.Chart"]="com.sap.vocabularies.UI.v1.ChartDefinitionType",e["com.sap.vocabularies.UI.v1.ValueCriticality"]="com.sap.vocabularies.UI.v1.ValueCriticalityType",e["com.sap.vocabularies.UI.v1.CriticalityLabels"]="com.sap.vocabularies.UI.v1.CriticalityLabelType",e["com.sap.vocabularies.UI.v1.SelectionFields"]="Edm.PropertyPath",e["com.sap.vocabularies.UI.v1.Facets"]="com.sap.vocabularies.UI.v1.Facet",e["com.sap.vocabularies.UI.v1.HeaderFacets"]="com.sap.vocabularies.UI.v1.Facet",e["com.sap.vocabularies.UI.v1.QuickViewFacets"]="com.sap.vocabularies.UI.v1.Facet",e["com.sap.vocabularies.UI.v1.QuickCreateFacets"]="com.sap.vocabularies.UI.v1.Facet",e["com.sap.vocabularies.UI.v1.FilterFacets"]="com.sap.vocabularies.UI.v1.ReferenceFacet",e["com.sap.vocabularies.UI.v1.SelectionPresentationVariant"]="com.sap.vocabularies.UI.v1.SelectionPresentationVariantType",e["com.sap.vocabularies.UI.v1.PresentationVariant"]="com.sap.vocabularies.UI.v1.PresentationVariantType",e["com.sap.vocabularies.UI.v1.SelectionVariant"]="com.sap.vocabularies.UI.v1.SelectionVariantType",e["com.sap.vocabularies.UI.v1.ThingPerspective"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.IsSummary"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.PartOfPreview"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.Map"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.Gallery"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.IsImageURL"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.IsImage"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.MultiLineText"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.TextArrangement"]="com.sap.vocabularies.UI.v1.TextArrangementType",e["com.sap.vocabularies.UI.v1.Importance"]="com.sap.vocabularies.UI.v1.ImportanceType",e["com.sap.vocabularies.UI.v1.Hidden"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.CreateHidden"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.UpdateHidden"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.DeleteHidden"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.HiddenFilter"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.DataFieldDefault"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",e["com.sap.vocabularies.UI.v1.Criticality"]="com.sap.vocabularies.UI.v1.CriticalityType",e["com.sap.vocabularies.UI.v1.CriticalityCalculation"]="com.sap.vocabularies.UI.v1.CriticalityCalculationType",e["com.sap.vocabularies.UI.v1.Emphasized"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.UI.v1.OrderBy"]="Edm.PropertyPath",e["com.sap.vocabularies.UI.v1.ParameterDefaultValue"]="Edm.PrimitiveType",e["com.sap.vocabularies.UI.v1.RecommendationState"]="com.sap.vocabularies.UI.v1.RecommendationStateType",e["com.sap.vocabularies.UI.v1.RecommendationList"]="com.sap.vocabularies.UI.v1.RecommendationListType",e["com.sap.vocabularies.UI.v1.ExcludeFromNavigationContext"]="Org.OData.Core.V1.Tag",e["com.sap.vocabularies.HTML5.v1.CssDefaults"]="com.sap.vocabularies.HTML5.v1.CssDefaultsType"}(r||(r={})),t.defaultReferences=[{alias:"Capabilities",namespace:"Org.OData.Capabilities.V1",uri:""},{alias:"Aggregation",namespace:"Org.OData.Aggregation.V1",uri:""},{alias:"Validation",namespace:"Org.OData.Validation.V1",uri:""},{namespace:"Org.OData.Core.V1",alias:"Core",uri:""},{namespace:"Org.OData.Measures.V1",alias:"Measures",uri:""},{namespace:"com.sap.vocabularies.Common.v1",alias:"Common",uri:""},{namespace:"com.sap.vocabularies.UI.v1",alias:"UI",uri:""},{namespace:"com.sap.vocabularies.Session.v1",alias:"Session",uri:""},{namespace:"com.sap.vocabularies.Analytics.v1",alias:"Analytics",uri:""},{namespace:"com.sap.vocabularies.CodeList.v1",alias:"CodeList",uri:""},{namespace:"com.sap.vocabularies.PersonalData.v1",alias:"PersonalData",uri:""},{namespace:"com.sap.vocabularies.Communication.v1",alias:"Communication",uri:""},{namespace:"com.sap.vocabularies.HTML5.v1",alias:"HTML5",uri:""}];var v=[],b={};function P(e,t){var a;if("string"==typeof t){var r=t.match(/(\w+)\.\w+\/.*/);a=r&&e.find((function(e){return e.alias===r[1]}))?{type:"EnumMember",EnumMember:t}:{type:"String",String:t}}else Array.isArray(t)?a={type:"Collection",Collection:t.map((function(t){return T(e,t)}))}:"boolean"==typeof t?a={type:"Bool",Bool:t}:"number"==typeof t?a=t.toString()===t.toFixed()?{type:"Int",Int:t}:{type:"Decimal",Decimal:t}:"object"==typeof t&&t.isDecimal&&t.isDecimal()?a={type:"Decimal",Decimal:t.valueOf()}:"Path"===t.type?a={type:"Path",Path:t.path}:"AnnotationPath"===t.type?a={type:"AnnotationPath",AnnotationPath:t.value}:"PropertyPath"===t.type?a={type:"PropertyPath",PropertyPath:t.value}:"NavigationPropertyPath"===t.type?a={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(a={type:"Record",Record:T(e,t)});return a}function T(e,t){if("string"==typeof t)return t;if("object"==typeof t){if(t.hasOwnProperty("$Type")){var a={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach((function(r){if("$Type"!==r&&"term"!==r&&"__source"!==r&&"qualifier"!==r&&"ActionTarget"!==r&&"fullyQualifiedName"!==r&&"annotations"!==r){var n=t[r];a.propertyValues.push({name:r,value:P(e,n)})}else if("annotations"===r){var i=t[r];a.annotations=[],Object.keys(i).filter((function(e){return"_annotations"!==e})).forEach((function(t){Object.keys(i[t]).forEach((function(r){var n,s=O(e,i[t][r]);if(!s.term){var c=o(e,t+"."+r);if(c){var l=c.split("#");s.term=l[0],l.length>1&&(s.qualifier=l[1])}}null===(n=a.annotations)||void 0===n||n.push(s)}))}))}})),a}if("PropertyPath"===t.type)return{type:"PropertyPath",PropertyPath:t.value};if("AnnotationPath"===t.type)return{type:"AnnotationPath",AnnotationPath:t.value};if("NavigationPropertyPath"===t.type)return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value}}}function O(e,t){var r={term:t.term,qualifier:t.qualifier};if(Array.isArray(t)){if(t.hasOwnProperty("annotations")){r.annotations=[];var n=t.annotations;Object.keys(n).filter((function(e){return"_annotations"!==e})).forEach((function(t){Object.keys(n[t]).forEach((function(a){var i,s=O(e,n[t][a]);if(!s.term){var c=o(e,t+"."+a);if(c){var l=c.split("#");s.term=l[0],l.length>1&&(s.qualifier=l[1])}}null===(i=r.annotations)||void 0===i||i.push(s)}))}))}return a(a({},r),{collection:t.map((function(t){return T(e,t)}))})}return t.hasOwnProperty("$Type")?a(a({},r),{record:T(e,t)}):a(a({},r),{value:P(e,t)})}t.convertTypes=function(e){v=[];var a=function(e){var t={};return e.schema.entityContainer&&e.schema.entityContainer.fullyQualifiedName&&(t[e.schema.entityContainer.fullyQualifiedName]=e.schema.entityContainer),e.schema.entitySets.forEach((function(e){t[e.fullyQualifiedName]=e})),e.schema.actions.forEach((function(e){t[e.fullyQualifiedName]=e,t[e.fullyQualifiedName.split("(")[0]]=e,e.parameters.forEach((function(e){t[e.fullyQualifiedName]=e}))})),e.schema.complexTypes.forEach((function(e){t[e.fullyQualifiedName]=e,e.properties.forEach((function(e){t[e.fullyQualifiedName]=e}))})),e.schema.entityTypes.forEach((function(e){t[e.fullyQualifiedName]=e,e.entityProperties.forEach((function(e){if(t[e.fullyQualifiedName]=e,-1===e.type.indexOf("Edm")){var a=t[e.type];a&&a.properties&&a.properties.forEach((function(a){var r=Object.assign(a,{_type:"Property",fullyQualifiedName:e.fullyQualifiedName+"/"+a.name});t[r.fullyQualifiedName]=r}))}})),e.navigationProperties.forEach((function(e){t[e.fullyQualifiedName]=e}))})),Object.keys(e.schema.annotations).forEach((function(a){e.schema.annotations[a].forEach((function(a){var r=o(e.references,a.target);a.annotations.forEach((function(a){var n=r+"@"+o(e.references,a.term);a.qualifier&&(n+="#"+a.qualifier),t[n]=a,a.fullyQualifiedName=n}))}))})),t}(e);g(e.schema.entityTypes,e.schema.associations,a),e.schema.entityContainer.annotations||(e.schema.entityContainer.annotations={}),function(e,t,a){t.forEach((function(t){if(t.annotations||(t.annotations={}),t.isBound){var r=a[t.sourceType];t.sourceEntityType=r,r&&(r.actions||(r.actions={}),r.actions[t.name]=t,r.actions[e+"."+t.name]=t),t.returnEntityType=a[t.returnType]}}))}(e.schema.namespace,e.schema.actions,a),function(e,t,a){e.forEach((function(e){e.entityType=t[e.entityTypeName],e.entityType||(e.entityType=t[o(a,e.entityTypeName)]),e.annotations||(e.annotations={}),e.entityType.annotations||(e.entityType.annotations={}),e.entityType.keys.forEach((function(e){e.isKey=!0}))}))}(e.schema.entitySets,a,e.references),function(e,t,a){e.forEach((function(e){e.type=t[e.typeName],e.type||(e.type=t[o(a,e.typeName)]),e.annotations||(e.annotations={}),e.type.annotations||(e.type.annotations={}),e.type.keys.forEach((function(e){e.isKey=!0}))}))}(e.schema.singletons,a,e.references),function(e,t){e.forEach((function(e){e.entityProperties.forEach((function(e){if(e.annotations||(e.annotations={}),-1===e.type.indexOf("Edm"))if(e.type.startsWith("Collection")){var a=e.type.substr(11,e.type.length-12);(r=t[a])&&(e.targetType=r)}else{var r;(r=t[e.type])&&(e.targetType=r)}}))}))}(e.schema.entityTypes,a),function(e,t,a){e.forEach((function(e){e.annotations={},e.properties.forEach((function(e){e.annotations||(e.annotations={})})),e.navigationProperties=e.navigationProperties.map((function(e){e.annotations||(e.annotations={});var r={_type:"NavigationProperty",name:e.name,fullyQualifiedName:e.fullyQualifiedName,partner:e.hasOwnProperty("partner")?e.partner:void 0,isCollection:!!e.hasOwnProperty("isCollection")&&e.isCollection,containsTarget:!!e.hasOwnProperty("containsTarget")&&e.containsTarget,referentialConstraint:e.referentialConstraint?e.referentialConstraint:[]};if(e.targetTypeName)r.targetType=a[e.targetTypeName];else if(e.relationship){var n=t.find((function(t){return t.fullyQualifiedName===e.relationship}));if(n){var i=n.associationEnd.find((function(t){return t.role===e.toRole}));i&&(r.targetType=a[i.type],r.isCollection="*"===i.multiplicity)}}r.targetType&&(r.targetTypeName=r.targetType.fullyQualifiedName);var o=r;return a[o.fullyQualifiedName]=o,o}))}))}(e.schema.complexTypes,e.schema.associations,a);var r=[],n=[];Object.keys(e.schema.annotations).forEach((function(i){e.schema.annotations[i].forEach((function(s){var c=o(e.references,s.target),l=a[c];l?"object"==typeof l&&(l.annotations||(l.annotations={}),s.annotations.forEach((function(s){var u=y(t.defaultReferences,s.term),p=u[0],f=u[1];l.annotations[p]||(l.annotations[p]={}),l.annotations._annotations||(l.annotations._annotations={});var d=f+(s.qualifier?"#"+s.qualifier:"");switch(l.annotations[p][d]=h(s,e,l,a,r,i,n),typeof l.annotations[p][d]){case"string":l.annotations[p][d]=new String(l.annotations[p][d]);break;case"boolean":l.annotations[p][d]=new Boolean(l.annotations[p][d])}null!==l.annotations[p][d]&&"object"==typeof l.annotations[p][d]&&(l.annotations[p][d].term=o(t.defaultReferences,p+"."+f),l.annotations[p][d].qualifier=s.qualifier,l.annotations[p][d].__source=i);var m=c+"@"+o(t.defaultReferences,p+"."+d);if(s.annotations&&Array.isArray(s.annotations)){var g={target:m,annotations:s.annotations,__source:i};n.push(g)}else s.annotations&&!l.annotations[p][d].annotations&&(l.annotations[p][d].annotations=s.annotations);l.annotations._annotations[p+"."+d]=l.annotations[p][d],a[m]=l.annotations[p][d]}))):c&&-1!==c.indexOf("@")&&(s.__source=i,n.push(s))}))}));var i=[];for(var s in n.forEach((function(n){var s=o(e.references,n.target),c=s.split("@"),l=c[0],u=c[1].split("/");l=l+"@"+u[0];var p=u.slice(1).reduce((function(e,t){return e?e[t]:null}),a[l]);p?"object"==typeof p&&(p.annotations||(p.annotations={}),n.annotations.forEach((function(c){var l=y(t.defaultReferences,c.term),u=l[0],f=l[1];p.annotations[u]||(p.annotations[u]={}),p.annotations._annotations||(p.annotations._annotations={});var d=f+(c.qualifier?"#"+c.qualifier:"");p.annotations[u][d]=h(c,e,p,a,r,n.__source,i),null!==p.annotations[u][d]&&"object"==typeof p.annotations[u][d]&&(p.annotations[u][d].term=o(t.defaultReferences,u+"."+f),p.annotations[u][d].qualifier=c.qualifier,p.annotations[u][d].__source=n.__source),p.annotations._annotations[u+"."+d]=p.annotations[u][d],a[s+"@"+o(t.defaultReferences,u+"."+d)]=p.annotations[u][d]}))):v.push({message:"The following annotation target was not found on the service "+s})})),r.forEach((function(e){var t=e.toResolve,r=t.$target,n=a[r],i=t.annotationsTerm,o=t.annotationType;if(delete t.annotationType,delete t.annotationsTerm,e.inline){var s=void 0;for(s in t)delete t[s];Object.assign(t,n)}else t.$target=n;if(!n)if(t.targetString=r,i&&o){c(r,{message:"Unable to resolve the path expression: "+r+"\n\nHint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application): \n\n<Annotation Term = "+i+">\n<Record Type = "+o+">\n<AnnotationPath = "+r+">"})}else{var l=t.term,u=t.path,p=r?r.split("/")[0]:r;c(r,{message:"Unable to resolve the path expression: "+r+"\n\nHint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application): \n\n<Annotation Term = "+p+">\n<PropertyValue Property = "+l+" Path= "+u+">"})}})),b)v.push(b[s][0]);e.entitySets=e.schema.entitySets;var u={version:e.version,annotations:e.schema.annotations,namespace:e.schema.namespace,entityContainer:e.schema.entityContainer,actions:e.schema.actions,entitySets:e.schema.entitySets,singletons:e.schema.singletons,entityTypes:e.schema.entityTypes,complexTypes:e.schema.complexTypes,references:t.defaultReferences,diagnostics:v.concat()};return u.resolvePath=function(e,t){return function(a){var r=a.split("/");if(""!==r.shift())throw new Error("Cannot deal with relative path");var n=r.shift(),i=e.entitySets.find((function(e){return e.name===n}));if(!i)return{target:e.entityContainer,objectPath:[e.entityContainer]};if(0===r.length)return{target:i,objectPath:[e.entityContainer,i]};var o=l(t,i,"/"+r.join("/"),!1,!0);return o.target&&o.visitedObjects.push(o.target),{target:o.target,objectPath:o.visitedObjects}}}(u,a),u},t.revertTermToGenericType=O},1014:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(5129);Object.defineProperty(t,"parseEDMX",{enumerable:!0,get:function(){return r.parseEDMX}});var n=a(8027);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return n.merge}})},8027:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;const r=a(1878);t.merge=function(e){const t=new r.MergedParserOutput(e[0]);return e.forEach((e=>{t.addParserOutput(e)})),t}},5129:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEDMX=void 0;const r=a(4139),n=a(1878),i=a(6162),o=a(6511),s=/Collection\(([^)]+)\)/;function c(e,t,a,r){return e.reduce(((e,n)=>{const i={_type:"Property",name:n._attributes.Name,fullyQualifiedName:`${a}/${n._attributes.Name}`,type:n._attributes.Type};if(n._attributes.MaxLength&&(i.maxLength=parseInt(n._attributes.MaxLength)),n._attributes.Precision&&(i.precision=parseInt(n._attributes.Precision)),n._attributes.Scale&&(i.scale=parseInt(n._attributes.Scale)),n._attributes.Nullable&&(i.nullable="false"!==n._attributes.Nullable),n._attributes.DefaultValue)switch(i.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":i.defaultValue=parseInt(n._attributes.DefaultValue);break;case"Edm.Decimal":i.defaultValue=parseFloat(n._attributes.DefaultValue);break;case"Edm.Boolean":i.defaultValue="true"===n._attributes.DefaultValue;break;default:i.defaultValue=n._attributes.DefaultValue}e.entityProperties.push(i),-1!==t.indexOf(i.name)&&e.entityKeys.push(i);const s=o.convertV2Annotations(n._attributes,"Property",n._attributes.Name);return s.length>0&&r.push(P(i.fullyQualifiedName,s)),e}),{entityProperties:[],entityKeys:[]})}function l(e,t,a,r){return e.reduce(((e,i)=>{const c=i._attributes;if(null!==(f=c).Type&&void 0!==f.Type){const r=c.Type.match(s),o=null!==r,f=r?r[1]:c.Type;e.push({_type:"NavigationProperty",name:c.Name,fullyQualifiedName:`${a}/${c.Name}`,partner:c.Partner,containsTarget:"true"===c.ContainsTarget,isCollection:o,targetTypeName:f,referentialConstraint:(l=n.ensureArray(i.ReferentialConstraint),u=t._attributes.Name,p=f,l.reduce(((e,t)=>(e.push({sourceTypeName:u,sourceProperty:t._attributes.Property,targetTypeName:p,targetProperty:t._attributes.ReferencedProperty}),e)),[]))})}else{const{Relationship:t,ToRole:n,FromRole:i}=c;e.push({_type:"NavigationProperty",name:c.Name,fullyQualifiedName:`${a}/${c.Name}`,relationship:t,toRole:n,fromRole:i});const s=o.convertV2Annotations(c,"Property",c.Name);s.length>0&&r.push(P(`${a}/${c.Name}`,s))}var l,u,p,f;return e}),[])}function u(e){switch(e){case"1":return i.Multiplicity.One;case"0..1":return i.Multiplicity.ZeroOrOne;case"*":return i.Multiplicity.Many}return i.Multiplicity.Unknown}function p(e,t,a){return e.map((e=>{const{Annotation:r,_attributes:i,...o}=e,s={};if(i){const r=Object.keys(i).find((e=>"Property"!==e));s.name=i.Property;let c=`${t}/${s.name}`;if(o&&Object.keys(o).length>0?s.value=v(o,c,a):r&&(s.value=y({[r]:i[r]},c,a)),e.Annotation){const t=b(n.ensureArray(e.Annotation),c,a);t&&t.length>0&&a.push(P(c,t))}}return s}))}function f(e,t,a){const r=b(n.ensureArray(e.Annotation),t,a);return r&&r.length>0&&a.push(P(t,r)),{type:e._attributes?C(e._attributes.Type):void 0,propertyValues:p(n.ensureArray(e.PropertyValue),t,a)}}function d(e,t){return null!=e[t]}function m(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}function h(e,t,a){if(d(e,"Record")){const r=n.ensureArray(e.Record).map(((e,r)=>f(e,t+"/"+r,a)));return r.type="Record",r}if(d(e,"PropertyPath")){const t=n.ensureArray(e.PropertyPath).map((e=>m(e,"PropertyPath")));return t.type="PropertyPath",t}if(d(e,"NavigationPropertyPath")){const t=n.ensureArray(e.NavigationPropertyPath).map((e=>m(e,"NavigationPropertyPath")));return t.type="NavigationPropertyPath",t}if(d(e,"String")){const t=n.ensureArray(e.String).map((e=>e._text));return t.type="String",t}if(d(e,"AnnotationPath")){const t=n.ensureArray(e.AnnotationPath).map((e=>m(e,"AnnotationPath")));return t.type="AnnotationPath",t}if(d(e,"Path")){const t=n.ensureArray(e.Path).map((e=>m(e,"Path")));return t.type="Path",t}if(d(e,"If")){const t=n.ensureArray(e.If).map((e=>e._text));return t.type="String",t}return 0===Object.keys(e).length||console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`),[]}function g(e,t){return null!=e[t]}function y(e,t,a){const r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);const n=r[0];switch(n){case"String":return{type:"String",String:e[n]};case"Bool":return{type:"Bool",Bool:"true"===e.Bool};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[n]};case"Collection":return{type:"Collection",Collection:h(e.Collection,t,a)};case"Record":return{type:"Record",Record:f(e.Record,t,a)};case"Apply":return{type:"Apply",Apply:e.Apply};default:return console.error("Unsupported inline expression type "+n),{type:"Unknown"}}}function v(e,t,a){const r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);const n=r[0];switch(n){case"String":return{type:"String",String:e[n]._text};case"Bool":return{type:"Bool",Bool:"true"===e.Bool._text};case"Int":return{type:"Int",Int:parseInt(e.Int._text)};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[n]._text};case"Collection":return{type:"Collection",Collection:h(e.Collection,t,a)};case"Record":return{type:"Record",Record:f(e.Record,t,a)};case"Apply":return{type:"Apply",Apply:e.Apply};default:return console.error("Unsupported expression type "+n),{type:"Unknown"}}}function b(e,t,a){return e.map((e=>function(e,t,a){const{Term:r,Qualifier:i,...o}=e._attributes;let s={term:C(r),qualifier:i},c=`${t}@${C(r)}`;if(""!==i&&void 0!==i&&(c+=`#${i}`),o&&Object.keys(o).length>0&&(s.value=y(o,c,a)),e.Annotation){const t=b(n.ensureArray(e.Annotation),c,a);t&&t.length>0&&a.push(P(c,t))}const l=Object.keys(e).filter((e=>"_attributes"!==e&&"Annotation"!==e));return g(e,"Record")?s.record=f(e.Record,c,a):g(e,"Collection")?s.collection=h(e.Collection,c,a):1===l.length?s.value=v({[l[0]]:e[l[0]]},c,a):l.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}(e,t,a)))}function P(e,t){return{target:e,annotations:t}}function T(e,t){const a=e._attributes.Namespace,r=[],i=function(e,t,a){return e.reduce(((e,r)=>{const i=r.Key?n.ensureArray(r.Key.PropertyRef).map((e=>e._attributes.Name)):[],o=`${a}.${r._attributes.Name}`,{entityProperties:s,entityKeys:u}=c(n.ensureArray(r.Property),i,o,t),p=l(n.ensureArray(r.NavigationProperty),r,o,t);return e.push({_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:o,keys:u,entityProperties:s,navigationProperties:p}),e}),[])}(n.ensureArray(e.EntityType),r,a),s=function(e,t,a){return e.reduce(((e,r)=>{const i=`${a}.${r._attributes.Name}`,{entityProperties:o,entityKeys:s}=c(n.ensureArray(r.Property),[],i,t),u=l(n.ensureArray(r.NavigationProperty),r,i,t);return e.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:i,properties:o,navigationProperties:u}),e}),[])}(n.ensureArray(e.ComplexType),r,a);let p=[],f=[],d=[],m={},h=[];e.EntityContainer&&(p=function(e,t,a,r){const i=e.map((e=>{const n={_type:"EntitySet",name:e._attributes.Name,entityTypeName:e._attributes.EntityType,navigationPropertyBinding:{},fullyQualifiedName:`${t}.${a}/${e._attributes.Name}`},i=o.convertV2Annotations(e._attributes,"EntitySet",e._attributes.Name);return i.length>0&&r.push(P(n.fullyQualifiedName,i)),n}));return e.forEach((e=>{const t=i.find((t=>t.name===e._attributes.Name));t&&n.ensureArray(e.NavigationPropertyBinding).forEach((e=>{const a=i.find((t=>t.name===e._attributes.Target));a&&(t.navigationPropertyBinding[e._attributes.Path]=a)}))})),i}(n.ensureArray(e.EntityContainer.EntitySet),a,e.EntityContainer._attributes.Name,r),f=function(e,t,a,r){const i=e.map((e=>{const n={_type:"Singleton",name:e._attributes.Name,typeName:e._attributes.Type,nullable:"false"!==e._attributes.Nullable,navigationPropertyBinding:{},fullyQualifiedName:`${t}.${a}/${e._attributes.Name}`},i=o.convertV2Annotations(e._attributes,"Singleton",e._attributes.Name);return i.length>0&&r.push(P(n.fullyQualifiedName,i)),n}));return e.forEach((e=>{const t=i.find((t=>t.name===e._attributes.Name));t&&n.ensureArray(e.NavigationPropertyBinding).forEach((e=>{const a=i.find((t=>t.name===e._attributes.Target));a&&(t.navigationPropertyBinding[e._attributes.Path]=a)}))})),i}(n.ensureArray(e.EntityContainer.Singleton),a,e.EntityContainer._attributes.Name,r),d=function(e,t){return e.map((e=>{const a=`${t}.${e._attributes.Name}`,r=n.ensureArray(e.End).map((e=>({entitySet:e._attributes.EntitySet,role:e._attributes.Role})));return{fullyQualifiedName:a,name:e._attributes.Name,association:e._attributes.Association,associationEnd:r}}))}(n.ensureArray(e.EntityContainer.AssociationSet),a),m={name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${a}.${e.EntityContainer._attributes.Name}`},h=h.concat(function(e,t,a){return e.map((e=>{const r=t.find((t=>t.name===e._attributes.EntitySet));let i=`${a}/${e._attributes.Name}()`;return{_type:"Action",name:e._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:i,parameters:n.ensureArray(e.Parameter).map((e=>({_type:"ActionParameter",fullyQualifiedName:`${i}/${e._attributes.Name}`,type:e._attributes.Type,isEntitySet:!1}))),returnType:e._attributes.ReturnType?e._attributes.ReturnType:""}}))}(n.ensureArray(e.EntityContainer.FunctionImport),p,m.fullyQualifiedName))),h=h.concat(function(e,t){return e.map((e=>{const a=`${n.ensureArray(e.Parameter).filter((t=>t._attributes.Name===e._attributes.EntitySetPath)).map((e=>e._attributes.Type))}`,r="true"===e._attributes.IsBound;let i=`${e._attributes.Name}()`;return r&&(i=`${t}.${e._attributes.Name}(${a})`),{_type:"Action",name:e._attributes.Name,isBound:r,sourceType:a,fullyQualifiedName:i,parameters:n.ensureArray(e.Parameter).map((t=>({_type:"ActionParameter",fullyQualifiedName:`${i}/${t._attributes.Name}`,type:t._attributes.Type,isEntitySet:t._attributes.Name===e._attributes.EntitySetPath}))),returnType:e.ReturnType?e.ReturnType._attributes.Type:""}}))}(n.ensureArray(e.Action),a));const g=function(e,t){return e.map((e=>{const a=`${t}.${e._attributes.Name}`,r=n.ensureArray(e.End).map((e=>({type:e._attributes.Type,role:e._attributes.Role,multiplicity:u(e._attributes.Multiplicity)})));return{fullyQualifiedName:a,name:e._attributes.Name,associationEnd:r,referentialConstraints:(i=n.ensureArray(e.ReferentialConstraint),o=r,i.reduce(((e,t)=>{const a=o.find((e=>e.role===t.Dependent._attributes.Role)),r=o.find((e=>e.role===t.Principal._attributes.Role));if(a&&r){const i=n.ensureArray(t.Dependent.PropertyRef),o=n.ensureArray(t.Principal.PropertyRef);i.forEach(((t,n)=>{e.push({sourceTypeName:a.type,sourceProperty:t._attributes.Name,targetTypeName:r.type,targetProperty:o[n]._attributes.Name})}))}return e}),[]))};var i,o}))}(n.ensureArray(e.Association),a);var y,v;d.length>0&&p.forEach((e=>{const t=i.find((t=>t.fullyQualifiedName===e.entityTypeName));null==t||t.navigationProperties.forEach((t=>{const a=t,r=d.find((e=>e.fullyQualifiedName===a.relationship));if(r){const a=r.associationEnd.map((e=>p.find((t=>t.name===e.entitySet)))).find((t=>(null==t?void 0:t.fullyQualifiedName)!==e.fullyQualifiedName));a&&(e.navigationPropertyBinding[t.name]=a)}}))})),g.length>0&&i.forEach((e=>{e.navigationProperties.forEach((e=>{const t=e,a=g.find((e=>e.fullyQualifiedName===t.relationship));a&&a.referentialConstraints&&(t.referentialConstraint=a.referentialConstraints)}))})),y=n.ensureArray(e.Annotations),v=r,y.filter((e=>void 0!==e._attributes)).forEach((e=>{v.push(P(e._attributes.Target,b(n.ensureArray(e.Annotation),e._attributes.Target,v)))}));var T={};return T[t]=r,{associations:g,annotations:T,entityContainer:m,namespace:a,entitySets:p,singletons:f,complexTypes:s,actions:h,entityTypes:i}}let O={};function C(e){if(!e)return e;const[t,a]=e.split("."),r=O[t];if(r)return`${r.namespace}.${a}`;if(-1!==e.indexOf("@")){const[t,a]=e.split("@");return`${t}@${C(a)}`}return e}t.parseEDMX=function(e,t="serviceFile"){const a=r.xml2js(e,{compact:!0}),i=n.ensureArray(a["edmx:Edmx"]["edmx:DataServices"].Schema),o=function(e,t){const a=e.reduce(((e,t)=>(n.ensureArray(t["edmx:Include"]).forEach((a=>{e.push({uri:t._attributes.Uri,alias:a._attributes.Alias,namespace:a._attributes.Namespace})})),e)),[]);return t.forEach((e=>{e&&e._attributes.Alias&&a.push({uri:"",alias:e._attributes.Alias,namespace:e._attributes.Namespace})})),a}(n.ensureArray(a["edmx:Edmx"]["edmx:Reference"]),i);O=o.reduce(((e,t)=>(e[t.alias]=t,e)),{});const s=i.map((e=>T(e,t)));return new n.ParserOutputInstance(t,a["edmx:Edmx"]._attributes.Version,function(e){if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e.concat(t.associations)),[]),a=e.reduce(((e,t)=>e.concat(t.entitySets)),[]),r=e.reduce(((e,t)=>e.concat(t.singletons)),[]),n=e.reduce(((e,t)=>e.concat(t.entityTypes)),[]),i=e.reduce(((e,t)=>e.concat(t.actions)),[]),o=e.reduce(((e,t)=>e.concat(t.complexTypes)),[]);let s,c,l={};return e.forEach((e=>{l=Object.assign(l,e.annotations)})),e.forEach((e=>{e.entityContainer&&Object.keys(e.entityContainer).length>0&&(s=e.entityContainer,c=e.namespace)})),{associations:t,annotations:l,entityContainer:s,namespace:c,entitySets:a,singletons:r,complexTypes:o,actions:i,entityTypes:n}}(s),o)}},1878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MergedParserOutput=t.ParserOutputInstance=t.ensureArray=void 0,t.ensureArray=function(e){return null==e?[]:Array.isArray(e)?e:[e]};t.ParserOutputInstance=class ParserOutputInstance{constructor(e,t,a,r){this.identification=e,this.references=r,this.version=t,this.schema=a}unalias(e){if(!e)return e;const[t,a]=e.split("."),r=this.references.find((e=>e.alias===t));if(r)return`${r.namespace}.${a}`;if(-1!==e.indexOf("@")){const[t,a]=e.split("@");return`${t}@${this.unalias(a)}`}return e}};t.MergedParserOutput=class MergedParserOutput{constructor(e){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._entitySets=[],this._singletons=[],this._actions=[],this._entityContainer={},this._entityTypes=[],this._complexTypes=[],this.identification="mergedParserInstance",this.version=e.version,this._namespace=e.schema.namespace}get references(){return this._references}get schema(){return{associations:this._associations,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,actions:this._actions,entityTypes:this._entityTypes}}addParserOutput(e){this._parserOutput.push(e),this._references=this._references.concat(e.references),this._associations=this._associations.concat(e.schema.associations),this._annotations=Object.assign(this._annotations,e.schema.annotations),this._entitySets=this._entitySets.concat(e.schema.entitySets),this._singletons=this._singletons.concat(e.schema.singletons),this._actions=this._actions.concat(e.schema.actions),this._entityTypes=this._entityTypes.concat(e.schema.entityTypes),this._complexTypes=this._complexTypes.concat(e.schema.complexTypes),this._entityContainer=Object.assign(this._entityContainer,e.schema.entityContainer)}unalias(e){if(!e)return e;const[t,a]=e.split("."),r=this.references.find((e=>e.alias===t));if(r)return`${r.namespace}.${a}`;if(-1!==e.indexOf("@")){const[t,a]=e.split("@");return`${t}@${this.unalias(a)}`}return e}}},6511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertV2Annotations=void 0,t.convertV2Annotations=function(e,t,a){const r=[];if(e["sap:schema-version"]&&r.push({term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),e["sap:creatable"]&&"EntitySet"===t&&r.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:"true"===e["sap:creatable"]}}]}}),e["sap:creatable"]&&"NavigationProperty"===t&&r.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:"true"===e["sap:creatable"]}}]}}}]}}}]}}),e["sap:creatable-path"]&&"NavigationProperty"===t&&r.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:updatable"]&&"EntitySet"===t&&r.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:"true"===e["sap:updatable"]}}]}}),e["sap:updatable-path"]&&"EntitySet"===t&&r.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&"EntitySet"===t&&r.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:"true"===e["sap:updatable"]}}]}}),e["sap:deletable-path"]&&"EntitySet"===t&&r.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}}),"true"===e["sap:creatable"]&&"false"===e["sap:updatable"]&&"Property"===t&&r.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),"false"===e["sap:creatable"]&&"false"===e["sap:updatable"]&&"Property"===t&&r.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&"Property"===t&&r.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:searchable"]&&r.push({term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searachable",value:{type:"Bool",Bool:"true"===e["sap:searchable"]}}]}}),e["sap:pageable"]&&(r.push({term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:"true"===e["sap:pageable"]}}),r.push({term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:"true"===e["sap:pageable"]}})),e["sap:topable"]&&r.push({term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:"true"===e["sap:topable"]}}),e["sap:requires-filter"]&&r.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:"true"===e["sap:requires-filter"]}}]}}),e["sap:required-in-filter"]&&r.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:a}]}}]}}),"false"===e["sap:filterable"]&&"Property"===t&&r.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:a}]}}]}}),"false"===e["sap:filterable"]&&"NavigationProperty"===t&&r.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:a}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}}),e["sap:filter-restricton"]&&r.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:a}}]}]}}]}}),"false"===e["sap:sortable"]&&r.push({term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:a}}]}}),"false"===e["sap:visible"]&&r.push({term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),e["sap:label"]&&r.push({term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),e["sap:heading"]&&r.push({term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),e["sap:quickinfo"]&&r.push({term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),e["sap:text"]&&r.push({term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),e["sap:unit"]&&(r.push({term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),r.push({term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}})),e["sap:precision"]&&r.push({term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"])}}),"fixed-value"===e["sap:value-list"]&&r.push({term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),"NonNegative"===e["sap:display-format"]&&r.push({term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),"UpperCase"===e["sap:display-format"]&&r.push({term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){const t=[];e["sap:lower-boundary"]&&t.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&t.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),r.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:t}})}return e["sap:field-control"]&&r.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),e["sap:applicable-path"]&&r.push({term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),e["sap:minoccurs"]&&r.push({term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"])}}),e["sap:maxoccurs"]&&r.push({term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"])}}),"mandatory"===e["sap:parameter"]&&r.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),"optional"===e["sap:parameter"]&&r.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),e["sap:attribute-for"]&&r.push({term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:a}]}}),r}},6162:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Multiplicity=void 0,function(e){e.One="1",e.ZeroOrOne="0..1",e.Many="*",e.Unknown="unknown"}(t.Multiplicity||(t.Multiplicity={}))},2281:(e,t,a)=>{e.exports={change:a(6527)}},6527:e=>{let t=0;const a="changeUtils: ";function r(e){return JSON.stringify({fileName:e.id||("id-"+(new Date).valueOf()+"-"+t++).replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||(new Date).valueOf(),originalLanguage:"",support:{generator:a+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}e.exports={parse:function(e){const t=JSON.parse(e);if(!(t.fileName&&t.changeType&&t.selector&&t.reference&&t.creation&&t.content&&t.layer&&t.support))throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:"CUSTOMER_BASE"===t.layer,creatingTool:t.support.generator.replace(a,""),content:t.content,sapui5Version:t.support.sapui5Version}},createChangeString:function(e,t){if(!e.type||!e.controlId||"boolean"!=typeof e.isCustomer||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=function(e){const t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return(a=t.componentName)&&a.indexOf(".Component")<0&&(a+=".Component"),a}var a;const r=e["sap.app"];if(!r||!r.id)throw Error("app ID could not be determined");return r.id}(t),e.appVersion=function(e){const t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}(t),e.projectId=function(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}(t,e.reference),r(e)},toString:function(e){if(!(e.type&&e.controlId&&"boolean"==typeof e.isCustomer&&e.creatingTool&&e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return r(e)}}},1199:(e,t,a)=>{"use strict";var r=a(5520),n=a(216),i=a(294),o=a(493),s=a(9003),c=a(8636),l=a(4653),u=a(5701),p=a(7559);e.exports=y,y.prototype.validate=function(e,t){var a;if("string"==typeof e){if(!(a=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var r=this._addSchema(e);a=r.validate||this._compile(r)}var n=a(t);!0!==a.$async&&(this.errors=a.errors);return n},y.prototype.compile=function(e,t){var a=this._addSchema(e,void 0,t);return a.validate||this._compile(a)},y.prototype.addSchema=function(e,t,a,r){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,a,r);return this}var o=this._getId(e);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return C(this,t=n.normalizeId(t||o)),this._schemas[t]=this._addSchema(e,a,r,!0),this},y.prototype.addMetaSchema=function(e,t,a){return this.addSchema(e,t,a,!0),this},y.prototype.validateSchema=function(e,t){var a=e.$schema;if(void 0!==a&&"string"!=typeof a)throw new Error("$schema must be a string");if(!(a=a||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(m)?m:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var r=this.validate(a,e);if(!r&&t){var n="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(n);this.logger.error(n)}return r},y.prototype.getSchema=function(e){var t=v(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var a=n.schema.call(e,{schema:{}},t);if(a){var i=a.schema,s=a.root,c=a.baseId,l=r.call(e,i,s,void 0,c);return e._fragments[t]=new o({ref:t,fragment:!0,schema:i,root:s,baseId:c,validate:l}),l}}(this,e)}},y.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=v(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var a=this._opts.serialize,r=a?a(e):e;this._cache.del(r);var i=this._getId(e);i&&(i=n.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},y.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},y.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var a=void 0===(t=t||{}).separator?", ":t.separator,r=void 0===t.dataVar?"data":t.dataVar,n="",i=0;i<e.length;i++){var o=e[i];o&&(n+=r+o.dataPath+" "+o.message+a)}return n.slice(0,-a.length)},y.prototype._addSchema=function(e,t,a,r){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,s=i?i(e):e,c=this._cache.get(s);if(c)return c;r=r||!1!==this._opts.addUsedSchema;var l=n.normalizeId(this._getId(e));l&&r&&C(this,l);var u,p=!1!==this._opts.validateSchema&&!t;p&&!(u=l&&l==n.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=n.ids.call(this,e),d=new o({id:l,schema:e,localRefs:f,cacheKey:s,meta:a});"#"!=l[0]&&r&&(this._refs[l]=d);this._cache.put(s,d),p&&u&&this.validateSchema(e,!0);return d},y.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var a,n;e.compiling=!0,e.meta&&(a=this._opts,this._opts=this._metaOpts);try{n=r.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=a)}return e.validate=n,e.refs=n.refs,e.refVal=n.refVal,e.root=n.root,n;function i(){var t=e.validate,a=t.apply(this,arguments);return i.errors=t.errors,a}},y.prototype.compileAsync=a(7850);var f=a(6019);y.prototype.addKeyword=f.add,y.prototype.getKeyword=f.get,y.prototype.removeKeyword=f.remove,y.prototype.validateKeyword=f.validate;var d=a(5587);y.ValidationError=d.Validation,y.MissingRefError=d.MissingRef,y.$dataMetaSchema=u;var m="http://json-schema.org/draft-07/schema",h=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],g=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=p.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:S,warn:S,error:S};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=c(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=l(),this._getId=function(e){switch(e.schemaId){case"auto":return O;case"id":return P;default:return T}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=p.copy(e._opts),a=0;a<h.length;a++)delete t[h[a]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var a=e._opts.formats[t];e.addFormat(t,a)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var a=e._opts.keywords[t];e.addKeyword(t,a)}}(this),function(e){var t;e._opts.$data&&(t=a(601),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=a(8938);e._opts.$data&&(r=u(r,g));e.addMetaSchema(r,m,!0),e._refs["http://json-schema.org/schema"]=m}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var a in t)e.addSchema(t[a],a)}(this)}function v(e,t){return t=n.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,a){for(var r in t){var n=t[r];n.meta||a&&!a.test(r)||(e._cache.del(n.cacheKey),delete t[r])}}function P(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function T(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function O(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function C(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function S(){}},294:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},7850:(e,t,a)=>{"use strict";var r=a(5587).MissingRef;e.exports=function e(t,a,n){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof a&&(n=a,a=void 0);var o=s(t).then((function(){var e=i._addSchema(t,void 0,a);return e.validate||c(e)}));n&&o.then((function(e){n(null,e)}),n);return o;function s(t){var a=t.$schema;return a&&!i.getSchema(a)?e.call(i,{$ref:a},!0):Promise.resolve()}function c(e){try{return i._compile(e)}catch(t){if(t instanceof r)return function(t){var r=t.missingSchema;if(l(r))throw new Error("Schema "+r+" is loaded but "+t.missingRef+" cannot be resolved");var n=i._loadingSchemas[r];n||(n=i._loadingSchemas[r]=i._opts.loadSchema(r)).then(o,o);return n.then((function(e){if(!l(r))return s(e).then((function(){l(r)||i.addSchema(e,r,void 0,a)}))})).then((function(){return c(e)}));function o(){delete i._loadingSchemas[r]}function l(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}}},5587:(e,t,a)=>{"use strict";var r=a(216);function n(e,t,a){this.message=a||n.message(e,t),this.missingRef=r.url(e,t),this.missingSchema=r.normalizeId(r.fullPath(this.missingRef))}function i(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:i((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:i(n)},n.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},8636:(e,t,a)=>{"use strict";var r=a(7559),n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,f=/^(?:\/(?:[^~/]|~0|~1)*)*$/,d=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function h(e){return e="full"==e?"full":"fast",r.copy(h[e])}function g(e){var t=e.match(n);if(!t)return!1;var a=+t[1],r=+t[2],o=+t[3];return r>=1&&r<=12&&o>=1&&o<=(2==r&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(a)?29:i[r])}function y(e,t){var a=e.match(o);if(!a)return!1;var r=a[1],n=a[2],i=a[3],s=a[5];return(r<=23&&n<=59&&i<=59||23==r&&59==n&&60==i)&&(!t||s)}e.exports=h,h.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:T,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":d,"relative-json-pointer":m},h.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&c.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":l,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:T,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":d,"relative-json-pointer":m};var v=/t|\s/i;var b=/\/|:/;var P=/[^\\]\\Z/;function T(e){if(P.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},5520:(e,t,a)=>{"use strict";var r=a(216),n=a(7559),i=a(5587),o=a(9003),s=a(2599),c=n.ucs2length,l=a(8926),u=i.Validation;function p(e,t,a){var r=d.call(this,e,t,a);return r>=0?{index:r,compiling:!0}:(r=this._compilations.length,this._compilations[r]={schema:e,root:t,baseId:a},{index:r,compiling:!1})}function f(e,t,a){var r=d.call(this,e,t,a);r>=0&&this._compilations.splice(r,1)}function d(e,t,a){for(var r=0;r<this._compilations.length;r++){var n=this._compilations[r];if(n.schema==e&&n.root==t&&n.baseId==a)return r}return-1}function m(e,t){return"var pattern"+e+" = new RegExp("+n.toQuotedString(t[e])+");"}function h(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function y(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var a="",r=0;r<e.length;r++)a+=t(r,e);return a}e.exports=function e(t,a,d,b){var P=this,T=this._opts,O=[void 0],C={},S=[],E={},_=[],I={},A=[];a=a||{schema:t,refVal:O,refs:C};var x=p.call(this,t,a,b),F=this._compilations[x.index];if(x.compiling)return F.callValidate=function e(){var t=F.validate,a=t.apply(this,arguments);return e.errors=t.errors,a};var N=this._formats,R=this.RULES;try{var w=j(t,a,d,b);F.validate=w;var D=F.callValidate;return D&&(D.schema=w.schema,D.errors=null,D.refs=w.refs,D.refVal=w.refVal,D.root=w.root,D.$async=w.$async,T.sourceCode&&(D.source=w.source)),w}finally{f.call(this,t,a,b)}function j(t,o,p,f){var d=!o||o&&o.schema==t;if(o.schema!=a.schema)return e.call(P,t,o,p,f);var b,E=!0===t.$async,I=s({isTop:!0,schema:t,isRoot:d,baseId:f,root:o,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:R,validate:s,util:n,resolve:r,resolveRef:V,usePattern:M,useDefault:$,useCustomRule:U,opts:T,formats:N,logger:P.logger,self:P});I=v(O,g)+v(S,m)+v(_,h)+v(A,y)+I,T.processCode&&(I=T.processCode(I,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",I)(P,R,N,a,O,_,A,l,c,u),O[0]=b}catch(e){throw P.logger.error("Error compiling schema, function code:",I),e}return b.schema=t,b.errors=null,b.refs=C,b.refVal=O,b.root=d?b:o,E&&(b.$async=!0),!0===T.sourceCode&&(b.source={code:I,patterns:S,defaults:_}),b}function V(t,n,i){n=r.url(t,n);var o,s,c=C[n];if(void 0!==c)return k(o=O[c],s="refVal["+c+"]");if(!i&&a.refs){var l=a.refs[n];if(void 0!==l)return k(o=a.refVal[l],s=L(n,o))}s=L(n);var u=r.call(P,j,a,n);if(void 0===u){var p=d&&d[n];p&&(u=r.inlineRef(p,T.inlineRefs)?p:e.call(P,p,a,d,t))}if(void 0!==u)return function(e,t){var a=C[e];O[a]=t}(n,u),k(u,s);!function(e){delete C[e]}(n)}function L(e,t){var a=O.length;return O[a]=t,C[e]=a,"refVal"+a}function k(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function M(e){var t=E[e];return void 0===t&&(t=E[e]=S.length,S[t]=e),"pattern"+t}function $(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return n.toQuotedString(e);case"object":if(null===e)return"null";var t=o(e),a=I[t];return void 0===a&&(a=I[t]=_.length,_[a]=e),"default"+a}}function U(e,t,a,r){if(!1!==P._opts.validateSchema){var n=e.definition.dependencies;if(n&&!n.every((function(e){return Object.prototype.hasOwnProperty.call(a,e)})))throw new Error("parent schema must have all required keywords: "+n.join(","));var i=e.definition.validateSchema;if(i)if(!i(t)){var o="keyword schema is invalid: "+P.errorsText(i.errors);if("log"!=P._opts.validateSchema)throw new Error(o);P.logger.error(o)}}var s,c=e.definition.compile,l=e.definition.inline,u=e.definition.macro;if(c)s=c.call(P,t,a,r);else if(u)s=u.call(P,t,a,r),!1!==T.validateSchema&&P.validateSchema(s,!0);else if(l)s=l.call(P,r,e.keyword,t,a);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var p=A.length;return A[p]=s,{code:"customRule"+p,validate:s}}}},216:(e,t,a)=>{"use strict";var r=a(5858),n=a(8926),i=a(7559),o=a(493),s=a(8125);function c(e,t,a){var r=this._refs[a];if("string"==typeof r){if(!this._refs[r])return c.call(this,e,t,r);r=this._refs[r]}if((r=r||this._schemas[a])instanceof o)return m(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r);var n,i,s,u=l.call(this,t,a);return u&&(n=u.schema,t=u.root,s=u.baseId),n instanceof o?i=n.validate||e.call(this,n.schema,t,void 0,s):void 0!==n&&(i=m(n,this._opts.inlineRefs)?n:e.call(this,n,t,void 0,s)),i}function l(e,t){var a=r.parse(t),n=v(a),i=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==i){var s=P(n),c=this._refs[s];if("string"==typeof c)return u.call(this,e,c,a);if(c instanceof o)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof o))return;if(c.validate||this._compile(c),s==P(t))return{schema:c,root:e,baseId:i};e=c}if(!e.schema)return;i=y(this._getId(e.schema))}return f.call(this,a,i,e.schema,e)}function u(e,t,a){var r=l.call(this,e,t);if(r){var n=r.schema,i=r.baseId;e=r.root;var o=this._getId(n);return o&&(i=T(i,o)),f.call(this,a,i,n,e)}}e.exports=c,c.normalizeId=P,c.fullPath=y,c.url=T,c.ids=function(e){var t=P(this._getId(e)),a={"":t},o={"":y(t,!1)},c={},l=this;return s(e,{allKeys:!0},(function(e,t,s,u,p,f,d){if(""!==t){var m=l._getId(e),h=a[u],g=o[u]+"/"+p;if(void 0!==d&&(g+="/"+("number"==typeof d?d:i.escapeFragment(d))),"string"==typeof m){m=h=P(h?r.resolve(h,m):m);var y=l._refs[m];if("string"==typeof y&&(y=l._refs[y]),y&&y.schema){if(!n(e,y.schema))throw new Error('id "'+m+'" resolves to more than one schema')}else if(m!=P(g))if("#"==m[0]){if(c[m]&&!n(e,c[m]))throw new Error('id "'+m+'" resolves to more than one schema');c[m]=e}else l._refs[m]=g}a[t]=h,o[t]=g}})),c},c.inlineRef=m,c.schema=l;var p=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function f(e,t,a,r){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var n=e.fragment.split("/"),o=1;o<n.length;o++){var s=n[o];if(s){if(void 0===(a=a[s=i.unescapeFragment(s)]))break;var c;if(!p[s]&&((c=this._getId(a))&&(t=T(t,c)),a.$ref)){var u=T(t,a.$ref),f=l.call(this,r,u);f&&(a=f.schema,r=f.root,t=f.baseId)}}}return void 0!==a&&a!==r.schema?{schema:a,root:r,baseId:t}:void 0}}var d=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function m(e,t){return!1!==t&&(void 0===t||!0===t?h(e):t?g(e)<=t:void 0)}function h(e){var t;if(Array.isArray(e)){for(var a=0;a<e.length;a++)if("object"==typeof(t=e[a])&&!h(t))return!1}else for(var r in e){if("$ref"==r)return!1;if("object"==typeof(t=e[r])&&!h(t))return!1}return!0}function g(e){var t,a=0;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&(a+=g(t)),a==1/0)return 1/0}else for(var n in e){if("$ref"==n)return 1/0;if(d[n])a++;else if("object"==typeof(t=e[n])&&(a+=g(t)+1),a==1/0)return 1/0}return a}function y(e,t){return!1!==t&&(e=P(e)),v(r.parse(e))}function v(e){return r.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function P(e){return e?e.replace(b,""):""}function T(e,t){return t=P(t),r.resolve(e,t)}},4653:(e,t,a)=>{"use strict";var r=a(4478),n=a(7559).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=n(t),e.types=n(["number","integer","string","array","object","boolean","null"]),e.forEach((function(a){a.rules=a.rules.map((function(a){var n;if("object"==typeof a){var i=Object.keys(a)[0];n=a[i],a=i,n.forEach((function(a){t.push(a),e.all[a]=!0}))}return t.push(a),e.all[a]={keyword:a,code:r[a],implements:n}})),e.all.$comment={keyword:"$comment",code:r.$comment},a.type&&(e.types[a.type]=a)})),e.keywords=n(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},493:(e,t,a)=>{"use strict";var r=a(7559);e.exports=function(e){r.copy(e,this)}},7463:e=>{"use strict";e.exports=function(e){for(var t,a=0,r=e.length,n=0;n<r;)a++,(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<r&&56320==(64512&(t=e.charCodeAt(n)))&&n++;return a}},7559:(e,t,a)=>{"use strict";function r(e,t,a,r){var n=r?" !== ":" === ",i=r?" || ":" && ",o=r?"!":"",s=r?"":"!";switch(e){case"null":return t+n+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+i+"typeof "+t+n+'"object"'+i+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+n+'"number"'+i+s+"("+t+" % 1)"+i+t+n+t+(a?i+o+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+n+'"'+e+'"'+(a?i+o+"isFinite("+t+")":"")+")";default:return"typeof "+t+n+'"'+e+'"'}}e.exports={copy:function(e,t){for(var a in t=t||{},e)t[a]=e[a];return t},checkDataType:r,checkDataTypes:function(e,t,a){switch(e.length){case 1:return r(e[0],t,a,!0);default:var n="",o=i(e);for(var s in o.array&&o.object&&(n=o.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)n+=(n?" && ":"")+r(s,t,a,!0);return n}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var a=[],r=0;r<t.length;r++){var i=t[r];(n[i]||"array"===e&&"array"===i)&&(a[a.length]=i)}if(a.length)return a}else{if(n[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:i,getProperty:c,escapeQuotes:l,equal:a(8926),ucs2length:a(7463),varOccurences:function(e,t){t+="[^0-9]";var a=e.match(new RegExp(t,"g"));return a?a.length:0},varReplace:function(e,t,a){return t+="([^0-9])",a=a.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),a+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var a in e)if(t[a])return!0},schemaHasRulesExcept:function(e,t,a){if("boolean"==typeof e)return!e&&"not"!=a;for(var r in e)if(r!=a&&t[r])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var a in e)if(!t[a])return a},toQuotedString:u,getPathExpr:function(e,t,a,r){return d(e,a?"'/' + "+t+(r?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):r?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,a){var r=u(a?"/"+m(t):c(t));return d(e,r)},getData:function(e,t,a){var r,n,i,o;if(""===e)return"rootData";if("/"==e[0]){if(!p.test(e))throw new Error("Invalid JSON-pointer: "+e);n=e,i="rootData"}else{if(!(o=e.match(f)))throw new Error("Invalid JSON-pointer: "+e);if(r=+o[1],"#"==(n=o[2])){if(r>=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return a[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(i="data"+(t-r||""),!n)return i}for(var s=i,l=n.split("/"),u=0;u<l.length;u++){var d=l[u];d&&(i+=c(h(d)),s+=" && "+i)}return s},unescapeFragment:function(e){return h(decodeURIComponent(e))},unescapeJsonPointer:h,escapeFragment:function(e){return encodeURIComponent(m(e))},escapeJsonPointer:m};var n=i(["string","number","integer","boolean","null"]);function i(e){for(var t={},a=0;a<e.length;a++)t[e[a]]=!0;return t}var o=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":o.test(e)?"."+e:"['"+l(e)+"']"}function l(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function u(e){return"'"+l(e)+"'"}var p=/^\/(?:[^~]|~0|~1)*$/,f=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function d(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function m(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function h(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},5701:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,a){for(var r=0;r<a.length;r++){e=JSON.parse(JSON.stringify(e));var n,i=a[r].split("/"),o=e;for(n=1;n<i.length;n++)o=o[i[n]];for(n=0;n<t.length;n++){var s=t[n],c=o[s];c&&(o[s]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},4614:(e,t,a)=>{"use strict";var r=a(8938);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:r.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:r.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},5946:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s;var d="maximum"==t,m=d?"exclusiveMaximum":"exclusiveMinimum",h=e.schema[m],g=e.opts.$data&&h&&h.$data,y=d?"<":">",v=d?">":"<",b=void 0;if(!f&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==h&&"number"!=typeof h&&"boolean"!=typeof h)throw new Error(m+" must be number or boolean");if(g){var P=e.util.getData(h.$data,o,e.dataPathArr),T="exclusive"+i,O="exclType"+i,C="exclIsNumber"+i,S="' + "+(I="op"+i)+" + '";n+=" var schemaExcl"+i+" = "+P+"; ",n+=" var "+T+"; var "+O+" = typeof "+(P="schemaExcl"+i)+"; if ("+O+" != 'boolean' && "+O+" != 'undefined' && "+O+" != 'number') { ";var E;b=m;(E=E||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(n+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),n+=" "+O+" == 'number' ? ( ("+T+" = "+r+" === undefined || "+P+" "+y+"= "+r+") ? "+p+" "+v+"= "+P+" : "+p+" "+v+" "+r+" ) : ( ("+T+" = "+P+" === true) ? "+p+" "+v+"= "+r+" : "+p+" "+v+" "+r+" ) || "+p+" !== "+p+") { var op"+i+" = "+T+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=m,l=e.errSchemaPath+"/"+m,r=P,f=g)}else{S=y;if((C="number"==typeof h)&&f){var I="'"+S+"'";n+=" if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),n+=" ( "+r+" === undefined || "+h+" "+y+"= "+r+" ? "+p+" "+v+"= "+h+" : "+p+" "+v+" "+r+" ) || "+p+" !== "+p+") { "}else{C&&void 0===s?(T=!0,b=m,l=e.errSchemaPath+"/"+m,r=h,v+="="):(C&&(r=Math[d?"min":"max"](h,s)),h===(!C||r)?(T=!0,b=m,l=e.errSchemaPath+"/"+m,v+="="):(T=!1,S+="="));I="'"+S+"'";n+=" if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),n+=" "+p+" "+v+" "+r+" || "+p+" !== "+p+") { "}}b=b||t,(E=E||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+I+", limit: "+r+", exclusive: "+T+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be "+S+" ",n+=f?"' + "+r:r+"'"),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";_=n;return n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n}},953:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;if(f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");n+="if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),n+=" "+p+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var d=t,m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have ",n+="maxItems"==t?"more":"fewer",n+=" than ",n+=f?"' + "+r+" + '":""+s,n+=" items' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var h=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+h+"]); ":n+=" validate.errors = ["+h+"]; return false; ":n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},849:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;if(f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");var d="maxLength"==t?">":"<";n+="if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?n+=" "+p+".length ":n+=" ucs2length("+p+") ",n+=" "+d+" "+r+") { ";var m=t,h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be ",n+="maxLength"==t?"longer":"shorter",n+=" than ",n+=f?"' + "+r+" + '":""+s,n+=" characters' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=h.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},6107:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;if(f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");n+="if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),n+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+r+") { ";var d=t,m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have ",n+="maxProperties"==t?"more":"fewer",n+=" than ",n+=f?"' + "+r+" + '":""+s,n+=" properties' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var h=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+h+"]); ":n+=" validate.errors = ["+h+"]; return false; ":n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},2809:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.schema[t],i=e.schemaPath+e.util.getProperty(t),o=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),l="";c.level++;var u="valid"+c.level,p=c.baseId,f=!0,d=n;if(d)for(var m,h=-1,g=d.length-1;h<g;)m=d[h+=1],(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all))&&(f=!1,c.schema=m,c.schemaPath=i+"["+h+"]",c.errSchemaPath=o+"/"+h,r+=" "+e.validate(c)+" ",c.baseId=p,s&&(r+=" if ("+u+") { ",l+="}"));return s&&(r+=f?" if (true) { ":" "+l.slice(0,-1)+" "),r}},3407:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f="errs__"+n,d=e.util.copy(e),m="";d.level++;var h="valid"+d.level;if(o.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}))){var g=d.baseId;r+=" var "+f+" = errors; var "+p+" = false; ";var y=e.compositeRule;e.compositeRule=d.compositeRule=!0;var v=o;if(v)for(var b,P=-1,T=v.length-1;P<T;)b=v[P+=1],d.schema=b,d.schemaPath=s+"["+P+"]",d.errSchemaPath=c+"/"+P,r+=" "+e.validate(d)+" ",d.baseId=g,r+=" "+p+" = "+p+" || "+h+"; if (!"+p+") { ",m+="}";e.compositeRule=d.compositeRule=y,r+=" "+m+" if (!"+p+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else l&&(r+=" if (true) { ");return r}},8667:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.schema[t],i=e.errSchemaPath+"/"+t,o=(e.opts.allErrors,e.util.toQuotedString(n));return!0===e.opts.$comment?r+=" console.log("+o+");":"function"==typeof e.opts.$comment&&(r+=" self._opts.$comment("+o+", "+e.util.toQuotedString(i)+", validate.root.schema);"),r}},737:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f=e.opts.$data&&o&&o.$data;f&&(r+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; "),f||(r+=" var schema"+n+" = validate.schema"+s+";"),r+="var "+p+" = equal("+u+", schema"+n+"); if (!"+p+") { ";var d=d||[];d.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+n+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to constant' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var m=r;return r=d.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+m+"]); ":r+=" validate.errors = ["+m+"]; return false; ":r+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",l&&(r+=" else { "),r}},5894:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f="errs__"+n,d=e.util.copy(e);d.level++;var m="valid"+d.level,h="i"+n,g=d.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all);if(r+="var "+f+" = errors;var "+p+";",b){var P=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=o,d.schemaPath=s,d.errSchemaPath=c,r+=" var "+m+" = false; for (var "+h+" = 0; "+h+" < "+u+".length; "+h+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers,!0);var T=u+"["+h+"]";d.dataPathArr[g]=h;var O=e.validate(d);d.baseId=v,e.util.varOccurences(O,y)<2?r+=" "+e.util.varReplace(O,y,T)+" ":r+=" var "+y+" = "+T+"; "+O+" ",r+=" if ("+m+") break; } ",e.compositeRule=d.compositeRule=P,r+=" if (!"+m+") {"}else r+=" if ("+u+".length == 0) {";var C=C||[];C.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should contain a valid item' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var S=r;return r=C.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",b&&(r+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(r+=" } "),r}},1120:e=>{"use strict";e.exports=function(e,t,a){var r,n,i=" ",o=e.level,s=e.dataLevel,c=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,f="data"+(s||""),d="valid"+o,m="errs__"+o,h=e.opts.$data&&c&&c.$data;h?(i+=" var schema"+o+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=c;var g,y,v,b,P,T=this,O="definition"+o,C=T.definition,S="";if(h&&C.$data){P="keywordValidate"+o;var E=C.validateSchema;i+=" var "+O+" = RULES.custom['"+t+"'].definition; var "+P+" = "+O+".validate;"}else{if(!(b=e.useCustomRule(T,c,e.schema,e)))return;n="validate.schema"+l,P=b.code,g=C.compile,y=C.inline,v=C.macro}var _=P+".errors",I="i"+o,A="ruleErr"+o,x=C.async;if(x&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(i+=_+" = null;"),i+="var "+m+" = errors;var "+d+";",h&&C.$data&&(S+="}",i+=" if ("+n+" === undefined) { "+d+" = true; } else { ",E&&(S+="}",i+=" "+d+" = "+O+".validateSchema("+n+"); if ("+d+") { ")),y)C.statements?i+=" "+b.validate+" ":i+=" "+d+" = "+b.validate+"; ";else if(v){var F=e.util.copy(e);S="";F.level++;var N="valid"+F.level;F.schema=b.validate,F.schemaPath="";var R=e.compositeRule;e.compositeRule=F.compositeRule=!0;var w=e.validate(F).replace(/validate\.schema/g,P);e.compositeRule=F.compositeRule=R,i+=" "+w}else{(L=L||[]).push(i),i="",i+=" "+P+".call( ",e.opts.passContext?i+="this":i+="self",g||!1===C.schema?i+=" , "+f+" ":i+=" , "+n+" , "+f+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var D=s?"data"+(s-1||""):"parentData",j=s?e.dataPathArr[s]:"parentDataProperty",V=i+=" , "+D+" , "+j+" , rootData ) ";i=L.pop(),!1===C.errors?(i+=" "+d+" = ",x&&(i+="await "),i+=V+"; "):i+=x?" var "+(_="customErrors"+o)+" = null; try { "+d+" = await "+V+"; } catch (e) { "+d+" = false; if (e instanceof ValidationError) "+_+" = e.errors; else throw e; } ":" "+_+" = null; "+d+" = "+V+"; "}if(C.modifying&&(i+=" if ("+D+") "+f+" = "+D+"["+j+"];"),i+=""+S,C.valid)p&&(i+=" if (true) { ");else{var L;i+=" if ( ",void 0===C.valid?(i+=" !",i+=v?""+N:""+d):i+=" "+!C.valid+" ",i+=") { ",r=T.keyword,(L=L||[]).push(i),i="",(L=L||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+T.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+T.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var k=i;i=L.pop(),!e.compositeRule&&p?e.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var M=i;i=L.pop(),y?C.errors?"full"!=C.errors&&(i+=" for (var "+I+"="+m+"; "+I+"<errors; "+I+"++) { var "+A+" = vErrors["+I+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+A+".schemaPath === undefined) { "+A+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+A+".schema = "+n+"; "+A+".data = "+f+"; "),i+=" } "):!1===C.errors?i+=" "+M+" ":(i+=" if ("+m+" == errors) { "+M+" } else { for (var "+I+"="+m+"; "+I+"<errors; "+I+"++) { var "+A+" = vErrors["+I+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+A+".schemaPath === undefined) { "+A+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+A+".schema = "+n+"; "+A+".data = "+f+"; "),i+=" } } "):v?(i+=" var err = ",!1!==e.createErrors?(i+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+T.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+T.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===C.errors?i+=" "+M+" ":(i+=" if (Array.isArray("+_+")) { if (vErrors === null) vErrors = "+_+"; else vErrors = vErrors.concat("+_+"); errors = vErrors.length; for (var "+I+"="+m+"; "+I+"<errors; "+I+"++) { var "+A+" = vErrors["+I+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+e.errorPath+"; "+A+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(i+=" "+A+".schema = "+n+"; "+A+".data = "+f+"; "),i+=" } } else { "+M+" } "),i+=" } ",p&&(i+=" else { ")}return i}},3995:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="errs__"+n,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,h={},g={},y=e.opts.ownProperties;for(T in o)if("__proto__"!=T){var v=o[T],b=Array.isArray(v)?g:h;b[T]=v}r+="var "+p+" = errors;";var P=e.errorPath;for(var T in r+="var missing"+n+";",g)if((b=g[T]).length){if(r+=" if ( "+u+e.util.getProperty(T)+" !== undefined ",y&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(T)+"') "),l){r+=" && ( ";var O=b;if(O)for(var C=-1,S=O.length-1;C<S;){F=O[C+=1],C&&(r+=" || "),r+=" ( ( "+(D=u+(w=e.util.getProperty(F)))+" === undefined ",y&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(F)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?F:w)+") ) "}r+=")) { ";var E="missing"+n,_="' + "+E+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,E,!0):P+" + "+E);var I=I||[];I.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(T)+"', missingProperty: '"+_+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have ",1==b.length?r+="property "+e.util.escapeQuotes(b[0]):r+="properties "+e.util.escapeQuotes(b.join(", ")),r+=" when property "+e.util.escapeQuotes(T)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var A=r;r=I.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+A+"]); ":r+=" validate.errors = ["+A+"]; return false; ":r+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var x=b;if(x)for(var F,N=-1,R=x.length-1;N<R;){F=x[N+=1];var w=e.util.getProperty(F),D=(_=e.util.escapeQuotes(F),u+w);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,F,e.opts.jsonPointers)),r+=" if ( "+D+" === undefined ",y&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(F)+"') "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(T)+"', missingProperty: '"+_+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have ",1==b.length?r+="property "+e.util.escapeQuotes(b[0]):r+="properties "+e.util.escapeQuotes(b.join(", ")),r+=" when property "+e.util.escapeQuotes(T)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",l&&(d+="}",r+=" else { ")}e.errorPath=P;var j=f.baseId;for(var T in h){v=h[T];(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(r+=" "+m+" = true; if ( "+u+e.util.getProperty(T)+" !== undefined ",y&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(T)+"') "),r+=") { ",f.schema=v,f.schemaPath=s+e.util.getProperty(T),f.errSchemaPath=c+"/"+e.util.escapeFragment(T),r+=" "+e.validate(f)+" ",f.baseId=j,r+=" } ",l&&(r+=" if ("+m+") { ",d+="}"))}return l&&(r+=" "+d+" if ("+p+" == errors) {"),r}},6783:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f=e.opts.$data&&o&&o.$data;f&&(r+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ");var d="i"+n,m="schema"+n;f||(r+=" var "+m+" = validate.schema"+s+";"),r+="var "+p+";",f&&(r+=" if (schema"+n+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+n+")) "+p+" = false; else {"),r+=p+" = false;for (var "+d+"=0; "+d+"<"+m+".length; "+d+"++) if (equal("+u+", "+m+"["+d+"])) { "+p+" = true; break; }",f&&(r+=" } "),r+=" if (!"+p+") { ";var h=h||[];h.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+n+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",l&&(r+=" else { "),r}},184:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||"");if(!1===e.opts.format)return l&&(r+=" if (true) { "),r;var p,f=e.opts.$data&&o&&o.$data;f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ",p="schema"+n):p=o;var d=e.opts.unknownFormats,m=Array.isArray(d);if(f){r+=" var "+(h="format"+n)+" = formats["+p+"]; var "+(g="isObject"+n)+" = typeof "+h+" == 'object' && !("+h+" instanceof RegExp) && "+h+".validate; var "+(y="formatType"+n)+" = "+g+" && "+h+".type || 'string'; if ("+g+") { ",e.async&&(r+=" var async"+n+" = "+h+".async; "),r+=" "+h+" = "+h+".validate; } if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),r+=" (","ignore"!=d&&(r+=" ("+p+" && !"+h+" ",m&&(r+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),r+=") || "),r+=" ("+h+" && "+y+" == '"+a+"' && !(typeof "+h+" == 'function' ? ",e.async?r+=" (async"+n+" ? await "+h+"("+u+") : "+h+"("+u+")) ":r+=" "+h+"("+u+") ",r+=" : "+h+".test("+u+"))))) {"}else{var h;if(!(h=e.formats[o])){if("ignore"==d)return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(r+=" if (true) { "),r;if(m&&d.indexOf(o)>=0)return l&&(r+=" if (true) { "),r;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof h&&!(h instanceof RegExp)&&h.validate)&&h.type||"string";if(g){var v=!0===h.async;h=h.validate}if(y!=a)return l&&(r+=" if (true) { "),r;if(v){if(!e.async)throw new Error("async format in sync schema");r+=" if (!(await "+(b="formats"+e.util.getProperty(o)+".validate")+"("+u+"))) { "}else{r+=" if (! ";var b="formats"+e.util.getProperty(o);g&&(b+=".validate"),r+="function"==typeof h?" "+b+"("+u+") ":" "+b+".test("+u+") ",r+=") { "}}var P=P||[];P.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",r+=f?""+p:""+e.util.toQuotedString(o),r+=" } ",!1!==e.opts.messages&&(r+=" , message: 'should match format \"",r+=f?"' + "+p+" + '":""+e.util.escapeQuotes(o),r+="\"' "),e.opts.verbose&&(r+=" , schema: ",r+=f?"validate.schema"+s:""+e.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var T=r;return r=P.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",l&&(r+=" else { "),r}},555:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f="errs__"+n,d=e.util.copy(e);d.level++;var m="valid"+d.level,h=e.schema.then,g=e.schema.else,y=void 0!==h&&(e.opts.strictKeywords?"object"==typeof h&&Object.keys(h).length>0||!1===h:e.util.schemaHasRules(h,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=d.baseId;if(y||v){var P;d.createErrors=!1,d.schema=o,d.schemaPath=s,d.errSchemaPath=c,r+=" var "+f+" = errors; var "+p+" = true; ";var T=e.compositeRule;e.compositeRule=d.compositeRule=!0,r+=" "+e.validate(d)+" ",d.baseId=b,d.createErrors=!0,r+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=T,y?(r+=" if ("+m+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",r+=" "+e.validate(d)+" ",d.baseId=b,r+=" "+p+" = "+m+"; ",y&&v?r+=" var "+(P="ifClause"+n)+" = 'then'; ":P="'then'",r+=" } ",v&&(r+=" else { ")):r+=" if (!"+m+") { ",v&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",r+=" "+e.validate(d)+" ",d.baseId=b,r+=" "+p+" = "+m+"; ",y&&v?r+=" var "+(P="ifClause"+n)+" = 'else'; ":P="'else'",r+=" } "),r+=" if (!"+p+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+P+" } ",!1!==e.opts.messages&&(r+=" , message: 'should match \"' + "+P+" + '\" schema' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",l&&(r+=" else { ")}else l&&(r+=" if (true) { ");return r}},4478:(e,t,a)=>{"use strict";e.exports={$ref:a(1954),allOf:a(2809),anyOf:a(3407),$comment:a(8667),const:a(737),contains:a(5894),dependencies:a(3995),enum:a(6783),format:a(184),if:a(555),items:a(1244),maximum:a(5946),minimum:a(5946),maxItems:a(953),minItems:a(953),maxLength:a(849),minLength:a(849),maxProperties:a(6107),minProperties:a(6107),multipleOf:a(9159),not:a(3537),oneOf:a(9426),pattern:a(2955),properties:a(5224),propertyNames:a(3194),required:a(395),uniqueItems:a(1628),validate:a(2599)}},1244:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f="errs__"+n,d=e.util.copy(e),m="";d.level++;var h="valid"+d.level,g="i"+n,y=d.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(r+="var "+f+" = errors;var "+p+";",Array.isArray(o)){var P=e.schema.additionalItems;if(!1===P){r+=" "+p+" = "+u+".length <= "+o.length+"; ";var T=c;c=e.errSchemaPath+"/additionalItems",r+=" if (!"+p+") { ";var O=O||[];O.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+o.length+" } ",!1!==e.opts.messages&&(r+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;r=O.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",c=T,l&&(m+="}",r+=" else { ")}var S=o;if(S)for(var E,_=-1,I=S.length-1;_<I;)if(E=S[_+=1],e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all)){r+=" "+h+" = true; if ("+u+".length > "+_+") { ";var A=u+"["+_+"]";d.schema=E,d.schemaPath=s+"["+_+"]",d.errSchemaPath=c+"/"+_,d.errorPath=e.util.getPathExpr(e.errorPath,_,e.opts.jsonPointers,!0),d.dataPathArr[y]=_;var x=e.validate(d);d.baseId=b,e.util.varOccurences(x,v)<2?r+=" "+e.util.varReplace(x,v,A)+" ":r+=" var "+v+" = "+A+"; "+x+" ",r+=" } ",l&&(r+=" if ("+h+") { ",m+="}")}if("object"==typeof P&&(e.opts.strictKeywords?"object"==typeof P&&Object.keys(P).length>0||!1===P:e.util.schemaHasRules(P,e.RULES.all))){d.schema=P,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",r+=" "+h+" = true; if ("+u+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+u+".length; "+g+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);A=u+"["+g+"]";d.dataPathArr[y]=g;x=e.validate(d);d.baseId=b,e.util.varOccurences(x,v)<2?r+=" "+e.util.varReplace(x,v,A)+" ":r+=" var "+v+" = "+A+"; "+x+" ",l&&(r+=" if (!"+h+") break; "),r+=" } } ",l&&(r+=" if ("+h+") { ",m+="}")}}else if(e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){d.schema=o,d.schemaPath=s,d.errSchemaPath=c,r+=" for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);A=u+"["+g+"]";d.dataPathArr[y]=g;x=e.validate(d);d.baseId=b,e.util.varOccurences(x,v)<2?r+=" "+e.util.varReplace(x,v,A)+" ":r+=" var "+v+" = "+A+"; "+x+" ",l&&(r+=" if (!"+h+") break; "),r+=" }"}return l&&(r+=" "+m+" if ("+f+" == errors) {"),r}},9159:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;if(f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");n+="var division"+i+";if (",f&&(n+=" "+r+" !== undefined && ( typeof "+r+" != 'number' || "),n+=" (division"+i+" = "+p+" / "+r+", ",e.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":n+=" division"+i+" !== parseInt(division"+i+") ",n+=" ) ",f&&(n+=" ) "),n+=" ) { ";var d=d||[];d.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+r+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be multiple of ",n+=f?"' + "+r:r+"'"),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var m=n;return n=d.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},3537:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="errs__"+n,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=s,f.errSchemaPath=c,r+=" var "+p+" = errors; ";var m,h=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1,f.opts.allErrors&&(m=f.opts.allErrors,f.opts.allErrors=!1),r+=" "+e.validate(f)+" ",f.createErrors=!0,m&&(f.opts.allErrors=m),e.compositeRule=f.compositeRule=h,r+=" if ("+d+") { ";var g=g||[];g.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var y=r;r=g.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else r+=" var err = ",!1!==e.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(r+=" if (false) { ");return r}},9426:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f="errs__"+n,d=e.util.copy(e),m="";d.level++;var h="valid"+d.level,g=d.baseId,y="prevValid"+n,v="passingSchemas"+n;r+="var "+f+" = errors , "+y+" = false , "+p+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=d.compositeRule=!0;var P=o;if(P)for(var T,O=-1,C=P.length-1;O<C;)T=P[O+=1],(e.opts.strictKeywords?"object"==typeof T&&Object.keys(T).length>0||!1===T:e.util.schemaHasRules(T,e.RULES.all))?(d.schema=T,d.schemaPath=s+"["+O+"]",d.errSchemaPath=c+"/"+O,r+=" "+e.validate(d)+" ",d.baseId=g):r+=" var "+h+" = true; ",O&&(r+=" if ("+h+" && "+y+") { "+p+" = false; "+v+" = ["+v+", "+O+"]; } else { ",m+="}"),r+=" if ("+h+") { "+p+" = "+y+" = true; "+v+" = "+O+"; }";return e.compositeRule=d.compositeRule=b,r+=m+"if (!"+p+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(r+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(r+=" } "),r}},2955:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&s&&s.$data;f?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,n+="if ( ",f&&(n+=" ("+r+" !== undefined && typeof "+r+" != 'string') || "),n+=" !"+(f?"(new RegExp("+r+"))":e.usePattern(s))+".test("+p+") ) { ";var d=d||[];d.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",n+=f?""+r:""+e.util.toQuotedString(s),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match pattern \"",n+=f?"' + "+r+" + '":""+e.util.escapeQuotes(s),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+c:""+e.util.toQuotedString(s),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var m=n;return n=d.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},5224:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="errs__"+n,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,h="key"+n,g="idx"+n,y=f.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+n,P=Object.keys(o||{}).filter(w),T=e.schema.patternProperties||{},O=Object.keys(T).filter(w),C=e.schema.additionalProperties,S=P.length||O.length,E=!1===C,_="object"==typeof C&&Object.keys(C).length,I=e.opts.removeAdditional,A=E||_||I,x=e.opts.ownProperties,F=e.baseId,N=e.schema.required;if(N&&(!e.opts.$data||!N.$data)&&N.length<e.opts.loopRequired)var R=e.util.toHash(N);function w(e){return"__proto__"!==e}if(r+="var "+p+" = errors;var "+m+" = true;",x&&(r+=" var "+b+" = undefined;"),A){if(r+=x?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+h+" = "+b+"["+g+"]; ":" for (var "+h+" in "+u+") { ",S){if(r+=" var isAdditional"+n+" = !(false ",P.length)if(P.length>8)r+=" || validate.schema"+s+".hasOwnProperty("+h+") ";else{var D=P;if(D)for(var j=-1,V=D.length-1;j<V;)z=D[j+=1],r+=" || "+h+" == "+e.util.toQuotedString(z)+" "}if(O.length){var L=O;if(L)for(var k=-1,M=L.length-1;k<M;)ie=L[k+=1],r+=" || "+e.usePattern(ie)+".test("+h+") "}r+=" ); if (isAdditional"+n+") { "}if("all"==I)r+=" delete "+u+"["+h+"]; ";else{var $=e.errorPath,U="' + "+h+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers)),E)if(I)r+=" delete "+u+"["+h+"]; ";else{r+=" "+m+" = false; ";var B=c;c=e.errSchemaPath+"/additionalProperties",(ae=ae||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+U+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var K=r;r=ae.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+K+"]); ":r+=" validate.errors = ["+K+"]; return false; ":r+=" var err = "+K+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=B,l&&(r+=" break; ")}else if(_)if("failing"==I){r+=" var "+p+" = errors; ";var Q=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=C,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var H=u+"["+h+"]";f.dataPathArr[y]=h;var J=e.validate(f);f.baseId=F,e.util.varOccurences(J,v)<2?r+=" "+e.util.varReplace(J,v,H)+" ":r+=" var "+v+" = "+H+"; "+J+" ",r+=" if (!"+m+") { errors = "+p+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+h+"]; } ",e.compositeRule=f.compositeRule=Q}else{f.schema=C,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);H=u+"["+h+"]";f.dataPathArr[y]=h;J=e.validate(f);f.baseId=F,e.util.varOccurences(J,v)<2?r+=" "+e.util.varReplace(J,v,H)+" ":r+=" var "+v+" = "+H+"; "+J+" ",l&&(r+=" if (!"+m+") break; ")}e.errorPath=$}S&&(r+=" } "),r+=" } ",l&&(r+=" if ("+m+") { ",d+="}")}var q=e.opts.useDefaults&&!e.compositeRule;if(P.length){var G=P;if(G)for(var z,W=-1,X=G.length-1;W<X;){var Y=o[z=G[W+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){var Z=e.util.getProperty(z),ee=(H=u+Z,q&&void 0!==Y.default);f.schema=Y,f.schemaPath=s+Z,f.errSchemaPath=c+"/"+e.util.escapeFragment(z),f.errorPath=e.util.getPath(e.errorPath,z,e.opts.jsonPointers),f.dataPathArr[y]=e.util.toQuotedString(z);J=e.validate(f);if(f.baseId=F,e.util.varOccurences(J,v)<2){J=e.util.varReplace(J,v,H);var te=H}else{te=v;r+=" var "+v+" = "+H+"; "}if(ee)r+=" "+J+" ";else{if(R&&R[z]){r+=" if ( "+te+" === undefined ",x&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(z)+"') "),r+=") { "+m+" = false; ";$=e.errorPath,B=c;var ae,re=e.util.escapeQuotes(z);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath($,z,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(ae=ae||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+re+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+re+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";K=r;r=ae.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+K+"]); ":r+=" validate.errors = ["+K+"]; return false; ":r+=" var err = "+K+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=B,e.errorPath=$,r+=" } else { "}else l?(r+=" if ( "+te+" === undefined ",x&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(z)+"') "),r+=") { "+m+" = true; } else { "):(r+=" if ("+te+" !== undefined ",x&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(z)+"') "),r+=" ) { ");r+=" "+J+" } "}}l&&(r+=" if ("+m+") { ",d+="}")}}if(O.length){var ne=O;if(ne)for(var ie,oe=-1,se=ne.length-1;oe<se;){Y=T[ie=ne[oe+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){f.schema=Y,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),r+=x?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+h+" = "+b+"["+g+"]; ":" for (var "+h+" in "+u+") { ",r+=" if ("+e.usePattern(ie)+".test("+h+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);H=u+"["+h+"]";f.dataPathArr[y]=h;J=e.validate(f);f.baseId=F,e.util.varOccurences(J,v)<2?r+=" "+e.util.varReplace(J,v,H)+" ":r+=" var "+v+" = "+H+"; "+J+" ",l&&(r+=" if (!"+m+") break; "),r+=" } ",l&&(r+=" else "+m+" = true; "),r+=" } ",l&&(r+=" if ("+m+") { ",d+="}")}}}return l&&(r+=" "+d+" if ("+p+" == errors) {"),r}},3194:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="errs__"+n,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(r+="var "+p+" = errors;",e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=s,f.errSchemaPath=c;var m="key"+n,h="idx"+n,g="i"+n,y="' + "+m+" + '",v="data"+(f.dataLevel=e.dataLevel+1),b="dataProperties"+n,P=e.opts.ownProperties,T=e.baseId;P&&(r+=" var "+b+" = undefined; "),r+=P?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+h+"=0; "+h+"<"+b+".length; "+h+"++) { var "+m+" = "+b+"["+h+"]; ":" for (var "+m+" in "+u+") { ",r+=" var startErrs"+n+" = errors; ";var O=m,C=e.compositeRule;e.compositeRule=f.compositeRule=!0;var S=e.validate(f);f.baseId=T,e.util.varOccurences(S,v)<2?r+=" "+e.util.varReplace(S,v,O)+" ":r+=" var "+v+" = "+O+"; "+S+" ",e.compositeRule=f.compositeRule=C,r+=" if (!"+d+") { for (var "+g+"=startErrs"+n+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+m+"; } var err = ",!1!==e.createErrors?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+y+"' } ",!1!==e.opts.messages&&(r+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),l&&(r+=" break; "),r+=" } }"}return l&&(r+=" if ("+p+" == errors) {"),r}},1954:e=>{"use strict";e.exports=function(e,t,a){var r,n,i=" ",o=e.level,s=e.dataLevel,c=e.schema[t],l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(s||""),f="valid"+o;if("#"==c||"#/"==c)e.isRoot?(r=e.async,n="validate"):(r=!0===e.root.schema.$async,n="root.refVal[0]");else{var d=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===d){var m=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(m),(v=v||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var h=i;i=v.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+h+"]); ":i+=" validate.errors = ["+h+"]; return false; ":i+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,m);e.logger.warn(m),u&&(i+=" if (true) { ")}}else if(d.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=d.schema,g.schemaPath="",g.errSchemaPath=c,i+=" "+e.validate(g).replace(/validate\.schema/g,d.code)+" ",u&&(i+=" if ("+y+") { ")}else r=!0===d.$async||e.async&&!1!==d.$async,n=d.code}if(n){var v;(v=v||[]).push(i),i="",e.opts.passContext?i+=" "+n+".call(this, ":i+=" "+n+"( ",i+=" "+p+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var b=i+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(i=v.pop(),r){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(i+=" var "+f+"; "),i+=" try { await "+b+"; ",u&&(i+=" "+f+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(i+=" "+f+" = false; "),i+=" } ",u&&(i+=" if ("+f+") { ")}else i+=" if (!"+b+") { if (vErrors === null) vErrors = "+n+".errors; else vErrors = vErrors.concat("+n+".errors); errors = vErrors.length; } ",u&&(i+=" else { ")}return i}},395:e=>{"use strict";e.exports=function(e,t,a){var r=" ",n=e.level,i=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),p="valid"+n,f=e.opts.$data&&o&&o.$data;f&&(r+=" var schema"+n+" = "+e.util.getData(o.$data,i,e.dataPathArr)+"; ");var d="schema"+n;if(!f)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[],h=o;if(h)for(var g,y=-1,v=h.length-1;y<v;){g=h[y+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(m[m.length]=g)}}else m=o;if(f||m.length){var P=e.errorPath,T=f||m.length>=e.opts.loopRequired,O=e.opts.ownProperties;if(l)if(r+=" var missing"+n+"; ",T){f||(r+=" var "+d+" = validate.schema"+s+"; ");var C="' + "+(x="schema"+n+"["+(_="i"+n)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,x,e.opts.jsonPointers)),r+=" var "+p+" = true; ",f&&(r+=" if (schema"+n+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+n+")) "+p+" = false; else {"),r+=" for (var "+_+" = 0; "+_+" < "+d+".length; "+_+"++) { "+p+" = "+u+"["+d+"["+_+"]] !== undefined ",O&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", "+d+"["+_+"]) "),r+="; if (!"+p+") break; } ",f&&(r+=" } "),r+=" if (!"+p+") { ",(A=A||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var S=r;r=A.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var E=m;if(E)for(var _=-1,I=E.length-1;_<I;){N=E[_+=1],_&&(r+=" || "),r+=" ( ( "+(j=u+(D=e.util.getProperty(N)))+" === undefined ",O&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?N:D)+") ) "}r+=") { ";var A;C="' + "+(x="missing"+n)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,x,!0):P+" + "+x),(A=A||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";S=r;r=A.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(T){f||(r+=" var "+d+" = validate.schema"+s+"; ");var x;C="' + "+(x="schema"+n+"["+(_="i"+n)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,x,e.opts.jsonPointers)),f&&(r+=" if ("+d+" && !Array.isArray("+d+")) { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+d+" !== undefined) { "),r+=" for (var "+_+" = 0; "+_+" < "+d+".length; "+_+"++) { if ("+u+"["+d+"["+_+"]] === undefined ",O&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+d+"["+_+"]) "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(r+=" } ")}else{var F=m;if(F)for(var N,R=-1,w=F.length-1;R<w;){N=F[R+=1];var D=e.util.getProperty(N),j=(C=e.util.escapeQuotes(N),u+D);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,N,e.opts.jsonPointers)),r+=" if ( "+j+" === undefined ",O&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=P}else l&&(r+=" if (true) {");return r}},1628:e=>{"use strict";e.exports=function(e,t,a){var r,n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f="valid"+i,d=e.opts.$data&&s&&s.$data;if(d?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",r="schema"+i):r=s,(s||d)&&!1!==e.opts.uniqueItems){d&&(n+=" var "+f+"; if ("+r+" === false || "+r+" === undefined) "+f+" = true; else if (typeof "+r+" != 'boolean') "+f+" = false; else { "),n+=" var i = "+p+".length , "+f+" = true , j; if (i > 1) { ";var m=e.schema.items&&e.schema.items.type,h=Array.isArray(m);if(!m||"object"==m||"array"==m||h&&(m.indexOf("object")>=0||m.indexOf("array")>=0))n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+f+" = false; break outer; } } } ";else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var g="checkDataType"+(h?"s":"");n+=" if ("+e.util[g](m,"item",e.opts.strictNumbers,!0)+") continue; ",h&&(n+=" if (typeof item == 'string') item = '\"' + item; "),n+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ",d&&(n+=" } "),n+=" if (!"+f+") { ";var y=y||[];y.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var v=n;n=y.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n}},2599:e=>{"use strict";e.exports=function(e,t,a){var r="",n=!0===e.schema.$async,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(r+=" var validate = ",n&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" /*# sourceURL="+o+" */ ")),"boolean"==typeof e.schema||!i&&!e.schema.$ref){t="false schema";var l=e.level,u=e.dataLevel,p=e.schema[t],f=e.schemaPath+e.util.getProperty(t),d=e.errSchemaPath+"/"+t,m=!e.opts.allErrors,h="data"+(u||""),g="valid"+l;if(!1===e.schema){e.isTop?m=!0:r+=" var "+g+" = false; ",(W=W||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";var y=r;r=W.pop(),!e.compositeRule&&m?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?r+=n?" return data; ":" validate.errors = null; return true; ":r+=" var "+g+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var v=e.isTop;l=e.level=0,u=e.dataLevel=0,h="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{l=e.level,h="data"+((u=e.dataLevel)||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+l+" = errors;"}g="valid"+l,m=!e.opts.allErrors;var P="",T="",O=e.schema.type,C=Array.isArray(O);if(O&&e.opts.nullable&&!0===e.schema.nullable&&(C?-1==O.indexOf("null")&&(O=O.concat("null")):"null"!=O&&(O=[O,"null"],C=!0)),C&&1==O.length&&(O=O[0],C=!1),e.schema.$ref&&i){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(i=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),O){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,O);var E=e.RULES.types[O];if(S||C||!0===E||E&&!X(E)){f=e.schemaPath+".type",d=e.errSchemaPath+"/type",f=e.schemaPath+".type",d=e.errSchemaPath+"/type";var _=C?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[_](O,h,e.opts.strictNumbers,!0)+") { ",S){var I="dataType"+l,A="coerced"+l;r+=" var "+I+" = typeof "+h+"; var "+A+" = undefined; ","array"==e.opts.coerceTypes&&(r+=" if ("+I+" == 'object' && Array.isArray("+h+") && "+h+".length == 1) { "+h+" = "+h+"[0]; "+I+" = typeof "+h+"; if ("+e.util.checkDataType(e.schema.type,h,e.opts.strictNumbers)+") "+A+" = "+h+"; } "),r+=" if ("+A+" !== undefined) ; ";var x=S;if(x)for(var F,N=-1,R=x.length-1;N<R;)"string"==(F=x[N+=1])?r+=" else if ("+I+" == 'number' || "+I+" == 'boolean') "+A+" = '' + "+h+"; else if ("+h+" === null) "+A+" = ''; ":"number"==F||"integer"==F?(r+=" else if ("+I+" == 'boolean' || "+h+" === null || ("+I+" == 'string' && "+h+" && "+h+" == +"+h+" ","integer"==F&&(r+=" && !("+h+" % 1)"),r+=")) "+A+" = +"+h+"; "):"boolean"==F?r+=" else if ("+h+" === 'false' || "+h+" === 0 || "+h+" === null) "+A+" = false; else if ("+h+" === 'true' || "+h+" === 1) "+A+" = true; ":"null"==F?r+=" else if ("+h+" === '' || "+h+" === 0 || "+h+" === false) "+A+" = null; ":"array"==e.opts.coerceTypes&&"array"==F&&(r+=" else if ("+I+" == 'string' || "+I+" == 'number' || "+I+" == 'boolean' || "+h+" == null) "+A+" = ["+h+"]; ");r+=" else { ",(W=W||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=C?""+O.join(","):""+O,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=C?""+O.join(","):""+O,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";y=r;r=W.pop(),!e.compositeRule&&m?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+A+" !== undefined) { ";var w=u?"data"+(u-1||""):"parentData";r+=" "+h+" = "+A+"; ",u||(r+="if ("+w+" !== undefined)"),r+=" "+w+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+A+"; } "}else{(W=W||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=C?""+O.join(","):""+O,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=C?""+O.join(","):""+O,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";y=r;r=W.pop(),!e.compositeRule&&m?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!i)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",m&&(r+=" } if (errors === ",r+=v?"0":"errs_"+l,r+=") { ",T+="}");else{var D=e.RULES;if(D)for(var j=-1,V=D.length-1;j<V;)if(X(E=D[j+=1])){if(E.type&&(r+=" if ("+e.util.checkDataType(E.type,h,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==E.type&&e.schema.properties){p=e.schema.properties;var L=Object.keys(p);if(L)for(var k,M=-1,$=L.length-1;M<$;){if(void 0!==(K=p[k=L[M+=1]]).default){var U=h+e.util.getProperty(k);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+U;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else r+=" if ("+U+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+U+" === null || "+U+" === '' "),r+=" ) "+U+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(K.default)+" ":r+=" "+JSON.stringify(K.default)+" ",r+="; "}}}else if("array"==E.type&&Array.isArray(e.schema.items)){var B=e.schema.items;if(B){N=-1;for(var K,Q=B.length-1;N<Q;)if(void 0!==(K=B[N+=1]).default){U=h+"["+N+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+U;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else r+=" if ("+U+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+U+" === null || "+U+" === '' "),r+=" ) "+U+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(K.default)+" ":r+=" "+JSON.stringify(K.default)+" ",r+="; "}}}var H=E.rules;if(H)for(var J,q=-1,G=H.length-1;q<G;)if(Y(J=H[q+=1])){var z=J.code(e,J.keyword,E.type);z&&(r+=" "+z+" ",m&&(P+="}"))}if(m&&(r+=" "+P+" ",P=""),E.type&&(r+=" } ",O&&O===E.type&&!S)){r+=" else { ";var W;f=e.schemaPath+".type",d=e.errSchemaPath+"/type";(W=W||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=C?""+O.join(","):""+O,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=C?""+O.join(","):""+O,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";y=r;r=W.pop(),!e.compositeRule&&m?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}m&&(r+=" if (errors === ",r+=v?"0":"errs_"+l,r+=") { ",T+="}")}}function X(e){for(var t=e.rules,a=0;a<t.length;a++)if(Y(t[a]))return!0}function Y(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var a=t.implements,r=0;r<a.length;r++)if(void 0!==e.schema[a[r]])return!0}(t)}return m&&(r+=" "+T+" "),v?(n?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+g+" = errors === errs_"+l+";",r}},6019:(e,t,a)=>{"use strict";var r=/^[a-z_$][a-z0-9_$-]*$/i,n=a(1120),i=a(4614);e.exports={add:function(e,t){var a=this.RULES;if(a.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!r.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var i=t.type;if(Array.isArray(i))for(var o=0;o<i.length;o++)c(e,i[o],t);else c(e,i,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function c(e,t,r){for(var i,o=0;o<a.length;o++){var s=a[o];if(s.type==t){i=s;break}}i||(i={type:t,rules:[]},a.push(i));var c={keyword:e,definition:r,custom:!0,code:n,implements:r.implements};i.rules.push(c),a.custom[e]=c}return a.keywords[e]=a.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var a=0;a<t.length;a++)for(var r=t[a].rules,n=0;n<r.length;n++)if(r[n].keyword==e){r.splice(n,1);break}return this},validate:function e(t,a){e.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(r(t))return!0;if(e.errors=r.errors,a)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}}},4225:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===a}(e)}(e)};var a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((a=e,Array.isArray(a)?[]:{}),e,t):e;var a}function n(e,t,a){return e.concat(t).map((function(e){return r(e,a)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function s(e,t,a){var n={};return a.isMergeableObject(e)&&i(e).forEach((function(t){n[t]=r(e[t],a)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&a.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return c;var a=t.customMerge(e);return"function"==typeof a?a:c}(i,a)(e[i],t[i],a):n[i]=r(t[i],a))})),n}function c(e,a,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var o=Array.isArray(a);return o===Array.isArray(e)?o?i.arrayMerge(e,a,i):s(e,a,i):r(a,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,a){return c(e,a,t)}),{})};var l=c;e.exports=l},5179:(e,t,a)=>{"use strict";var r=a(5747),n=a(5622),i=a(2781),o=!1,s=a(7740).i8,c="locals",l=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],u=l.concat("cache"),p=/^\uFEFF/;function f(e,a){var n;if(a.some((function(a){return n=t.resolveInclude(e,a,!0),r.existsSync(n)})))return n}function d(e,a){var r,n=e.filename,i=arguments.length>1;if(e.cache){if(!n)throw new Error("cache option requires a filename");if(r=t.cache.get(n))return r;i||(a=h(n).toString().replace(p,""))}else if(!i){if(!n)throw new Error("Internal EJS error: no file name or template provided");a=h(n).toString().replace(p,"")}return r=t.compile(a,e),e.cache&&t.cache.set(n,r),r}function m(e,a,r){var n;if(!r){if("function"==typeof t.promiseImpl)return new t.promiseImpl((function(t,r){try{t(n=d(e)(a))}catch(e){r(e)}}));throw new Error("Please provide a callback function")}try{n=d(e)(a)}catch(e){return r(e)}r(null,n)}function h(e){return t.fileLoader(e)}function g(e,a){var n=i.shallowCopy({},a);if(n.filename=function(e,a){var n,i,o=a.views,s=/^[A-Za-z]+:\\|^\//.exec(e);if(s&&s.length)e=e.replace(/^\/*/,""),n=Array.isArray(a.root)?f(e,a.root):t.resolveInclude(e,a.root||"/",!0);else if(a.filename&&(i=t.resolveInclude(e,a.filename),r.existsSync(i)&&(n=i)),!n&&Array.isArray(o)&&(n=f(e,o)),!n&&"function"!=typeof a.includer)throw new Error('Could not find the include file "'+a.escapeFunction(e)+'"');return n}(e,n),"function"==typeof a.includer){var o=a.includer(e,n.filename);if(o&&(o.filename&&(n.filename=o.filename),o.template))return d(n,o.template)}return d(n)}function y(e,t,a,r,n){var i=t.split("\n"),o=Math.max(r-3,0),s=Math.min(i.length,r+3),c=n(a),l=i.slice(o,s).map((function(e,t){var a=t+o+1;return(a==r?" >> ":" ")+a+"| "+e})).join("\n");throw e.path=c,e.message=(c||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e}function v(e){return e.replace(/;(\s*$)/,"$1")}function b(e,a){a=a||{};var r={};this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",r.client=a.client||!1,r.escapeFunction=a.escape||a.escapeFunction||i.escapeXML,r.compileDebug=!1!==a.compileDebug,r.debug=!!a.debug,r.filename=a.filename,r.openDelimiter=a.openDelimiter||t.openDelimiter||"<",r.closeDelimiter=a.closeDelimiter||t.closeDelimiter||">",r.delimiter=a.delimiter||t.delimiter||"%",r.strict=a.strict||!1,r.context=a.context,r.cache=a.cache||!1,r.rmWhitespace=a.rmWhitespace,r.root=a.root,r.includer=a.includer,r.outputFunctionName=a.outputFunctionName,r.localsName=a.localsName||t.localsName||c,r.views=a.views,r.async=a.async,r.destructuredLocals=a.destructuredLocals,r.legacyInclude=void 0===a.legacyInclude||!!a.legacyInclude,r.strict?r._with=!1:r._with=void 0===a._with||a._with,this.opts=r,this.regex=this.createRegex()}t.cache=i.cache,t.fileLoader=r.readFileSync,t.localsName=c,t.promiseImpl=new Function("return this;")().Promise,t.resolveInclude=function(e,t,a){var r=n.dirname,i=n.extname,o=(0,n.resolve)(a?t:r(t),e);return i(e)||(o+=".ejs"),o},t.compile=function(e,t){return t&&t.scope&&(o||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),o=!0),t.context||(t.context=t.scope),delete t.scope),new b(e,t).compile()},t.render=function(e,t,a){var r=t||{},n=a||{};return 2==arguments.length&&i.shallowCopyFromList(n,r,l),d(n,e)(r)},t.renderFile=function(){var e,t,a,r=Array.prototype.slice.call(arguments),n=r.shift(),o={filename:n};return"function"==typeof arguments[arguments.length-1]&&(e=r.pop()),r.length?(t=r.shift(),r.length?i.shallowCopy(o,r.pop()):(t.settings&&(t.settings.views&&(o.views=t.settings.views),t.settings["view cache"]&&(o.cache=!0),(a=t.settings["view options"])&&i.shallowCopy(o,a)),i.shallowCopyFromList(o,t,u)),o.filename=n):t={},m(o,t,e)},t.Template=b,t.clearCache=function(){t.cache.reset()},b.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"},b.prototype={createRegex:function(){var e="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",t=i.escapeRegExpChars(this.opts.delimiter),a=i.escapeRegExpChars(this.opts.openDelimiter),r=i.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,a).replace(/>/g,r),new RegExp(e)},compile:function(){var e,t,a,r=this.opts,o="",s="",c=r.escapeFunction,l=r.filename?JSON.stringify(r.filename):"undefined";if(!this.source){if(this.generateSource(),o+=' var __output = "";\n function __append(s) { if (s !== undefined && s !== null) __output += s }\n',r.outputFunctionName&&(o+=" var "+r.outputFunctionName+" = __append;\n"),r.destructuredLocals&&r.destructuredLocals.length){for(var u=" var __locals = ("+r.localsName+" || {}),\n",p=0;p<r.destructuredLocals.length;p++){var f=r.destructuredLocals[p];p>0&&(u+=",\n "),u+=f+" = __locals."+f}o+=u+";\n"}!1!==r._with&&(o+=" with ("+r.localsName+" || {}) {\n",s+=" }\n"),s+=" return __output;\n",this.source=o+this.source+s}e=r.compileDebug?"var __line = 1\n , __lines = "+JSON.stringify(this.templateText)+"\n , __filename = "+l+";\ntry {\n"+this.source+"} catch (e) {\n rethrow(e, __lines, __filename, __line, escapeFn);\n}\n":this.source,r.client&&(e="escapeFn = escapeFn || "+c.toString()+";\n"+e,r.compileDebug&&(e="rethrow = rethrow || "+y.toString()+";\n"+e)),r.strict&&(e='"use strict";\n'+e),r.debug&&console.log(e),r.compileDebug&&r.filename&&(e=e+"\n//# sourceURL="+l+"\n");try{if(r.async)try{a=new Function("return (async function(){}).constructor;")()}catch(e){throw e instanceof SyntaxError?new Error("This environment does not support async/await"):e}else a=Function;t=new a(r.localsName+", escapeFn, include, rethrow",e)}catch(e){throw e instanceof SyntaxError&&(r.filename&&(e.message+=" in "+r.filename),e.message+=" while compiling ejs\n\n",e.message+="If the above error is not helpful, you may want to try EJS-Lint:\n",e.message+="https://github.com/RyanZim/EJS-Lint",r.async||(e.message+="\n",e.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),e}var d=r.client?t:function(e){return t.apply(r.context,[e||{},c,function(t,a){var n=i.shallowCopy({},e);return a&&(n=i.shallowCopy(n,a)),g(t,r)(n)},y])};if(r.filename&&"function"==typeof Object.defineProperty){var m=r.filename,h=n.basename(m,n.extname(m));try{Object.defineProperty(d,"name",{value:h,writable:!1,enumerable:!1,configurable:!0})}catch(e){}}return d},generateSource:function(){this.opts.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,"\n").replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var e=this,t=this.parseTemplateText(),a=this.opts.delimiter,r=this.opts.openDelimiter,n=this.opts.closeDelimiter;t&&t.length&&t.forEach((function(i,o){var s;if(0===i.indexOf(r+a)&&0!==i.indexOf(r+a+a)&&(s=t[o+2])!=a+n&&s!="-"+a+n&&s!="_"+a+n)throw new Error('Could not find matching close tag for "'+i+'".');e.scanLine(i)}))},parseTemplateText:function(){for(var e,t=this.templateText,a=this.regex,r=a.exec(t),n=[];r;)0!==(e=r.index)&&(n.push(t.substring(0,e)),t=t.slice(e)),n.push(r[0]),t=t.slice(r[0].length),r=a.exec(t);return t&&n.push(t),n},_addOutput:function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=(e=(e=(e=e.replace(/\\/g,"\\\\")).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/"/g,'\\"'),this.source+=' ; __append("'+e+'")\n'},scanLine:function(e){var t,a=this.opts.delimiter,r=this.opts.openDelimiter,n=this.opts.closeDelimiter;switch(t=e.split("\n").length-1,e){case r+a:case r+a+"_":this.mode=b.modes.EVAL;break;case r+a+"=":this.mode=b.modes.ESCAPED;break;case r+a+"-":this.mode=b.modes.RAW;break;case r+a+"#":this.mode=b.modes.COMMENT;break;case r+a+a:this.mode=b.modes.LITERAL,this.source+=' ; __append("'+e.replace(r+a+a,r+a)+'")\n';break;case a+a+n:this.mode=b.modes.LITERAL,this.source+=' ; __append("'+e.replace(a+a+n,a+n)+'")\n';break;case a+n:case"-"+a+n:case"_"+a+n:this.mode==b.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=0===e.indexOf("-")||0===e.indexOf("_");break;default:if(this.mode){switch(this.mode){case b.modes.EVAL:case b.modes.ESCAPED:case b.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf("\n")&&(e+="\n")}switch(this.mode){case b.modes.EVAL:this.source+=" ; "+e+"\n";break;case b.modes.ESCAPED:this.source+=" ; __append(escapeFn("+v(e)+"))\n";break;case b.modes.RAW:this.source+=" ; __append("+v(e)+")\n";break;case b.modes.COMMENT:break;case b.modes.LITERAL:this._addOutput(e)}}else this._addOutput(e)}this.opts.compileDebug&&t&&(this.currentLine+=t,this.source+=" ; __line = "+this.currentLine+"\n")}},t.escapeXML=i.escapeXML,t.__express=t.renderFile,t.VERSION=s,t.name="ejs","undefined"!=typeof window&&(window.ejs=t)},2781:(e,t)=>{"use strict";var a=/[|\\{}()[\]^$+*?.]/g;t.escapeRegExpChars=function(e){return e?String(e).replace(a,"\\$&"):""};var r={"&":"&","<":"<",">":">",'"':""","'":"'"},n=/[&<>'"]/g;function i(e){return r[e]||e}t.escapeXML=function(e){return null==e?"":String(e).replace(n,i)},t.escapeXML.toString=function(){return Function.prototype.toString.call(this)+';\nvar _ENCODE_HTML_RULES = {\n "&": "&"\n , "<": "<"\n , ">": ">"\n , \'"\': """\n , "\'": "'"\n }\n , _MATCH_HTML = /[&<>\'"]/g;\nfunction encode_char(c) {\n return _ENCODE_HTML_RULES[c] || c;\n};\n'},t.shallowCopy=function(e,t){for(var a in t=t||{})e[a]=t[a];return e},t.shallowCopyFromList=function(e,t,a){for(var r=0;r<a.length;r++){var n=a[r];void 0!==t[n]&&(e[n]=t[n])}return e},t.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}},t.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,(function(e){return e[1].toUpperCase()}))}},8926:e=>{"use strict";e.exports=function e(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var r,n,i;if(Array.isArray(t)){if((r=t.length)!=a.length)return!1;for(n=r;0!=n--;)if(!e(t[n],a[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(a,i[n]))return!1;for(n=r;0!=n--;){var o=i[n];if(!e(t[o],a[o]))return!1}return!0}return t!=t&&a!=a}},9003:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var a,r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(a=t.cmp,function(e){return function(t,r){var n={key:t,value:e[t]},i={key:r,value:e[r]};return a(n,i)}}),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var a,o;if(Array.isArray(t)){for(o="[",a=0;a<t.length;a++)a&&(o+=","),o+=e(t[a])||"null";return o+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,c=Object.keys(t).sort(n&&n(t));for(o="",a=0;a<c.length;a++){var l=c[a],u=e(t[l]);u&&(o&&(o+=","),o+=JSON.stringify(l)+":"+u)}return i.splice(s,1),"{"+o+"}"}}(e)}},9154:(e,t,a)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),r.forEach((function(t){n(e,t,a[t])}))}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,a){return t&&s(e.prototype,t),a&&s(e,a),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}a.r(t),a.d(t,{default:()=>H});var m={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},h=new(function(){function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.init(t,a)}return c(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||m,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,a,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(a).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),g=function(){function e(){o(this,e),this.observers={}}return c(e,[{key:"on",value:function(e,t){var a=this;return e.split(" ").forEach((function(e){a.observers[e]=a.observers[e]||[],a.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];if(this.observers[e]){var n=[].concat(this.observers[e]);n.forEach((function(e){e.apply(void 0,a)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(a))}))}}}]),e}();function y(){var e,t,a=new Promise((function(a,r){e=a,t=r}));return a.resolve=e,a.reject=t,a}function v(e){return null==e?"":""+e}function b(e,t,a){e.forEach((function(e){t[e]&&(a[e]=t[e])}))}function P(e,t,a){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function n(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(n())return{};var o=r(i.shift());!e[o]&&a&&(e[o]=new a),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return n()?{}:{obj:e,k:r(i.shift())}}function T(e,t,a){var r=P(e,t,Object);r.obj[r.k]=a}function O(e,t){var a=P(e,t),r=a.obj,n=a.k;if(r)return r[n]}function C(e,t,a){var r=O(e,a);return void 0!==r?r:O(t,a)}function S(e,t,a){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?a&&(e[r]=t[r]):S(e[r],t[r],a):e[r]=t[r]);return e}function E(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function I(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return _[e]})):e}var A="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function x(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(a),n=e,i=0;i<r.length;++i){if("string"==typeof n[r[i]]&&i+1<r.length)return;if(void 0===n[r[i]]){for(var o=2,s=r.slice(i,i+o).join(a),c=n[s];void 0===c&&r.length>i+o;)o++,c=n[s=r.slice(i,i+o).join(a)];if(void 0===c)return;if("string"==typeof c)return c;if(s&&"string"==typeof c[s])return c[s];var l=r.slice(i+o).join(a);return l?x(c,l,a):void 0}n=n[r[i]]}return n}}var F=function(e){function t(e){var a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return o(this,t),a=u(this,p(t).call(this)),A&&g.call(l(a)),a.data=e||{},a.options=r,void 0===a.options.keySeparator&&(a.options.keySeparator="."),void 0===a.options.ignoreJSONStructure&&(a.options.ignoreJSONStructure=!0),a}return d(t,e),c(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,o=[e,t];a&&"string"!=typeof a&&(o=o.concat(a)),a&&"string"==typeof a&&(o=o.concat(n?a.split(n):a)),e.indexOf(".")>-1&&(o=e.split("."));var s=O(this.data,o);return s||!i||"string"!=typeof a?s:x(this.data&&this.data[e]&&this.data[e][t],a,n)}},{key:"addResource",value:function(e,t,a,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var o=[e,t];a&&(o=o.concat(i?a.split(i):a)),e.indexOf(".")>-1&&(r=t,t=(o=e.split("."))[1]),this.addNamespaces(t),T(this.data,o,r),n.silent||this.emit("added",e,t,a,r)}},{key:"addResources",value:function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var n in a)"string"!=typeof a[n]&&"[object Array]"!==Object.prototype.toString.apply(a[n])||this.addResource(e,t,n,a[n],{silent:!0});r.silent||this.emit("added",e,t,a)}},{key:"addResourceBundle",value:function(e,t,a,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=a,a=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var c=O(this.data,s)||{};r?S(c,a,n):c=i({},c,a),T(this.data,s,c),o.silent||this.emit("added",e,t,a)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(g),N={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,a,r,n){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,a,r,n))})),t}},R={},w=function(e){function t(e){var a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),a=u(this,p(t).call(this)),A&&g.call(l(a)),b(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,l(a)),a.options=r,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=h.create("translator"),a}return d(t,e),c(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},a=this.resolve(e,t);return a&&void 0!==a.res}},{key:"extractFromKey",value:function(e,t){var a=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===a&&(a=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(a&&e.indexOf(a)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:n};var o=e.split(a);(a!==r||a===r&&this.options.ns.indexOf(o[0])>-1)&&(n=o.shift()),e=o.join(r)}return"string"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:"translate",value:function(e,a,n){var o=this;if("object"!==r(a)&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],a),l=c.key,u=c.namespaces,p=u[u.length-1],f=a.lng||this.language,d=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(d){var m=a.nsSeparator||this.options.nsSeparator;return p+m+l}return l}var h=this.resolve(e,a),g=h&&h.res,y=h&&h.usedKey||l,v=h&&h.exactUsedKey||l,b=Object.prototype.toString.apply(g),P=["[object Number]","[object Function]","[object RegExp]"],T=void 0!==a.joinArrays?a.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,C="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(O&&g&&C&&P.indexOf(b)<0&&("string"!=typeof T||"[object Array]"!==b)){if(!a.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,g,i({},a,{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(s){var S="[object Array]"===b,E=S?[]:{},_=S?v:y;for(var I in g)if(Object.prototype.hasOwnProperty.call(g,I)){var A="".concat(_).concat(s).concat(I);E[I]=this.translate(A,i({},a,{joinArrays:!1,ns:u})),E[I]===A&&(E[I]=g[I])}g=E}}else if(O&&"string"==typeof T&&"[object Array]"===b)(g=g.join(T))&&(g=this.extendTranslation(g,e,a,n));else{var x=!1,F=!1,N=void 0!==a.count&&"string"!=typeof a.count,R=t.hasDefaultValue(a),w=N?this.pluralResolver.getSuffix(f,a.count):"",D=a["defaultValue".concat(w)]||a.defaultValue;!this.isValidLookup(g)&&R&&(x=!0,g=D),this.isValidLookup(g)||(F=!0,g=l);var j=R&&D!==g&&this.options.updateMissing;if(F||x||j){if(this.logger.log(j?"updateKey":"missingKey",f,p,l,j?D:g),s){var V=this.resolve(l,i({},a,{keySeparator:!1}));V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if("fallback"===this.options.saveMissingTo&&k&&k[0])for(var M=0;M<k.length;M++)L.push(k[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(a.lng||this.language):L.push(a.lng||this.language);var $=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,p,t,j?r:g,j,a):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,p,t,j?r:g,j,a),o.emit("missingKey",e,p,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){$([e],l+t,a["defaultValue".concat(t)]||D)}))})):$(L,l,D))}g=this.extendTranslation(g,e,a,h,n),F&&g===l&&this.options.appendNamespaceToMissingKey&&(g="".concat(p,":").concat(l)),F&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(e,t,a,r,n){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,a,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(i({},a,{interpolation:i({},this.options.interpolation,a.interpolation)}));var s,c=a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(c){var l=e.match(this.interpolator.nestingRegexp);s=l&&l.length}var u=a.replace&&"string"!=typeof a.replace?a.replace:a;if(this.options.interpolation.defaultVariables&&(u=i({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,a.lng||this.language,a),c){var p=e.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(a.nest=!1)}!1!==a.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n&&n[0]===r[0]&&!a.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}),a)),a.interpolation&&this.interpolator.reset()}var f=a.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==a.applyPostProcessor&&(e=N.handle(d,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},a):a,this)),e}},{key:"resolve",value:function(e){var t,a,r,n,i,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var c=o.extractFromKey(e,s),l=c.key;a=l;var u=c.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var p=void 0!==s.count&&"string"!=typeof s.count,f=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,d=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);u.forEach((function(e){o.isValidLookup(t)||(i=e,!R["".concat(d[0],"-").concat(e)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(i)&&(R["".concat(d[0],"-").concat(e)]=!0,o.logger.warn('key "'.concat(a,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(a){if(!o.isValidLookup(t)){n=a;var i,c,u=l,d=[u];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(d,l,a,e,s);else p&&(i=o.pluralResolver.getSuffix(a,s.count)),p&&f&&d.push(u+i),f&&d.push(u+="".concat(o.options.contextSeparator).concat(s.context)),p&&d.push(u+=i);for(;c=d.pop();)o.isValidLookup(t)||(r=c,t=o.getResource(a,e,c,s))}})))}))}})),{res:t,usedKey:a,exactUsedKey:r,usedLng:n,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,a,r):this.resourceStore.getResource(e,t,a,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t===a.substring(0,t.length)&&void 0!==e[a])return!0;return!1}}]),t}(g);function D(e){return e.charAt(0).toUpperCase()+e.slice(1)}var j=function(){function e(t){o(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=h.create("languageUtils")}return c(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],a=e.split("-");return this.options.lowerCaseLng?a=a.map((function(e){return e.toLowerCase()})):2===a.length?(a[0]=a[0].toLowerCase(),a[1]=a[1].toUpperCase(),t.indexOf(a[1].toLowerCase())>-1&&(a[1]=D(a[1].toLowerCase()))):3===a.length&&(a[0]=a[0].toLowerCase(),2===a[1].length&&(a[1]=a[1].toUpperCase()),"sgn"!==a[0]&&2===a[2].length&&(a[2]=a[2].toUpperCase()),t.indexOf(a[1].toLowerCase())>-1&&(a[1]=D(a[1].toLowerCase())),t.indexOf(a[2].toLowerCase())>-1&&(a[2]=D(a[2].toLowerCase()))),a.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,a=this;return e?(e.forEach((function(e){if(!t){var r=a.formatLanguageCode(e);a.options.supportedLngs&&!a.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=a.getLanguagePartFromCode(e);if(a.isSupportedCode(r))return t=r;t=a.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var a=e[t];return a||(a=e[this.getScriptPartFromCode(t)]),a||(a=e[this.formatLanguageCode(t)]),a||(a=e[this.getLanguagePartFromCode(t)]),a||(a=e.default),a||[]}},{key:"toResolveHierarchy",value:function(e,t){var a=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],i=function(e){e&&(a.isSupportedCode(e)?n.push(e):a.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){n.indexOf(e)<0&&i(a.formatLanguageCode(e))})),n}}]),e}(),V=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],L={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function k(){var e={};return V.forEach((function(t){t.lngs.forEach((function(a){e[a]={numbers:t.nr,plurals:L[t.fc]}}))})),e}var M=function(){function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.languageUtils=t,this.options=a,this.logger=h.create("pluralResolver"),this.rules=k()}return c(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,a=this.getRule(e);return a?a.numbers.map((function(a){return t.getSuffix(e,a)})):[]}},{key:"getSuffix",value:function(e,t){var a=this,r=this.getRule(e);if(r){var n=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[n];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return a.options.prepend&&i.toString()?a.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),$=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.logger=h.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return c(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:I,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?E(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?E(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?E(t.nestingPrefix):t.nestingPrefixEscaped||E("$t("),this.nestingSuffix=t.nestingSuffix?E(t.nestingSuffix):t.nestingSuffixEscaped||E(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var a="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(a,"g")}},{key:"interpolate",value:function(e,t,a,r){var n,o,s,c=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var p=function(e){if(e.indexOf(c.formatSeparator)<0){var n=C(t,l,e);return c.alwaysFormat?c.format(n,void 0,a,i({},r,t,{interpolationkey:e})):n}var o=e.split(c.formatSeparator),s=o.shift().trim(),u=o.join(c.formatSeparator).trim();return c.format(C(t,l,s),u,a,i({},r,t,{interpolationkey:s}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return c.escapeValue?u(c.escape(e)):u(e)}}].forEach((function(t){for(s=0;n=t.regex.exec(e);){if(void 0===(o=p(n[1].trim())))if("function"==typeof f){var a=f(e,n,r);o="string"==typeof a?a:""}else{if(d){o=n[0];continue}c.logger.warn("missed to pass in variable ".concat(n[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||c.useRawValueToEscape||(o=v(o));var i=t.safeValue(o);if(e=e.replace(n[0],i),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=n[0].length):t.regex.lastIndex=0,++s>=c.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var a,r,n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i({},o);function c(e,t){var a=this.nestingOptionsSeparator;if(e.indexOf(a)<0)return e;var r=e.split(new RegExp("".concat(a,"[ ]*{"))),n="{".concat(r[1]);e=r[0],n=(n=this.interpolate(n,s)).replace(/'/g,'"');try{s=JSON.parse(n),t&&(s=i({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(a).concat(n)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;a=this.nestingRegexp.exec(e);){var l=[],u=!1;if(-1!==a[0].indexOf(this.formatSeparator)&&!/{.*}/.test(a[1])){var p=a[1].split(this.formatSeparator).map((function(e){return e.trim()}));a[1]=p.shift(),l=p,u=!0}if((r=t(c.call(this,a[1].trim(),s),s))&&a[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=v(r)),r||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce((function(e,t){return n.format(e,t,o.lng,i({},o,{interpolationkey:a[1].trim()}))}),r.trim())),e=e.replace(a[0],r),this.regexp.lastIndex=0}return e}}]),e}();var U=function(e){function t(e,a,r){var n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),n=u(this,p(t).call(this)),A&&g.call(l(n)),n.backend=e,n.store=a,n.services=r,n.languageUtils=r.languageUtils,n.options=i,n.logger=h.create("backendConnector"),n.state={},n.queue=[],n.backend&&n.backend.init&&n.backend.init(r,i.backend,i),n}return d(t,e),c(t,[{key:"queueLoad",value:function(e,t,a,r){var n=this,i=[],o=[],s=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!a.reload&&n.store.hasResourceBundle(e,t)?n.state[s]=2:n.state[s]<0||(1===n.state[s]?o.indexOf(s)<0&&o.push(s):(n.state[s]=1,r=!1,o.indexOf(s)<0&&o.push(s),i.indexOf(s)<0&&i.push(s),c.indexOf(t)<0&&c.push(t)))})),r||s.push(e)})),(i.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:r}),{toLoad:i,pending:o,toLoadLanguages:s,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,a){var r=e.split("|"),n=r[0],i=r[1];t&&this.emit("failedLoading",n,i,t),a&&this.store.addResourceBundle(n,i,a),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(a){var r,s,c,l,u,p;r=a.loaded,s=i,l=P(r,[n],Object),u=l.obj,p=l.k,u[p]=u[p]||[],c&&(u[p]=u[p].concat(s)),c||u[p].push(s),function(e,t){for(var a=e.indexOf(t);-1!==a;)e.splice(a,1),a=e.indexOf(t)}(a.pending,e),t&&a.errors.push(t),0!==a.pending.length||a.done||(Object.keys(a.loaded).forEach((function(e){o[e]||(o[e]=[]),a.loaded[e].length&&a.loaded[e].forEach((function(t){o[e].indexOf(t)<0&&o[e].push(t)}))})),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())})),this.emit("loaded",o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,a){var r=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[a](e,t,(function(s,c){s&&c&&n<5?setTimeout((function(){r.read.call(r,e,t,a,n+1,2*i,o)}),i):o(s,c)})):o(null,{})}},{key:"prepareLoading",value:function(e,t){var a=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach((function(e){a.loadOne(e)}))}},{key:"load",value:function(e,t,a){this.prepareLoading(e,t,{},a)}},{key:"reload",value:function(e,t,a){this.prepareLoading(e,t,{reload:!0},a)}},{key:"loadOne",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(function(r,o){r&&t.logger.warn("".concat(a,"loading namespace ").concat(i," for language ").concat(n," failed"),r),!r&&o&&t.logger.log("".concat(a,"loaded namespace ").concat(i," for language ").concat(n),o),t.loaded(e,r,o)}))}},{key:"saveMissing",value:function(e,t,a,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=a&&""!==a&&(this.backend&&this.backend.create&&this.backend.create(e,t,a,r,null,i({},o,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,a,r))}}]),t}(g);function B(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var a=e[3]||e[2];Object.keys(a).forEach((function(e){t[e]=a[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,a,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function K(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Q(){}const H=new(function(e){function t(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(o(this,t),e=u(this,p(t).call(this)),A&&g.call(l(e)),e.options=K(a),e.services={},e.logger=h,e.modules={external:[]},r&&!e.isInitialized&&!a.isClone){if(!e.options.initImmediate)return e.init(a,r),u(e,l(e));setTimeout((function(){e.init(a,r)}),0)}return e}return d(t,e),c(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(a=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},B(),this.options,K(t)),this.format=this.options.interpolation.format,a||(a=Q),!this.options.isClone){this.modules.logger?h.init(r(this.modules.logger),this.options):h.init(null,this.options);var n=new j(this.options);this.store=new F(this.options.resources,this.options);var o=this.services;o.logger=h,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new M(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o.interpolator=new $(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new U(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new w(this.services,this.options),this.translator.on("*",(function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var a;return(a=e.store)[t].apply(a,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var a;return(a=e.store)[t].apply(a,arguments),e}}));var u=y(),p=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),a(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}},{key:"loadResources",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q,r=a,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();var i=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(n)o(n);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return o(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,a){var r=y();return e||(e=this.languages),t||(t=this.options.ns),a||(a=Q),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),a(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&N.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var a=this;this.isLanguageChangingTo=e;var r=y();this.emit("languageChanging",e);var n=function(n){e||n||!a.services.languageDetector||(n=[]);var i="string"==typeof n?n:a.services.languageUtils.getBestMatchFromCodes(n);i&&(a.language||(a.language=i,a.languages=a.services.languageUtils.toResolveHierarchy(i)),a.translator.language||a.translator.changeLanguage(i),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(i)),a.loadResources(i,(function(e){!function(e,n){n?(a.language=n,a.languages=a.services.languageUtils.toResolveHierarchy(n),a.translator.changeLanguage(n),a.isLanguageChangingTo=void 0,a.emit("languageChanged",n),a.logger.log("languageChanged",n)):a.isLanguageChangingTo=void 0,r.resolve((function(){return a.t.apply(a,arguments)})),t&&t(e,(function(){return a.t.apply(a,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(n):n(e):n(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var a=this,n=function e(t,n){var o;if("object"!==r(n)){for(var s=arguments.length,c=new Array(s>2?s-2:0),l=2;l<s;l++)c[l-2]=arguments[l];o=a.options.overloadTranslationOptionHandler([t,n].concat(c))}else o=i({},n);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,a.t(t,o)};return"string"==typeof e?n.lng=e:n.lngs=e,n.ns=t,n}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,a){var r=t.services.backendConnector.state["".concat(e,"|").concat(a)];return-1===r||2===r};if(a.precheck){var s=a.precheck(this,o);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!o(r,e)||n&&!o(i,e)))}},{key:"loadNamespaces",value:function(e,t){var a=this,r=y();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){a.options.ns.indexOf(e)<0&&a.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var a=y();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],n=e.filter((function(e){return r.indexOf(e)<0}));return n.length?(this.options.preload=r.concat(n),this.loadResources((function(e){a.resolve(),t&&t(e)})),a):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new t(e,a)}},{key:"cloneInstance",value:function(){var e=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q,n=i({},this.options,a,{isClone:!0}),o=new t(n),s=["store","services","language"];return s.forEach((function(t){o[t]=e[t]})),o.services=i({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new w(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];o.emit.apply(o,[e].concat(a))})),o.init(n,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(g))},8125:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),a(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function a(e,r,n,i,o,s,c,l,u,p){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var f in r(i,o,s,c,l,u,p),i){var d=i[f];if(Array.isArray(d)){if(f in t.arrayKeywords)for(var m=0;m<d.length;m++)a(e,r,n,d[m],o+"/"+f+"/"+m,s,o,f,i,m)}else if(f in t.propsKeywords){if(d&&"object"==typeof d)for(var h in d)a(e,r,n,d[h],o+"/"+f+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),s,o,f,i,h)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&a(e,r,n,d,o+"/"+f,s,o,f,i)}n(i,o,s,c,l,u,p)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},4366:e=>{var t="__lodash_hash_undefined__",a="[object Function]",r="[object GeneratorFunction]",n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/,o=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,u="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,f=u||p||Function("return this")();var d,m=Array.prototype,h=Function.prototype,g=Object.prototype,y=f["__core-js_shared__"],v=(d=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",b=h.toString,P=g.hasOwnProperty,T=g.toString,O=RegExp("^"+b.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=f.Symbol,S=m.splice,E=L(f,"Map"),_=L(Object,"create"),I=C?C.prototype:void 0,A=I?I.toString:void 0;function x(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function F(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function N(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function R(e,t){for(var a,r,n=e.length;n--;)if((a=e[n][0])===(r=t)||a!=a&&r!=r)return n;return-1}function w(e){return!(!K(e)||(t=e,v&&v in t))&&(function(e){var t=K(e)?T.call(e):"";return t==a||t==r}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?O:l).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function D(e,t){e=function(e,t){return 1==t.length?e:function(e,t){for(var a=0,r=(t=k(t,e)?[t]:j(t)).length;null!=e&&a<r;)e=e[$(t[a++])];return a&&a==r?e:void 0}(e,function(e,t,a){var r=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(a=a>n?n:a)<0&&(a+=n),n=t>a?0:a-t>>>0,t>>>=0;for(var i=Array(n);++r<n;)i[r]=e[r+t];return i}(t,0,-1))}(e,t=k(t,e)?[t]:j(t));var a,r,n=$((r=(a=t)?a.length:0)?a[r-1]:void 0);return!(null!=e&&P.call(e,n))||delete e[n]}function j(e){return B(e)?e:M(e)}function V(e,t){var a,r,n=e.__data__;return("string"==(r=typeof(a=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==a:null===a)?n["string"==typeof t?"string":"hash"]:n.map}function L(e,t){var a=function(e,t){return null==e?void 0:e[t]}(e,t);return w(a)?a:void 0}function k(e,t){if(B(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!Q(e))||(i.test(e)||!n.test(e)||null!=t&&e in Object(t))}x.prototype.clear=function(){this.__data__=_?_(null):{}},x.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},x.prototype.get=function(e){var a=this.__data__;if(_){var r=a[e];return r===t?void 0:r}return P.call(a,e)?a[e]:void 0},x.prototype.has=function(e){var t=this.__data__;return _?void 0!==t[e]:P.call(t,e)},x.prototype.set=function(e,a){return this.__data__[e]=_&&void 0===a?t:a,this},F.prototype.clear=function(){this.__data__=[]},F.prototype.delete=function(e){var t=this.__data__,a=R(t,e);return!(a<0)&&(a==t.length-1?t.pop():S.call(t,a,1),!0)},F.prototype.get=function(e){var t=this.__data__,a=R(t,e);return a<0?void 0:t[a][1]},F.prototype.has=function(e){return R(this.__data__,e)>-1},F.prototype.set=function(e,t){var a=this.__data__,r=R(a,e);return r<0?a.push([e,t]):a[r][1]=t,this},N.prototype.clear=function(){this.__data__={hash:new x,map:new(E||F),string:new x}},N.prototype.delete=function(e){return V(this,e).delete(e)},N.prototype.get=function(e){return V(this,e).get(e)},N.prototype.has=function(e){return V(this,e).has(e)},N.prototype.set=function(e,t){return V(this,e).set(e,t),this};var M=U((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Q(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var a=[];return o.test(e)&&a.push(""),e.replace(s,(function(e,t,r,n){a.push(r?n.replace(c,"$1"):t||e)})),a}));function $(e){if("string"==typeof e||Q(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function U(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var a=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=a.cache;if(i.has(n))return i.get(n);var o=e.apply(this,r);return a.cache=i.set(n,o),o};return a.cache=new(U.Cache||N),a}U.Cache=N;var B=Array.isArray;function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Q(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==T.call(e)}e.exports=function(e,t){return null==e||D(e,t)}},2775:()=>{var e;!function(e){!function(t){var a="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=n(e);function n(e,t){return function(a,r){"function"!=typeof e[a]&&Object.defineProperty(e,a,{configurable:!0,writable:!0,value:r}),t&&t(a,r)}}void 0===a.Reflect?a.Reflect=e:r=n(a.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,a="function"==typeof Symbol,r=a&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",n=a&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,o={__proto__:[]}instanceof Array,s=!i&&!o,c={create:i?function(){return re(Object.create(null))}:o?function(){return re({__proto__:null})}:function(){return re({})},has:s?function(e,a){return t.call(e,a)}:function(e,t){return t in e},get:s?function(e,a){return t.call(e,a)?e[a]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),u="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=u||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?ee():Map,f=u||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?te():Set,d=new(u||"function"!=typeof WeakMap?ae():WeakMap);function m(e,t,a,r){if(j(a)){if(!Q(e))throw new TypeError;if(!J(t))throw new TypeError;return S(e,t)}if(!Q(e))throw new TypeError;if(!k(t))throw new TypeError;if(!k(r)&&!j(r)&&!V(r))throw new TypeError;return V(r)&&(r=void 0),E(e,t,a=K(a),r)}function h(e,t){function a(a,r){if(!k(a))throw new TypeError;if(!j(r)&&!q(r))throw new TypeError;N(e,t,a,r)}return a}function g(e,t,a,r){if(!k(a))throw new TypeError;return j(r)||(r=K(r)),N(e,t,a,r)}function y(e,t,a){if(!k(t))throw new TypeError;return j(a)||(a=K(a)),I(e,t,a)}function v(e,t,a){if(!k(t))throw new TypeError;return j(a)||(a=K(a)),A(e,t,a)}function b(e,t,a){if(!k(t))throw new TypeError;return j(a)||(a=K(a)),x(e,t,a)}function P(e,t,a){if(!k(t))throw new TypeError;return j(a)||(a=K(a)),F(e,t,a)}function T(e,t){if(!k(e))throw new TypeError;return j(t)||(t=K(t)),R(e,t)}function O(e,t){if(!k(e))throw new TypeError;return j(t)||(t=K(t)),w(e,t)}function C(e,t,a){if(!k(t))throw new TypeError;j(a)||(a=K(a));var r=_(t,a,!1);if(j(r))return!1;if(!r.delete(e))return!1;if(r.size>0)return!0;var n=d.get(t);return n.delete(a),n.size>0||d.delete(t),!0}function S(e,t){for(var a=e.length-1;a>=0;--a){var r=(0,e[a])(t);if(!j(r)&&!V(r)){if(!J(r))throw new TypeError;t=r}}return t}function E(e,t,a,r){for(var n=e.length-1;n>=0;--n){var i=(0,e[n])(t,a,r);if(!j(i)&&!V(i)){if(!k(i))throw new TypeError;r=i}}return r}function _(e,t,a){var r=d.get(e);if(j(r)){if(!a)return;r=new p,d.set(e,r)}var n=r.get(t);if(j(n)){if(!a)return;n=new p,r.set(t,n)}return n}function I(e,t,a){if(A(e,t,a))return!0;var r=Z(t);return!V(r)&&I(e,r,a)}function A(e,t,a){var r=_(t,a,!1);return!j(r)&&U(r.has(e))}function x(e,t,a){if(A(e,t,a))return F(e,t,a);var r=Z(t);return V(r)?void 0:x(e,r,a)}function F(e,t,a){var r=_(t,a,!1);if(!j(r))return r.get(e)}function N(e,t,a,r){_(a,r,!0).set(e,t)}function R(e,t){var a=w(e,t),r=Z(e);if(null===r)return a;var n=R(r,t);if(n.length<=0)return a;if(a.length<=0)return n;for(var i=new f,o=[],s=0,c=a;s<c.length;s++){var l=c[s];i.has(l)||(i.add(l),o.push(l))}for(var u=0,p=n;u<p.length;u++){l=p[u];i.has(l)||(i.add(l),o.push(l))}return o}function w(e,t){var a=[],r=_(e,t,!1);if(j(r))return a;for(var n=z(r.keys()),i=0;;){var o=X(n);if(!o)return a.length=i,a;var s=W(o);try{a[i]=s}catch(e){try{Y(n)}finally{throw e}}i++}}function D(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function V(e){return null===e}function L(e){return"symbol"==typeof e}function k(e){return"object"==typeof e?null!==e:"function"==typeof e}function M(e,t){switch(D(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var a=3===t?"string":5===t?"number":"default",n=G(e,r);if(void 0!==n){var i=n.call(e,a);if(k(i))throw new TypeError;return i}return $(e,"default"===a?"number":a)}function $(e,t){if("string"===t){var a=e.toString;if(H(a))if(!k(n=a.call(e)))return n;if(H(r=e.valueOf))if(!k(n=r.call(e)))return n}else{var r;if(H(r=e.valueOf))if(!k(n=r.call(e)))return n;var n,i=e.toString;if(H(i))if(!k(n=i.call(e)))return n}throw new TypeError}function U(e){return!!e}function B(e){return""+e}function K(e){var t=M(e,3);return L(t)?t:B(t)}function Q(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function H(e){return"function"==typeof e}function J(e){return"function"==typeof e}function q(e){switch(D(e)){case 3:case 4:return!0;default:return!1}}function G(e,t){var a=e[t];if(null!=a){if(!H(a))throw new TypeError;return a}}function z(e){var t=G(e,n);if(!H(t))throw new TypeError;var a=t.call(e);if(!k(a))throw new TypeError;return a}function W(e){return e.value}function X(e){var t=e.next();return!t.done&&t}function Y(e){var t=e.return;t&&t.call(e)}function Z(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===l)return t;if(t!==l)return t;var a=e.prototype,r=a&&Object.getPrototypeOf(a);if(null==r||r===Object.prototype)return t;var n=r.constructor;return"function"!=typeof n||n===e?t:n}function ee(){var e={},t=[],a=function(){function e(e,t,a){this._index=0,this._keys=e,this._values=t,this._selector=a}return e.prototype["@@iterator"]=function(){return this},e.prototype[n]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var a=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:a,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var a=this._find(e,!0);return this._values[a]=t,this},t.prototype.delete=function(t){var a=this._find(t,!1);if(a>=0){for(var r=this._keys.length,n=a+1;n<r;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new a(this._keys,this._values,r)},t.prototype.values=function(){return new a(this._keys,this._values,i)},t.prototype.entries=function(){return new a(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[n]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}function te(){return function(){function e(){this._map=new p}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[n]=function(){return this.keys()},e}()}function ae(){var e=16,a=c.create(),r=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?c.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var e;do{e="@@WeakMap@@"+l()}while(c.has(a,e));return a[e]=!0,e}function i(e,a){if(!t.call(e,r)){if(!a)return;Object.defineProperty(e,r,{value:c.create()})}return e[r]}function o(e,t){for(var a=0;a<t;++a)e[a]=255*Math.random()|0;return e}function s(e){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):o(new Uint8Array(e),e):o(new Array(e),e)}function l(){var t=s(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var a="",r=0;r<e;++r){var n=t[r];4!==r&&6!==r&&8!==r||(a+="-"),n<16&&(a+="0"),a+=n.toString(16).toLowerCase()}return a}}function re(e){return e.__=void 0,delete e.__,e}e("decorate",m),e("metadata",h),e("defineMetadata",g),e("hasMetadata",y),e("hasOwnMetadata",v),e("getMetadata",b),e("getOwnMetadata",P),e("getMetadataKeys",T),e("getOwnMetadataKeys",O),e("deleteMetadata",C)}(r)}()}(e||(e={}))},9871:(e,t,a)=>{!function(e){e.parser=function(e,t){return new n(e,t)},e.SAXParser=n,e.SAXStream=o,e.createStream=function(e,t){return new o(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function n(t,a){if(!(this instanceof n))return new n(t,a);var i=this;!function(e){for(var t=0,a=r.length;t<a;t++)e[r[t]]=""}(i),i.q=i.c="",i.bufferCheckPosition=e.MAX_BUFFER_LENGTH,i.opt=a||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!t,i.noscript=!(!t&&!i.opt.noscript),i.state=O.BEGIN,i.strictEntities=i.opt.strictEntities,i.ENTITIES=i.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=Object.create(l)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),S(i,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var a in e)e.hasOwnProperty(a)&&t.push(a);return t}),n.prototype={end:function(){x(this)},write:function(t){var a=this;if(this.error)throw this.error;if(a.closed)return A(a,"Cannot write after close. Assign an onready handler.");if(null===t)return x(a);"object"==typeof t&&(t=t.toString());var n=0,i="";for(;i=k(t,n++),a.c=i,i;)switch(a.trackPosition&&(a.position++,"\n"===i?(a.line++,a.column=0):a.column++),a.state){case O.BEGIN:if(a.state=O.BEGIN_WHITESPACE,"\ufeff"===i)continue;L(a,i);continue;case O.BEGIN_WHITESPACE:L(a,i);continue;case O.TEXT:if(a.sawRoot&&!a.closedRoot){for(var o=n-1;i&&"<"!==i&&"&"!==i;)(i=k(t,n++))&&a.trackPosition&&(a.position++,"\n"===i?(a.line++,a.column=0):a.column++);a.textNode+=t.substring(o,n-1)}"<"!==i||a.sawRoot&&a.closedRoot&&!a.strict?(m(i)||a.sawRoot&&!a.closedRoot||F(a,"Text data outside of root node."),"&"===i?a.state=O.TEXT_ENTITY:a.textNode+=i):(a.state=O.OPEN_WAKA,a.startTagPosition=a.position);continue;case O.SCRIPT:"<"===i?a.state=O.SCRIPT_ENDING:a.script+=i;continue;case O.SCRIPT_ENDING:"/"===i?a.state=O.CLOSE_TAG:(a.script+="<"+i,a.state=O.SCRIPT);continue;case O.OPEN_WAKA:if("!"===i)a.state=O.SGML_DECL,a.sgmlDecl="";else if(m(i));else if(y(u,i))a.state=O.OPEN_TAG,a.tagName=i;else if("/"===i)a.state=O.CLOSE_TAG,a.tagName="";else if("?"===i)a.state=O.PROC_INST,a.procInstName=a.procInstBody="";else{if(F(a,"Unencoded <"),a.startTagPosition+1<a.position){var s=a.position-a.startTagPosition;i=new Array(s).join(" ")+i}a.textNode+="<"+i,a.state=O.TEXT}continue;case O.SGML_DECL:"[CDATA["===(a.sgmlDecl+i).toUpperCase()?(E(a,"onopencdata"),a.state=O.CDATA,a.sgmlDecl="",a.cdata=""):a.sgmlDecl+i==="--"?(a.state=O.COMMENT,a.comment="",a.sgmlDecl=""):"DOCTYPE"===(a.sgmlDecl+i).toUpperCase()?(a.state=O.DOCTYPE,(a.doctype||a.sawRoot)&&F(a,"Inappropriately located doctype declaration"),a.doctype="",a.sgmlDecl=""):">"===i?(E(a,"onsgmldeclaration",a.sgmlDecl),a.sgmlDecl="",a.state=O.TEXT):h(i)?(a.state=O.SGML_DECL_QUOTED,a.sgmlDecl+=i):a.sgmlDecl+=i;continue;case O.SGML_DECL_QUOTED:i===a.q&&(a.state=O.SGML_DECL,a.q=""),a.sgmlDecl+=i;continue;case O.DOCTYPE:">"===i?(a.state=O.TEXT,E(a,"ondoctype",a.doctype),a.doctype=!0):(a.doctype+=i,"["===i?a.state=O.DOCTYPE_DTD:h(i)&&(a.state=O.DOCTYPE_QUOTED,a.q=i));continue;case O.DOCTYPE_QUOTED:a.doctype+=i,i===a.q&&(a.q="",a.state=O.DOCTYPE);continue;case O.DOCTYPE_DTD:a.doctype+=i,"]"===i?a.state=O.DOCTYPE:h(i)&&(a.state=O.DOCTYPE_DTD_QUOTED,a.q=i);continue;case O.DOCTYPE_DTD_QUOTED:a.doctype+=i,i===a.q&&(a.state=O.DOCTYPE_DTD,a.q="");continue;case O.COMMENT:"-"===i?a.state=O.COMMENT_ENDING:a.comment+=i;continue;case O.COMMENT_ENDING:"-"===i?(a.state=O.COMMENT_ENDED,a.comment=I(a.opt,a.comment),a.comment&&E(a,"oncomment",a.comment),a.comment=""):(a.comment+="-"+i,a.state=O.COMMENT);continue;case O.COMMENT_ENDED:">"!==i?(F(a,"Malformed comment"),a.comment+="--"+i,a.state=O.COMMENT):a.state=O.TEXT;continue;case O.CDATA:"]"===i?a.state=O.CDATA_ENDING:a.cdata+=i;continue;case O.CDATA_ENDING:"]"===i?a.state=O.CDATA_ENDING_2:(a.cdata+="]"+i,a.state=O.CDATA);continue;case O.CDATA_ENDING_2:">"===i?(a.cdata&&E(a,"oncdata",a.cdata),E(a,"onclosecdata"),a.cdata="",a.state=O.TEXT):"]"===i?a.cdata+="]":(a.cdata+="]]"+i,a.state=O.CDATA);continue;case O.PROC_INST:"?"===i?a.state=O.PROC_INST_ENDING:m(i)?a.state=O.PROC_INST_BODY:a.procInstName+=i;continue;case O.PROC_INST_BODY:if(!a.procInstBody&&m(i))continue;"?"===i?a.state=O.PROC_INST_ENDING:a.procInstBody+=i;continue;case O.PROC_INST_ENDING:">"===i?(E(a,"onprocessinginstruction",{name:a.procInstName,body:a.procInstBody}),a.procInstName=a.procInstBody="",a.state=O.TEXT):(a.procInstBody+="?"+i,a.state=O.PROC_INST_BODY);continue;case O.OPEN_TAG:y(p,i)?a.tagName+=i:(N(a),">"===i?D(a):"/"===i?a.state=O.OPEN_TAG_SLASH:(m(i)||F(a,"Invalid character in tag name"),a.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:">"===i?(D(a,!0),j(a)):(F(a,"Forward-slash in opening tag not followed by >"),a.state=O.ATTRIB);continue;case O.ATTRIB:if(m(i))continue;">"===i?D(a):"/"===i?a.state=O.OPEN_TAG_SLASH:y(u,i)?(a.attribName=i,a.attribValue="",a.state=O.ATTRIB_NAME):F(a,"Invalid attribute name");continue;case O.ATTRIB_NAME:"="===i?a.state=O.ATTRIB_VALUE:">"===i?(F(a,"Attribute without value"),a.attribValue=a.attribName,w(a),D(a)):m(i)?a.state=O.ATTRIB_NAME_SAW_WHITE:y(p,i)?a.attribName+=i:F(a,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if("="===i)a.state=O.ATTRIB_VALUE;else{if(m(i))continue;F(a,"Attribute without value"),a.tag.attributes[a.attribName]="",a.attribValue="",E(a,"onattribute",{name:a.attribName,value:""}),a.attribName="",">"===i?D(a):y(u,i)?(a.attribName=i,a.state=O.ATTRIB_NAME):(F(a,"Invalid attribute name"),a.state=O.ATTRIB)}continue;case O.ATTRIB_VALUE:if(m(i))continue;h(i)?(a.q=i,a.state=O.ATTRIB_VALUE_QUOTED):(F(a,"Unquoted attribute value"),a.state=O.ATTRIB_VALUE_UNQUOTED,a.attribValue=i);continue;case O.ATTRIB_VALUE_QUOTED:if(i!==a.q){"&"===i?a.state=O.ATTRIB_VALUE_ENTITY_Q:a.attribValue+=i;continue}w(a),a.q="",a.state=O.ATTRIB_VALUE_CLOSED;continue;case O.ATTRIB_VALUE_CLOSED:m(i)?a.state=O.ATTRIB:">"===i?D(a):"/"===i?a.state=O.OPEN_TAG_SLASH:y(u,i)?(F(a,"No whitespace between attributes"),a.attribName=i,a.attribValue="",a.state=O.ATTRIB_NAME):F(a,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(!g(i)){"&"===i?a.state=O.ATTRIB_VALUE_ENTITY_U:a.attribValue+=i;continue}w(a),">"===i?D(a):a.state=O.ATTRIB;continue;case O.CLOSE_TAG:if(a.tagName)">"===i?j(a):y(p,i)?a.tagName+=i:a.script?(a.script+="</"+a.tagName,a.tagName="",a.state=O.SCRIPT):(m(i)||F(a,"Invalid tagname in closing tag"),a.state=O.CLOSE_TAG_SAW_WHITE);else{if(m(i))continue;v(u,i)?a.script?(a.script+="</"+i,a.state=O.SCRIPT):F(a,"Invalid tagname in closing tag."):a.tagName=i}continue;case O.CLOSE_TAG_SAW_WHITE:if(m(i))continue;">"===i?j(a):F(a,"Invalid characters in closing tag");continue;case O.TEXT_ENTITY:case O.ATTRIB_VALUE_ENTITY_Q:case O.ATTRIB_VALUE_ENTITY_U:var c,l;switch(a.state){case O.TEXT_ENTITY:c=O.TEXT,l="textNode";break;case O.ATTRIB_VALUE_ENTITY_Q:c=O.ATTRIB_VALUE_QUOTED,l="attribValue";break;case O.ATTRIB_VALUE_ENTITY_U:c=O.ATTRIB_VALUE_UNQUOTED,l="attribValue"}";"===i?(a[l]+=V(a),a.entity="",a.state=c):y(a.entity.length?d:f,i)?a.entity+=i:(F(a,"Invalid character in entity name"),a[l]+="&"+a.entity+i,a.entity="",a.state=c);continue;default:throw new Error(a,"Unknown state: "+a.state)}a.position>=a.bufferCheckPosition&&function(t){for(var a=Math.max(e.MAX_BUFFER_LENGTH,10),n=0,i=0,o=r.length;i<o;i++){var s=t[r[i]].length;if(s>a)switch(r[i]){case"textNode":_(t);break;case"cdata":E(t,"oncdata",t.cdata),t.cdata="";break;case"script":E(t,"onscript",t.script),t.script="";break;default:A(t,"Max buffer length exceeded: "+r[i])}n=Math.max(n,s)}var c=e.MAX_BUFFER_LENGTH-n;t.bufferCheckPosition=c+t.position}(a);return a},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;_(e=this),""!==e.cdata&&(E(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(E(e,"onscript",e.script),e.script="")}};try{t=a(2413).Stream}catch(e){t=function(){}}var i=e.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function o(e,a){if(!(this instanceof o))return new o(e,a);t.apply(this),this._parser=new n(e,a),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,i.forEach((function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})}))}o.prototype=Object.create(t.prototype,{constructor:{value:o}}),o.prototype.write=function(e){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e)){if(!this._decoder){var t=a(4304).StringDecoder;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},o.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},o.prototype.on=function(e,a){var r=this;return r._parser["on"+e]||-1===i.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),t.prototype.on.call(r,e,a)};var s="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/2000/xmlns/",l={xml:s,xmlns:c},u=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function h(e){return'"'===e||"'"===e}function g(e){return">"===e||m(e)}function y(e,t){return e.test(t)}function v(e,t){return!y(e,t)}var b,P,T,O=0;for(var C in e.STATE={BEGIN:O++,BEGIN_WHITESPACE:O++,TEXT:O++,TEXT_ENTITY:O++,OPEN_WAKA:O++,SGML_DECL:O++,SGML_DECL_QUOTED:O++,DOCTYPE:O++,DOCTYPE_QUOTED:O++,DOCTYPE_DTD:O++,DOCTYPE_DTD_QUOTED:O++,COMMENT_STARTING:O++,COMMENT:O++,COMMENT_ENDING:O++,COMMENT_ENDED:O++,CDATA:O++,CDATA_ENDING:O++,CDATA_ENDING_2:O++,PROC_INST:O++,PROC_INST_BODY:O++,PROC_INST_ENDING:O++,OPEN_TAG:O++,OPEN_TAG_SLASH:O++,ATTRIB:O++,ATTRIB_NAME:O++,ATTRIB_NAME_SAW_WHITE:O++,ATTRIB_VALUE:O++,ATTRIB_VALUE_QUOTED:O++,ATTRIB_VALUE_CLOSED:O++,ATTRIB_VALUE_UNQUOTED:O++,ATTRIB_VALUE_ENTITY_Q:O++,ATTRIB_VALUE_ENTITY_U:O++,CLOSE_TAG:O++,CLOSE_TAG_SAW_WHITE:O++,SCRIPT:O++,SCRIPT_ENDING:O++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var a=e.ENTITIES[t],r="number"==typeof a?String.fromCharCode(a):a;e.ENTITIES[t]=r})),e.STATE)e.STATE[e.STATE[C]]=C;function S(e,t,a){e[t]&&e[t](a)}function E(e,t,a){e.textNode&&_(e),S(e,t,a)}function _(e){e.textNode=I(e.opt,e.textNode),e.textNode&&S(e,"ontext",e.textNode),e.textNode=""}function I(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function A(e,t){return _(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,S(e,"onerror",t),e}function x(e){return e.sawRoot&&!e.closedRoot&&F(e,"Unclosed root tag"),e.state!==O.BEGIN&&e.state!==O.BEGIN_WHITESPACE&&e.state!==O.TEXT&&A(e,"Unexpected end"),_(e),e.c="",e.closed=!0,S(e,"onend"),n.call(e,e.strict,e.opt),e}function F(e,t){if("object"!=typeof e||!(e instanceof n))throw new Error("bad call to strictFail");e.strict&&A(e,t)}function N(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,a=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(a.ns=t.ns),e.attribList.length=0,E(e,"onopentagstart",a)}function R(e,t){var a=e.indexOf(":")<0?["",e]:e.split(":"),r=a[0],n=a[1];return t&&"xmlns"===e&&(r="xmlns",n=""),{prefix:r,local:n}}function w(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=R(e.attribName,!0),a=t.prefix,r=t.local;if("xmlns"===a)if("xml"===r&&e.attribValue!==s)F(e,"xml: prefix must be bound to "+s+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==c)F(e,"xmlns: prefix must be bound to "+c+"\nActual: "+e.attribValue);else{var n=e.tag,i=e.tags[e.tags.length-1]||e;n.ns===i.ns&&(n.ns=Object.create(i.ns)),n.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,E(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function D(e,t){if(e.opt.xmlns){var a=e.tag,r=R(e.tagName);a.prefix=r.prefix,a.local=r.local,a.uri=a.ns[r.prefix]||"",a.prefix&&!a.uri&&(F(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),a.uri=r.prefix);var n=e.tags[e.tags.length-1]||e;a.ns&&n.ns!==a.ns&&Object.keys(a.ns).forEach((function(t){E(e,"onopennamespace",{prefix:t,uri:a.ns[t]})}));for(var i=0,o=e.attribList.length;i<o;i++){var s=e.attribList[i],c=s[0],l=s[1],u=R(c,!0),p=u.prefix,f=u.local,d=""===p?"":a.ns[p]||"",m={name:c,value:l,prefix:p,local:f,uri:d};p&&"xmlns"!==p&&!d&&(F(e,"Unbound namespace prefix: "+JSON.stringify(p)),m.uri=p),e.tag.attributes[c]=m,E(e,"onattribute",m)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),E(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=O.TEXT:e.state=O.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function j(e){if(!e.tagName)return F(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=O.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=O.SCRIPT);E(e,"onscript",e.script),e.script=""}var t=e.tags.length,a=e.tagName;e.strict||(a=a[e.looseCase]());for(var r=a;t--;){if(e.tags[t].name===r)break;F(e,"Unexpected close tag")}if(t<0)return F(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=O.TEXT);e.tagName=a;for(var n=e.tags.length;n-- >t;){var i=e.tag=e.tags.pop();e.tagName=e.tag.name,E(e,"onclosetag",e.tagName);var o={};for(var s in i.ns)o[s]=i.ns[s];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&i.ns!==c.ns&&Object.keys(i.ns).forEach((function(t){var a=i.ns[t];E(e,"onclosenamespace",{prefix:t,uri:a})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=O.TEXT}function V(e){var t,a=e.entity,r=a.toLowerCase(),n="";return e.ENTITIES[a]?e.ENTITIES[a]:e.ENTITIES[r]?e.ENTITIES[r]:("#"===(a=r).charAt(0)&&("x"===a.charAt(1)?(a=a.slice(2),n=(t=parseInt(a,16)).toString(16)):(a=a.slice(1),n=(t=parseInt(a,10)).toString(10))),a=a.replace(/^0+/,""),isNaN(t)||n.toLowerCase()!==a?(F(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function L(e,t){"<"===t?(e.state=O.OPEN_WAKA,e.startTagPosition=e.position):m(t)||(F(e,"Non-whitespace before first tag."),e.textNode=t,e.state=O.TEXT)}function k(e,t){var a="";return t<e.length&&(a=e.charAt(t)),a}O=e.STATE,String.fromCodePoint||(b=String.fromCharCode,P=Math.floor,T=function(){var e,t,a=16384,r=[],n=-1,i=arguments.length;if(!i)return"";for(var o="";++n<i;){var s=Number(arguments[n]);if(!isFinite(s)||s<0||s>1114111||P(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(e=55296+((s-=65536)>>10),t=s%1024+56320,r.push(e,t)),(n+1===i||r.length>a)&&(o+=b.apply(null,r),r.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:T,configurable:!0,writable:!0}):String.fromCodePoint=T)}(t)},5858:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,n=1;n<r;++n)t[n]=t[n].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function a(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function n(e){return e.toUpperCase()}function i(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function o(e,t){var a=e;if(t)for(var r in t)a[r]=t[r];return a}function s(e){var r="[A-Za-z]",n="[0-9]",i=t(n,"[A-Fa-f]"),o=a(a("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+a("%[89A-Fa-f]"+i+"%"+i+i)+"|"+a("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(r,n,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),p=a(r+t(r,n,"[\\+\\-\\.]")+"*"),f=a(a(o+"|"+t(u,s,"[\\:]"))+"*"),d=(a(a("25[0-5]")+"|"+a("2[0-4]"+n)+"|"+a("1"+n+n)+"|"+a("[1-9]"+n)+"|"+n),a(a("25[0-5]")+"|"+a("2[0-4]"+n)+"|"+a("1"+n+n)+"|"+a("0?[1-9]"+n)+"|0?0?"+n)),m=a(d+"\\."+d+"\\."+d+"\\."+d),h=a(i+"{1,4}"),g=a(a(h+"\\:"+h)+"|"+m),y=a(a(h+"\\:")+"{6}"+g),v=a("\\:\\:"+a(h+"\\:")+"{5}"+g),b=a(a(h)+"?\\:\\:"+a(h+"\\:")+"{4}"+g),P=a(a(a(h+"\\:")+"{0,1}"+h)+"?\\:\\:"+a(h+"\\:")+"{3}"+g),T=a(a(a(h+"\\:")+"{0,2}"+h)+"?\\:\\:"+a(h+"\\:")+"{2}"+g),O=a(a(a(h+"\\:")+"{0,3}"+h)+"?\\:\\:"+h+"\\:"+g),C=a(a(a(h+"\\:")+"{0,4}"+h)+"?\\:\\:"+g),S=a(a(a(h+"\\:")+"{0,5}"+h)+"?\\:\\:"+h),E=a(a(a(h+"\\:")+"{0,6}"+h)+"?\\:\\:"),_=a([y,v,b,P,T,O,C,S,E].join("|")),I=a(a(u+"|"+o)+"+"),A=(a(_+"\\%25"+I),a(_+a("\\%25|\\%(?!"+i+"{2})")+I)),x=a("[vV]"+i+"+\\."+t(u,s,"[\\:]")+"+"),F=a("\\["+a(A+"|"+_+"|"+x)+"\\]"),N=a(a(o+"|"+t(u,s))+"*"),R=a(F+"|"+m+"(?!"+N+")|"+N),w=a(n+"*"),D=a(a(f+"@")+"?"+R+a("\\:"+w)+"?"),j=a(o+"|"+t(u,s,"[\\:\\@]")),V=a(j+"*"),L=a(j+"+"),k=a(a(o+"|"+t(u,s,"[\\@]"))+"+"),M=a(a("\\/"+V)+"*"),$=a("\\/"+a(L+M)+"?"),U=a(k+M),B=a(L+M),K="(?!"+j+")",Q=(a(M+"|"+$+"|"+U+"|"+B+"|"+K),a(a(j+"|"+t("[\\/\\?]",l))+"*")),H=a(a(j+"|[\\/\\?]")+"*"),J=a(a("\\/\\/"+D+M)+"|"+$+"|"+B+"|"+K),q=a(p+"\\:"+J+a("\\?"+Q)+"?"+a("\\#"+H)+"?"),G=a(a("\\/\\/"+D+M)+"|"+$+"|"+U+"|"+K),z=a(G+a("\\?"+Q)+"?"+a("\\#"+H)+"?");return a(q+"|"+z),a(p+"\\:"+J+a("\\?"+Q)+"?"),a(a("\\/\\/("+a("("+f+")@")+"?("+R+")"+a("\\:("+w+")")+"?)")+"?("+M+"|"+$+"|"+B+"|"+K+")"),a("\\?("+Q+")"),a("\\#("+H+")"),a(a("\\/\\/("+a("("+f+")@")+"?("+R+")"+a("\\:("+w+")")+"?)")+"?("+M+"|"+$+"|"+U+"|"+K+")"),a("\\?("+Q+")"),a("\\#("+H+")"),a(a("\\/\\/("+a("("+f+")@")+"?("+R+")"+a("\\:("+w+")")+"?)")+"?("+M+"|"+$+"|"+B+"|"+K+")"),a("\\?("+Q+")"),a("\\#("+H+")"),a("("+f+")@"),a("\\:("+w+")"),{NOT_SCHEME:new RegExp(t("[^]",r,n,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,s),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+m+")$"),IPV6ADDRESS:new RegExp("^\\[?("+_+")"+a(a("\\%25|\\%(?!"+i+"{2})")+"("+I+")")+"?\\]?$")}}var c=s(!1),l=s(!0),u=function(){function e(e,t){var a=[],r=!0,n=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(a.push(o.value),!t||a.length!==t);r=!0);}catch(e){n=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(n)throw i}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)},f=2147483647,d=36,m=1,h=26,g=38,y=700,v=72,b=128,P="-",T=/^xn--/,O=/[^\0-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=d-m,_=Math.floor,I=String.fromCharCode;function A(e){throw new RangeError(S[e])}function x(e,t){for(var a=[],r=e.length;r--;)a[r]=t(e[r]);return a}function F(e,t){var a=e.split("@"),r="";return a.length>1&&(r=a[0]+"@",e=a[1]),r+x((e=e.replace(C,".")).split("."),t).join(".")}function N(e){for(var t=[],a=0,r=e.length;a<r;){var n=e.charCodeAt(a++);if(n>=55296&&n<=56319&&a<r){var i=e.charCodeAt(a++);56320==(64512&i)?t.push(((1023&n)<<10)+(1023&i)+65536):(t.push(n),a--)}else t.push(n)}return t}var R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:d},w=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},D=function(e,t,a){var r=0;for(e=a?_(e/y):e>>1,e+=_(e/t);e>E*h>>1;r+=d)e=_(e/E);return _(r+(E+1)*e/(e+g))},j=function(e){var t=[],a=e.length,r=0,n=b,i=v,o=e.lastIndexOf(P);o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&A("not-basic"),t.push(e.charCodeAt(s));for(var c=o>0?o+1:0;c<a;){for(var l=r,u=1,p=d;;p+=d){c>=a&&A("invalid-input");var g=R(e.charCodeAt(c++));(g>=d||g>_((f-r)/u))&&A("overflow"),r+=g*u;var y=p<=i?m:p>=i+h?h:p-i;if(g<y)break;var T=d-y;u>_(f/T)&&A("overflow"),u*=T}var O=t.length+1;i=D(r-l,O,0==l),_(r/O)>f-n&&A("overflow"),n+=_(r/O),r%=O,t.splice(r++,0,n)}return String.fromCodePoint.apply(String,t)},V=function(e){var t=[],a=(e=N(e)).length,r=b,n=0,i=v,o=!0,s=!1,c=void 0;try{for(var l,u=e[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var p=l.value;p<128&&t.push(I(p))}}catch(e){s=!0,c=e}finally{try{!o&&u.return&&u.return()}finally{if(s)throw c}}var g=t.length,y=g;for(g&&t.push(P);y<a;){var T=f,O=!0,C=!1,S=void 0;try{for(var E,x=e[Symbol.iterator]();!(O=(E=x.next()).done);O=!0){var F=E.value;F>=r&&F<T&&(T=F)}}catch(e){C=!0,S=e}finally{try{!O&&x.return&&x.return()}finally{if(C)throw S}}var R=y+1;T-r>_((f-n)/R)&&A("overflow"),n+=(T-r)*R,r=T;var j=!0,V=!1,L=void 0;try{for(var k,M=e[Symbol.iterator]();!(j=(k=M.next()).done);j=!0){var $=k.value;if($<r&&++n>f&&A("overflow"),$==r){for(var U=n,B=d;;B+=d){var K=B<=i?m:B>=i+h?h:B-i;if(U<K)break;var Q=U-K,H=d-K;t.push(I(w(K+Q%H,0))),U=_(Q/H)}t.push(I(w(U,0))),i=D(n,R,y==g),n=0,++y}}}catch(e){V=!0,L=e}finally{try{!j&&M.return&&M.return()}finally{if(V)throw L}}++n,++r}return t.join("")},L=function(e){return F(e,(function(e){return T.test(e)?j(e.slice(4).toLowerCase()):e}))},k=function(e){return F(e,(function(e){return O.test(e)?"xn--"+V(e):e}))},M={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,p(e))}},decode:j,encode:V,toASCII:k,toUnicode:L},$={};function U(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function B(e){for(var t="",a=0,r=e.length;a<r;){var n=parseInt(e.substr(a+1,2),16);if(n<128)t+=String.fromCharCode(n),a+=3;else if(n>=194&&n<224){if(r-a>=6){var i=parseInt(e.substr(a+4,2),16);t+=String.fromCharCode((31&n)<<6|63&i)}else t+=e.substr(a,6);a+=6}else if(n>=224){if(r-a>=9){var o=parseInt(e.substr(a+4,2),16),s=parseInt(e.substr(a+7,2),16);t+=String.fromCharCode((15&n)<<12|(63&o)<<6|63&s)}else t+=e.substr(a,9);a+=9}else t+=e.substr(a,3),a+=3}return t}function K(e,t){function a(e){var a=B(e);return a.match(t.UNRESERVED)?a:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,a).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,a).replace(t.NOT_USERINFO,U).replace(t.PCT_ENCODED,n)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,a).toLowerCase().replace(t.NOT_HOST,U).replace(t.PCT_ENCODED,n)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,a).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,U).replace(t.PCT_ENCODED,n)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,a).replace(t.NOT_QUERY,U).replace(t.PCT_ENCODED,n)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,a).replace(t.NOT_FRAGMENT,U).replace(t.PCT_ENCODED,n)),e}function Q(e){return e.replace(/^0*(.*)/,"$1")||"0"}function H(e,t){var a=e.match(t.IPV4ADDRESS)||[],r=u(a,2)[1];return r?r.split(".").map(Q).join("."):e}function J(e,t){var a=e.match(t.IPV6ADDRESS)||[],r=u(a,3),n=r[1],i=r[2];if(n){for(var o=n.toLowerCase().split("::").reverse(),s=u(o,2),c=s[0],l=s[1],p=l?l.split(":").map(Q):[],f=c.split(":").map(Q),d=t.IPV4ADDRESS.test(f[f.length-1]),m=d?7:8,h=f.length-m,g=Array(m),y=0;y<m;++y)g[y]=p[y]||f[h+y]||"";d&&(g[m-1]=H(g[m-1],t));var v=g.reduce((function(e,t,a){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===a?r.length++:e.push({index:a,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(v&&v.length>1){var P=g.slice(0,v.index),T=g.slice(v.index+v.length);b=P.join(":")+"::"+T.join(":")}else b=g.join(":");return i&&(b+="%"+i),b}return e}var q=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={},r=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var n=e.match(q);if(n){G?(a.scheme=n[1],a.userinfo=n[3],a.host=n[4],a.port=parseInt(n[5],10),a.path=n[6]||"",a.query=n[7],a.fragment=n[8],isNaN(a.port)&&(a.port=n[5])):(a.scheme=n[1]||void 0,a.userinfo=-1!==e.indexOf("@")?n[3]:void 0,a.host=-1!==e.indexOf("//")?n[4]:void 0,a.port=parseInt(n[5],10),a.path=n[6]||"",a.query=-1!==e.indexOf("?")?n[7]:void 0,a.fragment=-1!==e.indexOf("#")?n[8]:void 0,isNaN(a.port)&&(a.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?n[4]:void 0)),a.host&&(a.host=J(H(a.host,r),r)),void 0!==a.scheme||void 0!==a.userinfo||void 0!==a.host||void 0!==a.port||a.path||void 0!==a.query?void 0===a.scheme?a.reference="relative":void 0===a.fragment?a.reference="absolute":a.reference="uri":a.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==a.reference&&(a.error=a.error||"URI is not a "+t.reference+" reference.");var i=$[(t.scheme||a.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)K(a,r);else{if(a.host&&(t.domainHost||i&&i.domainHost))try{a.host=M.toASCII(a.host.replace(r.PCT_ENCODED,B).toLowerCase())}catch(e){a.error=a.error||"Host's domain name can not be converted to ASCII via punycode: "+e}K(a,c)}i&&i.parse&&i.parse(a,t)}else a.error=a.error||"URI can not be parsed.";return a}function W(e,t){var a=!1!==t.iri?l:c,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(J(H(String(e.host),a),a).replace(a.IPV6ADDRESS,(function(e,t,a){return"["+t+(a?"%25"+a:"")+"]"}))),"number"==typeof e.port&&(r.push(":"),r.push(e.port.toString(10))),r.length?r.join(""):void 0}var X=/^\.\.?\//,Y=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Y))e=e.replace(Y,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var a=e.match(ee);if(!a)throw new Error("Unexpected dot segment condition");var r=a[0];e=e.slice(r.length),t.push(r)}return t.join("")}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.iri?l:c,r=[],n=$[(t.scheme||e.scheme||"").toLowerCase()];if(n&&n.serialize&&n.serialize(e,t),e.host)if(a.IPV6ADDRESS.test(e.host));else if(t.domainHost||n&&n.domainHost)try{e.host=t.iri?M.toUnicode(e.host):M.toASCII(e.host.replace(a.PCT_ENCODED,B).toLowerCase())}catch(a){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+a}K(e,a),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=W(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var o=e.path;t.absolutePath||n&&n.absolutePath||(o=te(o)),void 0===i&&(o=o.replace(/^\/\//,"/%2F")),r.push(o)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function re(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=z(ae(e,a),a),t=z(ae(t,a),a)),!(a=a||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=te(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function ne(e,t,a){var r=o({scheme:"null"},a);return ae(re(z(e,r),z(t,r),r,!0),r)}function ie(e,t){return"string"==typeof e?e=ae(z(e,t),t):"object"===r(e)&&(e=z(ae(e,t),t)),e}function oe(e,t,a){return"string"==typeof e?e=ae(z(e,a),a):"object"===r(e)&&(e=ae(e,a)),"string"==typeof t?t=ae(z(t,a),a):"object"===r(t)&&(t=ae(t,a)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,U)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,B)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ue={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize},pe={},fe="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",de="[0-9A-Fa-f]",me=a(a("%[EFef]"+de+"%"+de+de+"%"+de+de)+"|"+a("%[89A-Fa-f]"+de+"%"+de+de)+"|"+a("%"+de+de)),he="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ge=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ye="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ve=new RegExp(fe,"g"),be=new RegExp(me,"g"),Pe=new RegExp(t("[^]",he,"[\\.]",'[\\"]',ge),"g"),Te=new RegExp(t("[^]",fe,ye),"g"),Oe=Te;function Ce(e){var t=B(e);return t.match(ve)?t:e}var Se={scheme:"mailto",parse:function(e,t){var a=e,r=a.to=a.path?a.path.split(","):[];if(a.path=void 0,a.query){for(var n=!1,i={},o=a.query.split("&"),s=0,c=o.length;s<c;++s){var l=o[s].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),p=0,f=u.length;p<f;++p)r.push(u[p]);break;case"subject":a.subject=ce(l[1],t);break;case"body":a.body=ce(l[1],t);break;default:n=!0,i[ce(l[0],t)]=ce(l[1],t)}}n&&(a.headers=i)}a.query=void 0;for(var d=0,m=r.length;d<m;++d){var h=r[d].split("@");if(h[0]=ce(h[0]),t.unicodeSupport)h[1]=ce(h[1],t).toLowerCase();else try{h[1]=M.toASCII(ce(h[1],t).toLowerCase())}catch(e){a.error=a.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[d]=h.join("@")}return a},serialize:function(e,t){var a=e,r=i(e.to);if(r){for(var o=0,s=r.length;o<s;++o){var c=String(r[o]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(be,Ce).replace(be,n).replace(Pe,U),p=c.slice(l+1);try{p=t.iri?M.toUnicode(p):M.toASCII(ce(p,t).toLowerCase())}catch(e){a.error=a.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}r[o]=u+"@"+p}a.path=r.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var d=[];for(var m in f)f[m]!==pe[m]&&d.push(m.replace(be,Ce).replace(be,n).replace(Te,U)+"="+f[m].replace(be,Ce).replace(be,n).replace(Oe,U));return d.length&&(a.query=d.join("&")),a}},Ee=/^([^\:]+)\:(.*)/,_e={scheme:"urn",parse:function(e,t){var a=e.path&&e.path.match(Ee),r=e;if(a){var n=t.scheme||r.scheme||"urn",i=a[1].toLowerCase(),o=a[2],s=n+":"+(t.nid||i),c=$[s];r.nid=i,r.nss=o,r.path=void 0,c&&(r=c.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var a=t.scheme||e.scheme||"urn",r=e.nid,n=a+":"+(t.nid||r),i=$[n];i&&(e=i.serialize(e,t));var o=e,s=e.nss;return o.path=(r||t.nid)+":"+s,o}},Ie=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ae={scheme:"urn:uuid",parse:function(e,t){var a=e;return a.uuid=a.nss,a.nss=void 0,t.tolerant||a.uuid&&a.uuid.match(Ie)||(a.error=a.error||"UUID is not valid."),a},serialize:function(e,t){var a=e;return a.nss=(e.uuid||"").toLowerCase(),a}};$[le.scheme]=le,$[ue.scheme]=ue,$[Se.scheme]=Se,$[_e.scheme]=_e,$[Ae.scheme]=Ae,e.SCHEMES=$,e.pctEncChar=U,e.pctDecChars=B,e.parse=z,e.removeDotSegments=te,e.serialize=ae,e.resolveComponents=re,e.resolve=ne,e.normalize=ie,e.equal=oe,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)},7725:e=>{e.exports={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}}},4139:(e,t,a)=>{var r=a(5707),n=a(4096),i=a(2160),o=a(1473);e.exports={xml2js:r,xml2json:n,js2xml:i,json2xml:o}},2160:(e,t,a)=>{var r,n,i=a(4314),o=a(7725).isArray;function s(e,t,a){return(!a&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function c(e,t,a){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,n,r));var i,o,c,l,u=[];for(i in e)e.hasOwnProperty(i)&&null!==e[i]&&void 0!==e[i]&&(l=t.noQuotesForNativeAttributes&&"string"!=typeof e[i]?"":'"',o=(o=""+e[i]).replace(/"/g,"""),c="attributeNameFn"in t?t.attributeNameFn(i,o,n,r):i,u.push(t.spaces&&t.indentAttributes?s(t,a+1,!1):" "),u.push(c+"="+l+("attributeValueFn"in t?t.attributeValueFn(o,i,n,r):o)+l));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&u.push(s(t,a,!1)),u.join("")}function l(e,t,a){return r=e,n="xml",t.ignoreDeclaration?"":"<?xml"+c(e[t.attributesKey],t,a)+"?>"}function u(e,t,a){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var o="instructionNameFn"in t?t.instructionNameFn(i,e[i],n,r):i;if("object"==typeof e[i])return r=e,n=o,"<?"+o+c(e[i][t.attributesKey],t,a)+"?>";var s=e[i]?e[i]:"";return"instructionFn"in t&&(s=t.instructionFn(s,i,n,r)),"<?"+o+(s?" "+s:"")+"?>"}function p(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,n,r):e)+"--\x3e"}function f(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,n,r):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function d(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,n,r):e)+">"}function m(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&/g,"&")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,n,r):e)}function h(e,t,a,i){return e.reduce((function(e,o){var l=s(t,a,i&&!e);switch(o.type){case"element":return e+l+function(e,t,a){r=e,n=e.name;var i=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+o),e[t.attributesKey]&&i.push(c(e[t.attributesKey],t,a));var s=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&"preserve"===e[t.attributesKey]["xml:space"];return s||(s="fullTagEmptyElementFn"in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement),s?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(h(e[t.elementsKey],t,a+1)),r=e,n=e.name),i.push(t.spaces&&function(e,t){var a;if(e.elements&&e.elements.length)for(a=0;a<e.elements.length;++a)switch(e.elements[a][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":default:return!0}return!1}(e,t)?"\n"+Array(a+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}(o,t,a);case"comment":return e+l+p(o[t.commentKey],t);case"doctype":return e+l+d(o[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?l:"")+f(o[t.cdataKey],t);case"text":return e+(t.indentText?l:"")+m(o[t.textKey],t);case"instruction":var g={};return g[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],e+(t.indentInstruction?l:"")+u(g,t,a)}}),"")}function g(e,t,a){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||a)return!0;break;case t.cdataKey:if(t.indentCdata||a)return!0;break;case t.instructionKey:if(t.indentInstruction||a)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}function y(e,t,a,i,o){r=e,n=t;var l="elementNameFn"in a?a.elementNameFn(t,e):t;if(null==e||""===e)return"fullTagEmptyElementFn"in a&&a.fullTagEmptyElementFn(t,e)||a.fullTagEmptyElement?"<"+l+"></"+l+">":"<"+l+"/>";var u=[];if(t){if(u.push("<"+l),"object"!=typeof e)return u.push(">"+m(e,a)+"</"+l+">"),u.join("");e[a.attributesKey]&&u.push(c(e[a.attributesKey],a,i));var p=g(e,a,!0)||e[a.attributesKey]&&"preserve"===e[a.attributesKey]["xml:space"];if(p||(p="fullTagEmptyElementFn"in a?a.fullTagEmptyElementFn(t,e):a.fullTagEmptyElement),!p)return u.push("/>"),u.join("");u.push(">")}return u.push(v(e,a,i+1,!1)),r=e,n=t,t&&u.push((o?s(a,i,!1):"")+"</"+l+">"),u.join("")}function v(e,t,a,r){var n,i,c,h=[];for(i in e)if(e.hasOwnProperty(i))for(c=o(e[i])?e[i]:[e[i]],n=0;n<c.length;++n){switch(i){case t.declarationKey:h.push(l(c[n],t,a));break;case t.instructionKey:h.push((t.indentInstruction?s(t,a,r):"")+u(c[n],t,a));break;case t.attributesKey:case t.parentKey:break;case t.textKey:h.push((t.indentText?s(t,a,r):"")+m(c[n],t));break;case t.cdataKey:h.push((t.indentCdata?s(t,a,r):"")+f(c[n],t));break;case t.doctypeKey:h.push(s(t,a,r)+d(c[n],t));break;case t.commentKey:h.push(s(t,a,r)+p(c[n],t));break;default:h.push(s(t,a,r)+y(c[n],i,t,a,g(c[n],t)))}r=r&&!h.length}return h.join("")}e.exports=function(e,t){t=function(e){var t=i.copyOptions(e);return i.ensureFlagExists("ignoreDeclaration",t),i.ensureFlagExists("ignoreInstruction",t),i.ensureFlagExists("ignoreAttributes",t),i.ensureFlagExists("ignoreText",t),i.ensureFlagExists("ignoreComment",t),i.ensureFlagExists("ignoreCdata",t),i.ensureFlagExists("ignoreDoctype",t),i.ensureFlagExists("compact",t),i.ensureFlagExists("indentText",t),i.ensureFlagExists("indentCdata",t),i.ensureFlagExists("indentAttributes",t),i.ensureFlagExists("indentInstruction",t),i.ensureFlagExists("fullTagEmptyElement",t),i.ensureFlagExists("noQuotesForNativeAttributes",t),i.ensureSpacesExists(t),"number"==typeof t.spaces&&(t.spaces=Array(t.spaces+1).join(" ")),i.ensureKeyExists("declaration",t),i.ensureKeyExists("instruction",t),i.ensureKeyExists("attributes",t),i.ensureKeyExists("text",t),i.ensureKeyExists("comment",t),i.ensureKeyExists("cdata",t),i.ensureKeyExists("doctype",t),i.ensureKeyExists("type",t),i.ensureKeyExists("name",t),i.ensureKeyExists("elements",t),i.checkFnExists("doctype",t),i.checkFnExists("instruction",t),i.checkFnExists("cdata",t),i.checkFnExists("comment",t),i.checkFnExists("text",t),i.checkFnExists("instructionName",t),i.checkFnExists("elementName",t),i.checkFnExists("attributeName",t),i.checkFnExists("attributeValue",t),i.checkFnExists("attributes",t),i.checkFnExists("fullTagEmptyElement",t),t}(t);var a=[];return r=e,n="_root_",t.compact?a.push(v(e,t,0,!0)):(e[t.declarationKey]&&a.push(l(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&a.push(h(e[t.elementsKey],t,0,!a.length))),a.join("")}},1473:(e,t,a)=>{var r=a(2160);e.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var a=null;if("string"==typeof e)try{a=JSON.parse(e)}catch(e){throw new Error("The JSON structure is invalid")}else a=e;return r(a,t)}},4314:(e,t,a)=>{var r=a(7725).isArray;e.exports={copyOptions:function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);return a},ensureFlagExists:function(e,t){e in t&&"boolean"==typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!=typeof e.spaces&&"string"!=typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"==typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},5707:(e,t,a)=>{var r,n,i=a(9871),o=a(4314),s=a(7725).isArray;function c(e){var t=Number(e);if(!isNaN(t))return t;var a=e.toLowerCase();return"true"===a||"false"!==a&&e}function l(e,t){var a;if(r.compact){if(!n[r[e+"Key"]]&&(s(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(n[r[e+"Key"]]=[]),n[r[e+"Key"]]&&!s(n[r[e+"Key"]])&&(n[r[e+"Key"]]=[n[r[e+"Key"]]]),e+"Fn"in r&&"string"==typeof t&&(t=r[e+"Fn"](t,n)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r))for(a in t)if(t.hasOwnProperty(a))if("instructionFn"in r)t[a]=r.instructionFn(t[a],a,n);else{var i=t[a];delete t[a],t[r.instructionNameFn(a,i,n)]=i}s(n[r[e+"Key"]])?n[r[e+"Key"]].push(t):n[r[e+"Key"]]=t}else{n[r.elementsKey]||(n[r.elementsKey]=[]);var o={};if(o[r.typeKey]=e,"instruction"===e){for(a in t)if(t.hasOwnProperty(a))break;o[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(a,t,n):a,r.instructionHasAttributes?(o[r.attributesKey]=t[a][r.attributesKey],"instructionFn"in r&&(o[r.attributesKey]=r.instructionFn(o[r.attributesKey],a,n))):("instructionFn"in r&&(t[a]=r.instructionFn(t[a],a,n)),o[r.instructionKey]=t[a])}else e+"Fn"in r&&(t=r[e+"Fn"](t,n)),o[r[e+"Key"]]=t;r.addParent&&(o[r.parentKey]=n),n[r.elementsKey].push(o)}}function u(e){var t;if("attributesFn"in r&&e&&(e=r.attributesFn(e,n)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=c(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,n)),"attributeNameFn"in r)){var a=e[t];delete e[t],e[r.attributeNameFn(t,e[t],n)]=a}return e}function p(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){for(var a,i=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(a=i.exec(e.body));)t[a[1]]=a[2]||a[3]||a[4];t=u(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;n[r.declarationKey]={},Object.keys(t).length&&(n[r.declarationKey][r.attributesKey]=t),r.addParent&&(n[r.declarationKey][r.parentKey]=n)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var o={};r.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][r.attributesKey]=t):o[e.name]=e.body,l("instruction",o)}}function f(e,t){var a;if("object"==typeof e&&(t=e.attributes,e=e.name),t=u(t),"elementNameFn"in r&&(e=r.elementNameFn(e,n)),r.compact){var i;if(a={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(i in a[r.attributesKey]={},t)t.hasOwnProperty(i)&&(a[r.attributesKey][i]=t[i]);!(e in n)&&(s(r.alwaysArray)?-1!==r.alwaysArray.indexOf(e):r.alwaysArray)&&(n[e]=[]),n[e]&&!s(n[e])&&(n[e]=[n[e]]),s(n[e])?n[e].push(a):n[e]=a}else n[r.elementsKey]||(n[r.elementsKey]=[]),(a={})[r.typeKey]="element",a[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(a[r.attributesKey]=t),r.alwaysChildren&&(a[r.elementsKey]=[]),n[r.elementsKey].push(a);a[r.parentKey]=n,n=a}function d(e){r.ignoreText||(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=c(e)),r.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),l("text",e))}function m(e){r.ignoreComment||(r.trim&&(e=e.trim()),l("comment",e))}function h(e){var t=n[r.parentKey];r.addParent||delete n[r.parentKey],n=t}function g(e){r.ignoreCdata||(r.trim&&(e=e.trim()),l("cdata",e))}function y(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),l("doctype",e))}function v(e){e.note=e}e.exports=function(e,t){var a=i.parser(!0,{}),s={};if(n=s,r=function(e){return r=o.copyOptions(e),o.ensureFlagExists("ignoreDeclaration",r),o.ensureFlagExists("ignoreInstruction",r),o.ensureFlagExists("ignoreAttributes",r),o.ensureFlagExists("ignoreText",r),o.ensureFlagExists("ignoreComment",r),o.ensureFlagExists("ignoreCdata",r),o.ensureFlagExists("ignoreDoctype",r),o.ensureFlagExists("compact",r),o.ensureFlagExists("alwaysChildren",r),o.ensureFlagExists("addParent",r),o.ensureFlagExists("trim",r),o.ensureFlagExists("nativeType",r),o.ensureFlagExists("nativeTypeAttributes",r),o.ensureFlagExists("sanitize",r),o.ensureFlagExists("instructionHasAttributes",r),o.ensureFlagExists("captureSpacesBetweenElements",r),o.ensureAlwaysArrayExists(r),o.ensureKeyExists("declaration",r),o.ensureKeyExists("instruction",r),o.ensureKeyExists("attributes",r),o.ensureKeyExists("text",r),o.ensureKeyExists("comment",r),o.ensureKeyExists("cdata",r),o.ensureKeyExists("doctype",r),o.ensureKeyExists("type",r),o.ensureKeyExists("name",r),o.ensureKeyExists("elements",r),o.ensureKeyExists("parent",r),o.checkFnExists("doctype",r),o.checkFnExists("instruction",r),o.checkFnExists("cdata",r),o.checkFnExists("comment",r),o.checkFnExists("text",r),o.checkFnExists("instructionName",r),o.checkFnExists("elementName",r),o.checkFnExists("attributeName",r),o.checkFnExists("attributeValue",r),o.checkFnExists("attributes",r),r}(t),a.opt={strictEntities:!0},a.onopentag=f,a.ontext=d,a.oncomment=m,a.onclosetag=h,a.onerror=v,a.oncdata=g,a.ondoctype=y,a.onprocessinginstruction=p,a.write(e).close(),s[r.elementsKey]){var c=s[r.elementsKey];delete s[r.elementsKey],s[r.elementsKey]=c,delete s.text}return s}},4096:(e,t,a)=>{var r=a(4314),n=a(5707);e.exports=function(e,t){var a,i,o;return a=function(e){var t=r.copyOptions(e);return r.ensureSpacesExists(t),t}(t),i=n(e,a),o="compact"in a&&a.compact?"_parent":"parent",("addParent"in a&&a.addParent?JSON.stringify(i,(function(e,t){return e===o?"_":t}),a.spaces):JSON.stringify(i,null,a.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},1097:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(4681),n=a(3435),i=a(1918),o=a(2432),s=a(4330),c=a(5008);var l=a(3435);t.getGenericSchema=l.getGenericSchema,t.generateSchema=function(e){let t;if(e[r.FioriElementsVersion.v2]){const a=e[r.FioriElementsVersion.v2];if(a[n.SchemaType.ListReport]){const{genericSchema:e,entitySet:r,annotations:o,manifest:s,fragments:c}=a[n.SchemaType.ListReport];t=i.generateListReportInterfaceV2(e,r,o,s,c)}else if(a[n.SchemaType.ObjectPage]){const{genericSchema:e,entitySet:r,annotations:o,manifest:s,fragments:c}=a[n.SchemaType.ObjectPage];t=i.generateObjectPageInterfaceV2(e,r,o,s,c)}else if(a[n.SchemaType.OverviewPage]){const{genericSchema:e,manifest:r}=a[n.SchemaType.OverviewPage];t=i.generateOVPInterfaceV2(e,r)}else if(a[n.SchemaType.AnalyticalListPage]){const{genericSchema:e,entitySet:r,annotations:o,manifest:s,fragments:c}=a[n.SchemaType.AnalyticalListPage];t=i.generateAnalyticalListPageInterfaceV2(e,r,o,s,c)}}return t},t.exportConfig=function(e){let t;const a={ui5Version:e.ui5Version,layer:e.layer};if(e[r.FioriElementsVersion.v2]){const n=e[r.FioriElementsVersion.v2];t=o.exportPageV2(n,a)}return t},t.importConfig=function(e){let t;if(e[r.FioriElementsVersion.v2]){const a=e[r.FioriElementsVersion.v2];if(a[n.SchemaType.ListReport]){const{manifest:e,flex:r,jsonSchema:i,fragments:o,logger:c}=a[n.SchemaType.ListReport];t=s.createListReportConfig(e,r,i,o,c)}else if(a[n.SchemaType.ObjectPage]){const{manifest:e,flex:r,jsonSchema:i,entitySet:o,fragments:c,logger:l}=a[n.SchemaType.ObjectPage];t=s.createObjectPageConfig(e,r,i,o,c,l)}else if(a[n.SchemaType.OverviewPage]){const{manifest:e,jsonSchema:r}=a[n.SchemaType.OverviewPage];t=s.createOverviewPageConfig(e,r)}else if(a[n.SchemaType.AnalyticalListPage]){const{manifest:e,flex:r,jsonSchema:i,fragments:o,logger:c}=a[n.SchemaType.AnalyticalListPage];t=s.createAnalyticalListPageConfig(e,r,i,o,c)}}return t},t.importProject=async function(e){return await c.importProjectSchemaAndConfig(e)},t.importProjectSchema=async function(e){return await c.importProjectSchema(e)},t.getApiVersion=function(){return{version:"1"}}},5921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Error="error",e.Warning="warning",e.Info="info"}(t.LogSeverity||(t.LogSeverity={})),t.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"},t.log=(e,a,...r)=>{e?e[a.severity](a.message,a.location,...r):a.location?console.log(t.LogSeverityLabel[a.severity]+":"+a.message+"/nlocation: "+a.location,...r):console.log(t.LogSeverityLabel[a.severity]+":"+a.message,...r)}},2449:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(a(9154)),i=r(a(2892)),o=a(1997);t.initI18n=function(e="en"){n.default.init({resources:{en:{translation:i.default}},lng:e,fallbackLng:"en",joinArrays:"\n\n"}),o.initI18n(n.default)}},4027:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(6971)),r(a(8517)),r(a(1097)),r(a(3435)),r(a(5921)),r(a(2735))},2735:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(5622),n=a(5747),i=async e=>new Promise(((t,a)=>{n.readFile(e,{encoding:"utf8"},((e,r)=>{e?a(e):t(r)}))}));t.readDirectory=async e=>new Promise(((t,a)=>{n.readdir(e,{encoding:"utf8"},((e,r)=>{e?a(e):t(r)}))})),t.isDirectory=async e=>new Promise((t=>{n.stat(e,((e,a)=>{t(!e&&a.isDirectory())}))}));const o=async e=>new Promise((t=>{n.exists(e,(e=>{t(e)}))})),s=async e=>await(async e=>JSON.parse(await i(e)))(r.join(e,"manifest.json"));t.getProject=async e=>{const a=r.basename(e),n=r.join(e,"webapp"),c=await s(n);return{root:e,name:a,manifest:c,annotations:await(async(e,t)=>{const a=[],n=e["sap.app"].dataSources;if(n.mainService&&n.mainService.settings&&n.mainService.settings.localUri){const e=r.join(t,n.mainService.settings.localUri);a.push({dataSourceUri:e,fileContent:await i(e)})}if(n&&n.mainService&&n.mainService.settings&&n.mainService.settings.annotations)for(const e of n.mainService.settings.annotations){const o=r.join(t,n[e].settings.localUri);a.push({dataSourceUri:o,fileContent:await i(o)})}if(0===a.length)for(const e in n){const o=n[e];if("ODataAnnotation"===o.type&&o.settings&&o.settings.localUri){const e=r.join(t,o.settings.localUri);a.push({dataSourceUri:e,fileContent:await i(e)})}}return a})(c,n),changes:await(async e=>{const a=[],n=r.join(e,"changes");if(!await o(n))return a;const s=await t.readDirectory(n);for(const t of s)a.push(await i(r.join(e,"changes",t)));return a})(n),fragments:await(async e=>{const a=[],n=r.join(e,"ext","fragments");if(!await o(n))return a;const s=await t.readDirectory(n);for(const e of s){const t=r.join(n,e),o=await i(t);a.push({dataSourceUri:t,fileContent:o})}return a})(n)}}},6971:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(4681)),r(a(3404)),r(a(3435)),r(a(6904))},4681:(e,t)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage"}(a=t.PageType||(t.PageType={})),function(e){e.v2="v2",e.v4="v4"}(t.FioriElementsVersion||(t.FioriElementsVersion={})),function(e){e.v2="v2",e.v4="v4"}(t.OdataVersion||(t.OdataVersion={})),t.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP=new Map([[a.ListReport,"sap.suite.ui.generic.template.ListReport.view.ListReport"],[a.AnalyticalListPage,"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],[a.ObjectPage,"sap.suite.ui.generic.template.ObjectPage.view.Details"]])},6904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen"}(t.FlexibleColumnLayoutType||(t.FlexibleColumnLayoutType={})),function(e){e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE"}(t.FlexChangeLayer||(t.FlexChangeLayer={}))},6442:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.OData="OData",e.ODataAnnotation="ODataAnnotation"}(t.DataSourceType||(t.DataSourceType={})),function(e){e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5"}(t.ManifestSection||(t.ManifestSection={}))},3404:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(6442)),r(a(5281))},5281:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIORI_FCL_ROOT_VIEW_NAME="sap.fe.templates.RootContainer.view.Fcl",t.FIORI_FCL_ROOT_ID="appRootView",function(e){e.XML="XML",e.HTML="HTML",e.JS="JS",e.JSON="JSON"}(t.ViewTypes||(t.ViewTypes={})),t.SAPUI5_VIEW_CLASS="sap.ui.core.mvc.View",t.SAPUI5_FRAGMENT_CLASS="sap.ui.core.Fragment"},3435:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(5747),n=a(5622);var i;!function(e){e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage"}(i=t.SchemaType||(t.SchemaType={}));t.getGenericSchema=async(e,t)=>{try{const a=((e,t)=>{const a=t===i.Application?i.Application+e.toUpperCase()+".json":t+"Config.json";return n.join(__dirname,"schemas",e,a)})(e,t);return await(async e=>new Promise(((t,a)=>{r.readFile(e,{encoding:"utf8"},((e,r)=>{e?a(e):t(JSON.parse(r))}))})))(a)}catch(a){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${a.message}`)}}},2387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall"}(t.ChartType||(t.ChartType={}))},6745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut"}(t.ChartCardType||(t.ChartCardType={})),function(e){e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack"}(t.CardTemplateType||(t.CardTemplateType={})),t.cardTemplateTypeMap={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},function(e){e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings"}(t.CardSettingsType||(t.CardSettingsType={})),function(e){e.standard="standard",e.bar="bar",e.carousel="carousel"}(t.ListFlavorType||(t.ListFlavorType={})),function(e){e.extended="extended",e.condensed="condensed"}(t.ListTypeType||(t.ListTypeType={})),function(e){e.ascending="ascending",e.descending="descending"}(t.SortOrderType||(t.SortOrderType={})),function(e){e.standard="standard",e.carousel="carousel"}(t.LinkListFlavorType||(t.LinkListFlavorType={}))},3872:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Circle="Circle",e.Square="Square"}(t.AvatarShape||(t.AvatarShape={}))},163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Editable="{ui>/editable}",e.NotEditable="{= !${ui>/editable}}"}(t.BindingValue||(t.BindingValue={}))},7876:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet"}(t.SectionPosition||(t.SectionPosition={})),function(e){e.XML="XML"}(t.ExtensionFragmentTypes||(t.ExtensionFragmentTypes={}))},9649:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.inline="inline"}(t.CreateMode||(t.CreateMode={}))},2906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End"}(t.HAlign||(t.HAlign={})),function(e){e.XML="XML"}(t.customColumnViewTypes||(t.customColumnViewTypes={})),function(e){e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable"}(t.TableTypeV2||(t.TableTypeV2={})),function(e){e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension"}(t.TableColumnExtensionTypeV2||(t.TableColumnExtensionTypeV2={})),function(e){e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall"}(t.PopinLayout||(t.PopinLayout={})),function(e){e.extension="extension"}(t.Strategy||(t.Strategy={})),function(e){e.charttable="charttable",e.chart="chart",e.table="table"}(t.DefaultContentView||(t.DefaultContentView={})),function(e){e.visual="visual",e.compact="compact"}(t.DefaultFilterMode||(t.DefaultFilterMode={}))},6402:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(2906)),r(a(3872)),r(a(163)),r(a(7876)),r(a(6745)),r(a(9649)),r(a(2387))},390:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(3800)),r(a(6402)),r(a(9809))},2505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.fixed="fixed",e.resizable="resizable"}(t.ContainerLayoutType||(t.ContainerLayoutType={}))},3800:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}(a(2505))},9809:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}(a(4149))},4149:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(4867)),r(a(1374))},1374:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});a(6971);t.SAPUI5_VIEW_EXTENSION="sap.ui.viewExtensions",t.SAPUI5_CONTROLLER_EXTENSION="sap.ui.controllerExtensions",t.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE="sap.suite.ui.generic.template.ObjectPage.view.Details",t.SAPUI5_VIEW_EXTENSION_LIST_REPORT="sap.suite.ui.generic.template.ListReport.view.ListReport",t.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"},4867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FE_TEMPLATE_V2_OBJECT_PAGE="sap.suite.ui.generic.template.ObjectPage",t.FE_TEMPLATE_V2_LIST_REPORT="sap.suite.ui.generic.template.ListReport",t.FE_TEMPLATE_V2_ALP="sap.suite.ui.generic.template.AnalyticalListPage"},4093:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(6971),n=a(8517),i=a(9081),o=a(3435);t.AppProvider=class AppProvider{constructor(e,t,a,n,s,c,l){this.unhandledControllers=[];const u=i.getSchemaFilePath(o.SchemaType.Application);this.app=Object.assign({$schema:u.path,id:e["sap.app"].id,pages:n,home:a,target:{fioriElements:s,odata:s===r.FioriElementsVersion.v2?r.OdataVersion.v2:r.OdataVersion.v4}},c&&{settings:c}),this.schemas=t,this.logger=l}createConfigFiles(){const e={},t={};let a;for(const t in this.app.pages)if(a=this.app.pages[t],a.config){const r=i.getSchemaFilePath(a.pageType,a.entitySet),o=a.config;if(this.schemas[r.filename])o.$schema=r.path;else{const e=i.getSchemaFilePath(a.pageType);o.$schema=e.path}e[`${n.DirName.Pages}/${t}.json`]=o}const r=JSON.parse(JSON.stringify(this.app));for(const e in r.pages)delete r.pages[e].config;return t[n.FileName.App]=r,{appConfig:t,pageConfigs:e}}}},3265:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(8517),n=a(9081);function i(e){return e.replace(/[^-A-Za-z0-9_.:]/g,(function(e){const t=e.charCodeAt(0).toString(16);return":"+(1===t.length?"0":"")+t}))}t.buildControlIdFromParent=(e,t)=>e+t.join("::"),t.buildControlIdForPage=(e,t,a)=>e+t.join("::")+a[0],t.convertSectionId=(e,t)=>{let a;const n=r.FacetTitlePrefix;return a=void 0!==t?t.split(n)[1]:e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),a},t.escapeId=i,t.buildColumnControlId=(e,a,r,n,o)=>{let s,c="listReport";const l=[...r];a=a.map((function(e){if("sections"===e)for(let e=0;e<l.length;e++){if("sections"===l[e]&&(s=l[e+1],-1!==s.indexOf("LineItem")))return l[e+1]=t.convertSectionId(s,o)+"::Table"}return e})),"sections"===l[0]&&(c=l[1].replace(/::com.sap.vocabularies/g,"/@com.sap.vocabularies").replace(/::@com.sap.vocabularies/g,"/@com.sap.vocabularies"));const u=l[l.length-1].replace(/::com.sap.vocabularies/g,"/@com.sap.vocabularies").replace(/::@com.sap.vocabularies/g,"/@com.sap.vocabularies").replace("sTarget/@","sTarget::@");let p;const f=u.indexOf(":::");return p=u.startsWith("DataField")&&f>-1?e+"template:::TableColumn:::"+u.substr(0,f)+":::sSmartTableId::"+c.replace("::Table",":3a:3aTable")+":::"+u.substr(f+3):e+a.join("::")+"-"+u,i(p)},t.addPatternForBindingChangeOfEnum=(e,t,a)=>{const i=t&&t.properties;if(i[a].pattern)return;const o=i[a];let s,c=r.BindingPropertyRegexAsString;s=o.$ref?e.definitions[o.$ref.split(n.DEFINITION_LINK_PREFIX)[1]]:o;const l=o.description?o.description:s.description;if(s.enum){let e;s.enum.forEach((t=>{t.toString().startsWith("{")||(e=e?e+"|"+t.toString():t.toString())})),c="^("+e+")$|"+c}i[a]={pattern:c,anyOf:[o,{type:"string"}]},l&&(i[a].description=l,delete o.description)}},2762:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a(2775),t.reflectMetadataKey=Symbol("specificationMetadataKey"),t.syncRule=e=>Reflect.metadata(t.reflectMetadataKey,e),t.getReflectMetadata=function(e,a){if(e)return Reflect.getMetadata(t.reflectMetadataKey,e,a)},t.pageLayoutInformation=e=>t=>{t.prototype.pageLayoutInformation=e};const r=Symbol("childId");t.childId=e=>Reflect.metadata(r,e),t.getChildId=(e,t)=>Reflect.getMetadata(r,e,t),t.getPageLayoutInformation=e=>Object.getPrototypeOf(e).pageLayoutInformation,t.validityMetadataKey=Symbol("validityMetadataKey"),t.validity=e=>Reflect.metadata(t.validityMetadataKey,e),t.getTextForDeprecated=function(e,t){let a=e+" is deprecated";return t&&t.deprecated&&(a=t.deprecated.since?a+" since "+t.deprecated.since:a,a=t.deprecated.text?a+". "+t.deprecated.text:a),a}},6785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MetadataFactory=class MetadataFactory{constructor(e,t,a){this.controls=e,this.pages=t,this.pageTypes=a}createInstance(e,t,a,r){let n=this.controls[r]?this.controls[r]:this.controls[t];n||(n=this.pageTypes[e][r]?this.pageTypes[e][r]:this.pageTypes[e][t]);return n?Object.assign(new n,a):a}createPageInstance(e,t){const a=this.pages[e];return a?Object.assign(new a,t):null}}},4792:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(1684);t.exportToFlexChange=function(e,t){return r.createChangeString(e,t)}},5599:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(3265)),r(a(2762)),r(a(4792))},1684:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=r(a(2281)).default.change,i={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};t.createChangeString=function(e,t){let a="";try{for(const t in i)void 0===e[t]&&(e[t]=i[t]);a=n.createChangeString(e,t)}catch(e){console.error("Error while create flex change.",e)}return a},t.parseChangeString=function(e){return n.parse(e)},t.createFlexChange=function(e,t,a,r,n,i,o,s){const c=!r.layer||"CUSTOMER_BASE"===r.layer,l={controlId:a.flex.controlId(n,i,t,a.flex.controlType,o),controlType:a.flex.controlType(),content:{property:s},sapui5Version:r.ui5Version,isCustomer:c};return void 0!==e[s]?a.flex.exportFlexValue?a.flex.exportFlexValue(l,e,s):e[s].toString().startsWith("{")?(l.content.newBinding=e[s],l.type="propertyBindingChange"):l.content.newValue=e[s]:l.content.newValue=null,l}},7108:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=a(6971),i=a(3435),o=r(a(4867)),s=a(1918),c=a(3073),l=a(4370),u=a(8517),p=a(9081),f=a(2449);function d(e){const t={Facets:[],LineItems:[]},a=e&&e.entityTypes;if(a){const r=p.findAlias("com.sap.vocabularies.UI.v1",e);for(const e of a){if(!e.annotations||!e.annotations[r])continue;const a=e.name||e.fullyQualifiedName.split(".").pop(),{LineItem:n,Facets:i}=e.annotations[r];n&&!n.qualifier&&n.find((e=>"com.sap.vocabularies.UI.v1.DataField"===e.$Type||"com.sap.vocabularies.UI.v1.DataFieldForAnnotation"===e.$Type))&&t.LineItems.push(a),i&&!i.qualifier&&t.Facets.push(a)}}return t}function m(e,t){return(null==t?void 0:t.entitySets)&&t.entitySets.find((t=>t.name===e))}function h(e,t,a,r,i,l){const u=c.getPages(t[n.ManifestSection.generic].pages,o.FE_TEMPLATE_V2_OBJECT_PAGE);for(const o in u){const c=u[o].entitySet,f=m(c,a),d=f&&f.entityType&&f.entityType.name,h=p.getSchemaFilePath(n.SchemaType.ObjectPage,(null==f?void 0:f.name)||c),g=p.getSchemaFilePath(n.SchemaType.ObjectPage);r[h.filename]=s.generateObjectPageSchemaV2(e[g.filename],d,a,t,i,l)}}async function g(e,t,a,r,l,u){const f=await async function(e,t){const a={};let r=[];switch(r=[n.SchemaType.Application],e){case p.TemplateType.ListReportObjectPageV2:r.push(n.SchemaType.ListReport,n.SchemaType.ObjectPage);break;case p.TemplateType.AnalyticalListPageV2:r.push(n.SchemaType.AnalyticalListPage,n.SchemaType.ObjectPage);break;case p.TemplateType.OverviewPageV2:r.push(n.SchemaType.OverviewPage)}for(const e of r)a[p.getSchemaFilePath(e).filename]=await i.getGenericSchema(t,e);return a}(l,t);if(t===n.FioriElementsVersion.v2)return function(e,t,a,r,i,l,u){const f={},d=a&&a.entityTypes;if(i===p.TemplateType.ListReportObjectPageV2&&t){const t=c.getPages(r[n.ManifestSection.generic].pages,o.FE_TEMPLATE_V2_LIST_REPORT);for(const i in t){const o=t[i].entitySet,c=m(o,a),h=c&&c.entityType&&c.entityType.name,g=p.getSchemaFilePath(n.SchemaType.ListReport,(null==c?void 0:c.name)||o),y=p.getSchemaFilePath(n.SchemaType.ListReport);f[g.filename]=s.generateListReportSchemaV2(e[y.filename],h,d,r,l,u)}h(e,r,a,f)}else if(i===p.TemplateType.AnalyticalListPageV2&&t){const t=c.getPages(r[n.ManifestSection.generic].pages,o.FE_TEMPLATE_V2_ALP);for(const i in t){const o=t[i].entitySet,c=m(o,a),h=c&&c.entityType&&c.entityType.name,g=p.getSchemaFilePath(n.SchemaType.AnalyticalListPage,(null==c?void 0:c.name)||o),y=p.getSchemaFilePath(n.SchemaType.AnalyticalListPage);f[g.filename]=s.generateAnalyticalListReportSchemaV2(e[y.filename],h,d,r,l,u)}h(e,r,a,f)}else if(i===p.TemplateType.OverviewPageV2){const t=p.getSchemaFilePath(n.SchemaType.OverviewPage),a=p.getSchemaFilePath(n.SchemaType.OverviewPage);f[t.filename]=s.generateOVPInterfaceV2(e[a.filename],r)}return Object.assign(Object.assign({},e),f)}(f,e,a,r,l,u)}function y(e,t){let a=[];for(const t of Object.keys(e).sort()){let r;r=t===n.SchemaType.Application?`${u.DirName.Schemas}/${u.FileName.App[0].toUpperCase()}${u.FileName.App.slice(1)}`:`${u.DirName.Schemas}/${t}.json`,a.push({dataSourceUri:r,fileContent:JSON.stringify(e[t],null,4)})}return t&&(a=a.concat(t)),a}t.getEntitySetByEntitySetName=m,t.importProjectSchema=async function(e){f.initI18n();let t=[];const{manifest:a,annotations:r,fragments:n,logger:i}=e,o=p.getVersionFromManifest(a),s=p.parseAndMergeAndConvert(r,i),c=d(s),l=p.getTemplateTypeFromManifest(a,o,i);if(!l)return;return t=y(await g(c,o,s,a,l,n)),t},t.importProjectSchemaAndConfig=async function(e){f.initI18n();let t=[],a=[];const{manifest:r,annotations:n,flex:i,fragments:o,logger:s}=e,u=p.getVersionFromManifest(r),m=p.parseAndMergeAndConvert(n,s),h=d(m),v=p.getTemplateTypeFromManifest(r,u,s);if(!v)return;const b=await g(h,u,m,r,v,o);return a=function(e,t,a,r,n,i){let o;const s=[];switch(n){case p.TemplateType.ListReportObjectPageV2:case p.TemplateType.AnalyticalListPageV2:o=new c.V2AppProvider(e,t,a,i);break;case p.TemplateType.OverviewPageV2:o=new l.V2OvpProvider(e,a)}if(o){const{appConfig:e,pageConfigs:t}=o.createConfigFiles();for(const t in e)s.push({dataSourceUri:t,fileContent:JSON.stringify(e[t],null,4)});for(const e in t)s.push({dataSourceUri:e,fileContent:JSON.stringify(t[e],null,4)})}return s}(r,i,b,0,v,o),t=y(b,a),t}},5008:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(9081)),r(a(8517)),r(a(5599)),r(a(1684));var n=a(7108);t.importProjectSchemaAndConfig=n.importProjectSchemaAndConfig,t.importProjectSchema=n.importProjectSchema},8517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.flex="flex",e.manifest="manifest"}(t.ExportArtifacts||(t.ExportArtifacts={})),function(e){e.Schemas=".schemas",e.Pages="pages"}(t.DirName||(t.DirName={})),function(e){e.App="app.json"}(t.FileName||(t.FileName={})),t.FacetTitlePrefix="Facet ID: ",function(e){e.Section="Section",e.HeaderSection="HeaderSection"}(t.SectionType||(t.SectionType={})),function(e){e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation"}(t.ArtifactType||(t.ArtifactType={})),function(e){e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart"}(t.ControlType||(t.ControlType={})),function(e){e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.Unknown=""}(t.FacetBase||(t.FacetBase={})),t.BindingPropertyRegexAsString="^{[A-Za-z0-9{}&$!@#? _|,<>'()[\\]\\/:=.]+}$",function(e){e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension"}(t.ViewTemplateType||(t.ViewTemplateType={})),t.METADATAPATH="webapp/localService/metadata.xml",t.MANIFESTPATH="webapp/manifest.json"},9081:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(8517),i=a(4350),o=a(1014),s=a(6971),c=a(3435),l=r(a(9154)),u=a(5921),p=r(a(4225));var f;function d(e,t,a){var r,n,i,o;if(null===(r=null==e?void 0:e.Common)||void 0===r?void 0:r.Label)if("string"==typeof e.Common.Label)a=e.Common.Label;else if("Path"===e.Common.Label.type){const r=t.resolvePath(e.Common.Label.path);a=r.value?r.value:"string"==typeof(null===(n=r.Common)||void 0===n?void 0:n.Label)?r.annotations.Common.Label:a}else"string"==typeof(null===(o=null===(i=e.Common)||void 0===i?void 0:i.Label)||void 0===o?void 0:o.toString())&&(a=e.Common.Label.toString());return a}function m(e,t){var a,r;let n,i;return e.Value?"string"==typeof e.Value?i=t.entityProperties.find((t=>t.name===e.Value)):(i=t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&e.Target.$target.Value&&(i=e.Target.$target.Value.$target),(null===(r=null===(a=null==i?void 0:i.annotations)||void 0===a?void 0:a.Common)||void 0===r?void 0:r.Label)&&(n=d(i.annotations,t,n)),n}function h(e){if(e)return e.split("sap.suite.ui.generic.template.")[1]}function g(e,t){let a=t.references.find((t=>t.namespace===e));return a||(a=t.references.find((t=>t.alias===e))),a||(a=t.references.find((t=>t.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase()))),null==a?void 0:a.alias}function y(e,a=!1,r=s.FioriElementsVersion.v2,n,i,o){var c,p;let f=n;const d=e.fullyQualifiedName.substr(e.fullyQualifiedName.lastIndexOf("@"));let m=e.ID?e.ID.toString():d;if("com.sap.vocabularies.UI.v1.CollectionFacet"!==e.$Type&&"Target"in e){const d=t.getAnnotationPropertyValue(e.Target);if(!d)return void u.log(o,{severity:"error",message:l.default.t("NOTARGET",{target:e.Target})});const h=r===s.FioriElementsVersion.v2?"::":"/",y=r===s.FioriElementsVersion.v2?"::":"#",v=d.split("/"),b=v.length>1?v[0]:"";b&&(f=null===(c=n.resolvePath(b))||void 0===c?void 0:c.targetType);const P=(v[1]||v[0]).split("#")[0];if(P.includes(".LineItem")){const e=m.split("::");e[e.length-1]=(a?"":"@")+"com.sap.vocabularies.UI.v1.LineItem",m=e.join("::")}else m=P.replace("@UI",(a?"":"@")+"com.sap.vocabularies.UI.v1");const T=v[v.length-1],O=T.substring(T.lastIndexOf(".")+1,T.length),C=g(T.substring(0,T.lastIndexOf(".")).replace("@",""),i),S=null===(p=null==f?void 0:f.annotations[C])||void 0===p?void 0:p[O];if(!S)return;m=function(e,t=!1){return`${t?"":"@"}${e.qualifier?e.term+"#"+e.qualifier:e.term}`}(S,a).replace("#",y),b&&(m=`${b}${h}${m}`)}return m=m.replace(/\//gi,"::"),m?Object.assign(Object.assign(Object.assign({key:m},e.Label&&{label:e.Label.toString()}),e.ID&&{ID:e.ID.toString()}),{entityType:f}):void 0}function v(e,t,a,r,i,o=s.FioriElementsVersion.v2,c){var p;switch(e.$Type){case"com.sap.vocabularies.UI.v1.ReferenceFacet":!function(e,t,a,r,i=s.FioriElementsVersion.v2,o){var c,p,f,d,m;const h=g("com.sap.vocabularies.UI.v1",r),v=y(e,!1,i,a,r,o);if(!v)return;let b=v?v.key:"";const P=v.entityType;let T,O,C,S=h;if(b.includes("com.sap.vocabularies.UI.v1.Chart")||b.includes(h+".Chart"))t[b]={base:n.FacetBase.Chart},t[b].entityType=P;else if(b.includes("com.sap.vocabularies.UI.v1.Identification")||b.includes(h+".Identification"))O=b.split(".")[b.split(".").length-1],C=P.annotations[S][O],t[b]={base:n.FacetBase.Identification},t[b].entityType=P,t[b].target=C;else if(b.includes("com.sap.vocabularies.UI.v1.LineItem")||b.includes(h+".LineItem")){if(a){if(b.includes("com.sap.vocabularies.UI.v1.LineItem"))[S,T,O]=b.split("com.sap.vocabularies.")[1].split(".");else if(b.includes(".LineItem")){O="LineItem";const e=b.split("::");e[e.length-1]="@com.sap.vocabularies.UI.v1.LineItem",b=e.join("::")}t[b]={base:n.FacetBase.LineItem},t[b].lineItem=null===(c=null==e?void 0:e.Target)||void 0===c?void 0:c.$target,t[b].entityType=P}}else b.includes("com.sap.vocabularies.UI.v1.FieldGroup")||b.includes(h+".FieldGroup")?(t[b]={base:n.FacetBase.Form},t[b].target=null===(p=null==e?void 0:e.Target)||void 0===p?void 0:p.$target,t[b].entityType=P):b.includes("com.sap.vocabularies.UI.v1.DataPoint")||b.includes(h+".DataPoint")?(t[b]={base:n.FacetBase.DataPoint},t[b].target=null===(f=null==e?void 0:e.Target)||void 0===f?void 0:f.$target,t[b].entityType=P):b.includes("com.sap.vocabularies.Communication.v1.Contact")||b.includes(h+".Contact")?(t[b]={base:n.FacetBase.Contact},t[b].target=null===(d=null==e?void 0:e.Target)||void 0===d?void 0:d.$target,t[b].entityType=P):b.includes("com.sap.vocabularies.Communication.v1.Address")||b.includes(h+".Address")?(t[b]={base:n.FacetBase.Address},t[b].target=null===(m=null==e?void 0:e.Target)||void 0===m?void 0:m.$target,t[b].entityType=P):t[b]={base:n.FacetBase.Unknown};t[b]&&(t[b].annotationPath=`/${e.fullyQualifiedName.replace("@com.sap.vocabularies","/@com.sap.vocabularies")}`,e.Label&&(t[b].Label=e.Label),e.ID?t[b].ID=e.ID:i===s.FioriElementsVersion.v4&&u.log(o,{severity:"error",message:l.default.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),v&&v.entityType&&(t[b].entityType=v.entityType))}(e,i,r,t,o,c);break;case"com.sap.vocabularies.UI.v1.CollectionFacet":{const s=y(e,!1,o,r,t,c);if(s){const l=`/${r.fullyQualifiedName}/${e.fullyQualifiedName.split(r.fullyQualifiedName)[1]}`,u=i[s.key]={base:n.FacetBase.CollectionFacet,facets:{},ID:s.ID,annotationPath:l,Label:s.label};null===(p=e.Facets)||void 0===p||p.forEach((e=>{v(e,t,a,r,u.facets,o,c)}))}break}}}!function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2"}(f=t.TemplateType||(t.TemplateType={})),t.DEFINITION_LINK_PREFIX="#/definitions/",t.createAnnotationPath=(e,t,a)=>{let r=`/${e}/@${t}`;return a&&(r+=`#${a}`),r},t.parseAndMergeAndConvert=function(e,t){const a=[];try{e&&e.forEach((function(e){a.push(o.parseEDMX(e.fileContent,e.dataSourceUri))}));const r=i.convertTypes(o.merge(a));if(t&&r.diagnostics)for(let e=0;e<r.diagnostics.length;e++){const a=r.diagnostics[e];u.log(t,{severity:"error",message:a.message})}return r}catch(e){u.log(t,{severity:"error",message:l.default.t("ANNOERR")},...e)}},t.getAnnotationPropertyValue=e=>(null==e?void 0:e.value)||(null==e?void 0:e.path),t.evaluateCommonLabel=d,t.getLabelForPropertyPath=function(e,t){let a=e.value;return a=d(e.$target.annotations,t,a),a},t.getLabelForDataField=m,t.getDatafieldDescription=function(e,t){let a,r,n="";const i=function(e,t){var a,r;if("string"==typeof e)return e;if("object"==typeof e&&e.path){const n=t.resolvePath(e.path);if(!n||0===n.length)return;{const i=n[0];if(null===(r=null===(a=null==i?void 0:i.annotations)||void 0===a?void 0:a.Common)||void 0===r?void 0:r.Label){const a=e;return d(i.annotations,t,a)}}}}(e.Label,t);switch(e.$Type){case"com.sap.vocabularies.UI.v1.DataField":r=e,a=m(e,t),n=i||a||(r.Value.$target?r.Value.$target.name:r.Value.value||r.Value.path);break;case"com.sap.vocabularies.UI.v1.DataFieldWithUrl":r=e,a=m(e,t),n=i||a||("string"==typeof r.Value?r.Value:r.Value.path);break;case"com.sap.vocabularies.UI.v1.DataFieldForAnnotation":r=e,a=m(e,t),n=i||a||r.Target.$target.Title||r.Target.value;break;case"com.sap.vocabularies.UI.v1.DataFieldForAction":case"com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation":r=e,n=i?"string"==typeof i?i:r.Action:e.Action;break;case"com.sap.vocabularies.UI.v1.DataFieldWithIntentBasedNavigation":r=e,a=m(e,t),n=a||r.Value.path;break;case"com.sap.vocabularies.UI.v1.DataFieldWithNavigationPath":r=e,a=m(e,t),n=i||a||(r.Value.$target?r.Value.$target.name:r.Value.value||r.Value.path)}return n},t.getPageTypeV2=h,t.findAlias=g,t.getSectionFacet=y,t.getManifestSectionByPathV4=(e,t,a,r)=>{let n=e;return t.split("/").forEach((function(e){r&&r===e&&(e=a),n[e]||(n[e]={}),n=n[e]})),n},t.getSchemaKeyOfLineItemRecord=function(e){let a,r,n;switch(e.$Type){case"com.sap.vocabularies.UI.v1.DataField":a=t.getAnnotationPropertyValue(e.Value);break;case"com.sap.vocabularies.UI.v1.DataFieldWithUrl":a="string"==typeof e.Value?e.Value:t.getAnnotationPropertyValue(e.Value);break;case"com.sap.vocabularies.UI.v1.DataFieldForAnnotation":r=e.Target.value,r&&(a="DataFieldForAnnotation:::sTarget::"+r.replace("@UI","@com.sap.vocabularies.UI.v1").replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case"com.sap.vocabularies.UI.v1.DataFieldForAction":e.Inline&&(a="DataFieldForAction:::sAction::"+e.Action);break;case"com.sap.vocabularies.UI.v1.DataFieldWithIntentBasedNavigation":n=t.getAnnotationPropertyValue(e.Value),a="DataFieldWithIntentBasedNavigation:::sProperty::"+n+":::sSemanticObject::"+e.SemanticObject+":::sAction::"+e.Action;break;case"com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation":e.Inline&&(a="DataFieldForIntentBasedNavigation:::sSemanticObject::"+e.SemanticObject+":::sAction::"+e.Action);break;case"com.sap.vocabularies.UI.v1.DataFieldWithNavigationPath":n=t.getAnnotationPropertyValue(e.Value),r=t.getAnnotationPropertyValue(e.Target),a="DataFieldWithNavigationPath:::sProperty::"+n+":::sTarget::"+r}return a},t.getObjectPageHeaderFacets=function(e,t,a=s.FioriElementsVersion.v2,r){const n={};if(!e||!e.annotations)return;const i=g("com.sap.vocabularies.UI.v1",t),o=i&&e.annotations[i]&&e.annotations[i].HeaderFacets;if(o){const i=e.fullyQualifiedName.lastIndexOf("."),s=e.fullyQualifiedName.substr(0,i);o.forEach((i=>{v(i,t,s,e,n,a,r)}))}return n},t.getObjectPageFacets=function(e,t,a=s.FioriElementsVersion.v2,r){const n={};if(!e||!e.annotations)return;const i=g("com.sap.vocabularies.UI.v1",t),o=i&&e.annotations[i]&&e.annotations[i].Facets;if(o){const i=e.fullyQualifiedName.lastIndexOf("."),s=e.fullyQualifiedName.substr(0,i);o.forEach((i=>{v(i,t,s,e,n,a,r)}))}return n},t.getVersionFromManifest=function(e){return e[s.ManifestSection.generic]||e[s.ManifestSection.ovp]?s.FioriElementsVersion.v2:s.FioriElementsVersion.v4},t.getTemplateTypeFromManifest=function(e,t,a){let r;if(e[s.ManifestSection.ovp])r=f.OverviewPageV2;else if(t===s.FioriElementsVersion.v2)if(e[s.ManifestSection.generic]){const t=e[s.ManifestSection.generic].pages;if(!t)return void u.log(a,{severity:"error",message:l.default.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:n.MANIFESTPATH,range:[s.ManifestSection.generic]}});for(const e in t){const a=t[e];if(h(a.component.name)===s.PageType.AnalyticalListPage){r=f.AnalyticalListPageV2;break}if(h(a.component.name)===s.PageType.ListReport){r=f.ListReportObjectPageV2;break}}}else r||u.log(a,{severity:"error",message:l.default.t("NOTEMPLATE",{section:s.ManifestSection.generic}),location:{path:n.MANIFESTPATH,range:[s.ManifestSection.generic]}});else r=f.ListReportObjectPageV4;return r},t.createSectionWithoutProperties=function(e){const t={type:"object",properties:{},additionalProperties:!1,annotationPath:e.annotationPath,isViewNode:!0};return e&&e.ID&&(t.title=n.FacetTitlePrefix+e.ID),e&&e.Label&&(t.description=e.Label),t},t.getObjectPageFacetSection=function(e,t,a,r=s.FioriElementsVersion.v2,n=!1){const i=g("com.sap.vocabularies.UI.v1",t);if(e){const o=i&&e.annotations&&e.annotations[i]&&e.annotations[i].Facets;return o?o.reduce((function(i,o){if(n&&!o.ID&&(!("Target"in o)||!o.Target))return i;const s=y(o,!0,r,e,t,a);return s&&i.push(s),i}),[]):[]}},t.deleteEmptyStructure=(e,a,r,n)=>{let i=e;const o=a.split("/");o.forEach((function(a){if(a===n&&(a=r),i[a])return 0===Object.keys(i[a]).length?(delete i[a],o.pop(),void t.deleteEmptyStructure(e,o.join("/"),r,n)):void(i=i&&i[a])}))};const b=e=>`${e}`;t.getSchemaFilePath=(e,t)=>{const a={filename:"",path:""};switch(e){case c.SchemaType.Application:a.filename="App",a.path=`./${n.DirName.Schemas}/${a.filename}`;break;case c.SchemaType.ListReport:case c.SchemaType.ObjectPage:a.filename=t?`${e}_${t}`:b(e),a.path=`../${n.DirName.Schemas}/${a.filename}`;break;default:a.filename=b(e),a.path=`../${n.DirName.Schemas}/${a.filename}`}return a.path+=".json",a},t.generatePageId=function(e,t,a,r,n){if(t===s.PageType.CustomPage){const e=n&&n.split(".");return e&&e[e.length-1]+"Page"}const i=[];return i.push(t),a&&i.push(a),r&&i.push(r),i.join("_")},t.getNextTargetDefinition=function e(a,r,n,i,o,s,c){let l={configObject:void 0,targetDefinition:{},title:""};const u=[];if("array"===i.type)return l=e(a,r,n,i.items,o,s,c),l;if(i.$ref)u.push(i.$ref.split(t.DEFINITION_LINK_PREFIX)[1]);else if(i.anyOf&&(n&&i.anyOf.forEach((e=>{if(e.$ref){const r=e.$ref.split(t.DEFINITION_LINK_PREFIX)[1];if(a.definitions[r]){const t=a.definitions[r].controlProperty;e.$ref.includes(n[t])&&u.push(r)}}})),0===u.length))return;if(u.length){const t=u[u.length-1];if(l.targetDefinition=a.definitions[t],l.targetDefinition.$ref||"array"===l.targetDefinition.type)return l=e(a,r,n,l.targetDefinition,o,s,c),l;u.length>1&&u.forEach((e=>{""!=e&&(l.targetDefinition.properties=Object.assign(Object.assign({},l.targetDefinition.properties),a.definitions[e].properties))})),l.title=l.targetDefinition&&l.targetDefinition.title?l.targetDefinition.title:r;const i=t.split("<")[0];l.configObject=s.createInstance(c,i,n,l.targetDefinition.controlProperty)}else l.targetDefinition=i,l.title=l.targetDefinition.title?l.targetDefinition.title:o,l.configObject=n;return l},t.addCommonLineItemDefinitions=function(e,a,r,n){let i;e.definitions[n]={type:"object",properties:{},additionalProperties:!1,isViewNode:!0,description:"Columns"};const o="LineItems"===n?"ToolBar":"ObjectPageToolBar",s=`${o}<${n}>`;e.definitions[s]=JSON.parse(JSON.stringify(e.definitions[`${o}`])),e.definitions[s].properties.actions.$ref=t.DEFINITION_LINK_PREFIX+"Actions<"+n+">";const c=`Actions<${n}>`,l="LineItems"===n?"Actions":"ObjectPageToolBarActions",u=e.definitions[c]=JSON.parse(JSON.stringify(e.definitions[l]));return u.properties={},u.additionalProperties=!1,a&&(i=t.createAnnotationPath(r.fullyQualifiedName,a.term,a.qualifier),e.definitions[n].annotationPath=e.definitions[s].annotationPath=i),{actions:u,lineItemPath:i}},t.addDefinitionForRelatedFacetKeys=function(e,a,r,n){const i=r.map((e=>{const t=n.find((t=>!!e[t])),a=e[t];return Object.assign(Object.assign({const:a},e.label&&{description:e.label}),e.custom&&{custom:e.custom})}));if(i.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:i};for(const r of a){const a=e.definitions[r],n=a.properties.relatedFacet;a.properties.relatedFacet={anyOf:[{$ref:t.DEFINITION_LINK_PREFIX+"RelatedFacetKeys"},n]}}}},t.arrayCombineMerge=(e,t,a)=>{const r=e.slice();return t.forEach(((t,n)=>{void 0===r[n]?r[n]=a.cloneUnlessOtherwiseSpecified(t,a):a.isMergeableObject(t)?r[n]=p.default(e[n],t,a):-1===e.indexOf(t)&&r.push(t)})),r}},1997:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=r(a(6354));t.initI18n=function(e){e.addResourceBundle(e.language,"translation",n)}},6088:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5599),i=a(390),o=a(6971);t.getAppSettingPathV2=e=>`${o.ManifestSection.generic}/pages/${e[0]}/component/settings`,t.getTableSettingPathV2=e=>t.getAppSettingPathV2(e)+"/tableSettings",t.getOVPsettingPath=()=>o.ManifestSection.ovp,t.getCardSettingsPath=e=>{const t=[o.ManifestSection.ovp+"/cards"];return e.forEach((e=>{e in i.CardSettingsType?t.push("settings"):t.push(e)})),t.pop(),t.join("/")},t.getGlobalSettingsPath=e=>{const t=[o.ManifestSection.ovp];return e.forEach((e=>{t.push(e)})),t.pop(),t.join("/")},t.getAppSettingOBJPathV2=e=>{const t=["sap.ui.generic.app"];return e.forEach((e=>{t.push("pages/"+e)})),t.push("component/settings"),t.join("/")},t.getKPISettingsPath=(e,t,a)=>`${o.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${a}`,t.getAppRootSettingOBJPath=e=>{const t=[o.ManifestSection.generic];return e.forEach((e=>{t.push("pages/"+e)})),t.join("/")},t.getAppSettingOBJsectionPathV2=(e,a,r)=>{const n=[];n.push(t.getAppRootSettingOBJPath(e));const i=r.replace("::@com.sap.vocabularies","::com.sap.vocabularies");return n.push("component/settings/sections/"+i),n.join("/")},t.getTableSettingsOBJsectionPathV2=(e,a,r)=>t.getAppSettingOBJsectionPathV2(e,{},r)+"/tableSettings",t.getChartSettingsOBJsectionPathV2=(e,a,r)=>t.getAppSettingOBJsectionPathV2(e,{},r)+"/chartSettings",t.getViewExtensionsPath=()=>`sap.ui5/extends/extensions/${i.SAPUI5_VIEW_EXTENSION}/${i.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,t.getObjectPageCustomSectionPath=(e,a,r,...n)=>{const i="|",o=r.split(i),s=e[e.length-1].split(i);let c="";4===o.length?c=[o[2],o[3]].join(i):3===o.length&&(c=o[2]);const l=[o[0],s[s.length-1],c].join(i);return n.unshift(l),t.getViewExtensionsPath()+"/"+n.join("/")};class ApplicationV2{}r([n.childId("settings")],ApplicationV2.prototype,"settings",void 0),t.ApplicationV2=ApplicationV2;class AppSettings{}r([n.syncRule({manifest:{path:()=>"sap.app"}})],AppSettings.prototype,"title",void 0),r([n.syncRule({manifest:{path:()=>"sap.app"}})],AppSettings.prototype,"description",void 0),r([n.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),n.validity({since:"1.50.0"})],AppSettings.prototype,"flexibleColumnLayout",void 0),r([n.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),n.validity({since:"1.46.0"})],AppSettings.prototype,"forceGlobalRefresh",void 0),t.AppSettings=AppSettings},8722:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5599),i=a(2762),o=a(8517);t.getSmartChartControlId=e=>e+"chart";class ChartSettings{}r([i.syncRule({flex:{controlId:t.getSmartChartControlId,controlType:()=>o.ControlType.SmartChart,createFlexChange:n.exportToFlexChange}})],ChartSettings.prototype,"showLegendButton",void 0),r([i.syncRule({flex:{controlId:t.getSmartChartControlId,controlType:()=>o.ControlType.SmartChart,createFlexChange:n.exportToFlexChange}})],ChartSettings.prototype,"showDownloadButton",void 0),r([i.syncRule({flex:{controlId:t.getSmartChartControlId,controlType:()=>o.ControlType.SmartChart,createFlexChange:n.exportToFlexChange}})],ChartSettings.prototype,"showChartTypeSelectionButton",void 0),r([i.syncRule({flex:{controlId:t.getSmartChartControlId,controlType:()=>o.ControlType.SmartChart,exportFlexValue:(e,t,a)=>{e.content.newValue=t[a].join()},importFlexValue:(e,t,a)=>{e.content.newValue=e.content.newValue,t[a]=e.content.newValue.split(",")},createFlexChange:n.exportToFlexChange}})],ChartSettings.prototype,"ignoredChartTypes",void 0),t.ChartSettings=ChartSettings},8378:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(6088);class KPISettings{}r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"model",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"entitySet",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"qualifier",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"filterable",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"detailNavigation",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>i.getKPISettingsPath(e,void 0,a)}})],KPISettings.prototype,"groupId",void 0),t.KPISettings=KPISettings},5682:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(6088);class CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"entitySet",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"title",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"subTitle",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"identificationAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"selectionAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"presentationAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CommonCardSettings.prototype,"defaultSpan",void 0),t.CommonCardSettings=CommonCardSettings;class CustomCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"entitySet",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"itemText",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"valueSelectionInfo",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"staticContent",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"listFlavor",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"listType",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"sortBy",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"sortOrder",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"annotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"chartAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"dataPointAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"kpiAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"selectionPresentationAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"dynamicSubtitleAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"ignoreSapText",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"objectStreamCardsSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"enableLocaleCurrencyFormatting",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"navigation",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"showFilterInHeader",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"showSortingInHeader",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"imageSupported",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"showLineItemDetail",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"showLabelText",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"customParams",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"chartProperties",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],CustomCard.prototype,"colorPalette",void 0),t.CustomCard=CustomCard;class ListCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"listCardSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"tabs",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"listFlavor",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"listType",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"annotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"valueSelectionInfo",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"sortBy",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"sortOrder",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"addODataSelect",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],ListCard.prototype,"dataPointAnnotationPath",void 0),t.ListCard=ListCard;class AnalyticalCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"analyticalCardSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"chartAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"dataPointAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"valueSelectionInfo",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],AnalyticalCard.prototype,"tabs",void 0),t.AnalyticalCard=AnalyticalCard;class StackCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"stackCardSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"tabs",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"itemText",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],StackCard.prototype,"objectStreamCardsNavigationProperty",void 0),t.StackCard=StackCard;class LinklistCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"linkListCardSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"entitySet",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"title",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"subTitle",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"targetUri",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"listFlavor",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"sortBy",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"sortOrder",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"headerAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"identificationAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"defaultSpan",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"staticContent",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],LinklistCard.prototype,"tabs",void 0),t.LinklistCard=LinklistCard;class TableCard extends CommonCardSettings{}r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"model",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"template",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"disableTableCardFlexibility",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"settings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"tableCardSettings",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"annotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"listFlavor",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"listType",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"dataPointAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"selectionPresentationAnnotationPath",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"valueSelectionInfo",void 0),r([n.syncRule({manifest:{path:e=>i.getCardSettingsPath(e)}})],TableCard.prototype,"tabs",void 0),t.TableCard=TableCard},296:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(5599),o=a(6088),s=a(8517);class FilterBar{}r([n.syncRule({manifest:{path:e=>o.getAppSettingPathV2(e)}}),n.validity({since:"1.38.0"})],FilterBar.prototype,"smartVariantManagement",void 0),r([n.syncRule({flex:{controlId:i.buildControlIdFromParent,controlType:()=>s.ControlType.SmartFilterBar,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.40.0"})],FilterBar.prototype,"liveMode",void 0),r([n.syncRule({manifest:{path:e=>o.getAppSettingPathV2(e)}}),n.validity({since:"1.48.0"})],FilterBar.prototype,"variantManagementHidden",void 0),r([n.syncRule({manifest:{path:e=>o.getAppSettingPathV2(e)}}),n.validity({since:"1.52.0"})],FilterBar.prototype,"subTitleIfVariantMgmtHidden",void 0),r([n.syncRule({flex:{controlId:i.buildControlIdFromParent,controlType:()=>s.ControlType.SmartFilterBar,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.28.0"})],FilterBar.prototype,"showClearOnFB",void 0),r([n.syncRule({flex:{controlId:i.buildControlIdFromParent,controlType:()=>s.ControlType.SmartFilterBar,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.38.0"})],FilterBar.prototype,"showFilterConfiguration",void 0),r([n.syncRule({flex:{controlId:i.buildControlIdFromParent,controlType:()=>s.ControlType.SmartFilterBar,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.28.0"})],FilterBar.prototype,"showRestoreOnFB",void 0),t.FilterBar=FilterBar;class AnalyticalListPageFilterBar extends FilterBar{}r([n.syncRule({manifest:{path:e=>o.getAppSettingPathV2(e)}})],AnalyticalListPageFilterBar.prototype,"showGoButtonOnFilterBar",void 0),t.AnalyticalListPageFilterBar=AnalyticalListPageFilterBar},8049:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(8517),i=a(4139),o=a(4667),s=r(a(9154)),c=a(5921),l=a(390),u=a(1350),p=a(5622);t.FRAGMENT_DEFINITION="core:FragmentDefinition";const f=new Map([[n.ViewTemplateType.AnalyticalTableColumnsExtension,"table:AnalyticalColumn"],[n.ViewTemplateType.ResponsiveTableColumnsExtension,"Column"],[n.ViewTemplateType.TreeTableColumnsExtension,"table:Column"],[n.ViewTemplateType.GridTableColumnsExtension,"table:Column"]]),d=new Map([[l.FE_TEMPLATE_V2_LIST_REPORT,l.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[l.FE_TEMPLATE_V2_ALP,l.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[l.FE_TEMPLATE_V2_OBJECT_PAGE,l.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),m={type:"element",name:"Text",attributes:{text:"Placeholder"}},h=JSON.stringify(m);function g(e){const t=f.keys();for(const a of t){const t=f.get(a);if(e[t])return t}}function y(e){return e[g(e)]}function v(e,t){let a=!1;const r=e.customData||e["table:customData"];if(r){let n=r["core:CustomData"]._attributes.value;const i=JSON.parse(n.substr(1,n.length)),o=t.findIndex((e=>e.columnKey===i.columnKey));return o>-1&&(a=!0,n='\\{"columnKey": "'+t[o].columnKey+'"',void 0!==t[o].columnIndex&&(n+=', "columnIndex": "'+t[o].columnIndex.toString()+'"'),t[o].leadingProperty&&(n+=', "leadingProperty": "'+t[o].leadingProperty+'"'),n+="}",r["core:CustomData"]._attributes.value=n,e.Text||e.Label||(e.Text={_attributes:{}}),e.Text?e.Text._attributes.text=t[o].text:e.Label&&(e.Label._attributes.text=t[o].text),e._attributes||(e._attributes={}),e._attributes.id=t[o].id,t.splice(o,1)),a}}t.getTagNameFromFragmentJSON=g,t.getRootCustomColumnFromFragmentJSON=y,t.deleteColumnFromFragment=function(e,a,r,o){if(o){let s=e[a].fragmentName.substr(r.length+1),c=e.type?e.type.toLowerCase():"xml",l=s.split("."),u=l[l.length-1]+".fragment."+c;for(let e=0;e<o.length;e++){const a=o[e],r=a.dataSourceUri.split(p.sep);if(r[r.length-1]===u){const e=JSON.parse(i.xml2json(a.fileContent,{compact:!0})),r=g(e[t.FRAGMENT_DEFINITION]);r&&(delete e[t.FRAGMENT_DEFINITION][r],a.fileContent=i.json2xml(JSON.stringify(e),{compact:!0,spaces:4}));break}}const f=e[a.replace(n.ViewTemplateType.ResponsiveTableColumnsExtension,n.ViewTemplateType.ResponsiveTableCellsExtension)];if(f){c=f.type?f.type.toLowerCase():"xml",s=f.fragmentName.substr(r.length+1),l=s.split("."),u=l[l.length-1]+".fragment."+c;for(let e=0;e<o.length;e++){const t=o[e];if(t.dataSourceUri.endsWith(u)){const e=JSON.parse(i.xml2json(t.fileContent)),a=e.elements[0].elements&&e.elements[0].elements.filter((e=>"element"===e.type));if(a)for(let e=0;e<a.length;e++)JSON.stringify(a[e])===h&&a.splice(e,1);break}}}}},t.exportToFragment=function(e,a,r,l,d,b){var P;const T=e.fragments,O=e.manifest;let C,S;const E=u.getManifestSectionByPathV2(O,a),_=E.type?E.type.toLowerCase():"xml";E.type=_.toUpperCase();for(let e=0;e<r.length;e++)r[e].fragmentName?(E.fragmentName=r[e].fragmentName,E.className=r[e].className,S=(null===(P=r[e].fragmentName)||void 0===P?void 0:P.replace(l,"<root>/webapp").replace(/[.]/g,p.sep))+".fragment."+_):c.log(b,{severity:"error",message:s.default.t("NOFRAGMENT",{columnKey:r[e].columnKey})});if(a.indexOf(n.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){const e=a.replace(n.ViewTemplateType.ResponsiveTableColumnsExtension,n.ViewTemplateType.ResponsiveTableCellsExtension),t=u.getManifestSectionByPathV2(O,e),i=r.reduce(((e,t)=>t.cellsFragmentName?t:e));i&&i.cellsFragmentName?(t.fragmentName=C=i.cellsFragmentName,t.className=r[0].className,t.type=_.toUpperCase()):u.deleteManifestSectionByPathV2(O,e)}const I=JSON.parse(JSON.stringify(r));let A=E.fragmentName,x=!1,F=!1;const N=A.substr(l.length+1),R=N.split(".");A=R[R.length-1]+".fragment."+_;const w=null==C?void 0:C.split("."),D=w?w[w.length-1]:null,j=D?D+".fragment."+_:null;if(T){for(let e=0;e<T.length;e++){const a=T[e];if(a.dataSourceUri.endsWith(A)){let e={};if(x=!0,a.fileContent&&0!==a.fileContent.length){const r=JSON.parse(i.xml2json(a.fileContent,{compact:!0}));if(e=y(r[t.FRAGMENT_DEFINITION]),e)if(Array.isArray(e))for(let t=0;t<e.length;t++){v(e[t],I)||(e.splice(t,1),t-=1)}else{if(!v(e,I)){const a=g(r[t.FRAGMENT_DEFINITION]);a&&(delete r[t.FRAGMENT_DEFINITION][a],e=void 0)}}for(let t=0;t<I.length;t++)if(I[t].fragmentName.endsWith(N)){const a=o.getSingleColumnContent(I[t],d);if(a){const t=y(JSON.parse(i.xml2json(a,{compact:!0})));Array.isArray(e)?e.push(t):e=e?[e,t]:[t]}}const n=f.get(d);r[t.FRAGMENT_DEFINITION][n]=e,a.fileContent=i.json2xml(JSON.stringify(r),{compact:!0,spaces:4})}else a.fileContent=o.getColumnFragmentContent(I,d);break}}if(C)for(let e=0;e<T.length;e++){const t=T[e],a=t.dataSourceUri.split(p.sep);if(a[a.length-1]===j){if(F=!0,t.fileContent&&0!==Object.keys(t.fileContent).length){const e=JSON.parse(i.xml2json(t.fileContent)),a=e.elements[0].elements&&e.elements[0].elements.filter((e=>"element"===e.type));if(!a||Object.keys(a).length!==Object.keys(r).length){if(!a||Object.keys(a).length<Object.keys(r).length){const t=a?Object.keys(a).length:0;e.elements[0].elements||(e.elements[0].elements=[]);for(let a=t;a<Object.keys(r).length;a++)e.elements[0].elements.push(m)}else if(Object.keys(a).length>Object.keys(r).length){let t=Object.keys(a).length-Object.keys(r).length;for(let a=0;a<Object.keys(e.elements[0].elements).length&&(JSON.stringify(e.elements[0].elements[a])!==h||(e.elements[0].elements.splice(a,1),t-=1,0!==t));a++);}t.fileContent=i.json2xml(JSON.stringify(e),{spaces:4})}}else t.fileContent=o.getResponsiveTableCellsFragment(r);break}}else F=!0}if(!x){const t={fileContent:o.getColumnFragmentContent(I,d),dataSourceUri:S};e.fragments.push(t)}if(!F){const t={fileContent:o.getResponsiveTableCellsFragment(r),dataSourceUri:S.replace(A,j)};e.fragments.push(t)}},t.getCustomColumnPath=(e,t,a,r)=>{const n=d.get(e.component.name);if(!r){let t=e.component.settings&&e.component.settings.tableSettings&&e.component.settings.tableSettings.type;t||(t="ResponsiveTable"),"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"===n&&(t="AnalyticalTable"),r=t+"ColumnsExtension"}let i=`${r}|${t}`;a&&(i+="|"+a);return{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+n+"/"+i,viewTemplateType:r}}},708:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(6971),i=a(2762),o=a(6088);class BaseCustomSection{}r([i.syncRule({manifest:{path:o.getObjectPageCustomSectionPath,export:!1,import:(e,t)=>t.split("|")[2]}}),i.validity({since:"1.52.0"})],BaseCustomSection.prototype,"relatedFacet",void 0),r([i.syncRule({manifest:{path:o.getObjectPageCustomSectionPath,export:!1,import:(e,t)=>t.split("|")[0]}}),i.validity({since:"1.52.0"})],BaseCustomSection.prototype,"relativePosition",void 0),r([i.syncRule({manifest:{path:(e,t,a)=>o.getObjectPageCustomSectionPath(e,{},a,n.ManifestSection.generic)}}),i.validity({since:"1.52.0"})],BaseCustomSection.prototype,"title",void 0),r([i.syncRule({manifest:{path:o.getObjectPageCustomSectionPath}}),i.validity({since:"1.52.0"})],BaseCustomSection.prototype,"className",void 0),t.BaseCustomSection=BaseCustomSection;class ObjectPageCustomSectionFragment extends BaseCustomSection{}r([i.syncRule({manifest:{path:o.getObjectPageCustomSectionPath}}),i.validity({since:"1.52.0"})],ObjectPageCustomSectionFragment.prototype,"fragmentName",void 0),r([i.syncRule({manifest:{path:o.getObjectPageCustomSectionPath}}),i.validity({since:"1.52.0"})],ObjectPageCustomSectionFragment.prototype,"type",void 0),t.ObjectPageCustomSectionFragment=ObjectPageCustomSectionFragment;class ObjectPageCustomSectionView extends BaseCustomSection{}r([i.syncRule({manifest:{path:o.getObjectPageCustomSectionPath}}),i.validity({since:"1.52.0"})],ObjectPageCustomSectionView.prototype,"viewName",void 0),r([i.syncRule({manifest:{path:o.getObjectPageCustomSectionPath}}),i.validity({since:"1.52.0"})],ObjectPageCustomSectionView.prototype,"type",void 0),t.ObjectPageCustomSectionView=ObjectPageCustomSectionView},3284:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5599),i=a(6088),o=a(5008);class ObjectPageHeader{}r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.46.0"})],ObjectPageHeader.prototype,"showRelatedApps",void 0),r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.46.0"})],ObjectPageHeader.prototype,"editableHeaderContent",void 0),r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.48.0"})],ObjectPageHeader.prototype,"simpleHeaderFacets",void 0),r([n.syncRule({flex:{controlId:(e,t)=>{const a=t.slice(0);return a[t.length-1]="objectImage",n.buildControlIdFromParent(e,a)},controlType:()=>o.ControlType.Avatar,createFlexChange:n.exportToFlexChange},generate:o.addPatternForBindingChangeOfEnum})],ObjectPageHeader.prototype,"displayShape",void 0),t.ObjectPageHeader=ObjectPageHeader},338:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5599),i=a(8517),o=a(5008);class HeaderAction{}r([n.syncRule({flex:{controlId:(e,t,a,r)=>{if("sap.m.Button"===r()){return e+"action::"+a[2]}return n.buildControlIdFromParent(e,t)},controlType:()=>i.ControlType.Button,createFlexChange:n.exportToFlexChange},generate:o.addPatternForBindingChangeOfEnum})],HeaderAction.prototype,"visible",void 0),t.HeaderAction=HeaderAction},8763:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(5599),o=a(8517),s=(e,t)=>{const a=t.slice(0);return a[t.length-1]="objectPage",i.buildControlIdFromParent(e,a)};class ObjectPageLayout{}r([n.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.ObjectPageLayout,createFlexChange:i.exportToFlexChange}})],ObjectPageLayout.prototype,"showHeaderContent",void 0),r([n.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.ObjectPageLayout,createFlexChange:i.exportToFlexChange}})],ObjectPageLayout.prototype,"showAnchorBar",void 0),r([n.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.ObjectPageLayout,createFlexChange:i.exportToFlexChange}})],ObjectPageLayout.prototype,"useIconTabBar",void 0),r([n.syncRule({flex:{controlId:s,controlType:()=>o.ControlType.ObjectPageLayout,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.34.0"})],ObjectPageLayout.prototype,"alwaysShowContentHeader",void 0),t.ObjectPageLayout=ObjectPageLayout},2269:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(5599),o=a(6088),s=a(5008),c=(e,t,a,r,n)=>{const o=a.slice(1,2);let s;return"sap.ui.comp.smarttable.SmartTable"===r()?s="Table":"sap.m.Table"===r()&&(s="responsiveTable"),o.push(s),o[0]=i.convertSectionId(o[0],n),i.buildControlIdFromParent(e,o)};class QuickVariantSelectionOP{}r([n.syncRule({manifest:{path:(e,t,a)=>o.getAppSettingOBJsectionPathV2(e,t,a)+"/quickVariantSelection"}}),n.validity({since:"1.48.0"})],QuickVariantSelectionOP.prototype,"showCounts",void 0),r([n.syncRule({manifest:{path:(e,t,a)=>o.getAppSettingOBJsectionPathV2(e,t,a)+"/quickVariantSelection"}}),n.validity({since:"1.48.0"})],QuickVariantSelectionOP.prototype,"variants",void 0),t.QuickVariantSelectionOP=QuickVariantSelectionOP;class ObjectPageCommonTableSettings{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}}r([n.syncRule({flex:{controlId:c,controlType:()=>s.ControlType.SmartTable,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.28.0"})],ObjectPageCommonTableSettings.prototype,"editable",void 0),r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}}),n.validity({since:"1.54.0"})],ObjectPageCommonTableSettings.prototype,"multiSelect",void 0),r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}}),n.validity({since:"1.70.0"})],ObjectPageCommonTableSettings.prototype,"selectAll",void 0),r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}}),n.validity({since:"1.70.0"})],ObjectPageCommonTableSettings.prototype,"selectionLimit",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2},hasDistinctDefinition:!0}),n.validity({since:"1.63.0"})],ObjectPageCommonTableSettings.prototype,"quickVariantSelection",void 0),r([n.syncRule({flex:{controlId:c,controlType:()=>s.ControlType.SmartTable,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.26.0"})],ObjectPageCommonTableSettings.prototype,"useExportToExcel",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2}}),n.validity({since:"1.48.5"})],ObjectPageCommonTableSettings.prototype,"createMode",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2}}),n.validity({since:"1.61.0"})],ObjectPageCommonTableSettings.prototype,"disableDefaultInlineCreateSort",void 0),t.ObjectPageCommonTableSettings=ObjectPageCommonTableSettings;class ObjectPageResponsiveTable extends ObjectPageCommonTableSettings{}r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}})],ObjectPageResponsiveTable.prototype,"type",void 0),r([n.syncRule({flex:{controlId:c,controlType:()=>s.ControlType.Table,createFlexChange:i.exportToFlexChange}})],ObjectPageResponsiveTable.prototype,"includeItemInSelection",void 0),r([n.syncRule({flex:{controlId:c,controlType:()=>s.ControlType.Table,createFlexChange:i.exportToFlexChange},generate:s.addPatternForBindingChangeOfEnum}),n.validity({since:"1.52.0"})],ObjectPageResponsiveTable.prototype,"popinLayout",void 0),r([n.syncRule({flex:{controlId:c,controlType:()=>s.ControlType.Table,createFlexChange:i.exportToFlexChange}}),n.validity({since:"1.16.0"})],ObjectPageResponsiveTable.prototype,"growingThreshold",void 0),t.ObjectPageResponsiveTable=ObjectPageResponsiveTable;class ObjectPageAnalyticalTable extends ObjectPageCommonTableSettings{}r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}})],ObjectPageAnalyticalTable.prototype,"type",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2}}),n.validity({since:"1.67.0"})],ObjectPageAnalyticalTable.prototype,"condensedTableLayout",void 0),t.ObjectPageAnalyticalTable=ObjectPageAnalyticalTable;class ObjectPageGridTable extends ObjectPageCommonTableSettings{}r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}})],ObjectPageGridTable.prototype,"type",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2}}),n.validity({since:"1.67.0"})],ObjectPageGridTable.prototype,"condensedTableLayout",void 0),t.ObjectPageGridTable=ObjectPageGridTable;class ObjectPageTreeTable extends ObjectPageCommonTableSettings{}r([n.syncRule({manifest:{path:o.getTableSettingsOBJsectionPathV2}})],ObjectPageTreeTable.prototype,"type",void 0),r([n.syncRule({manifest:{path:o.getAppSettingOBJsectionPathV2}}),n.validity({since:"1.67.0"})],ObjectPageTreeTable.prototype,"condensedTableLayout",void 0),t.ObjectPageTreeTable=ObjectPageTreeTable},6138:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(390),i=a(5008),o=a(5599),s=a(6088);t.getSmartTableControlId=(e,t,a,r)=>"sap.m.Table"===r()?e+"responsiveTable":"sap.ui.comp.smarttable.SmartTable"===r()&&e.includes("AnalyticalListPage")?e+"table":o.buildControlIdFromParent(e,t);class CreateWithFilters{}function c(e){return e||n.TableTypeV2.ResponsiveTable}function l(e,t){t.type&&(e.type||t.type!==n.TableTypeV2.ResponsiveTable)?e.type=t.type:delete e.type}r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)+"/createWithFilters"}})],CreateWithFilters.prototype,"strategy",void 0),t.CreateWithFilters=CreateWithFilters,t.exportType=l;class QuickVariantSelection{}r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)+"/quickVariantSelection"}}),o.validity({since:"1.48.0"})],QuickVariantSelection.prototype,"showCounts",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)+"/quickVariantSelection"}}),o.validity({since:"1.48.0"})],QuickVariantSelection.prototype,"variants",void 0),t.QuickVariantSelection=QuickVariantSelection;class CommonTableSettings{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}}r([o.syncRule({flex:{controlId:o.buildControlIdFromParent,controlType:()=>i.ControlType.SmartTable,createFlexChange:o.exportToFlexChange}}),o.validity({since:"1.38.0"})],CommonTableSettings.prototype,"showTablePersonalisation",void 0),r([o.syncRule({flex:{controlId:t.getSmartTableControlId,controlType:()=>i.ControlType.SmartTable,createFlexChange:o.exportToFlexChange}}),o.validity({since:"1.26.0"})],CommonTableSettings.prototype,"useExportToExcel",void 0),r([o.syncRule({flex:{controlId:t.getSmartTableControlId,controlType:()=>i.ControlType.SmartTable,createFlexChange:o.exportToFlexChange}})],CommonTableSettings.prototype,"fitContainer",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)},hasDistinctDefinition:!0}),o.validity({since:"1.48.0"})],CommonTableSettings.prototype,"quickVariantSelection",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e),export:(e,t)=>{const a=JSON.parse(JSON.stringify(t.quickVariantSelectionX));e.quickVariantSelectionX=a}}}),o.validity({since:"1.48.0"})],CommonTableSettings.prototype,"quickVariantSelectionX",void 0),r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e)}}),o.validity({since:"1.38.0"})],CommonTableSettings.prototype,"multiSelect",void 0),r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e)}}),o.validity({since:"1.70.0"})],CommonTableSettings.prototype,"selectAll",void 0),r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e)}}),o.validity({since:"1.70.0"})],CommonTableSettings.prototype,"selectionLimit",void 0),r([o.syncRule({flex:{controlId:t.getSmartTableControlId,controlType:()=>i.ControlType.SmartTable,createFlexChange:o.exportToFlexChange}}),o.validity({since:"1.40.0"})],CommonTableSettings.prototype,"enableAutoBinding",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.42.0"})],CommonTableSettings.prototype,"condensedTableLayout",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.56.0"})],CommonTableSettings.prototype,"enableTableFilterInPageVariant",void 0),t.CommonTableSettings=CommonTableSettings;class ResponsiveTable extends CommonTableSettings{}r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e),import:c,export:l}}),o.validity({since:"1.50.0"})],ResponsiveTable.prototype,"type",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)},hasDistinctDefinition:!0}),o.validity({since:"1.54.0"})],ResponsiveTable.prototype,"createWithFilters",void 0),r([o.syncRule({flex:{controlId:t.getSmartTableControlId,controlType:()=>i.ControlType.Table,createFlexChange:o.exportToFlexChange},generate:i.addPatternForBindingChangeOfEnum}),o.validity({since:"1.52.0"})],ResponsiveTable.prototype,"popinLayout",void 0),r([o.syncRule({flex:{controlId:t.getSmartTableControlId,controlType:()=>i.ControlType.Table,createFlexChange:o.exportToFlexChange}})],ResponsiveTable.prototype,"includeItemInSelection",void 0),r([o.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),o.validity({since:"1.63.0"})],ResponsiveTable.prototype,"showDraftToggle",void 0),r([o.syncRule({flex:{controlId:t.getSmartTableControlId,controlType:()=>i.ControlType.Table,createFlexChange:o.exportToFlexChange}}),o.validity({since:"1.16.0"})],ResponsiveTable.prototype,"growingThreshold",void 0),t.ResponsiveTable=ResponsiveTable;class TreeTable extends CommonTableSettings{}r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e),import:c,export:l}}),o.validity({since:"1.50.0"})],TreeTable.prototype,"type",void 0),r([o.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),o.validity({since:"1.63.0"})],TreeTable.prototype,"showDraftToggle",void 0),t.TreeTable=TreeTable;class AnalyticalTable extends CommonTableSettings{}r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e),import:c,export:l}}),o.validity({since:"1.50.0"})],AnalyticalTable.prototype,"type",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],AnalyticalTable.prototype,"qualifier",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],AnalyticalTable.prototype,"defaultContentView",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],AnalyticalTable.prototype,"defaultFilterMode",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.60.0"})],AnalyticalTable.prototype,"contentTitle",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],AnalyticalTable.prototype,"autoHide",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.60.0"})],AnalyticalTable.prototype,"filterDefaultsFromSelectionVariant",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)},hasDistinctDefinition:!0}),o.validity({since:"1.54.0"})],AnalyticalTable.prototype,"createWithFilters",void 0),r([o.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),o.validity({since:"1.63.0"})],AnalyticalTable.prototype,"showDraftToggle",void 0),t.AnalyticalTable=AnalyticalTable;class TableALP extends CommonTableSettings{}r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e),import:c,export:l}}),o.validity({since:"1.50.0"})],TableALP.prototype,"type",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],TableALP.prototype,"qualifier",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.38.0"}),o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],TableALP.prototype,"defaultContentView",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],TableALP.prototype,"defaultFilterMode",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.60.0"})],TableALP.prototype,"contentTitle",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}})],TableALP.prototype,"autoHide",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)}}),o.validity({since:"1.60.0"})],TableALP.prototype,"filterDefaultsFromSelectionVariant",void 0),t.TableALP=TableALP;class ALPResponsiveTable extends TableALP{}r([o.syncRule({flex:{controlId:t.getSmartTableControlId,controlType:()=>i.ControlType.Table,createFlexChange:o.exportToFlexChange}}),o.validity({since:"1.16.0"})],ALPResponsiveTable.prototype,"growingThreshold",void 0),t.ALPResponsiveTable=ALPResponsiveTable;t.ALPGridTable=class ALPGridTable extends TableALP{};t.ALPAnalyticalTable=class ALPAnalyticalTable extends TableALP{};class GridTable extends CommonTableSettings{}r([o.syncRule({manifest:{path:e=>s.getTableSettingPathV2(e),import:c,export:l}}),o.validity({since:"1.50.0"})],GridTable.prototype,"type",void 0),r([o.syncRule({manifest:{path:e=>s.getAppSettingPathV2(e)},hasDistinctDefinition:!0}),o.validity({since:"1.54.0"})],GridTable.prototype,"createWithFilters",void 0),r([o.syncRule({manifest:{path:()=>"sap.ui.generic.app/settings"}}),o.validity({since:"1.63.0"})],GridTable.prototype,"showDraftToggle",void 0),t.GridTable=GridTable},8210:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(8517),i=a(5599),o=a(5008);class TableColumn{}r([i.syncRule({flex:{controlId:i.buildColumnControlId,controlType:()=>n.ControlType.TableColumn,createFlexChange:i.exportToFlexChange}})],TableColumn.prototype,"width",void 0),r([i.syncRule({flex:{controlId:i.buildColumnControlId,controlType:()=>n.ControlType.TableColumn,createFlexChange:i.exportToFlexChange},generate:o.addPatternForBindingChangeOfEnum})],TableColumn.prototype,"hAlign",void 0),t.TableColumn=TableColumn;t.TableCustomColumn=class TableCustomColumn{}},7040:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(296)),r(a(6138)),r(a(8210)),r(a(8049)),r(a(3284)),r(a(338)),r(a(8763)),r(a(2269)),r(a(5682)),r(a(708)),r(a(8722)),r(a(8378))},2432:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(7072),i=r(a(1199)),o=r(a(4366)),s=r(a(4225)),c=a(7040),l=a(5008),u=a(3374),p=a(6088),f=a(1350),d=a(1403),m=r(a(9154)),h=e=>({flexChanges:[],manifest:{"sap.ui.generic.app":{pages:{}}},fragments:e||[]});function g(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={})}function y(e,t){if(e.includes(t)){const a=t.split("|");return 3===a.length?a.push("1"):a[3]=(parseInt(a[3])+1).toString(),y(e,a.join("|"))}return t}function v(e,t,a,r,n,i,o){n&&(n.properties?P(e,t,a,r,n.properties,i,o):n.additionalProperties&&P(e,t,a,r,n.additionalProperties,i,o))}function b(e,t,a,r){return e.createInstance(u.PageType.OverviewPage,r,a,t)}function P(e,t,a,r,n,i,o){let c,p=!1,d=!1;const m=["colorPalette","tabs"];for(const h in n){c=e[h];let y=l.getReflectMetadata(e,h);if("anyOfObject"===o[o.length-1]&&(p=!0,o.pop()),p&&(c=e[o[o.length-1]][h],y=l.getReflectMetadata(e,o[o.length-1])),"objectProperties"===o[o.length-1]&&(d=!0,o.pop()),d&&(c=e[o[o.length-1]][h],y=l.getReflectMetadata(e,o[o.length-1])),"anyOf"===o[o.length-1]){o.pop();for(const s in n.anyOf)if(n.anyOf[s].$ref){const l=n.anyOf[s].$ref.split("#/definitions/"),u=r.definitions[l[l.length-1]],p=o[1];c=e[p],c=b(i,p,c,"CustomCard"),v(c,t,a,r,u,i,[...o])}else"object"==typeof n.anyOf[s]&&P(e,t,a,r,n.anyOf[s].properties,i,[...o,"anyOfObject"])}if(y&&y.manifest){const t=y.manifest.path([...o,h]),r=f.getManifestSectionByPathV2(a.manifest,t);if(h in u.CardSettingsType||"settings"===h)r.settings=s.default(r.settings||{},c||{},{arrayMerge:l.arrayCombineMerge});else if(void 0!==c){const t=y.manifest.export;!1!==t&&(t&&"function"==typeof t?t(r,e,h):"object"!=typeof c||m.includes(h)?r[h]=c:r[h]=s.default(r[h]||{},c||{},{arrayMerge:l.arrayCombineMerge}))}else void 0!==r[h]&&delete r[h]}if(c&&"object"==typeof c&&n[h])if("cards"===h)Object.keys(c).forEach((e=>{const n=c[e].template;let o;o=Object.values(u.CardTemplateType).includes(n)?Object.keys(r.definitions).filter((t=>{var a,n,i;return(null===(i=null===(n=null===(a=r.definitions[t].properties)||void 0===a?void 0:a.template)||void 0===n?void 0:n.enum)||void 0===i?void 0:i.indexOf(c[e].template))>-1})):["CustomCard"],c[e]=b(i,o[0],c[e],"CustomCard"),g(e,a.manifest[u.ManifestSection.ovp]),v(c[e],t,a,r,r.definitions[o[0]],i,[e])})),Object.keys(t[u.ManifestSection.ovp].cards).forEach((e=>{c[e]||delete a.manifest[u.ManifestSection.ovp].cards[e]}));else if(n[h].$ref){const e=n[h].$ref.split(l.DEFINITION_LINK_PREFIX),s=r.definitions[e[e.length-1]];c=b(i,h,c,"settings"===h?"CustomCard":""),v(c,t,a,r,s,i,[...o,h])}else n[h].anyOf?P(e,t,a,r,n[h],i,[...o,h,"anyOf"]):void 0!==n[h].properties&&P(e,t,a,r,n[h].properties,i,[...o,h,"objectProperties"])}}function T(e,t,a,r,n,i,o,s,c,u,p,d){let m,h=a.indexOf("subsections");for(;h>-1;)a.splice(h-1,2),h=a.indexOf("subsections");if(e.flex){m=0===a.length?["page"]:a;const u=l.createFlexChange(t,m,e,d,r,n,i,o);let p;const f=e.flex.createFlexChange(u,c);s.flexChanges.find((e=>{let t=JSON.parse(e);t={content:t.content,selector:t.selector};let a=JSON.parse(f);return a={content:a.content,selector:a.selector},JSON.stringify(t)===JSON.stringify(a)&&(p=!0),p})),p||s.flexChanges.push(f)}else if(e.manifest){const r=function(){let r;return"sections"===a[0]?"custom"===a[1]?r=e.manifest.path(u,{},a[2]):(r=e.manifest.path(u,{},a[1]),r=r.replace("/@","::").replace(/::@com.sap.vocabularies/g,"::com.sap.vocabularies")):r="table"===a[0]?"columns"===a[1]&&"custom"===a[2]?e.manifest.path(u,c,t.tabKey):e.manifest.path(u,{},a[1]):"keyPerformanceIndicators"===a[0]?e.manifest.path(u,c,i):e.manifest.path(u),r}();p=f.getManifestSectionByPathV2(s.manifest,r);const n=e.manifest.key||o;if(void 0!==t[o])if(e.hasDistinctDefinition)void 0===p[n]&&(p[n]={});else{const a=e.manifest.export;!1!==a&&(a&&"function"==typeof a?a(p,t,o):p[n]=t[o])}else Object.prototype.hasOwnProperty.call(p,n)&&delete p[n];l.deleteEmptyStructure(s.manifest,r)}}function O(e,t,a,r,n,i,o){const s=o?o.key:void 0,p=(o?o.target:void 0)||i.entitySet;for(const r in u.TableColumnExtensionTypeV2){const{path:n,viewTemplateType:o}=c.getCustomColumnPath(i,p,s,r);if(!n)continue;const u=n.substr(0,n.lastIndexOf("/")),d=f.getManifestSectionByPathV2(t.manifest,u),m=n.substr(n.lastIndexOf("/")+1);for(const n in d)if(n.startsWith(m)){const[i,o,u]=n.split("|");if(o===p){const i=null==e?void 0:e.filter((e=>(e.tabKey===u||void 0===u&&""===e.tabKey||u&&s===u)&&e.extensionType===r));if((!i||0===i.length)&&(c.deleteColumnFromFragment(d,n,a,t.fragments),delete d[n],n.startsWith(l.ViewTemplateType.ResponsiveTableColumnsExtension))){const e=n.replace(l.ViewTemplateType.ResponsiveTableColumnsExtension,l.ViewTemplateType.ResponsiveTableCellsExtension);c.deleteColumnFromFragment(d,e,a,t.fragments),delete d[e]}}}}const d={};if(e){for(let t=0;t<e.length;t++){const a=e[t];if(!(a.className&&a.fragmentName&&a.columnKey&&a.extensionType))continue;if(r.properties.fragmentName.pattern){if(!1===new RegExp(r.properties.fragmentName.pattern).test(a.fragmentName))continue}const{path:n,viewTemplateType:o}=c.getCustomColumnPath(i,p,a.tabKey||s,a.extensionType);d[n]||(d[n]={viewTemplateType:o,columns:[]}),d[n].columns.push(a)}for(const e in d)c.exportToFragment(t,e,d[e].columns,a,d[e].viewTemplateType,n)}}function C(e,t,a,r,n,i,o,s,c,u,m,h,g,v,b){const P=[],T=a.split("|")[1];if(!t)return;for(const e of t){const t=y(P,[e.relativePosition,T,e.relatedFacet].join("|"));P.push(t)}for(const a in P){const p=g.anyOf.find((e=>e.$ref.includes(t[a].constructor.name))).$ref.split(l.DEFINITION_LINK_PREFIX),f=h.definitions[p[p.length-1]];E(e,r,t[a],n,i,[...o,P[a]],s,c,u,m,h,f,v,b)}const O=f.getManifestSectionByPathV2(s.manifest,p.getViewExtensionsPath());for(const e in O)d.isAssociatedCustomSection(e,T)&&!P.includes(e)&&delete O[e]}function S(e,t){let a;for(let t=e.length-1;t>=0;t--)if("table"===e[t]){a=e[t-1];break}return l.convertSectionId(a,t)}function E(e,t,a,r,n,i,o,s,c,u,p,f,m,h,g,y){let v;if(f&&f.properties)for(const b in f.properties){v=a&&a[b];const P=a&&l.getChildId(a,b),_=P?[...r,P]:r,I=l.getReflectMetadata(a,b);I&&T(I,a,i,c,_,g,b,o,t,u,undefined,m);const A=f.properties[b];if(v&&A.additionalProperties&&Object.keys(v).forEach((a=>{const r=l.getNextTargetDefinition(p,g,v[a],A.additionalProperties,b,h,e);E(e,t,r.configObject,_,n,[...i,b],o,s,c,u,p,r.targetDefinition,m,h,a,y)})),void 0!==v&&"object"!=typeof v||!A){if(A&&A.$ref===l.DEFINITION_LINK_PREFIX+"TableCustomColumns"){O([],o,s,p.definitions.TableCustomColumn,y,n);continue}}else{if("array"===A.type&&("sections"===i[0]||"subsections"===i[0])&&"custom"===b){C(e,a[b],u[u.length-1],t,_,n,[...i,b],o,s,c,u,p,A.items,m,h);continue}let r=l.getNextTargetDefinition(p,g,v,A,b,h,e);if(r&&"custom"===b){let e;const t=d.getTargetFromCustomColumnRef(A.$ref);t&&(e={target:t,key:S(i,g)}),O(null==a?void 0:a.custom,o,s,r.targetDefinition,y,n,e);continue}r?E(e,t,r.configObject,_,n,[...i,b],o,s,c,u,p,r.targetDefinition,m,h,r.title,y):A.anyOf&&A.anyOf.forEach((a=>{r=l.getNextTargetDefinition(p,g,v,a,b,h,e),r&&E(e,t,r.configObject,_,n,[...i,b],o,s,c,u,p,r.targetDefinition,m,h,r.title,y)}))}}}function _(e,t,a,r,i,o,s){const c=t.config,p=t.entitySet,f=h(o),m=new n.MetadataInstanceFactoryV2,g=m.createPageInstance(u.PageType.ObjectPage,c);if(c){const t=`${e}::${l.getPageLayoutInformation(g).id}::${p}--`;f.manifest=JSON.parse(JSON.stringify(a));const n=[],o=d.findObjectPage(a[u.ManifestSection.generic].pages,p,n);return o?(c&&c.sections&&function(e,t,a,r){var n;function i(e,t,a,r){if(e&&"custom"===t&&Array.isArray(e))for(const t in e)e[t].className===u.SAPUI5_FRAGMENT_CLASS?e[t]=r.createInstance(u.PageType.ObjectPage,"ObjectPageCustomSectionFragment",e[t]):e[t]=r.createInstance(u.PageType.ObjectPage,"ObjectPageCustomSectionView",e[t])}function o(e,t){var r;if(e.subsections){let n,s;for(const c in e.subsections)n=e.subsections[c],s=(null===(r=a.component.settings)||void 0===r?void 0:r.sections)&&a.component.settings.sections[c],i(n,c,0,t),o(n,t)}}let s,c;for(const l in e.sections)s=t.sections[l],c=(null===(n=a.component.settings)||void 0===n?void 0:n.sections)&&a.component.settings.sections[l],i(s,l,0,r),o(s,r)}(c,g,o,m),c&&0!==Object.keys(c).length&&E(u.PageType.ObjectPage,f.manifest,g,[],o,[],f,e,t,n,r,r,i,m,void 0,s),f):f}return f.manifest=JSON.parse(JSON.stringify(a)),f}t.assignReflectMetadataRules=b;t.exportPageV2=function(e,t){if(e[u.SchemaType.ListReport]){const{appId:a,page:r,manifest:i,jsonSchema:o,fragments:s,logger:c}=e[u.SchemaType.ListReport];return function(e,t,a,r,i,o,s){const c=t.config,p=t.entitySet,f=h(o),g=new n.MetadataInstanceFactoryV2,y=g.createPageInstance(u.PageType.ListReport,c),v=`${e}::${l.getPageLayoutInformation(y).id}::${p}--`,b=[],P=d.findListReportPage(a[u.ManifestSection.generic].pages,b);if(P)return P.component.settings||(P.component.settings={}),f.manifest=JSON.parse(JSON.stringify(a)),c&&0!==Object.keys(c).length&&E(u.PageType.ListReport,f.manifest,y,[],P,[],f,e,v,b,r,r,i,g,void 0,s),f;u.log(s,{severity:"error",message:m.default.t("NOLR"),location:{path:u.MANIFESTPATH,range:[u.ManifestSection.generic]}})}(a,r,i,o,t,s,c)}if(e[u.SchemaType.ObjectPage]){const{appId:a,page:r,manifest:n,jsonSchema:i,fragments:o,logger:s}=e[u.SchemaType.ObjectPage];return _(a,r,n,i,t,o,s)}if(e[u.SchemaType.OverviewPage]){const{page:t,manifest:a,jsonSchema:r}=e[u.SchemaType.OverviewPage];return((e,t,a)=>{const r=h(),s=new n.MetadataInstanceFactoryV2,c=s.createPageInstance(u.PageType.OverviewPage,e),l=new i.default({allErrors:!0}).compile(a);if(!l(c))for(const e of l.errors){const t=e.params.additionalProperty;"additionalProperties"!==e.keyword||Object.values(u.CardSettingsType).includes(e.params.additionalProperty)||"settings"===t||o.default(c,`${e.dataPath.slice(1)}.${t}`)}return r.manifest=JSON.parse(JSON.stringify(t)),e&&0!==Object.keys(e).length&&v(c,r.manifest,r,a,a,s,[]),r})(t.config,a,r)}if(e[u.SchemaType.Application]){const{application:t,manifest:a,jsonSchema:r}=e[u.SchemaType.Application];return((e,t,a)=>{const r=h();r.manifest=JSON.parse(JSON.stringify(t));const n=Object.assign(new p.ApplicationV2,e);n.settings=Object.assign(new p.AppSettings,e.settings);for(const t in a.definitions.AppSettings.properties){const a=l.getReflectMetadata(n.settings,t);if(a&&a.manifest){const n=a.manifest.path(),i=f.getManifestSectionByPathV2(r.manifest,n);e.settings&&void 0!==e.settings[t]?i[t]=e.settings[t]:delete i[t]}}const i=r.manifest[u.ManifestSection.generic]&&r.manifest[u.ManifestSection.generic].pages;return i&&e.pages&&f.transformPageToNewManifestV2(e.home,e.pages,Object.values(i)[0]),r})(t,a,r)}if(e[u.SchemaType.AnalyticalListPage]){const{appId:a,page:r,manifest:i,jsonSchema:o,fragments:s,logger:c}=e[u.SchemaType.AnalyticalListPage];return function(e,t,a,r,i,o,s){const c=t.config,p=t.entitySet,f=h(o);f.flexChanges=[],f.manifest=JSON.parse(JSON.stringify(a));const g=new n.MetadataInstanceFactoryV2,y=g.createPageInstance(u.PageType.AnalyticalListPage,c),v=`${e}::${l.getPageLayoutInformation(y).id}::${p}--`,b=[],P=d.findAnalyticalListPage(a[u.ManifestSection.generic].pages,b);if(P)return P.component.settings||(P.component.settings={}),f.manifest=JSON.parse(JSON.stringify(a)),c&&0!==Object.keys(c).length&&E(u.PageType.AnalyticalListPage,f.manifest,y,[],P,[],f,e,v,b,r,r,i,g,void 0,s),f;u.log(s,{severity:"error",message:m.default.t("NOALP"),location:{path:u.MANIFESTPATH,range:[u.ManifestSection.generic]}})}(a,r,i,o,t,s,c)}}},7072:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=a(390),i=r(a(7040)),o=r(a(2486)),s=a(6785),c=a(6971),l={Table:i.ResponsiveTable,ResponsiveTableWithMultiSelect:i.ResponsiveTable,ResponsiveTableWithInlineDelete:i.ResponsiveTable},u={[n.CardSettingsType.listCardSettings]:i.ListCard,[n.CardSettingsType.analyticalCardSettings]:i.AnalyticalCard,[n.CardSettingsType.stackCardSettings]:i.StackCard,[n.CardSettingsType.linkListCardSettings]:i.LinklistCard,[n.CardSettingsType.tableCardSettings]:i.TableCard},p={[c.SAPUI5_VIEW_CLASS]:i.ObjectPageCustomSectionView,[c.SAPUI5_FRAGMENT_CLASS]:i.ObjectPageCustomSectionFragment,Table:i.ObjectPageResponsiveTable,ObjectPageResponsiveTableWithMultiSelect:i.ObjectPageResponsiveTable,ObjectPageResponsiveTableWithInlineDelete:i.ObjectPageResponsiveTable},f={[c.PageType.AnalyticalListPage]:{},[c.PageType.ListReport]:l,[c.PageType.ObjectPage]:p,[c.PageType.OverviewPage]:u};class MetadataInstanceFactoryV2 extends s.MetadataFactory{constructor(){super(i,o,f)}}t.MetadataInstanceFactoryV2=MetadataInstanceFactoryV2},1350:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(6971);function n(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}function i(e,t,a){if(e)for(const r in e){const n=e[r];if(n.entitySet===t&&n.navigationProperty===a)return n}}t.getManifestSectionByPathV2=(e,t)=>{let a=e;return t.split("/").forEach((function(e){a[e]||(a[e]={}),a=a&&a[e]})),a||{}},t.deleteEmptyStructure=(e,t)=>{let a=e;t.split("/").forEach((function(e){a[e]&&(0!==Object.keys(a[e]).length?a=a&&a[e]:delete a[e])}))},t.deleteManifestSectionByPathV2=(e,t)=>{let a=e;for(let e=0;e<t.split("/").length;e++){const r=t.split("/")[e];e===t.split("/").length-1?delete a[r]:a=a&&a[r]}},t.transformPageToNewManifestV2=function e(t,a,o){const s=a[t];if(s&&(s.entitySet&&(o.entitySet=s.entitySet),s.pageType===r.PageType.ListReport&&(o.component.list=!0),s.navigationProperty&&(o.navigationProperty=s.navigationProperty),s.defaultLayoutType?o.defaultLayoutType=s.defaultLayoutType:"defaultLayoutType"in o&&delete o.defaultLayoutType,s.navigation)){for(const t in s.navigation)if(a[t]&&(o.pages&&!Object.values(o.pages)[0]&&(o.pages[`${a[t].pageType}|${a[t].entitySet}`]=n(a[t].pageType)),o.pages||(o.pages={[`${a[t].pageType}|${a[t].entitySet}`]:n(a[t].pageType)}),!Array.isArray(o.pages))){let r=i(o.pages,a[t].entitySet,a[t].navigationProperty);r||(o.pages[`${a[t].pageType}|${a[t].entitySet}`]=r=n(a[t].pageType)),e(t,a,r)}Array.isArray(o.pages)||(o.pages&&Object.keys(o.pages).forEach((e=>{const t=o.pages[e];if("sap.suite.ui.generic.template.ObjectPage"===t.component.name){const r=t.navigationProperty?`ObjectPage_${t.entitySet}_${t.navigationProperty}`:`ObjectPage_${t.entitySet}`;a[r]||delete o.pages[e]}})),s.pageType!==r.PageType.ListReport&&s.pageType!==r.PageType.AnalyticalListPage||0!==Object.keys(s.navigation).length||delete o.pages)}}},3318:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(390),i=a(2762),o=a(2762),s=a(5599),c=a(8517);let l=class AnalyticalListPage{};r([o.syncRule({flex:{controlId:s.buildControlIdForPage,controlType:()=>c.ControlType.DynamicPage,createFlexChange:s.exportToFlexChange}})],l.prototype,"fitContent",void 0),r([i.childId("table")],l.prototype,"table",void 0),r([i.childId("template::SmartFilterBar")],l.prototype,"filterBar",void 0),r([i.childId("analyticalListPageChart")],l.prototype,"chart",void 0),l=r([i.pageLayoutInformation({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:n.FE_TEMPLATE_V2_ALP})],l),t.AnalyticalListPage=l},5972:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(390),i=a(2762),o=a(2762),s=a(5599),c=a(8517);let l=class ListReport{};r([o.syncRule({flex:{controlId:s.buildControlIdForPage,controlType:()=>c.ControlType.DynamicPage,createFlexChange:s.exportToFlexChange}})],l.prototype,"fitContent",void 0),r([i.childId("listReportFilter")],l.prototype,"filterBar",void 0),r([i.childId("listReport")],l.prototype,"table",void 0),l=r([i.pageLayoutInformation({id:n.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:n.FE_TEMPLATE_V2_LIST_REPORT})],l),t.ListReport=l},650:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(6088),o=a(390);let s=class ObjectPage{};r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.52.0"})],s.prototype,"showConfirmationOnDraftActivate",void 0),r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.52.1"})],s.prototype,"hideChevronForUnauthorizedExtNav",void 0),r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.48.0"})],s.prototype,"allowDeepLinking",void 0),r([n.syncRule({manifest:{path:e=>i.getAppSettingOBJPathV2(e)}}),n.validity({since:"1.52.0"})],s.prototype,"navToListOnSave",void 0),r([n.childId("header")],s.prototype,"header",void 0),r([n.childId("sections")],s.prototype,"sections",void 0),r([n.childId("layout")],s.prototype,"layout",void 0),s=r([n.pageLayoutInformation({id:o.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:o.FE_TEMPLATE_V2_OBJECT_PAGE})],s),t.ObjectPage=s},8607:function(e,t,a){"use strict";var r=this&&this.__decorate||function(e,t,a,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,a,o):n(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};Object.defineProperty(t,"__esModule",{value:!0});const n=a(2762),i=a(6088);let o=class OverviewPage{};r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"globalFilterModel",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"globalFilterEntityType",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"globalFilterEntitySet",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"containerLayout",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"smartVariantRequired",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"showDateInRelativeFormat",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"enableLiveFilter",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"imageSupported",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"considerAnalyticalParameters",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"refreshIntervalInMinutes",void 0),r([n.syncRule({manifest:{path:e=>i.getGlobalSettingsPath(e)}})],o.prototype,"useDateRangeType",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"showBasicSearch",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"disableErrorPage",void 0),r([n.syncRule({manifest:{path:()=>i.getOVPsettingPath()}})],o.prototype,"bHeaderExpanded",void 0),o=r([n.pageLayoutInformation({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],o),t.OverviewPage=o},2486:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(3318)),r(a(5972)),r(a(650)),r(a(8607))},4667:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(5622),n=a(5179),i=a(5747),o=r.join(__dirname,"templates");var s;!function(e){e.XML="xml",e.HTML="html",e.JS="js",e.JSON="json"}(t.ViewTypes||(t.ViewTypes={})),function(e){e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode"}(s=t.DirName||(t.DirName={}));const c=(e,t)=>{const a=i.readFileSync(e,"utf8");return n.render(a,t)},l=e=>e.replace(/[^\w\s-]/gi,"");t.getControllerContent=(e,t,a=!1,n)=>{const i={name:t+"."+l(e),newControllerRouting:n};return c(r.join(o,a?"controllerFcl.js":"controller.js"),i)},t.getViewContent=(e,t,a,n=!1,i=!0)=>{const s=l(e),u={name:s,controllerName:"",page:i};return n&&(u.controllerName=t+".controller."+s),c(r.join(o,"view."+a),u)},t.getFragmentContent=(e,t,a,n=!1)=>{const i=l(e),u={name:i,handler:""};return n&&(u.handler=`${t.replace(/\./g,"/")}/${s.Fragment}/${i}`),c(r.join(o,"fragment."+a),u)},t.getSingleColumnContent=(e,t)=>{const a={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:void 0!==e.columnIndex?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return c(r.join(o,t+".xml"),a)},t.getColumnFragmentContent=(e,a)=>{let r="";if(r='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let n=0;n<e.length;n++){const i=e[n];r=r+"\n"+t.getSingleColumnContent(i,a)}return r+"\n</core:FragmentDefinition>"},t.getResponsiveTableCellsFragment=e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';if(e)for(let a=0;a<e.length;a++)t+='\n<Text text="Placeholder"></Text>';return t+"\n</core:FragmentDefinition>"},t.getFragmentJsContent=()=>c(r.join(o,"fragment.js"),{})},3026:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(468),i=a(4330),o=a(5008),s=r(a(9154)),c=a(2449),l=a(3374);t.generateAnalyticalListReportSchemaV2=function(e,t,a,r,u,p){var f,d;c.initI18n();const m=JSON.parse(JSON.stringify(e));m.properties.table.anyOf[0].$ref=o.DEFINITION_LINK_PREFIX+"ALPResponsiveTable<LineItems>";const h=JSON.parse(JSON.stringify(m.definitions.ALPResponsiveTable));h.properties.columns.$ref=o.DEFINITION_LINK_PREFIX+"LineItems",h.properties.toolBar.$ref=o.DEFINITION_LINK_PREFIX+"ToolBar<LineItems>",m.definitions["ALPResponsiveTable<LineItems>"]=h,m.properties.table.anyOf[1].$ref=o.DEFINITION_LINK_PREFIX+"ALPGridTable<LineItems>";const g=JSON.parse(JSON.stringify(m.definitions.ALPGridTable));g.properties.columns.$ref=o.DEFINITION_LINK_PREFIX+"LineItems",g.properties.toolBar.$ref=o.DEFINITION_LINK_PREFIX+"ToolBar<LineItems>",m.definitions["ALPGridTable<LineItems>"]=g,m.properties.table.anyOf[2].$ref=o.DEFINITION_LINK_PREFIX+"ALPAnalyticalTable<LineItems>";const y=JSON.parse(JSON.stringify(m.definitions.ALPAnalyticalTable));y.properties.columns.$ref=o.DEFINITION_LINK_PREFIX+"LineItems",y.properties.toolBar.$ref=o.DEFINITION_LINK_PREFIX+"ToolBar<LineItems>",m.definitions["ALPAnalyticalTable<LineItems>"]=y,n.removeElementsFromEnum(m.definitions.TableColumnExtensionTypeV2.enum,[l.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);const v=null==a?void 0:a.find((e=>e.name===t));if(v){const e=null===(d=null===(f=null==v?void 0:v.annotations)||void 0===f?void 0:f.UI)||void 0===d?void 0:d.LineItem;n.addLineItemsType(m,e,v);const t=[],a=i.findAnalyticalListPage(r[l.ManifestSection.generic].pages,t);if(!a)return void l.log(p,{severity:"error",message:s.default.t("NOALP"),location:{path:l.MANIFESTPATH,range:[l.ManifestSection.generic]}});n.addListReportColumnExtensions(m,v,a,r,u),delete m.definitions.ALPGridTable,delete m.definitions.ALPResponsiveTable,delete m.definitions.ALPAnalyticalTable,delete m.definitions.GenericColumns,delete m.definitions.ToolBar,delete m.definitions.Actions}else l.log(p,{severity:"error",message:s.default.t("NOENTITYTYPE",{entityType:t}),location:{path:o.METADATAPATH}});return m}},220:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(9081),n=a(8289),i=a(6083),o=a(3026),s=a(1353);t.generateObjectPageInterfaceV2=function(e,t,a,i,o,s){const c=r.parseAndMergeAndConvert(a,s);return n.generateObjectPageSchemaV2(e,t,c,i,o,s)},t.generateListReportInterfaceV2=function(e,t,a,n,o,s){const c=r.parseAndMergeAndConvert(a,s);return i.generateListReportSchemaV2(e,t,c.entityTypes,n,o,s)},t.generateOVPInterfaceV2=function(e,t){return s.generateOverviewPageSchemaV2(e,t)},t.generateAnalyticalListPageInterfaceV2=function(e,t,a,n,i,s){const c=r.parseAndMergeAndConvert(a,s);return o.generateAnalyticalListReportSchemaV2(e,t,null==c?void 0:c.entityTypes,n,i,s)}},1918:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(220);t.generateAnalyticalListPageInterfaceV2=r.generateAnalyticalListPageInterfaceV2,t.generateListReportInterfaceV2=r.generateListReportInterfaceV2,t.generateObjectPageInterfaceV2=r.generateObjectPageInterfaceV2,t.generateOVPInterfaceV2=r.generateOVPInterfaceV2;var n=a(8289);t.generateObjectPageSchemaV2=n.generateObjectPageSchemaV2;var i=a(6083);t.generateListReportSchemaV2=i.generateListReportSchemaV2;var o=a(3026);t.generateAnalyticalListReportSchemaV2=o.generateAnalyticalListReportSchemaV2},6083:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(468),i=a(4330),o=a(5008),s=r(a(9154)),c=a(2449),l=a(3374);t.generateListReportSchemaV2=function(e,t,a,r,u,p){c.initI18n();const f=JSON.parse(JSON.stringify(e));f.properties.table.anyOf[0].$ref=o.DEFINITION_LINK_PREFIX+"ResponsiveTable<LineItems>",f.properties.table.anyOf[1].$ref=o.DEFINITION_LINK_PREFIX+"TreeTable<LineItems>",f.properties.table.anyOf[2].$ref=o.DEFINITION_LINK_PREFIX+"AnalyticalTable<LineItems>",f.properties.table.anyOf[3].$ref=o.DEFINITION_LINK_PREFIX+"GridTable<LineItems>";const d=JSON.parse(JSON.stringify(f.definitions.ResponsiveTable)),m=JSON.parse(JSON.stringify(f.definitions.TreeTable)),h=JSON.parse(JSON.stringify(f.definitions.AnalyticalTable)),g=JSON.parse(JSON.stringify(f.definitions.GridTable)),y={$ref:o.DEFINITION_LINK_PREFIX+"LineItems"};d.properties.columns=y,m.properties.columns=y,h.properties.columns=y,g.properties.columns=y;const v=o.DEFINITION_LINK_PREFIX+"ToolBar<LineItems>";f.definitions["ResponsiveTable<LineItems>"]=d,f.definitions["ResponsiveTable<LineItems>"].properties.toolBar.$ref=v,f.definitions["TreeTable<LineItems>"]=m,f.definitions["TreeTable<LineItems>"].properties.toolBar.$ref=v,f.definitions["AnalyticalTable<LineItems>"]=h,f.definitions["AnalyticalTable<LineItems>"].properties.toolBar.$ref=v,f.definitions["GridTable<LineItems>"]=g,f.definitions["GridTable<LineItems>"].properties.toolBar.$ref=v;const b=a.find((e=>e.name===t));if(b){const e=b.annotations&&b.annotations.UI&&b.annotations.UI.LineItem;n.addLineItemsType(f,e,b);const t=[],a=i.findListReportPage(r[l.ManifestSection.generic].pages,t);if(!a)return void l.log(p,{severity:"error",message:s.default.t("NOALP"),location:{path:l.MANIFESTPATH,range:[l.ManifestSection.generic]}});n.addListReportColumnExtensions(f,b,a,r,u),delete f.definitions.ResponsiveTableWithMultiSelect,delete f.definitions.ResponsiveTableWithInlineDelete,delete f.definitions.TreeTable,delete f.definitions.AnalyticalTable,delete f.definitions.GridTable,delete f.definitions.GenericColumns,delete f.definitions.ToolBar,delete f.definitions.Actions}else l.log(p,{severity:"error",message:s.default.t("NOENTITYTYPE",{entityType:t}),location:{path:o.METADATAPATH}});return f}},8289:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(5008),i=a(468),o=a(4330),s=a(3374),c=a(6971),l=r(a(9154)),u=a(2449);function p(e,t,a,r){const i=`${e}<${t}>`;r.definitions[i]=JSON.parse(JSON.stringify(r.definitions[e])),r.definitions[i].properties.columns.$ref=n.DEFINITION_LINK_PREFIX+t,r.definitions[i].properties.toolBar.$ref=`${n.DEFINITION_LINK_PREFIX}ObjectPageToolBar<${t}>`,r.definitions[i].annotationPath=a.annotationPath,void 0!==a.ID&&(r.definitions[i].title=n.FacetTitlePrefix+a.ID),a.Label&&(r.definitions[i].description=a.Label)}function f(e,t,a,r,s,l,u){if("LineItem"!==a.base||!e)return;const f=e.split("::")[0],d="ObjectPageSectionTableV2<"+e+">";t.definitions[d]={type:"object",properties:{table:{anyOf:[{$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageResponsiveTable<"+e+">"},{$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageAnalyticalTable<"+e+">"},{$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageGridTable<"+e+">"},{$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageTreeTable<"+e+">"}]}},additionalProperties:!1,annotationPath:a.annotationPath},a.ID&&(t.definitions[d].title=n.FacetTitlePrefix+a.ID),a.Label&&(t.definitions[d].description=a.Label);const m=a.entityType?null==s?void 0:s.entitySets.find((e=>e.entityType.name===a.entityType.name||e.name===a.entityType.name)):void 0;let h;p("ObjectPageResponsiveTable",e,a,t),p("ObjectPageGridTable",e,a,t),p("ObjectPageTreeTable",e,a,t),p("ObjectPageAnalyticalTable",e,a,t),m&&(h=function(e,t,a,r,n,s){const l=`${i.CUSTOM_COLUMNS_DEFINITION}<${a}>`;if(e.definitions[l])return i.CUSTOM_COLUMNS_DEFINITION;const u=`${i.CUSTOM_COLUMN_DEFINITION}<${a}>`,p=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn));e.definitions[u]=p;const f=n.entityTypes.find((e=>e.name===r)),d=o.findObjectPage(t[c.ManifestSection.generic].pages,a,[]);return i.addListReportColumnExtensions(e,f,d,t,s,l,u),l}(t,l,m.name,a.entityType.name,s,u));for(const a in r)"LineItem"===r[a].base&&a.includes(f)&&i.addLineItemsType(t,r[a].lineItem,r[a].entityType,e,h)}function d(e,t,a,r,i,o,s){const c=e[t];if("CollectionFacet"===c.base){const e=t.replace("@com.sap.vocabularies.UI.v1.Facets",c.base);a.properties[e]=n.createSectionWithoutProperties(c);const l="ObjectPageSectionV2<"+e+">";a.properties[e].properties={subsections:{$ref:n.DEFINITION_LINK_PREFIX+l}},r.definitions[l]=n.createSectionWithoutProperties(c),r.definitions[l].description="Subsections";for(const e in c.facets)d(c.facets,e,r.definitions[l],r,i,o,s)}else"LineItem"===c.base?(a.properties[t]={$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageSectionTableV2<"+t+">"},f(t,r,c,e,o,i,s)):a.properties[t]=n.createSectionWithoutProperties(c)}function m(e,t,a,r,i,o,s,l){const u=e.definitions.Sections={type:"object",properties:{},description:"Sections",additionalProperties:!1,isViewNode:!0};if(t&&(u.annotationPath=`/${t.fullyQualifiedName}/@com.sap.vocabularies.UI.v1.Facets`),!r)return;const p=n.getObjectPageFacets(t,i,c.FioriElementsVersion.v2,l);if(p&&0!==Object.keys(p).length){for(const n in r){const c=r[n];if(a.includes(c.entitySet))for(const t in p)d(p,t,u,e,o,i,s);else m(e,t,a,c.pages,i,o,s)}for(const t in e.definitions.CustomSections.properties)u.properties[t]=e.definitions.CustomSections.properties[t]}}t.generateObjectPageSchemaV2=function(e,t,a,r,p,f){u.initI18n();const d=JSON.parse(JSON.stringify(e)),h={};for(const e in d.definitions.CustomSections.properties)h[e]=d.definitions.CustomSections.properties[e];d.properties.sections={$ref:n.DEFINITION_LINK_PREFIX+"Sections"},d.properties.header={$ref:n.DEFINITION_LINK_PREFIX+"ObjectPageHeader"};const g=(null==a?void 0:a.entitySets)&&a.entitySets.find((e=>e.entityType.name===t||e.name===t));if(!g)return void s.log(f,{severity:"error",message:l.default.t("NOENTITYSET4NAME",{entityType:t}),location:{path:n.METADATAPATH}});const y=null==g?void 0:g.entityType;return m(d,y,g.name,r[c.ManifestSection.generic].pages,a,r,p,f),function(e,t,a){e.definitions.ObjectPageHeader=JSON.parse(JSON.stringify(e.definitions["ObjectPageHeader<GenericActions>"])),delete e.definitions.ObjectPageHeader.properties.actions;const r=n.findAlias("com.sap.vocabularies.UI.v1",a),i=r&&t.annotations&&t.annotations[r]&&t.annotations[r].Identification;if(i){e.definitions.ObjectPageHeader.properties.actions={$ref:n.DEFINITION_LINK_PREFIX+"HeaderActions"};const a=e.definitions.HeaderActions={type:"object",properties:{},description:"Actions",additionalProperties:!1,isViewNode:!0};i.forEach((e=>{if(!e.Determining&&"com.sap.vocabularies.UI.v1.DataFieldForAction"===e.$Type){const r=e.Action.split(".")[1].split("/"),i=t.fullyQualifiedName.split(".")[0]+"."+r[0]+"::"+r[1];a.properties[i]={$ref:n.DEFINITION_LINK_PREFIX+"HeaderAction"};const o=e.Label||r[1];a.properties[i].description=o}}))}}(d,y,a),delete d.definitions.GenericActions,delete d.definitions["ObjectPageHeader<GenericActions>"],function(e,t,a,r){const i=n.getObjectPageFacetSection(t,a,r,void 0,!0);i&&n.addDefinitionForRelatedFacetKeys(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],i,["ID","key"])}(d,y,a,f),i.removeElementsFromEnum(d.definitions.TableColumnExtensionTypeV2.enum,[s.TableColumnExtensionTypeV2.TreeTableColumnsExtension]),d.definitions.Sections||(d.definitions.RelatedFacetKeys&&d.definitions.RelatedFacetKeys.oneOf.length?d.definitions.Sections={type:"object",properties:h,additionalProperties:!1,isViewNode:!0}:delete d.properties.sections),o.findObjectPage(r[c.ManifestSection.generic].pages,g.name,[])?(delete d.definitions.GenericSections,delete d.definitions.ObjectPageSectionTableV2,delete d.definitions.GenericColumns,delete d.definitions.ObjectPageSubSections,delete d.definitions.ObjectPageResponsiveTable,delete d.definitions.ObjectPageAnalyticalTable,delete d.definitions.ObjectPageTreeTable,delete d.definitions.ObjectPageGridTable,delete d.definitions.ObjectPageToolBar,delete d.definitions.ObjectPageToolBarActions,delete d.definitions.ObjectPageToolBarAction,d):(s.log(f,{severity:"error",message:l.default.t("NOALP"),location:{path:s.MANIFESTPATH,range:[c.ManifestSection.generic]}}),d)}},1353:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(6971),n=a(5008);function i(e){const t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map((e=>{const t=e.$ref.split("/");return t[t.length-1]}))}function o(e,t){const a=t&&t["sap.app"]&&t["sap.app"].dataSources||{},o=[];for(const e in a)a[e].type===r.DataSourceType.OData&&o.push(e);const s=e.definitions;s.CardModel={enum:o,type:"string"};const c=i(e);for(const e of c){const t=s[e].properties.model;delete t.type,t.$ref=n.DEFINITION_LINK_PREFIX+"CardModel"}}t.getCardDefinitionNames=i,t.addModelsEnum=o,t.generateOverviewPageSchemaV2=function(e,t){const a=JSON.parse(JSON.stringify(e));return a.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},o(a,t),a}},468:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(5008),n=a(2762),i=a(5622),o=a(4139);function s(e,t,a,n,i,o){if(!0!==i.Determining){const s=`ToolBarAction<${i.Action}>`,c=r.getDatafieldDescription(i,t);a.properties[`DataFieldForAction::${i.Action}`]={$ref:r.DEFINITION_LINK_PREFIX+s,description:c,propertyIndex:o},e.definitions[s]={type:"object",properties:{},description:c,annotationPath:n+"/"+o,isViewNode:!0,additionalProperties:!1}}}function c(e,t,a){const r=e.definitions[a]&&e.definitions[a].properties&&e.definitions[a].properties.leadingProperty;if(r){const e=[...(null==t?void 0:t.entityProperties)||[],...(null==t?void 0:t.navigationProperties)||[]];r.enum=null==e?void 0:e.reduce(((e,t)=>(e.includes(t.name)||e.push(t.name),e)),[])}}function l(e,t,a){const r=e.definitions[t]&&e.definitions[t].properties&&e.definitions[t].properties.tabKey;if(a){const e=a.component&&a.component.settings&&a.component.settings.quickVariantSelectionX&&a.component.settings.quickVariantSelectionX.variants;if(e){const t=[];Object.keys(e).reduce(((t,a)=>{const r=e[a]&&void 0!==e[a].key?e[a].key:void 0;return void 0===r||t.includes(r)||t.push(r),t}),t),r.enum=t}}}function u(e,t,a,r,n){const s=e.definitions[n]&&e.definitions[n].properties&&e.definitions[n].properties[r];if(t&&a&&!a.startsWith("${")){const e=[];t.forEach((t=>{let n=t.dataSourceUri.split("webapp")[1];if(n&&n.indexOf(".fragment.xml")>0){const s=JSON.parse(o.xml2json(t.fileContent,{compact:!0}))["core:FragmentDefinition"];if("fragmentName"===r&&(!s||s.Column||s["table:Column"])||"cellsFragmentName"===r&&(!s||!s.Column&&!s["table:Column"]&&!s["smartfilterbar:ControlConfiguration"])){n=n.replace(new RegExp("\\"+i.sep,"g"),"/");const t=a+n.split(".fragment.xml")[0].replace(/\//g,".");e.push(t)}}})),e.length>0&&(s.enum=e)}}function p(e,t,a,i,o,s,c){if(e){const l=n.getReflectMetadata(e,s);if(l&&("function"==typeof l.generate&&(l.generate(t,c,s),o=c.properties[s]),void 0!==l.manifest?o.artifactType=r.ArtifactType.Manifest:void 0!==l.flex?(o.artifactType=r.ArtifactType.FlexChange,l.flex.controlType&&(o.controlType=l.flex.controlType())):o.artifactType=r.ArtifactType.Annotation),"object"===o.type||o.$ref){const e=r.getNextTargetDefinition(t,"",{},o,s,i,a);e&&d(t,e.targetDefinition,e.configObject,a,i)}else o.anyOf&&o.anyOf.forEach((e=>{const n=r.getNextTargetDefinition(t,"",{},e,s,i,a);n&&d(t,n.targetDefinition,n.configObject,a,i)}))}}function f(e,t,a,n,i,o){if(t[n])for(const s in t[n])if("anyOf"===s)t[n].anyOf.forEach((t=>{const a=r.getNextTargetDefinition(e,"",{},t,s,o,i);a&&d(e,a.targetDefinition,a.configObject,i,o)}));else{const c=t[n][s];if(c.anyOf)c.anyOf.forEach((t=>{const a=r.getNextTargetDefinition(e,"",{},t,s,o,i);a&&d(e,a.targetDefinition,a.configObject,i,o)}));else if("$ref"===s){const a=r.getNextTargetDefinition(e,"",{},t[n],s,o,i);a&&d(e,a.targetDefinition,a.configObject,i,o)}else p(a,e,i,o,c,s,t)}}function d(e,t,a,r,n){f(e,t,a,"properties",r,n),f(e,t,a,"additionalProperties",r,n),f(e,t,a,"patternProperties",r,n)}t.CUSTOM_COLUMNS_DEFINITION="TableCustomColumns",t.CUSTOM_COLUMN_DEFINITION="TableCustomColumn",t.handleActionRecord=s,t.addLineItemsType=function(e,t,a,n,i){let o;n=n||"LineItems";const{actions:c,lineItemPath:l}=r.addCommonLineItemDefinitions(e,t,a,n);if(t){let i=0;t.forEach((t=>{"com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation"===t.$Type||"com.sap.vocabularies.UI.v1.DataFieldForAction"===t.$Type&&(!0!==t.Inline||!0===t.Determining)?s(e,a,c,l,t,i):(o=r.getSchemaKeyOfLineItemRecord(t),o&&(e.definitions[n].properties[o]={$ref:r.DEFINITION_LINK_PREFIX+"TableColumn",description:r.getDatafieldDescription(t,a),propertyIndex:i,annotationPath:l+"/"+i})),i++}))}i&&(e.definitions[n].properties.custom={$ref:`#/definitions/${i}`})},t.addListReportLeadingProperties=c,t.addTabkeyEnum=l,t.addFragmentEnum=u,t.addListReportColumnExtensions=function(e,a,r,n,i,o=t.CUSTOM_COLUMNS_DEFINITION,s=t.CUSTOM_COLUMN_DEFINITION){e.definitions.LineItems&&(e.definitions.LineItems.properties.custom={$ref:`#/definitions/${o}`}),e.definitions[o]={type:"array",items:{$ref:`#/definitions/${s}`},isViewNode:!0,description:"Custom Columns"},c(e,a,s),l(e,s,r);const p=n&&n["sap.app"]&&n["sap.app"].id;u(e,i,p,"fragmentName",s),u(e,i,p,"cellsFragmentName",s)},t.processMetadata=d,t.removeElementsFromEnum=function(e,t){for(let a=0;a<t.length;a++){const r=e.indexOf(t[a]);-1!==r&&e.splice(r,1)}}},3073:function(e,t,a){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=a(6971),i=a(4093),o=a(9609),s=a(2687),c=a(961),l=a(2201),u=a(6088),p=a(5008),f=a(3435),d=r(a(4867));function m(e){return p.generatePageId(n.FioriElementsVersion.v2,p.getPageTypeV2(e.component.name),e.entitySet,e.navigationProperty)}function h(e,t,a,r,i,o){const u={};for(const f in e){const d=e[f],g=m(d),y=Object.assign(Object.assign({pageType:p.getPageTypeV2(d.component.name),entitySet:d.entitySet},d.navigationProperty&&{navigationProperty:d.navigationProperty}),d.defaultLayoutType&&{defaultLayoutType:d.defaultLayoutType});u[g]=y;const v=Object.keys(r).find((e=>e.includes(g)))||Object.keys(r).find((e=>e.includes(g.slice(0,-1))))||Object.keys(r).find((e=>e.includes(y.pageType)));if(v&&(y.pageType===n.PageType.ListReport?y.config=s.createListReportConfig(a,t,r[v],i):y.pageType===n.PageType.AnalyticalListPage?y.config=c.createAnalyticalListPageConfig(a,t,r[v],i):y.config=l.createObjectPageConfig(a,t,r[v],y.entitySet,i,o)),d.pages){y.navigation={};const e=h(d.pages,t,a,r,i);for(const t in e){const a=e[t];u[t]=a}for(const t in d.pages){const a=m(d.pages[t]);y.navigation[a]=e[a].navigationProperty?y.entitySet+"."+e[a].navigationProperty:y.entitySet}}}return u}class V2AppProvider extends i.AppProvider{constructor(e,t,a,r,i){const s=e[n.ManifestSection.generic].pages,c=Object.keys(s)[0],l=new u.AppSettings,d=a[p.getSchemaFilePath(f.SchemaType.Application).filename];o.transferSettingsOfObject(l,e,d.definitions.AppSettings,void 0),super(e,a,m(s[c]),h(s,t,e,a,r,i),n.FioriElementsVersion.v2,l)}}t.V2AppProvider=V2AppProvider,t.getPages=function e(t,a){const r={};for(const n in t){const i=t[n];if(i.component.name===a){r[m(i)]=i}if(a===d.FE_TEMPLATE_V2_OBJECT_PAGE&&i.pages){const t=e(i.pages,a);for(const e in t)r[e]=t[e]}}return r}},4370:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(6971),n=a(4093),i=a(9609),o=a(9836),s=a(6088),c=a(5008),l=a(3435);class V2OvpProvider extends n.AppProvider{constructor(e,t){const a={},n=e[r.ManifestSection.ovp],u=new s.AppSettings,p=c.getSchemaFilePath(l.SchemaType.Application);i.transferSettingsOfObject(u,e,t[p.filename].definitions.AppSettings,void 0);const f=Object.keys(t).find((e=>e.includes(r.PageType.OverviewPage))),d={pageType:r.PageType.OverviewPage,config:o.createOverviewPageConfig(e,t[f]),entitySet:n.globalFilterEntitySet},m=c.generatePageId(r.FioriElementsVersion.v2,d.pageType,d.entitySet,d.navigationProperty);a[m]=d,super(e,t,m,a,r.FioriElementsVersion.v2,u)}}t.V2OvpProvider=V2OvpProvider},9609:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(4681),i=a(3767),o=a(5008),s=a(6442),c=a(2762),l=a(1350),u=a(390),p=a(5921),f=r(a(9154));function d(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}t.convertSelector=d,t.addFlex=function(e,t,a,r){var s,l,m,h,g,y,v;try{const r=o.parseChangeString(t),p=r.content.property;if((null===(s=r.controlId)||void 0===s?void 0:s.includes(n.PageType.ListReport))||(null===(l=r.controlId)||void 0===l?void 0:l.includes(n.PageType.AnalyticalListPage)))if(r.controlId=d(r.controlId),r.controlType===o.ControlType.SmartFilterBar){((null===(h=null===(m=a.definitions)||void 0===m?void 0:m.FilterBar)||void 0===h?void 0:h.properties[p])||(null===(y=null===(g=a.definitions)||void 0===g?void 0:g.AnalyticalListPageFilterBar)||void 0===y?void 0:y.properties[p]))&&(e.filterBar[p]=r.content.newBinding?r.content.newBinding:r.content.newValue)}else if(r.controlType===o.ControlType.DynamicPage){a.properties[p]&&(e[r.content.property]=r.content.newValue)}else if(r.controlType===o.ControlType.SmartChart){if(a.definitions.ChartSettings.properties[p]){const t=c.getReflectMetadata(e.chart,p);(null===(v=null==t?void 0:t.flex)||void 0===v?void 0:v.importFlexValue)?t.flex.importFlexValue(r,e.chart,p):e.chart[p]=r.content.newBinding?r.content.newBinding:r.content.newValue}}else{const t={controlId:r.controlId,propertyId:r.content.property,newValue:r.content.newBinding?r.content.newBinding:r.content.newValue,controlType:r.controlType};let s;s=e.table.type&&e.table.type!==u.TableTypeV2.ResponsiveTable||t.controlId.includes(n.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(n.PageType.AnalyticalListPage))?e.table.constructor.name:"ResponsiveTable";(a.definitions[`${s}<LineItems>`].properties[t.propertyId]||t.controlType===o.ControlType.TableColumn)&&i.addFlexForTable(e.table,t,a)}}catch(e){p.log(r,{severity:"error",message:f.default.t("FLEXERROR")},...e)}},t.transferSettingsOfObject=function(e,t,a,r,n,i){if(!a)return;let o=[],s={};if(e.getDeprecated&&(o=e.getDeprecated()),a.properties)for(const u in a.properties){const a=c.getReflectMetadata(e,u);if(a&&a.manifest){const f=a.manifest.path([r],void 0,i);s=l.getManifestSectionByPathV2(t,f);const d=a.manifest.key||u,m=a.manifest.import;if(m&&"function"==typeof m){const t=m(s[d]);void 0!==t&&(e[u]=t)}else void 0!==s[d]&&(e[d]=s[u]);if(s&&o)for(const e in s){const t=o[e];t&&(p.log(n,{severity:"warning",message:c.getTextForDeprecated(e,t),location:{path:"webapp/manifest.json/",range:f.split("/")}}),delete o[e])}}}},t.determineTableType=function(e,t){var a,r;const n=e[s.ManifestSection.generic].pages[t];let i=u.TableTypeV2.ResponsiveTable;return e[s.ManifestSection.generic].pages[t].component.settings&&(e[s.ManifestSection.generic].pages[t].component.settings.tableSettings&&e[s.ManifestSection.generic].pages[t].component.settings.tableSettings.type||e[s.ManifestSection.generic].pages[t].component.settings.tableType)?i=(null===(r=null===(a=n.component.settings)||void 0===a?void 0:a.tableSettings)||void 0===r?void 0:r.type)||n.component.settings.tableType:"sap.suite.ui.generic.template.AnalyticalListPage"===n.component.name&&(i=u.TableTypeV2.AnalyticalTable),i}},3767:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(8517);t.addFlexForTable=function(e,t,a){if(t.controlType.endsWith("Table"))e[t.propertyId]=t.newValue;else if(t.controlType===r.ControlType.TableColumn){if(!(null==a?void 0:a.definitions.TableColumn.properties[t.propertyId]))return;const r=t.controlId.split("-"),n=r[r.length-1].split("template:::TableColumn:::"),i=n[n.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies","::@com.sap.vocabularies");e.columns||(e.columns={}),e.columns[i]||(e.columns[i]={}),e.columns[i][t.propertyId]=t.newValue}}},4330:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(1403)),r(a(2687)),r(a(2201)),r(a(9836)),r(a(961))},961:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(9609),i=a(6971),o=a(5921),s=a(2449),c=r(a(9154)),l=a(5008),u=a(1403),p=a(2687),f=a(7072);t.createAnalyticalListPageConfig=function(e,t,a,r,d){if(s.initI18n(),!e[i.ManifestSection.generic])return void o.log(d,{severity:"error",message:c.default.t("NOFE"),location:{path:l.MANIFESTPATH,range:[i.ManifestSection.generic]}});if(!e[i.ManifestSection.generic].pages)return void o.log(d,{severity:"error",message:c.default.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:l.MANIFESTPATH,range:[i.ManifestSection.generic]}});const m=new f.MetadataInstanceFactoryV2,h=m.createPageInstance(i.PageType.AnalyticalListPage),g=[],y=u.findAnalyticalListPage(e[i.ManifestSection.generic].pages,g);if(y)return function(e,t,a,r,o,s){const c=n.determineTableType(t,o);e.table=r.createInstance(i.PageType.AnalyticalListPage,`ALP${c}`,e.table),n.transferSettingsOfObject(e.table,t,a.definitions[`ALP${c}<LineItems>`],o,s),e.filterBar=r.createInstance(i.PageType.AnalyticalListPage,"AnalyticalListPageFilterBar",e.filterBar),n.transferSettingsOfObject(e.filterBar,t,a.definitions.AnalyticalListPageFilterBar,o,s),e.chart=r.createInstance(i.PageType.AnalyticalListPage,"ChartSettings",e.chart),n.transferSettingsOfObject(e.chart,t,a.definitions.ChartSettings,o,s),e.keyPerformanceIndicators={};const l=t[i.ManifestSection.generic].pages[o].component.settings.keyPerformanceIndicators;l&&Object.keys(l).forEach((c=>{e.keyPerformanceIndicators[c]=r.createInstance(i.PageType.AnalyticalListPage,"KPISettings"),e.keyPerformanceIndicators=r.createInstance(i.PageType.AnalyticalListPage,"KPISettings",e.keyPerformanceIndicators),n.transferSettingsOfObject(e.keyPerformanceIndicators[c],t,a.definitions.KPISettings,o,s,c)}))}(h,e,a,m,g[0],d),t.forEach((e=>{n.addFlex(h,e,a)})),p.addFragments(h,e,y,i.PageType.AnalyticalListPage,r),h;o.log(d,{severity:"error",message:c.default.t("NOALP"),location:{path:l.MANIFESTPATH,range:[i.ManifestSection.generic]}})}},2687:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(9609),i=a(6971),o=a(5008),s=a(5921),c=r(a(9154)),l=a(2449),u=a(1403),p=a(4139),f=a(7040),d=a(7072);function m(e,t,a,r,n,i,o){if(e.customData||e["table:customData"]){const s=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,c=JSON.parse(s.substr(1,s.length));let l=e.Text&&e.Text._attributes&&e.Text._attributes.text;l||(l=e.Label&&e.Label._attributes&&e.Label._attributes.text);const u={id:e._attributes&&e._attributes.id,text:l,columnKey:c.columnKey,columnIndex:void 0!==c.columnIndex?Number(c.columnIndex):void 0,leadingProperty:c.leadingProperty,className:t[a].className,fragmentName:t[a].fragmentName,tabKey:r,extensionType:i};o&&(u.cellsFragmentName=o),n.table.columns.custom||(n.table.columns.custom=[]);n.table.columns.custom.push(u)}}function h(e,t,a,r,n,s){if(!n)return;const c="|"+(s&&s.target?s.target:a.entitySet);if(t[i.ManifestSection.ui5]&&t[i.ManifestSection.ui5].extends&&t[i.ManifestSection.ui5].extends.extensions&&t[i.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){const a=i.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(r),l=t[i.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][a];if(l)for(const t of Object.keys(l)){const a=t.split("|"),[r,i]=a,u=a[2],d=s&&u===s.key?void 0:u,h=o.ViewTemplateType[r];if(h&&"|"+i===c){const a=l[t].type?l[t].type.toLowerCase():"xml";let r,s=l[t].fragmentName;if(!s)continue;if(h===o.ViewTemplateType.ResponsiveTableColumnsExtension)for(const e of Object.keys(l)){const[t,a,n]=e.split("|");t===o.ViewTemplateType.ResponsiveTableCellsExtension&&a===i&&n===u&&(r=l[e].fragmentName)}const c=s.split(".");s=c[c.length-1]+".fragment."+a;const g=n.filter((e=>e.dataSourceUri.endsWith(s)));if(g[0]){const a=JSON.parse(p.xml2json(g[0].fileContent,{compact:!0}))[f.FRAGMENT_DEFINITION],n=f.getRootCustomColumnFromFragmentJSON(a);if(n)if(e.table.columns||(e.table.columns={}),Array.isArray(n))for(let a=0;a<n.length;a++)m(n[a],l,t,d,e,h,r);else m(n,l,t,d,e,h,r)}}}}}t.addFragments=h,t.createListReportConfig=function(e,t,a,r,p){if(l.initI18n(),!e[i.ManifestSection.generic])return void s.log(p,{severity:"error",message:c.default.t("NOFE"),location:{path:o.MANIFESTPATH,range:[i.ManifestSection.generic]}});if(!e[i.ManifestSection.generic].pages)return void s.log(p,{severity:"error",message:c.default.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:o.MANIFESTPATH,range:[i.ManifestSection.generic]}});const f=new d.MetadataInstanceFactoryV2,m=f.createPageInstance(i.PageType.ListReport),g=[],y=u.findListReportPage(e[i.ManifestSection.generic].pages,g);if(y)return function(e,t,a,r,o,s){const c=n.determineTableType(t,o);let l;e.table=r.createInstance(i.PageType.ListReport,c,e.table),l=c?a.definitions[c+"<LineItems>"]:a.definitions["ResponsiveTable<LineItems>"],n.transferSettingsOfObject(e.table,t,l,o,s),e.filterBar=r.createInstance(i.PageType.ListReport,"FilterBar",e.filterBar),n.transferSettingsOfObject(e.filterBar,t,a.definitions.FilterBar,o,s)}(m,e,a,f,g[0],p),t.forEach((e=>{n.addFlex(m,e,a,p)})),h(m,e,y,i.PageType.ListReport,r),m;s.log(p,{severity:"error",message:c.default.t("NOLR"),location:{path:o.MANIFESTPATH,range:[i.ManifestSection.generic]}})}},2201:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=a(3374),i=a(5008),o=a(3767),s=a(5921),c=a(1403),l=a(5008),u=a(1350),p=a(4867),f=r(a(9154)),d=a(2449),m=a(6971),h=a(2687),g=a(7072);function y(e,t,a,r,n,c,p,f,d,m){if(!a)return;let h=[],g={};e.getDeprecated&&(h=e.getDeprecated());const y=f&&f.replace(/::@com.sap.vocabularies/g,"/@com.sap.vocabularies");for(const v in a.properties||a){const a=l.getReflectMetadata(e,v);if(a||"columns"===v)if("columns"===v||a&&a.flex){if(f)for(const t in n)n[t].propertyId!==v&&("columns"!==v||n[t].controlType!==i.ControlType.TableColumn)||!n[t].facetId||n[t].facetId!==f&&n[t].facetId!==y&&n[t].facetId!==d||o.addFlexForTable(e,n[t],c);else for(const t in n)if((!m||t.endsWith(m))&&(n[t].propertyId===v&&!n[t].facetId||n[t].propertyId===v&&"action"===n[t].facetId)){e[v]=n[t].newValue;break}}else if(a.manifest){const n=f?f.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,i=a.manifest.path(r,{},n);g=u.getManifestSectionByPathV2(t,i);const o=a.manifest.import;if(o&&"function"==typeof o){const t=o(g,f);void 0!==t&&(e[v]=t)}else{const t=a.manifest.key||v;t in g&&(e[v]=g[t])}if(g&&h)for(const e in g){const t=h[e];t&&(s.log(p,{severity:"warning",message:l.getTextForDeprecated(e,t),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete h[e])}}}}function v(e,t,a,r,i,o,s,u,p,f,d,g){let b,P;for(const T in e){b=T.replace(/\/@/g,"::");let O=e[T];if(O.$ref&&O.$ref.startsWith(l.DEFINITION_LINK_PREFIX+"ObjectPageSectionTableV2")){O=i.definitions["ObjectPageSectionTableV2<"+b+">"],P=(null==O?void 0:O.title)?O.title.split(n.FacetTitlePrefix)[1]:void 0;const e=b.replace("@com.sap","com.sap"),l=t&&t.sections&&t.sections[e];if(l||u){const e=l&&l.tableSettings&&l.tableSettings.type?l.tableSettings.type:"ResponsiveTable",t=o.createInstance(m.PageType.ObjectPage,"ObjectPage"+e);let n;a[b]={table:t},n=e?i.definitions["ObjectPage"+e+"<"+b+">"]:i.definitions["ObjectPageResponsiveTable<"+b+">"],y(a[b].table,r,n,s,u,i,g,T,P);const f=i.definitions[b].properties.custom,v=f?c.getTargetFromCustomColumnRef(f.$ref):void 0;if(v){const e={key:P||b.replace("@",""),target:v};h.addFragments(a[b],r,p,m.PageType.ObjectPage,d,e)}}}else if(O.properties&&O.properties.subsections)a[b]={subsections:{}},O=i.definitions["ObjectPageSectionV2<"+b+">"],P=(null==O?void 0:O.title)?O.title.split(n.FacetTitlePrefix)[1]:void 0,v(O.properties,t,a[b].subsections,r,i,o,s,u,p,f,d,g);else if(O.$ref&&O.$ref===l.DEFINITION_LINK_PREFIX+"ObjectPageSectionChartV2"){O=i.definitions.ObjectPageSectionChartV2,P=O.title?O.title.split(n.FacetTitlePrefix)[1]:void 0;const e=b.replace("@com.sap","com.sap"),c=t&&t.sections&&t.sections[e],l=o.createInstance(m.PageType.ObjectPage,"ObjectPageChart");a[b]={chart:l},(c||u)&&y(a[b].chart,r,i.definitions.ObjectPageChart,s,u,i,g,T,P)}}}function b(e,t,a,r,n,i,o,s,l,u){const p=o.component.settings;y(e,t,a.properties,r,i,a,u),e.header=s.createInstance(m.PageType.ObjectPage,"ObjectPageHeader"),y(e.header,t,a.definitions.ObjectPageHeader?a.definitions.ObjectPageHeader:a.definitions["ObjectPageHeader<GenericActions>"],r,i,a,u);const f=a.definitions.HeaderActions;f&&function(e,t,a,r,n,i,o,s){let c;if(t.actions={},o.constructor===Object&&0!==Object.keys(o).length)for(const l in e)c=l.replace(/\/@/g,"::"),t.actions[c]=n.createInstance(m.PageType.ObjectPage,"HeaderAction"),y(t.actions[c],a,r.definitions.HeaderAction,i,o,r,s,void 0,void 0,c)}(f.properties,e.header,t,a,s,r,i,u),e.layout=s.createInstance(m.PageType.ObjectPage,"ObjectPageLayout"),y(e.layout,t,a.definitions.ObjectPageLayout,r,i,a,u),0===Object.keys(e.layout).length&&delete e.layout,e.sections={};const d=a.definitions.Sections;d&&v(d.properties,p,e.sections,t,a,s,r,i,o,e,l,u);const h=c.findCustomSectionExtensions(t,n);if(Object.keys(h).length>0){e.sections.custom=[];for(const n in h){const o="fragmentName"in h[n]?s.createInstance(m.PageType.ObjectPage,"ObjectPageCustomSectionFragment"):s.createInstance(m.PageType.ObjectPage,"ObjectPageCustomSectionView");y(o,t,a.definitions["fragmentName"in h[n]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"],r,i,a,u,n),e.sections.custom.push(o)}}}t.createObjectPageConfig=function(e,t,a,r,i,o){if(d.initI18n(),!e[m.ManifestSection.generic])return void s.log(o,{severity:"error",message:f.default.t("NOFE"),location:{path:n.MANIFESTPATH,range:[m.ManifestSection.generic]}});const u=[],h=e[m.ManifestSection.generic].pages;if(!h)return void s.log(o,{severity:"error",message:f.default.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:n.MANIFESTPATH,range:[m.ManifestSection.generic]}});const y=c.findObjectPage(h,r,u);if(!y)return void s.log(o,{severity:"error",message:f.default.t("NOENTITYSET",{entitySet:r}),location:{path:n.MANIFESTPATH,range:[m.ManifestSection.generic]}});const v=function(e,t,a){const r={};let n=1;return e.forEach((e=>{var i,o;try{const a=l.parseChangeString(e);if((null===(i=a.controlId)||void 0===i?void 0:i.includes(p.FE_TEMPLATE_V2_OBJECT_PAGE))&&(null===(o=a.controlId)||void 0===o?void 0:o.includes(t))){let e=a.controlId.split("--")[1].replace(/:3a:3a/g,"::");null!==new RegExp(".+DataField.+:::sSmartTableId::.+").exec(e)&&(e=e.split("template:::TableColumn:::")[1]);const t=e.split(":::");let i,o;if(1===t.length){const e=t[0].split("-");if(i=e[e.length-1],t[0].indexOf("com.sap.vocabularies.UI.v1.LineItem")>=0||t[0].indexOf("UI.LineItem")>=0||t[0].indexOf("::Table")>=0)o=e[0].split("::Table")[0].split("::responsiveTable")[0].replace(/::/g,"/@");else{const t=i.split("::");t.length>1?(o=t[0],i=t[1]):e[0].indexOf("::")>-1&&(o=e[0].split("::")[0])}}else if(e.indexOf("sSmartTableId")>=0){i=e;for(let e=0;e<t.length;e++){const a=t[e];if(a.startsWith("sSmartTableId")){o=a.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace("::com.sap.vocabularies.UI.v1.LineItem","/@com.sap.vocabularies.UI.v1.LineItem");break}}}else o=t[0],i=t[1];e=e.replace(/:2f/g,"/").replace(/:40/g,"@").replace(/:23/g,"#").replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),r[e]&&r[e].propertyId!==a.content.property&&(e+=n,n++),r[e]={controlId:e,propertyId:a.content.property,facetId:o,newValue:void 0!==a.content.newBinding?a.content.newBinding:a.content.newValue,controlType:a.controlType}}}catch(e){s.log(a,{severity:"error",message:f.default.t("FLEXERROR")},...e)}})),r}(t,r),P=new g.MetadataInstanceFactoryV2,T=P.createPageInstance(m.PageType.ObjectPage);return b(T,e,a,u,r,v,y,P,i,o),T}},9836:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(6971),n=a(2762),i=a(1350),o=a(390),s=a(7072),c=a(2432);function l(e,t,a,r){if(a)for(const s in a){const a=n.getReflectMetadata(e,s);if(a&&a.manifest){const n=a.manifest.path([...r,s]),c=i.getManifestSectionByPathV2(t,n);if(Object.prototype.hasOwnProperty.call(c,s))if(0!==r.length)if("settings"===s)switch(c.template){case"sap.ovp.cards.charts.analytical":e[r[0]][o.CardSettingsType.analyticalCardSettings]=c[s];break;case"sap.ovp.cards.list":e[r[0]][o.CardSettingsType.listCardSettings]=c[s];break;case"sap.ovp.cards.stack":e[r[0]][o.CardSettingsType.stackCardSettings]=c[s];break;case"sap.ovp.cards.linklist":e[r[0]][o.CardSettingsType.linkListCardSettings]=c[s];break;case"sap.ovp.cards.table":e[r[0]][o.CardSettingsType.tableCardSettings]=c[s];break;default:e[r[0]].settings=c[s]}else e[r[0]][s]=c[s];else e[s]=c[s]}}}t.createOverviewPageConfig=function(e,t){const a=new s.MetadataInstanceFactoryV2,n=a.createPageInstance(r.PageType.OverviewPage);return function(e,t,a,n){l(e,t,a.properties,[]),e.cards={},Object.keys(t[r.ManifestSection.ovp].cards).forEach((a=>{const i=t[r.ManifestSection.ovp].cards[a].template,s=o.cardTemplateTypeMap[i];e.cards[a]=c.assignReflectMetadataRules(n,s,{},"CustomCard"),e.cards=c.assignReflectMetadataRules(n,s,e.cards,"CustomCard"),l(e.cards,t,t[r.ManifestSection.ovp].cards[a],[a])}))}(n,e,t,a),n}},1403:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=a(390),n=a(6971),i=a(1350),o=a(5008),s=a(468);function c(e,t){const a=e.split("|");return r.SectionPosition[a[0]]&&a[1]===t}t.findObjectPage=function e(t,a,r){for(const i in t){const s=t[i];if(o.getPageTypeV2(s.component.name)===n.PageType.ObjectPage&&s.entitySet===a)return r.push(i),s;if(s.pages)return r.push(i),e(s.pages,a,r)}},t.findListReportPage=function(e,t){for(const a in e){const r=e[a];if(t.push(a),o.getPageTypeV2(r.component.name)===n.PageType.ListReport)return r}},t.findAnalyticalListPage=function(e,t){for(const a in e){const r=e[a];if(t.push(a),o.getPageTypeV2(r.component.name)===n.PageType.AnalyticalListPage)return r}},t.isAssociatedCustomSection=c,t.findCustomSectionExtensions=function(e,t){const a=i.getManifestSectionByPathV2(e,`sap.ui5/extends/extensions/${r.SAPUI5_VIEW_EXTENSION}/${r.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),n={};for(const e in a)c(e,t)&&(n[e]=a[e]);return n},t.getTargetFromCustomColumnRef=function(e){const t=e.split(`${s.CUSTOM_COLUMNS_DEFINITION}<`);if(t[1])return t[1].slice(0,-1)}},3374:(e,t,a)=>{"use strict";function r(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}Object.defineProperty(t,"__esModule",{value:!0}),r(a(4027)),r(a(390))},2892:e=>{"use strict";e.exports={}},6354:e=>{"use strict";e.exports=JSON.parse('{"NOPAGES":"No pages found in manifest for app with id \'{{- appId}}\'","NOFE":"The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing","NOENTITYSET":"No page found in manifest for entitySet \'{{- entitySet}}\'","NOENTITYSET4NAME":"No entitySet could be found for the given entity type \'{{- entityType}}\'","ENTITYSETNOTFOUND":"Entity set \'{{- entitySetName}}\' was specified in manifest, but this entity set could not be found in metadata","NOLR":"No page found in manifest for list report","NOALP":"No page found in manifest for analytical list page","NOTEMPLATE":"No Fiori Elements template could be determined, as section \'{{- section}}\' is not defined in manifest","ANNOERR":"Error while parsing annotation files","NOROUTING":"Incomplete manifest definition: no routing defined","NOLINEITEMS":"UI.LineItem annotation has not been defined","NOTARGETS":"Incomplete manifest definition: no targets defined","NOROUTINGID":"No page found in manifest for routingId \'{{- routingId}}\'","FLEXERROR":"Error while parsing flex change","NOFRAGMENT":"fragmentName is undefined for columnKey \'{{- columnKey}}\'","NOENTITYTYPE":"Entity type \'{{- entityType}}\' is specified in manifest, but not present in metadata","NOID4SECTION":"No ID has been defined for a facet or header facet. As a consequence, manifest settings cannot be written correctly for this element in an OData V4 scenario: \'{{- facet}}\'"}')},5747:e=>{"use strict";e.exports=require("fs")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")}},t={};function a(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,a),i.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r=a(4027);module.exports=r})();
|
|
@@ -3,10 +3,22 @@
|
|
|
3
3
|
"properties": {
|
|
4
4
|
"fitContent": {
|
|
5
5
|
"description": "Set fitContent to true to optimize the dynamic page responsiveness on small screens and behavior when the DynamicPageHeader is expanded or collapsed.",
|
|
6
|
-
"type": "boolean"
|
|
6
|
+
"type": "boolean",
|
|
7
|
+
"artifactType": "FlexChange",
|
|
8
|
+
"controlType": "sap.f.DynamicPage"
|
|
7
9
|
},
|
|
8
10
|
"table": {
|
|
9
|
-
"
|
|
11
|
+
"anyOf": [
|
|
12
|
+
{
|
|
13
|
+
"$ref": "#/definitions/ALPResponsiveTable"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"$ref": "#/definitions/ALPGridTable"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"$ref": "#/definitions/ALPAnalyticalTable"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
10
22
|
},
|
|
11
23
|
"filterBar": {
|
|
12
24
|
"$ref": "#/definitions/AnalyticalListPageFilterBar"
|
|
@@ -28,7 +40,7 @@
|
|
|
28
40
|
},
|
|
29
41
|
"additionalProperties": false,
|
|
30
42
|
"definitions": {
|
|
31
|
-
"
|
|
43
|
+
"ALPResponsiveTable": {
|
|
32
44
|
"description": "Table",
|
|
33
45
|
"isViewNode": true,
|
|
34
46
|
"controlProperty": "type",
|
|
@@ -36,84 +48,115 @@
|
|
|
36
48
|
"properties": {
|
|
37
49
|
"type": {
|
|
38
50
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
51
|
+
"type": "string",
|
|
39
52
|
"enum": [
|
|
40
|
-
"AnalyticalTable",
|
|
41
|
-
"GridTable",
|
|
42
53
|
"ResponsiveTable"
|
|
43
54
|
],
|
|
44
|
-
"
|
|
55
|
+
"artifactType": "Manifest"
|
|
56
|
+
},
|
|
57
|
+
"growingThreshold": {
|
|
58
|
+
"description": "growingThreshold defines the number of items to be requested from the model for each grow. This property can only be used if the growing property is set to true.",
|
|
59
|
+
"type": "number",
|
|
60
|
+
"artifactType": "FlexChange",
|
|
61
|
+
"controlType": "sap.m.Table"
|
|
45
62
|
},
|
|
46
63
|
"qualifier": {
|
|
47
64
|
"description": "Represents the SelectionPresentationVariant qualifier. ALP looks for SelectionPresentationVariant with this qualifier and if not found, it looks for PresentationVariant with this qualifier.",
|
|
48
|
-
"type": "string"
|
|
65
|
+
"type": "string",
|
|
66
|
+
"artifactType": "Manifest"
|
|
49
67
|
},
|
|
50
68
|
"defaultContentView": {
|
|
51
69
|
"$ref": "#/definitions/DefaultContentView",
|
|
52
|
-
"description": "Determines the visualization of content area"
|
|
70
|
+
"description": "Determines the visualization of content area",
|
|
71
|
+
"artifactType": "Manifest"
|
|
53
72
|
},
|
|
54
73
|
"defaultFilterMode": {
|
|
55
74
|
"$ref": "#/definitions/DefaultFilterMode",
|
|
56
|
-
"description": "Determines the filter mode that is used"
|
|
75
|
+
"description": "Determines the filter mode that is used",
|
|
76
|
+
"artifactType": "Manifest"
|
|
57
77
|
},
|
|
58
78
|
"contentTitle": {
|
|
59
79
|
"description": "Lets you define title for the content area",
|
|
60
80
|
"i18nClassification": "TIT: Title for the content area",
|
|
61
|
-
"type": "string"
|
|
81
|
+
"type": "string",
|
|
82
|
+
"artifactType": "Manifest"
|
|
62
83
|
},
|
|
63
84
|
"autoHide": {
|
|
64
85
|
"description": "This setting allows developer to determine chart / table interaction. 'true' would mean chart act as filter for table, 'false' would mean that matching table rows are highlighted but table is not filtered.",
|
|
65
|
-
"type": "boolean"
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"artifactType": "Manifest"
|
|
66
88
|
},
|
|
67
89
|
"filterDefaultsFromSelectionVariant": {
|
|
68
90
|
"description": "Lets you to add default values for FilterBar using SelectionVariant annotation",
|
|
69
|
-
"type": "boolean"
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"artifactType": "Manifest"
|
|
70
93
|
},
|
|
71
94
|
"multiSelect": {
|
|
72
95
|
"description": "Single selection in tables is enabled by default. If you want, you can enable multi-select.",
|
|
73
|
-
"type": "boolean"
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"artifactType": "Manifest"
|
|
74
98
|
},
|
|
75
99
|
"selectAll": {
|
|
76
100
|
"description": "The 'Select All' button is disabled by default. To enable it, set selectAll to true.",
|
|
77
|
-
"type": "boolean"
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"artifactType": "Manifest"
|
|
78
103
|
},
|
|
79
104
|
"selectionLimit": {
|
|
80
105
|
"description": "If new data needs to be loaded from the back-end system for this, the number of lines to be loaded is restricted to the specified limit. The default value for this limit is 200. If selectAll is true, the selection limit is not evaluated.",
|
|
81
|
-
"type": "number"
|
|
106
|
+
"type": "number",
|
|
107
|
+
"artifactType": "Manifest"
|
|
82
108
|
},
|
|
83
109
|
"showTablePersonalisation": {
|
|
84
110
|
"description": "The showTablePersonalisation attribute can be set to false to hide the table personalization button.",
|
|
85
|
-
"type": "boolean"
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"artifactType": "FlexChange",
|
|
113
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
86
114
|
},
|
|
87
115
|
"useExportToExcel": {
|
|
88
116
|
"description": "useExportToExcel must be set to true if you want to export data to a spreadsheet application, for example Microsoft Excel.",
|
|
89
|
-
"type": "boolean"
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"artifactType": "FlexChange",
|
|
119
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
90
120
|
},
|
|
91
121
|
"fitContainer": {
|
|
92
122
|
"description": "Set to false if the table does not occupy the entire space available in the container.",
|
|
93
|
-
"type": "boolean"
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"artifactType": "FlexChange",
|
|
125
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
94
126
|
},
|
|
95
127
|
"quickVariantSelection": {
|
|
96
128
|
"$ref": "#/definitions/QuickVariantSelection",
|
|
97
|
-
"description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand."
|
|
129
|
+
"description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
|
|
130
|
+
"artifactType": "Manifest"
|
|
98
131
|
},
|
|
99
132
|
"quickVariantSelectionX": {
|
|
100
133
|
"$ref": "#/definitions/QuickVariantSelectionX",
|
|
101
|
-
"description": "Switch on the multiple view feature (Multiple table mode with charts) and link to the variants you have added to your annotations."
|
|
134
|
+
"description": "Switch on the multiple view feature (Multiple table mode with charts) and link to the variants you have added to your annotations.",
|
|
135
|
+
"artifactType": "Manifest"
|
|
102
136
|
},
|
|
103
137
|
"enableAutoBinding": {
|
|
104
138
|
"description": "When set to true, this enables automatic binding of the table with either the tableBindingPath (if it exists) or the entitySet property.",
|
|
105
|
-
"type": "boolean"
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"artifactType": "FlexChange",
|
|
141
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
106
142
|
},
|
|
107
143
|
"condensedTableLayout": {
|
|
108
144
|
"description": "For analytical tables, grid tables and tree tables you can define a condensed table layout by setting condensedTableLayout to true.",
|
|
109
|
-
"type": "boolean"
|
|
145
|
+
"type": "boolean",
|
|
146
|
+
"artifactType": "Manifest"
|
|
110
147
|
},
|
|
111
148
|
"enableTableFilterInPageVariant": {
|
|
112
149
|
"description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
|
|
113
|
-
"type": "boolean"
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"artifactType": "Manifest"
|
|
152
|
+
},
|
|
153
|
+
"toolBar": {
|
|
154
|
+
"$ref": "#/definitions/ToolBar",
|
|
155
|
+
"description": "Tool Bar"
|
|
114
156
|
},
|
|
115
157
|
"columns": {
|
|
116
|
-
"$ref": "#/definitions/GenericColumns"
|
|
158
|
+
"$ref": "#/definitions/GenericColumns",
|
|
159
|
+
"description": "Columns"
|
|
117
160
|
}
|
|
118
161
|
},
|
|
119
162
|
"additionalProperties": false
|
|
@@ -138,7 +181,8 @@
|
|
|
138
181
|
"properties": {
|
|
139
182
|
"showCounts": {
|
|
140
183
|
"description": "To show the number of records available, set showCounts to true.",
|
|
141
|
-
"type": "boolean"
|
|
184
|
+
"type": "boolean",
|
|
185
|
+
"artifactType": "Manifest"
|
|
142
186
|
},
|
|
143
187
|
"variants": {
|
|
144
188
|
"description": "The variants section contains a set of entries that point to SelectionVariants or SelectionPresentationVariants defined in the annotations.",
|
|
@@ -148,7 +192,8 @@
|
|
|
148
192
|
"^[0-9]+$": {
|
|
149
193
|
"$ref": "#/definitions/QuickVariant"
|
|
150
194
|
}
|
|
151
|
-
}
|
|
195
|
+
},
|
|
196
|
+
"artifactType": "Manifest"
|
|
152
197
|
}
|
|
153
198
|
},
|
|
154
199
|
"additionalProperties": false,
|
|
@@ -224,6 +269,30 @@
|
|
|
224
269
|
"key"
|
|
225
270
|
]
|
|
226
271
|
},
|
|
272
|
+
"ToolBar": {
|
|
273
|
+
"description": "Toolbar",
|
|
274
|
+
"isViewNode": true,
|
|
275
|
+
"type": "object",
|
|
276
|
+
"properties": {
|
|
277
|
+
"actions": {
|
|
278
|
+
"$ref": "#/definitions/Actions"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"additionalProperties": false,
|
|
282
|
+
"required": [
|
|
283
|
+
"actions"
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
"Actions": {
|
|
287
|
+
"description": "Actions",
|
|
288
|
+
"isViewNode": true,
|
|
289
|
+
"type": "object",
|
|
290
|
+
"additionalProperties": {
|
|
291
|
+
"type": "object",
|
|
292
|
+
"properties": {},
|
|
293
|
+
"additionalProperties": true
|
|
294
|
+
}
|
|
295
|
+
},
|
|
227
296
|
"GenericColumns": {
|
|
228
297
|
"type": "object",
|
|
229
298
|
"additionalProperties": {
|
|
@@ -249,11 +318,23 @@
|
|
|
249
318
|
"properties": {
|
|
250
319
|
"width": {
|
|
251
320
|
"description": "The width property defines the width of the column.",
|
|
252
|
-
"type": "string"
|
|
321
|
+
"type": "string",
|
|
322
|
+
"artifactType": "FlexChange",
|
|
323
|
+
"controlType": "sap.m.Column"
|
|
253
324
|
},
|
|
254
325
|
"hAlign": {
|
|
255
|
-
"
|
|
256
|
-
"
|
|
326
|
+
"pattern": "^(Begin|Center|End|Initial|Left|Right)$|^{[A-Za-z0-9{}&$!@#? _|,<>'()[\\]\\/:=.]+}$",
|
|
327
|
+
"anyOf": [
|
|
328
|
+
{
|
|
329
|
+
"$ref": "#/definitions/HAlign"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"type": "string"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"description": "The hAlign property defines the horizontal alignment of the column content.",
|
|
336
|
+
"artifactType": "FlexChange",
|
|
337
|
+
"controlType": "sap.m.Column"
|
|
257
338
|
}
|
|
258
339
|
},
|
|
259
340
|
"additionalProperties": false
|
|
@@ -336,6 +417,236 @@
|
|
|
336
417
|
],
|
|
337
418
|
"type": "string"
|
|
338
419
|
},
|
|
420
|
+
"ALPGridTable": {
|
|
421
|
+
"description": "Table",
|
|
422
|
+
"isViewNode": true,
|
|
423
|
+
"controlProperty": "type",
|
|
424
|
+
"type": "object",
|
|
425
|
+
"properties": {
|
|
426
|
+
"type": {
|
|
427
|
+
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
428
|
+
"type": "string",
|
|
429
|
+
"enum": [
|
|
430
|
+
"GridTable"
|
|
431
|
+
],
|
|
432
|
+
"artifactType": "Manifest"
|
|
433
|
+
},
|
|
434
|
+
"qualifier": {
|
|
435
|
+
"description": "Represents the SelectionPresentationVariant qualifier. ALP looks for SelectionPresentationVariant with this qualifier and if not found, it looks for PresentationVariant with this qualifier.",
|
|
436
|
+
"type": "string",
|
|
437
|
+
"artifactType": "Manifest"
|
|
438
|
+
},
|
|
439
|
+
"defaultContentView": {
|
|
440
|
+
"$ref": "#/definitions/DefaultContentView",
|
|
441
|
+
"description": "Determines the visualization of content area",
|
|
442
|
+
"artifactType": "Manifest"
|
|
443
|
+
},
|
|
444
|
+
"defaultFilterMode": {
|
|
445
|
+
"$ref": "#/definitions/DefaultFilterMode",
|
|
446
|
+
"description": "Determines the filter mode that is used",
|
|
447
|
+
"artifactType": "Manifest"
|
|
448
|
+
},
|
|
449
|
+
"contentTitle": {
|
|
450
|
+
"description": "Lets you define title for the content area",
|
|
451
|
+
"i18nClassification": "TIT: Title for the content area",
|
|
452
|
+
"type": "string",
|
|
453
|
+
"artifactType": "Manifest"
|
|
454
|
+
},
|
|
455
|
+
"autoHide": {
|
|
456
|
+
"description": "This setting allows developer to determine chart / table interaction. 'true' would mean chart act as filter for table, 'false' would mean that matching table rows are highlighted but table is not filtered.",
|
|
457
|
+
"type": "boolean",
|
|
458
|
+
"artifactType": "Manifest"
|
|
459
|
+
},
|
|
460
|
+
"filterDefaultsFromSelectionVariant": {
|
|
461
|
+
"description": "Lets you to add default values for FilterBar using SelectionVariant annotation",
|
|
462
|
+
"type": "boolean",
|
|
463
|
+
"artifactType": "Manifest"
|
|
464
|
+
},
|
|
465
|
+
"multiSelect": {
|
|
466
|
+
"description": "Single selection in tables is enabled by default. If you want, you can enable multi-select.",
|
|
467
|
+
"type": "boolean",
|
|
468
|
+
"artifactType": "Manifest"
|
|
469
|
+
},
|
|
470
|
+
"selectAll": {
|
|
471
|
+
"description": "The 'Select All' button is disabled by default. To enable it, set selectAll to true.",
|
|
472
|
+
"type": "boolean",
|
|
473
|
+
"artifactType": "Manifest"
|
|
474
|
+
},
|
|
475
|
+
"selectionLimit": {
|
|
476
|
+
"description": "If new data needs to be loaded from the back-end system for this, the number of lines to be loaded is restricted to the specified limit. The default value for this limit is 200. If selectAll is true, the selection limit is not evaluated.",
|
|
477
|
+
"type": "number",
|
|
478
|
+
"artifactType": "Manifest"
|
|
479
|
+
},
|
|
480
|
+
"showTablePersonalisation": {
|
|
481
|
+
"description": "The showTablePersonalisation attribute can be set to false to hide the table personalization button.",
|
|
482
|
+
"type": "boolean",
|
|
483
|
+
"artifactType": "FlexChange",
|
|
484
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
485
|
+
},
|
|
486
|
+
"useExportToExcel": {
|
|
487
|
+
"description": "useExportToExcel must be set to true if you want to export data to a spreadsheet application, for example Microsoft Excel.",
|
|
488
|
+
"type": "boolean",
|
|
489
|
+
"artifactType": "FlexChange",
|
|
490
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
491
|
+
},
|
|
492
|
+
"fitContainer": {
|
|
493
|
+
"description": "Set to false if the table does not occupy the entire space available in the container.",
|
|
494
|
+
"type": "boolean",
|
|
495
|
+
"artifactType": "FlexChange",
|
|
496
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
497
|
+
},
|
|
498
|
+
"quickVariantSelection": {
|
|
499
|
+
"$ref": "#/definitions/QuickVariantSelection",
|
|
500
|
+
"description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
|
|
501
|
+
"artifactType": "Manifest"
|
|
502
|
+
},
|
|
503
|
+
"quickVariantSelectionX": {
|
|
504
|
+
"$ref": "#/definitions/QuickVariantSelectionX",
|
|
505
|
+
"description": "Switch on the multiple view feature (Multiple table mode with charts) and link to the variants you have added to your annotations.",
|
|
506
|
+
"artifactType": "Manifest"
|
|
507
|
+
},
|
|
508
|
+
"enableAutoBinding": {
|
|
509
|
+
"description": "When set to true, this enables automatic binding of the table with either the tableBindingPath (if it exists) or the entitySet property.",
|
|
510
|
+
"type": "boolean",
|
|
511
|
+
"artifactType": "FlexChange",
|
|
512
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
513
|
+
},
|
|
514
|
+
"condensedTableLayout": {
|
|
515
|
+
"description": "For analytical tables, grid tables and tree tables you can define a condensed table layout by setting condensedTableLayout to true.",
|
|
516
|
+
"type": "boolean",
|
|
517
|
+
"artifactType": "Manifest"
|
|
518
|
+
},
|
|
519
|
+
"enableTableFilterInPageVariant": {
|
|
520
|
+
"description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
|
|
521
|
+
"type": "boolean",
|
|
522
|
+
"artifactType": "Manifest"
|
|
523
|
+
},
|
|
524
|
+
"toolBar": {
|
|
525
|
+
"$ref": "#/definitions/ToolBar",
|
|
526
|
+
"description": "Tool Bar"
|
|
527
|
+
},
|
|
528
|
+
"columns": {
|
|
529
|
+
"$ref": "#/definitions/GenericColumns",
|
|
530
|
+
"description": "Columns"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"additionalProperties": false
|
|
534
|
+
},
|
|
535
|
+
"ALPAnalyticalTable": {
|
|
536
|
+
"description": "Table",
|
|
537
|
+
"isViewNode": true,
|
|
538
|
+
"controlProperty": "type",
|
|
539
|
+
"type": "object",
|
|
540
|
+
"properties": {
|
|
541
|
+
"type": {
|
|
542
|
+
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
543
|
+
"type": "string",
|
|
544
|
+
"enum": [
|
|
545
|
+
"AnalyticalTable"
|
|
546
|
+
],
|
|
547
|
+
"artifactType": "Manifest"
|
|
548
|
+
},
|
|
549
|
+
"qualifier": {
|
|
550
|
+
"description": "Represents the SelectionPresentationVariant qualifier. ALP looks for SelectionPresentationVariant with this qualifier and if not found, it looks for PresentationVariant with this qualifier.",
|
|
551
|
+
"type": "string",
|
|
552
|
+
"artifactType": "Manifest"
|
|
553
|
+
},
|
|
554
|
+
"defaultContentView": {
|
|
555
|
+
"$ref": "#/definitions/DefaultContentView",
|
|
556
|
+
"description": "Determines the visualization of content area",
|
|
557
|
+
"artifactType": "Manifest"
|
|
558
|
+
},
|
|
559
|
+
"defaultFilterMode": {
|
|
560
|
+
"$ref": "#/definitions/DefaultFilterMode",
|
|
561
|
+
"description": "Determines the filter mode that is used",
|
|
562
|
+
"artifactType": "Manifest"
|
|
563
|
+
},
|
|
564
|
+
"contentTitle": {
|
|
565
|
+
"description": "Lets you define title for the content area",
|
|
566
|
+
"i18nClassification": "TIT: Title for the content area",
|
|
567
|
+
"type": "string",
|
|
568
|
+
"artifactType": "Manifest"
|
|
569
|
+
},
|
|
570
|
+
"autoHide": {
|
|
571
|
+
"description": "This setting allows developer to determine chart / table interaction. 'true' would mean chart act as filter for table, 'false' would mean that matching table rows are highlighted but table is not filtered.",
|
|
572
|
+
"type": "boolean",
|
|
573
|
+
"artifactType": "Manifest"
|
|
574
|
+
},
|
|
575
|
+
"filterDefaultsFromSelectionVariant": {
|
|
576
|
+
"description": "Lets you to add default values for FilterBar using SelectionVariant annotation",
|
|
577
|
+
"type": "boolean",
|
|
578
|
+
"artifactType": "Manifest"
|
|
579
|
+
},
|
|
580
|
+
"multiSelect": {
|
|
581
|
+
"description": "Single selection in tables is enabled by default. If you want, you can enable multi-select.",
|
|
582
|
+
"type": "boolean",
|
|
583
|
+
"artifactType": "Manifest"
|
|
584
|
+
},
|
|
585
|
+
"selectAll": {
|
|
586
|
+
"description": "The 'Select All' button is disabled by default. To enable it, set selectAll to true.",
|
|
587
|
+
"type": "boolean",
|
|
588
|
+
"artifactType": "Manifest"
|
|
589
|
+
},
|
|
590
|
+
"selectionLimit": {
|
|
591
|
+
"description": "If new data needs to be loaded from the back-end system for this, the number of lines to be loaded is restricted to the specified limit. The default value for this limit is 200. If selectAll is true, the selection limit is not evaluated.",
|
|
592
|
+
"type": "number",
|
|
593
|
+
"artifactType": "Manifest"
|
|
594
|
+
},
|
|
595
|
+
"showTablePersonalisation": {
|
|
596
|
+
"description": "The showTablePersonalisation attribute can be set to false to hide the table personalization button.",
|
|
597
|
+
"type": "boolean",
|
|
598
|
+
"artifactType": "FlexChange",
|
|
599
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
600
|
+
},
|
|
601
|
+
"useExportToExcel": {
|
|
602
|
+
"description": "useExportToExcel must be set to true if you want to export data to a spreadsheet application, for example Microsoft Excel.",
|
|
603
|
+
"type": "boolean",
|
|
604
|
+
"artifactType": "FlexChange",
|
|
605
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
606
|
+
},
|
|
607
|
+
"fitContainer": {
|
|
608
|
+
"description": "Set to false if the table does not occupy the entire space available in the container.",
|
|
609
|
+
"type": "boolean",
|
|
610
|
+
"artifactType": "FlexChange",
|
|
611
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
612
|
+
},
|
|
613
|
+
"quickVariantSelection": {
|
|
614
|
+
"$ref": "#/definitions/QuickVariantSelection",
|
|
615
|
+
"description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
|
|
616
|
+
"artifactType": "Manifest"
|
|
617
|
+
},
|
|
618
|
+
"quickVariantSelectionX": {
|
|
619
|
+
"$ref": "#/definitions/QuickVariantSelectionX",
|
|
620
|
+
"description": "Switch on the multiple view feature (Multiple table mode with charts) and link to the variants you have added to your annotations.",
|
|
621
|
+
"artifactType": "Manifest"
|
|
622
|
+
},
|
|
623
|
+
"enableAutoBinding": {
|
|
624
|
+
"description": "When set to true, this enables automatic binding of the table with either the tableBindingPath (if it exists) or the entitySet property.",
|
|
625
|
+
"type": "boolean",
|
|
626
|
+
"artifactType": "FlexChange",
|
|
627
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
628
|
+
},
|
|
629
|
+
"condensedTableLayout": {
|
|
630
|
+
"description": "For analytical tables, grid tables and tree tables you can define a condensed table layout by setting condensedTableLayout to true.",
|
|
631
|
+
"type": "boolean",
|
|
632
|
+
"artifactType": "Manifest"
|
|
633
|
+
},
|
|
634
|
+
"enableTableFilterInPageVariant": {
|
|
635
|
+
"description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
|
|
636
|
+
"type": "boolean",
|
|
637
|
+
"artifactType": "Manifest"
|
|
638
|
+
},
|
|
639
|
+
"toolBar": {
|
|
640
|
+
"$ref": "#/definitions/ToolBar",
|
|
641
|
+
"description": "Tool Bar"
|
|
642
|
+
},
|
|
643
|
+
"columns": {
|
|
644
|
+
"$ref": "#/definitions/GenericColumns",
|
|
645
|
+
"description": "Columns"
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
"additionalProperties": false
|
|
649
|
+
},
|
|
339
650
|
"AnalyticalListPageFilterBar": {
|
|
340
651
|
"description": "Filter Bar",
|
|
341
652
|
"isViewNode": true,
|
|
@@ -343,23 +654,48 @@
|
|
|
343
654
|
"properties": {
|
|
344
655
|
"showGoButtonOnFilterBar": {
|
|
345
656
|
"description": "Go button is displayed for compact filters when this is set to true",
|
|
346
|
-
"type": "boolean"
|
|
657
|
+
"type": "boolean",
|
|
658
|
+
"artifactType": "Manifest"
|
|
347
659
|
},
|
|
348
660
|
"smartVariantManagement": {
|
|
349
661
|
"description": "Controls whether smart variant management is active. Default is true.",
|
|
350
|
-
"type": "boolean"
|
|
662
|
+
"type": "boolean",
|
|
663
|
+
"artifactType": "Manifest"
|
|
351
664
|
},
|
|
352
665
|
"liveMode": {
|
|
353
666
|
"description": "If liveMode is set, the search will be automatically triggered when a filter value is set.",
|
|
354
|
-
"type": "boolean"
|
|
667
|
+
"type": "boolean",
|
|
668
|
+
"artifactType": "FlexChange",
|
|
669
|
+
"controlType": "sap.ui.comp.smartfilterbar.SmartFilterBar"
|
|
355
670
|
},
|
|
356
671
|
"variantManagementHidden": {
|
|
357
|
-
"
|
|
672
|
+
"description": "If you set the flag to false or if the flag is not at all contained in the manifest of the app, the standard variant management is available and can be enabled or disabled.",
|
|
673
|
+
"type": "boolean",
|
|
674
|
+
"artifactType": "Manifest"
|
|
358
675
|
},
|
|
359
676
|
"subTitleIfVariantMgmtHidden": {
|
|
360
677
|
"description": "You can choose an app-specific title by setting the corresponding value for the subTitleIfVariantMgmtHidden property.",
|
|
361
678
|
"i18nClassification": "TIT: Subtitle if variant management is hidden",
|
|
362
|
-
"type": "string"
|
|
679
|
+
"type": "string",
|
|
680
|
+
"artifactType": "Manifest"
|
|
681
|
+
},
|
|
682
|
+
"showClearOnFB": {
|
|
683
|
+
"description": "Handles visibility of the Clear button on the FilterBar.",
|
|
684
|
+
"type": "boolean",
|
|
685
|
+
"artifactType": "FlexChange",
|
|
686
|
+
"controlType": "sap.ui.comp.smartfilterbar.SmartFilterBar"
|
|
687
|
+
},
|
|
688
|
+
"showFilterConfiguration": {
|
|
689
|
+
"description": "Handles visibility of the Filter button on the FilterBar.",
|
|
690
|
+
"type": "boolean",
|
|
691
|
+
"artifactType": "FlexChange",
|
|
692
|
+
"controlType": "sap.ui.comp.smartfilterbar.SmartFilterBar"
|
|
693
|
+
},
|
|
694
|
+
"showRestoreOnFB": {
|
|
695
|
+
"description": "Handles visibility of the Restore button on the FilterBar.",
|
|
696
|
+
"type": "boolean",
|
|
697
|
+
"artifactType": "FlexChange",
|
|
698
|
+
"controlType": "sap.ui.comp.smartfilterbar.SmartFilterBar"
|
|
363
699
|
}
|
|
364
700
|
},
|
|
365
701
|
"additionalProperties": false
|
|
@@ -371,15 +707,21 @@
|
|
|
371
707
|
"properties": {
|
|
372
708
|
"showLegendButton": {
|
|
373
709
|
"description": "Controls the visibility of the legend button.",
|
|
374
|
-
"type": "boolean"
|
|
710
|
+
"type": "boolean",
|
|
711
|
+
"artifactType": "FlexChange",
|
|
712
|
+
"controlType": "sap.ui.comp.smartchart.SmartChart"
|
|
375
713
|
},
|
|
376
714
|
"showDownloadButton": {
|
|
377
715
|
"description": "Controls the visibility of the chart download button.",
|
|
378
|
-
"type": "boolean"
|
|
716
|
+
"type": "boolean",
|
|
717
|
+
"artifactType": "FlexChange",
|
|
718
|
+
"controlType": "sap.ui.comp.smartchart.SmartChart"
|
|
379
719
|
},
|
|
380
720
|
"showChartTypeSelectionButton": {
|
|
381
721
|
"description": "Controls the visibility of the chart type button.",
|
|
382
|
-
"type": "boolean"
|
|
722
|
+
"type": "boolean",
|
|
723
|
+
"artifactType": "FlexChange",
|
|
724
|
+
"controlType": "sap.ui.comp.smartchart.SmartChart"
|
|
383
725
|
},
|
|
384
726
|
"ignoredChartTypes": {
|
|
385
727
|
"description": "Comma-separated value fields do not showup in the list of available chart types.",
|
|
@@ -418,7 +760,9 @@
|
|
|
418
760
|
"waterfall"
|
|
419
761
|
],
|
|
420
762
|
"type": "string"
|
|
421
|
-
}
|
|
763
|
+
},
|
|
764
|
+
"artifactType": "FlexChange",
|
|
765
|
+
"controlType": "sap.ui.comp.smartchart.SmartChart"
|
|
422
766
|
}
|
|
423
767
|
},
|
|
424
768
|
"additionalProperties": false
|
|
@@ -430,27 +774,33 @@
|
|
|
430
774
|
"properties": {
|
|
431
775
|
"model": {
|
|
432
776
|
"description": "Links to the item in \"models\" section which provides additional information",
|
|
433
|
-
"type": "string"
|
|
777
|
+
"type": "string",
|
|
778
|
+
"artifactType": "Manifest"
|
|
434
779
|
},
|
|
435
780
|
"entitySet": {
|
|
436
781
|
"description": "EntitySet used for bringing up the details displayed within the KPI tag/card",
|
|
437
|
-
"type": "string"
|
|
782
|
+
"type": "string",
|
|
783
|
+
"artifactType": "Manifest"
|
|
438
784
|
},
|
|
439
785
|
"qualifier": {
|
|
440
786
|
"description": "Refers to the UI.KPI annotation",
|
|
441
|
-
"type": "string"
|
|
787
|
+
"type": "string",
|
|
788
|
+
"artifactType": "Manifest"
|
|
442
789
|
},
|
|
443
790
|
"filterable": {
|
|
444
791
|
"description": "It ensures that KPI shows up as filterable",
|
|
445
|
-
"type": "boolean"
|
|
792
|
+
"type": "boolean",
|
|
793
|
+
"artifactType": "Manifest"
|
|
446
794
|
},
|
|
447
795
|
"detailNavigation": {
|
|
448
796
|
"description": "Points to an element within \"outbound\" property of the \"crossNavigation\" section",
|
|
449
|
-
"type": "string"
|
|
797
|
+
"type": "string",
|
|
798
|
+
"artifactType": "Manifest"
|
|
450
799
|
},
|
|
451
800
|
"groupId": {
|
|
452
801
|
"description": "To achieve faster end-to-end response time within analytical list page, enable batching of KPI by defining groupId in the KPI section of the descriptor configuration file",
|
|
453
|
-
"type": "string"
|
|
802
|
+
"type": "string",
|
|
803
|
+
"artifactType": "Manifest"
|
|
454
804
|
}
|
|
455
805
|
},
|
|
456
806
|
"additionalProperties": false,
|