@ui5/webcomponents-base 0.0.0-306572ffa → 0.0.0-3236d56be

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.
Files changed (342) hide show
  1. package/.eslintignore +3 -0
  2. package/CHANGELOG.md +308 -0
  3. package/README.md +26 -2
  4. package/bundle.esm.js +13 -11
  5. package/dist/AssetRegistry.js +8 -7
  6. package/dist/Boot.js +59 -0
  7. package/dist/CSP.js +59 -0
  8. package/dist/CustomElementsRegistry.js +60 -4
  9. package/dist/CustomElementsScope.js +20 -98
  10. package/dist/CustomElementsScopeUtils.js +108 -0
  11. package/dist/DOMObserver.js +65 -0
  12. package/dist/Device.js +71 -773
  13. package/dist/EventProvider.js +30 -26
  14. package/dist/FeaturesRegistry.js +4 -1
  15. package/dist/FontFace.js +19 -62
  16. package/dist/InitialConfiguration.js +43 -8
  17. package/dist/Keys.js +107 -0
  18. package/dist/ManagedStyles.js +83 -0
  19. package/dist/MediaRange.js +109 -0
  20. package/{src/util/parseProperties.js → dist/PropertiesFileFormat.js} +6 -0
  21. package/dist/Render.js +175 -0
  22. package/dist/RenderScheduler.js +16 -138
  23. package/dist/Runtimes.js +107 -0
  24. package/dist/StaticArea.js +1 -29
  25. package/dist/StaticAreaItem.js +58 -65
  26. package/dist/SystemCSSVars.js +4 -25
  27. package/dist/Theming.js +2 -1
  28. package/dist/UI5Element.js +319 -364
  29. package/dist/UI5ElementMetadata.js +132 -17
  30. package/dist/asset-registries/Icons.js +117 -13
  31. package/dist/asset-registries/Illustrations.js +30 -0
  32. package/dist/asset-registries/LocaleData.js +105 -66
  33. package/dist/asset-registries/Themes.js +23 -32
  34. package/dist/asset-registries/i18n.js +62 -48
  35. package/dist/assets-meta/IconCollectionsAlias.js +18 -0
  36. package/dist/config/Icons.js +52 -0
  37. package/dist/config/Language.js +33 -6
  38. package/dist/config/Theme.js +25 -0
  39. package/dist/css/BusyIndicator.css +76 -0
  40. package/dist/css/FontFace.css +75 -0
  41. package/dist/css/OverrideFontFace.css +32 -0
  42. package/dist/css/SystemCSSVars.css +17 -0
  43. package/dist/delegate/ItemNavigation.js +239 -170
  44. package/dist/delegate/ResizeHandler.js +78 -37
  45. package/dist/delegate/ScrollEnablement.js +49 -20
  46. package/dist/features/F6Navigation.js +108 -0
  47. package/dist/features/OpenUI5Enablement.js +119 -0
  48. package/dist/features/OpenUI5Support.js +41 -6
  49. package/dist/generated/AssetParameters.js +1 -1
  50. package/dist/generated/VersionInfo.js +10 -0
  51. package/dist/generated/css/BusyIndicator.css.js +5 -0
  52. package/dist/generated/css/FontFace.css.js +5 -0
  53. package/dist/generated/css/OverrideFontFace.css.js +5 -0
  54. package/dist/generated/css/SystemCSSVars.css.js +5 -0
  55. package/dist/i18nBundle.js +38 -4
  56. package/dist/isLegacyBrowser.js +3 -0
  57. package/dist/locale/applyDirection.js +6 -4
  58. package/dist/locale/directionChange.js +32 -0
  59. package/dist/locale/getEffectiveDir.js +28 -0
  60. package/dist/locale/getLocale.js +12 -2
  61. package/dist/locale/languageChange.js +1 -1
  62. package/dist/renderer/LitRenderer.js +39 -18
  63. package/dist/renderer/directives/style-map.js +72 -0
  64. package/dist/renderer/executeTemplate.js +19 -2
  65. package/dist/resources/bundle.esm.js +15 -112
  66. package/dist/resources/bundle.esm.js.map +1 -1
  67. package/dist/sap/base/Log.js +241 -0
  68. package/dist/sap/base/assert.js +8 -0
  69. package/dist/sap/base/security/URLListValidator.js +148 -0
  70. package/dist/sap/base/security/encodeCSS.js +14 -0
  71. package/dist/sap/base/security/encodeXML.js +23 -0
  72. package/dist/sap/base/security/sanitizeHTML.js +16 -0
  73. package/dist/sap/base/strings/toHex.js +8 -0
  74. package/dist/sap/base/util/now.js +7 -0
  75. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +3585 -0
  76. package/dist/test-resources/assets/Themes.js +8 -8
  77. package/dist/test-resources/elements/Parent.js +6 -2
  78. package/dist/test-resources/elements/WithStaticArea.js +2 -1
  79. package/dist/test-resources/pages/AllTestElements.html +3 -3
  80. package/dist/test-resources/pages/Configuration.html +0 -2
  81. package/dist/test-resources/pages/ConfigurationScript.html +0 -2
  82. package/dist/test-resources/pages/i18n.html +2 -9
  83. package/dist/test-resources/specs/ConfigurationChange.spec.js +10 -8
  84. package/dist/test-resources/specs/ConfigurationScript.spec.js +25 -23
  85. package/dist/test-resources/specs/ConfigurationURL.spec.js +65 -17
  86. package/dist/test-resources/specs/CustomTheme.spec.js +9 -7
  87. package/dist/test-resources/specs/EventProvider.spec.js +63 -0
  88. package/dist/test-resources/specs/StaticArea.spec.js +56 -12
  89. package/dist/test-resources/specs/Theming.spec.js +12 -10
  90. package/dist/test-resources/specs/UI5ElementInvalidation.js +54 -70
  91. package/dist/test-resources/specs/UI5ElementLifecycle.js +17 -15
  92. package/dist/test-resources/specs/UI5ElementListenForChildPropChanges.spec.js +25 -51
  93. package/dist/test-resources/specs/UI5ElementMetadataExt.js +9 -7
  94. package/dist/test-resources/specs/UI5ElementPropertyValidation.js +7 -5
  95. package/dist/test-resources/specs/UI5ElementPropsAndAttrs.spec.js +37 -35
  96. package/dist/test-resources/specs/UI5ElementShadowDOM.js +10 -8
  97. package/dist/test-resources/specs/UI5ElementSlots.js +10 -8
  98. package/dist/theming/CustomStyle.js +25 -5
  99. package/dist/theming/ThemeLoaded.js +22 -0
  100. package/dist/theming/applyTheme.js +13 -15
  101. package/dist/theming/getConstructableStyle.js +7 -6
  102. package/dist/theming/getEffectiveLinksHrefs.js +27 -0
  103. package/dist/theming/getEffectiveStyle.js +24 -8
  104. package/dist/theming/getStylesString.js +4 -2
  105. package/dist/theming/getThemeDesignerTheme.js +25 -5
  106. package/dist/theming/preloadLinks.js +23 -0
  107. package/dist/types/CSSColor.js +9 -0
  108. package/dist/types/CalendarType.js +1 -1
  109. package/dist/types/DataType.js +13 -1
  110. package/dist/types/Float.js +4 -0
  111. package/dist/types/Integer.js +4 -0
  112. package/dist/types/InvisibleMessageMode.js +30 -0
  113. package/dist/types/ItemNavigationBehavior.js +2 -7
  114. package/dist/types/PopupState.js +1 -1
  115. package/dist/types/ValueState.js +1 -1
  116. package/dist/updateShadowRoot.js +30 -0
  117. package/dist/util/AriaLabelHelper.js +41 -0
  118. package/dist/util/Caret.js +45 -0
  119. package/dist/util/ColorConversion.js +370 -0
  120. package/dist/util/FocusableElements.js +22 -9
  121. package/dist/util/HTMLSanitizer.js +7 -0
  122. package/dist/util/InvisibleMessage.js +60 -0
  123. package/dist/util/PopupUtils.js +93 -0
  124. package/dist/util/SlotsHelper.js +43 -0
  125. package/dist/util/TabbableElements.js +5 -1
  126. package/dist/util/arraysAreEqual.js +15 -0
  127. package/dist/util/clamp.js +12 -0
  128. package/dist/util/createLinkInHead.js +19 -0
  129. package/dist/util/debounce.js +17 -0
  130. package/dist/util/escapeRegex.js +10 -0
  131. package/dist/util/generateHighlightedMarkup.js +42 -0
  132. package/dist/util/getActiveElement.js +11 -0
  133. package/dist/util/getClassCopy.js +10 -0
  134. package/dist/util/getEffectiveContentDensity.js +5 -0
  135. package/dist/util/getNormalizedTarget.js +16 -0
  136. package/dist/util/isElementInView.js +15 -0
  137. package/dist/util/isNodeHidden.js +1 -1
  138. package/dist/util/isNodeTabbable.js +4 -4
  139. package/dist/util/isValidPropertyName.js +4 -2
  140. package/index.js +1 -1
  141. package/lib/generate-asset-parameters/index.js +8 -5
  142. package/lib/generate-styles/index.js +26 -0
  143. package/lib/generate-version-info/index.js +32 -0
  144. package/package-scripts.js +30 -19
  145. package/package.json +19 -13
  146. package/src/AssetRegistry.js +8 -7
  147. package/src/Boot.js +59 -0
  148. package/src/CSP.js +59 -0
  149. package/src/CustomElementsRegistry.js +60 -4
  150. package/src/CustomElementsScope.js +20 -98
  151. package/src/CustomElementsScopeUtils.js +108 -0
  152. package/src/DOMObserver.js +65 -0
  153. package/src/Device.js +71 -773
  154. package/src/EventProvider.js +30 -26
  155. package/src/FeaturesRegistry.js +4 -1
  156. package/src/FontFace.js +19 -62
  157. package/src/InitialConfiguration.js +43 -8
  158. package/src/Keys.js +107 -0
  159. package/src/ManagedStyles.js +83 -0
  160. package/src/MediaRange.js +109 -0
  161. package/{dist/util/parseProperties.js → src/PropertiesFileFormat.js} +6 -0
  162. package/src/Render.js +175 -0
  163. package/src/RenderScheduler.js +16 -138
  164. package/src/Runtimes.js +107 -0
  165. package/src/StaticArea.js +1 -29
  166. package/src/StaticAreaItem.js +58 -65
  167. package/src/SystemCSSVars.js +4 -25
  168. package/src/Theming.js +2 -1
  169. package/src/UI5Element.js +319 -364
  170. package/src/UI5ElementMetadata.js +132 -17
  171. package/src/asset-registries/Icons.js +117 -13
  172. package/src/asset-registries/Illustrations.js +30 -0
  173. package/src/asset-registries/LocaleData.js +105 -66
  174. package/src/asset-registries/Themes.js +23 -32
  175. package/src/asset-registries/i18n.js +62 -48
  176. package/src/assets-meta/IconCollectionsAlias.js +18 -0
  177. package/src/config/Icons.js +52 -0
  178. package/src/config/Language.js +33 -6
  179. package/src/config/Theme.js +25 -0
  180. package/src/css/BusyIndicator.css +76 -0
  181. package/src/css/FontFace.css +75 -0
  182. package/src/css/OverrideFontFace.css +32 -0
  183. package/src/css/SystemCSSVars.css +17 -0
  184. package/src/delegate/ItemNavigation.js +239 -170
  185. package/src/delegate/ResizeHandler.js +78 -37
  186. package/src/delegate/ScrollEnablement.js +49 -20
  187. package/src/features/F6Navigation.js +108 -0
  188. package/src/features/OpenUI5Enablement.js +119 -0
  189. package/src/features/OpenUI5Support.js +41 -6
  190. package/src/i18nBundle.js +38 -4
  191. package/src/isLegacyBrowser.js +3 -0
  192. package/src/locale/applyDirection.js +6 -4
  193. package/src/locale/directionChange.js +32 -0
  194. package/src/locale/getEffectiveDir.js +28 -0
  195. package/src/locale/getLocale.js +12 -2
  196. package/src/locale/languageChange.js +1 -1
  197. package/src/renderer/LitRenderer.js +39 -18
  198. package/src/renderer/directives/style-map.js +72 -0
  199. package/src/renderer/executeTemplate.js +19 -2
  200. package/src/theming/CustomStyle.js +25 -5
  201. package/src/theming/ThemeLoaded.js +22 -0
  202. package/src/theming/applyTheme.js +13 -15
  203. package/src/theming/getConstructableStyle.js +7 -6
  204. package/src/theming/getEffectiveLinksHrefs.js +27 -0
  205. package/src/theming/getEffectiveStyle.js +24 -8
  206. package/src/theming/getStylesString.js +4 -2
  207. package/src/theming/getThemeDesignerTheme.js +25 -5
  208. package/src/theming/preloadLinks.js +23 -0
  209. package/src/types/CSSColor.js +9 -0
  210. package/src/types/CalendarType.js +1 -1
  211. package/src/types/DataType.js +13 -1
  212. package/src/types/Float.js +4 -0
  213. package/src/types/Integer.js +4 -0
  214. package/src/types/InvisibleMessageMode.js +30 -0
  215. package/src/types/ItemNavigationBehavior.js +2 -7
  216. package/src/types/PopupState.js +1 -1
  217. package/src/types/ValueState.js +1 -1
  218. package/src/updateShadowRoot.js +30 -0
  219. package/src/util/AriaLabelHelper.js +41 -0
  220. package/src/util/Caret.js +45 -0
  221. package/src/util/ColorConversion.js +370 -0
  222. package/src/util/FocusableElements.js +22 -9
  223. package/src/util/HTMLSanitizer.js +7 -0
  224. package/src/util/InvisibleMessage.js +60 -0
  225. package/src/util/PopupUtils.js +93 -0
  226. package/src/util/SlotsHelper.js +43 -0
  227. package/src/util/TabbableElements.js +5 -1
  228. package/src/util/arraysAreEqual.js +15 -0
  229. package/src/util/clamp.js +12 -0
  230. package/src/util/createLinkInHead.js +19 -0
  231. package/src/util/debounce.js +17 -0
  232. package/src/util/escapeRegex.js +10 -0
  233. package/src/util/generateHighlightedMarkup.js +42 -0
  234. package/src/util/getActiveElement.js +11 -0
  235. package/src/util/getClassCopy.js +10 -0
  236. package/src/util/getEffectiveContentDensity.js +5 -0
  237. package/src/util/getNormalizedTarget.js +16 -0
  238. package/src/util/isElementInView.js +15 -0
  239. package/src/util/isNodeHidden.js +1 -1
  240. package/src/util/isNodeTabbable.js +4 -4
  241. package/src/util/isValidPropertyName.js +4 -2
  242. package/used-modules.txt +10 -0
  243. package/bundle.es5.js +0 -28
  244. package/dist/SVGIconRegistry.js +0 -62
  245. package/dist/boot.js +0 -34
  246. package/dist/compatibility/DOMObserver.js +0 -62
  247. package/dist/compatibility/patchNodeValue.js +0 -24
  248. package/dist/compatibility/whenPolyfillLoaded.js +0 -26
  249. package/dist/delegate/CustomResize.js +0 -78
  250. package/dist/delegate/NativeResize.js +0 -44
  251. package/dist/features/PropertiesFormatSupport.js +0 -8
  252. package/dist/features/browsersupport/Edge.js +0 -6
  253. package/dist/features/browsersupport/IE11.js +0 -41
  254. package/dist/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
  255. package/dist/renderer/ifDefined.js +0 -21
  256. package/dist/renderer/scopeHTML.js +0 -32
  257. package/dist/resources/bundle.es5.js +0 -212
  258. package/dist/resources/bundle.es5.js.map +0 -1
  259. package/dist/theming/CSSVarsPonyfill.js +0 -24
  260. package/dist/theming/adaptCSSForIE.js +0 -95
  261. package/dist/theming/createComponentStyleTag.js +0 -55
  262. package/dist/theming/createThemePropertiesStyleTag.js +0 -20
  263. package/dist/thirdparty/Array.from.js +0 -16
  264. package/dist/thirdparty/Array.prototype.fill.js +0 -44
  265. package/dist/thirdparty/Array.prototype.find.js +0 -46
  266. package/dist/thirdparty/Array.prototype.includes.js +0 -51
  267. package/dist/thirdparty/Element.prototype.closest.js +0 -11
  268. package/dist/thirdparty/Element.prototype.matches.js +0 -6
  269. package/dist/thirdparty/Map.prototype.keys.js +0 -9
  270. package/dist/thirdparty/Number.isInteger.js +0 -5
  271. package/dist/thirdparty/Number.isNaN.js +0 -1
  272. package/dist/thirdparty/Number.parseInt.js +0 -1
  273. package/dist/thirdparty/Object.assign.js +0 -31
  274. package/dist/thirdparty/Object.entries.js +0 -11
  275. package/dist/thirdparty/Symbol.js +0 -2
  276. package/dist/thirdparty/WeakSet.js +0 -27
  277. package/dist/thirdparty/es6-string-methods.js +0 -182
  278. package/dist/thirdparty/events-polyfills.js +0 -89
  279. package/dist/thirdparty/fetch.js +0 -1
  280. package/dist/thirdparty/template.js +0 -600
  281. package/dist/thirdparty/webcomponents-sd-ce-pf.js +0 -318
  282. package/dist/util/getEffectiveAriaLabelText.js +0 -28
  283. package/dist/util/isSlot.js +0 -3
  284. package/dist/webcomponentsjs/LICENSE.md +0 -19
  285. package/dist/webcomponentsjs/README.md +0 -229
  286. package/dist/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
  287. package/dist/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
  288. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -297
  289. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
  290. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -208
  291. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
  292. package/dist/webcomponentsjs/bundles/webcomponents-sd.js +0 -166
  293. package/dist/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
  294. package/dist/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
  295. package/dist/webcomponentsjs/package.json +0 -46
  296. package/dist/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
  297. package/dist/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
  298. package/dist/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
  299. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
  300. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
  301. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
  302. package/dist/webcomponentsjs/webcomponents-bundle.js +0 -298
  303. package/dist/webcomponentsjs/webcomponents-bundle.js.map +0 -1
  304. package/dist/webcomponentsjs/webcomponents-loader.js +0 -185
  305. package/src/SVGIconRegistry.js +0 -62
  306. package/src/boot.js +0 -34
  307. package/src/compatibility/DOMObserver.js +0 -62
  308. package/src/compatibility/patchNodeValue.js +0 -24
  309. package/src/compatibility/whenPolyfillLoaded.js +0 -26
  310. package/src/delegate/CustomResize.js +0 -78
  311. package/src/delegate/NativeResize.js +0 -44
  312. package/src/features/PropertiesFormatSupport.js +0 -8
  313. package/src/features/browsersupport/Edge.js +0 -6
  314. package/src/features/browsersupport/IE11.js +0 -41
  315. package/src/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
  316. package/src/renderer/ifDefined.js +0 -21
  317. package/src/renderer/scopeHTML.js +0 -32
  318. package/src/theming/CSSVarsPonyfill.js +0 -24
  319. package/src/theming/adaptCSSForIE.js +0 -95
  320. package/src/theming/createComponentStyleTag.js +0 -55
  321. package/src/theming/createThemePropertiesStyleTag.js +0 -20
  322. package/src/thirdparty/Array.from.js +0 -16
  323. package/src/thirdparty/Array.prototype.fill.js +0 -44
  324. package/src/thirdparty/Array.prototype.find.js +0 -46
  325. package/src/thirdparty/Array.prototype.includes.js +0 -51
  326. package/src/thirdparty/Element.prototype.closest.js +0 -11
  327. package/src/thirdparty/Element.prototype.matches.js +0 -6
  328. package/src/thirdparty/Map.prototype.keys.js +0 -9
  329. package/src/thirdparty/Number.isInteger.js +0 -5
  330. package/src/thirdparty/Number.isNaN.js +0 -1
  331. package/src/thirdparty/Number.parseInt.js +0 -1
  332. package/src/thirdparty/Object.assign.js +0 -31
  333. package/src/thirdparty/Object.entries.js +0 -11
  334. package/src/thirdparty/Symbol.js +0 -2
  335. package/src/thirdparty/WeakSet.js +0 -27
  336. package/src/thirdparty/es6-string-methods.js +0 -182
  337. package/src/thirdparty/events-polyfills.js +0 -89
  338. package/src/thirdparty/fetch.js +0 -1
  339. package/src/thirdparty/template.js +0 -600
  340. package/src/thirdparty/webcomponents-sd-ce-pf.js +0 -318
  341. package/src/util/getEffectiveAriaLabelText.js +0 -28
  342. package/src/util/isSlot.js +0 -3
@@ -1,212 +0,0 @@
1
- !function(t){"use strict";
2
- /*!
3
- * css-vars-ponyfill
4
- * v2.1.2
5
- * https://jhildenbiddle.github.io/css-vars-ponyfill/
6
- * (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com>
7
- * MIT license
8
- */function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function n(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}
9
- /*!
10
- * get-css-data
11
- * v1.6.3
12
- * https://github.com/jhildenbiddle/get-css-data
13
- * (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com>
14
- * MIT license
15
- */()}function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:e.mimeType||null,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},r=Array.isArray(t)?t:[t],o=Array.apply(null,Array(r.length)).map((function(t){return null}));function i(){return!("<"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().charAt(0))}function a(t,e){n.onError(t,r[e],e)}function s(t,e){var i=n.onSuccess(t,r[e],e);t=!1===i?"":i||t,o[e]=t,-1===o.indexOf(null)&&n.onComplete(o)}var u=document.createElement("a");r.forEach((function(t,e){if(u.setAttribute("href",t),u.href=String(u.href),Boolean(document.all&&!window.atob)&&u.host.split(":")[0]!==location.host.split(":")[0]){if(u.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",t),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){i(r.responseText)?s(r.responseText,e):a(r,e)},r.onerror=function(t){a(r,e)},setTimeout((function(){r.send()}),0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(t,")")),a(null,e)}else{var o=new XMLHttpRequest;o.open("GET",t),n.mimeType&&o.overrideMimeType&&o.overrideMimeType(n.mimeType),n.onBeforeSend(o,t,e),o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&i(o.responseText)?s(o.responseText,e):a(o,e))},o.send()}}))}
16
- /**
17
- * Gets CSS data from <style> and <link> nodes (including @imports), then
18
- * returns data in order processed by DOM. Allows specifying nodes to
19
- * include/exclude and filtering CSS data using RegEx.
20
- *
21
- * @preserve
22
- * @param {object} [options] The options object
23
- * @param {object} [options.rootElement=document] Root element to traverse for
24
- * <link> and <style> nodes.
25
- * @param {string} [options.include] CSS selector matching <link> and <style>
26
- * nodes to include
27
- * @param {string} [options.exclude] CSS selector matching <link> and <style>
28
- * nodes to exclude
29
- * @param {object} [options.filter] Regular expression used to filter node CSS
30
- * data. Each block of CSS data is tested against the filter,
31
- * and only matching data is included.
32
- * @param {object} [options.useCSSOM=false] Determines if CSS data will be
33
- * collected from a stylesheet's runtime values instead of its
34
- * text content. This is required to get accurate CSS data
35
- * when a stylesheet has been modified using the deleteRule()
36
- * or insertRule() methods because these modifications will
37
- * not be reflected in the stylesheet's text content.
38
- * @param {function} [options.onBeforeSend] Callback before XHR is sent. Passes
39
- * 1) the XHR object, 2) source node reference, and 3) the
40
- * source URL as arguments.
41
- * @param {function} [options.onSuccess] Callback on each CSS node read. Passes
42
- * 1) CSS text, 2) source node reference, and 3) the source
43
- * URL as arguments.
44
- * @param {function} [options.onError] Callback on each error. Passes 1) the XHR
45
- * object for inspection, 2) soure node reference, and 3) the
46
- * source URL that failed (either a <link> href or an @import)
47
- * as arguments
48
- * @param {function} [options.onComplete] Callback after all nodes have been
49
- * processed. Passes 1) concatenated CSS text, 2) an array of
50
- * CSS text in DOM order, and 3) an array of nodes in DOM
51
- * order as arguments.
52
- *
53
- * @example
54
- *
55
- * getCssData({
56
- * rootElement: document,
57
- * include : 'style,link[rel="stylesheet"]',
58
- * exclude : '[href="skip.css"]',
59
- * filter : /red/,
60
- * useCSSOM : false,
61
- * onBeforeSend(xhr, node, url) {
62
- * // ...
63
- * }
64
- * onSuccess(cssText, node, url) {
65
- * // ...
66
- * }
67
- * onError(xhr, node, url) {
68
- * // ...
69
- * },
70
- * onComplete(cssText, cssArray, nodeArray) {
71
- * // ...
72
- * }
73
- * });
74
- */function o(t){var e={cssComments:/\/\*[\s\S]+?\*\//g,cssImports:/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g},n={rootElement:t.rootElement||document,include:t.include||'style,link[rel="stylesheet"]',exclude:t.exclude||null,filter:t.filter||null,useCSSOM:t.useCSSOM||!1,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},o=Array.apply(null,n.rootElement.querySelectorAll(n.include)).filter((function(t){return e=t,r=n.exclude,!(e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector).call(e,r);var e,r})),a=Array.apply(null,Array(o.length)).map((function(t){return null}));function s(){if(-1===a.indexOf(null)){var t=a.join("");n.onComplete(t,a,o)}}function u(t,e,o,i){var u=n.onSuccess(t,o,i);(function t(e,o,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=c(e,i,u);l.rules.length?r(l.absoluteUrls,{onBeforeSend:function(t,e,r){n.onBeforeSend(t,o,e)},onSuccess:function(t,e,r){var i=n.onSuccess(t,o,e),a=c(t=!1===i?"":i||t,e,u);return a.rules.forEach((function(e,n){t=t.replace(e,a.absoluteRules[n])})),t},onError:function(n,r,c){s.push({xhr:n,url:r}),u.push(l.rules[c]),t(e,o,i,a,s,u)},onComplete:function(n){n.forEach((function(t,n){e=e.replace(l.rules[n],t)})),t(e,o,i,a,s,u)}}):a(e,s)})(t=void 0!==u&&!1===Boolean(u)?"":u||t,o,i,(function(t,r){null===a[e]&&(r.forEach((function(t){return n.onError(t.xhr,o,t.url)})),!n.filter||n.filter.test(t)?a[e]=t:a[e]="",s())}))}function c(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={};return o.rules=(t.replace(e.cssComments,"").match(e.cssImports)||[]).filter((function(t){return-1===r.indexOf(t)})),o.urls=o.rules.map((function(t){return t.replace(e.cssImports,"$1")})),o.absoluteUrls=o.urls.map((function(t){return i(t,n)})),o.absoluteRules=o.rules.map((function(t,e){var r=o.urls[e],a=i(o.absoluteUrls[e],n);return t.replace(r,a)})),o}o.length?o.forEach((function(t,e){var o=t.getAttribute("href"),c=t.getAttribute("rel"),l="LINK"===t.nodeName&&o&&c&&"stylesheet"===c.toLowerCase(),f="STYLE"===t.nodeName;if(l)r(o,{mimeType:"text/css",onBeforeSend:function(e,r,o){n.onBeforeSend(e,t,r)},onSuccess:function(n,r,a){var s=i(o,location.href);u(n,e,t,s)},onError:function(r,o,i){a[e]="",n.onError(r,t,o),s()}});else if(f){var h=t.textContent;n.useCSSOM&&(h=Array.apply(null,t.sheet.cssRules).map((function(t){return t.cssText})).join("")),u(h,e,t,location.href)}else a[e]="",s()})):n.onComplete("",[])}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=e,o.href=t,o.href}var a=s;function s(t,e,n){t instanceof RegExp&&(t=u(t,n)),e instanceof RegExp&&(e=u(e,n));var r=c(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function u(t,e){var n=e.match(t);return n?n[0]:null}function c(t,e,n){var r,o,i,a,s,u=n.indexOf(t),c=n.indexOf(e,u+1),l=u;if(u>=0&&c>0){for(r=[],i=n.length;l>=0&&!s;)l==u?(r.push(l),u=n.indexOf(t,l+1)):1==r.length?s=[r.pop(),c]:((o=r.pop())<i&&(i=o,a=c),c=n.indexOf(e,l+1)),l=u<c&&u>=0?u:c;r.length&&(s=[i,a])}return s}function l(t){var n=e({},{preserveStatic:!0,removeComments:!1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});function r(t){throw new Error("CSS parse error: ".concat(t))}function o(e){var n=e.exec(t);if(n)return t=t.slice(n[0].length),n}function i(){return o(/^{\s*/)}function s(){return o(/^}/)}function u(){o(/^\s*/)}function c(){if(u(),"/"===t[0]&&"*"===t[1]){for(var e=2;t[e]&&("*"!==t[e]||"/"!==t[e+1]);)e++;if(!t[e])return r("end of comment is missing");var n=t.slice(2,e);return t=t.slice(e+2),{type:"comment",comment:n}}}function l(){for(var t,e=[];t=c();)e.push(t);return n.removeComments?[]:e}function f(){for(u();"}"===t[0];)r("extra closing bracket");var e=o(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(e)return e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(t){return t.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(t){return t.replace(/\u200C/g,",")}))}function h(){o(/^([;\s]*)+/);var t=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//g,e=o(/^(\*?[-#\/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(e){if(e=e[0].trim(),!o(/^:\s*/))return r("property missing ':'");var n=o(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),i={type:"declaration",property:e.replace(t,""),value:n?n[0].replace(t,"").trim():""};return o(/^[;\s]*/),i}}function d(){if(!i())return r("missing '{'");for(var t,e=l();t=h();)e.push(t),e=e.concat(l());return s()?e:r("missing '}'")}function p(){u();for(var t,e=[];t=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),o(/^,\s*/);if(e.length)return{type:"keyframe",values:e,declarations:d()}}function v(){if(u(),"@"===t[0]){var e=function(){var t=o(/^@([-\w]+)?keyframes\s*/);if(t){var e=t[1];if(!(t=o(/^([-\w]+)\s*/)))return r("@keyframes missing name");var n,a=t[1];if(!i())return r("@keyframes missing '{'");for(var u=l();n=p();)u.push(n),u=u.concat(l());return s()?{type:"keyframes",name:a,vendor:e,keyframes:u}:r("@keyframes missing '}'")}}()||function(){var t=o(/^@supports *([^{]+)/);if(t)return{type:"supports",supports:t[1].trim(),rules:g()}}()||function(){if(o(/^@host\s*/))return{type:"host",rules:g()}}()||function(){var t=o(/^@media([^{]+)*/);if(t)return{type:"media",media:(t[1]||"").trim(),rules:g()}}()||function(){var t=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return{type:"custom-media",name:t[1].trim(),media:t[2].trim()}}()||function(){if(o(/^@page */))return{type:"page",selectors:f()||[],declarations:d()}}()||function(){var t=o(/^@([-\w]+)?document *([^{]+)/);if(t)return{type:"document",document:t[2].trim(),vendor:t[1]?t[1].trim():null,rules:g()}}()||function(){if(o(/^@font-face\s*/))return{type:"font-face",declarations:d()}}()||function(){var t=o(/^@(import|charset|namespace)\s*([^;]+);/);if(t)return{type:t[1],name:t[2].trim()}}();if(e&&!n.preserveStatic){var a=!1;if(e.declarations)a=e.declarations.some((function(t){return/var\(/.test(t.value)}));else a=(e.keyframes||e.rules||[]).some((function(t){return(t.declarations||[]).some((function(t){return/var\(/.test(t.value)}))}));return a?e:{}}return e}}function m(){if(!n.preserveStatic){var e=a("{","}",t);if(e){var o=/:(?:root|host)(?![.:#(])/.test(e.pre)&&/--\S*\s*:/.test(e.body),i=/var\(/.test(e.body);if(!o&&!i)return t=t.slice(e.end+1),{}}}var s=f()||[],u=n.preserveStatic?d():d().filter((function(t){var e=s.some((function(t){return/:(?:root|host)(?![.:#(])/.test(t)}))&&/^--\S/.test(t.property),n=/var\(/.test(t.value);return e||n}));return s.length||r("selector missing"),{type:"rule",selectors:s,declarations:u}}function g(e){if(!e&&!i())return r("missing '{'");for(var n,o=l();t.length&&(e||"}"!==t[0])&&(n=v()||m());)n.type&&o.push(n),o=o.concat(l());return e||s()?o:r("missing '}'")}return{type:"stylesheet",stylesheet:{rules:g(!0),errors:[]}}}function f(t){var n=e({},{parseHost:!1,store:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),r=new RegExp(":".concat(n.parseHost?"host":"root","(?![.:#(])"));return"string"==typeof t&&(t=l(t,n)),t.stylesheet.rules.forEach((function(t){"rule"===t.type&&t.selectors.some((function(t){return r.test(t)}))&&t.declarations.forEach((function(t,e){var r=t.property,o=t.value;r&&0===r.indexOf("--")&&(n.store[r]=o)}))})),n.store}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r={charset:function(t){return"@charset "+t.name+";"},comment:function(t){return 0===t.comment.indexOf("__CSSVARSPONYFILL")?"/*"+t.comment+"*/":""},"custom-media":function(t){return"@custom-media "+t.name+" "+t.media+";"},declaration:function(t){return t.property+":"+t.value+";"},document:function(t){return"@"+(t.vendor||"")+"document "+t.document+"{"+o(t.rules)+"}"},"font-face":function(t){return"@font-face{"+o(t.declarations)+"}"},host:function(t){return"@host{"+o(t.rules)+"}"},import:function(t){return"@import "+t.name+";"},keyframe:function(t){return t.values.join(",")+"{"+o(t.declarations)+"}"},keyframes:function(t){return"@"+(t.vendor||"")+"keyframes "+t.name+"{"+o(t.keyframes)+"}"},media:function(t){return"@media "+t.media+"{"+o(t.rules)+"}"},namespace:function(t){return"@namespace "+t.name+";"},page:function(t){return"@page "+(t.selectors.length?t.selectors.join(", "):"")+"{"+o(t.declarations)+"}"},rule:function(t){var e=t.declarations;if(e.length)return t.selectors.join(",")+"{"+o(e)+"}"},supports:function(t){return"@supports "+t.supports+"{"+o(t.rules)+"}"}};function o(t){for(var o="",i=0;i<t.length;i++){var a=t[i];n&&n(a);var s=r[a.type](a);s&&(o+=s,s.length&&a.selectors&&(o+=e))}return o}return o(t.stylesheet.rules)}s.range=c;var d="--",p="var";function v(t){var n=e({},{preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return"string"==typeof t&&(t=l(t,n)),function t(e,n){e.rules.forEach((function(r){r.rules?t(r,n):r.keyframes?r.keyframes.forEach((function(t){"keyframe"===t.type&&n(t.declarations,r)})):r.declarations&&n(r.declarations,e)}))}(t.stylesheet,(function(t,e){for(var r=0;r<t.length;r++){var o=t[r],i=o.type,a=o.property,s=o.value;if("declaration"===i)if(n.preserveVars||!a||0!==a.indexOf(d)){if(-1!==s.indexOf(p+"(")){var u=g(s,n);u!==o.value&&(u=m(u),n.preserveVars?(t.splice(r,0,{type:i,property:a,value:u}),r++):o.value=u)}}else t.splice(r,1),r--}})),h(t)}function m(t){return(t.match(/calc\(([^)]+)\)/g)||[]).forEach((function(e){var n="calc".concat(e.split("calc").join(""));t=t.replace(e,n)})),t}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===t.indexOf("var("))return t;var r=a("(",")",t);return r?"var"===r.pre.slice(-3)?0===r.body.trim().length?(e.onWarning("var() must contain a non-whitespace string"),t):r.pre.slice(0,-3)+function(t){var r=t.split(",")[0].replace(/[\s\n\t]/g,""),o=(t.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],i=Object.prototype.hasOwnProperty.call(e.variables,r)?String(e.variables[r]):void 0,a=i||(o?String(o):void 0),s=n||t;return i||e.onWarning('variable "'.concat(r,'" is undefined')),a&&"undefined"!==a&&a.length>0?g(a,e,s):"var(".concat(s,")")}(r.body)+g(r.post,e):r.pre+"(".concat(g(r.body,e),")")+g(r.post,e):(-1!==t.indexOf("var(")&&e.onWarning('missing closing ")" in the value "'.concat(t,'"')),t)}var y="undefined"!=typeof window,w=y&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),b={group:0,job:0},_={rootElement:y?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onWarning:function(){},onError:function(){},onSuccess:function(){},onComplete:function(){}},S={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},k={dom:{},job:{},user:{}},x=!1,E=null,A=0,O=null,C=!1;
75
- /**
76
- * Fetches, parses, and transforms CSS custom properties from specified
77
- * <style> and <link> elements into static values, then appends a new <style>
78
- * element with static values to the DOM to provide CSS custom property
79
- * compatibility for legacy browsers. Also provides a single interface for
80
- * live updates of runtime values in both modern and legacy browsers.
81
- *
82
- * @preserve
83
- * @param {object} [options] Options object
84
- * @param {object} [options.rootElement=document] Root element to traverse for
85
- * <link> and <style> nodes
86
- * @param {boolean} [options.shadowDOM=false] Determines if shadow DOM <link>
87
- * and <style> nodes will be processed.
88
- * @param {string} [options.include="style,link[rel=stylesheet]"] CSS selector
89
- * matching <link re="stylesheet"> and <style> nodes to
90
- * process
91
- * @param {string} [options.exclude] CSS selector matching <link
92
- * rel="stylehseet"> and <style> nodes to exclude from those
93
- * matches by options.include
94
- * @param {object} [options.variables] A map of custom property name/value
95
- * pairs. Property names can omit or include the leading
96
- * double-hyphen (—), and values specified will override
97
- * previous values
98
- * @param {boolean} [options.onlyLegacy=true] Determines if the ponyfill will
99
- * only generate legacy-compatible CSS in browsers that lack
100
- * native support (i.e., legacy browsers)
101
- * @param {boolean} [options.preserveStatic=true] Determines if CSS
102
- * declarations that do not reference a custom property will
103
- * be preserved in the transformed CSS
104
- * @param {boolean} [options.preserveVars=false] Determines if CSS custom
105
- * property declarations will be preserved in the transformed
106
- * CSS
107
- * @param {boolean} [options.silent=false] Determines if warning and error
108
- * messages will be displayed on the console
109
- * @param {boolean} [options.updateDOM=true] Determines if the ponyfill will
110
- * update the DOM after processing CSS custom properties
111
- * @param {boolean} [options.updateURLs=true] Determines if the ponyfill will
112
- * convert relative url() paths to absolute urls
113
- * @param {boolean} [options.watch=false] Determines if a MutationObserver will
114
- * be created that will execute the ponyfill when a <link> or
115
- * <style> DOM mutation is observed
116
- * @param {function} [options.onBeforeSend] Callback before XHR is sent. Passes
117
- * 1) the XHR object, 2) source node reference, and 3) the
118
- * source URL as arguments
119
- * @param {function} [options.onWarning] Callback after each CSS parsing warning
120
- * has occurred. Passes 1) a warning message as an argument.
121
- * @param {function} [options.onError] Callback after a CSS parsing error has
122
- * occurred or an XHR request has failed. Passes 1) an error
123
- * message, and 2) source node reference, 3) xhr, and 4 url as
124
- * arguments.
125
- * @param {function} [options.onSuccess] Callback after CSS data has been
126
- * collected from each node and before CSS custom properties
127
- * have been transformed. Allows modifying the CSS data before
128
- * it is transformed by returning any string value (or false
129
- * to skip). Passes 1) CSS text, 2) source node reference, and
130
- * 3) the source URL as arguments.
131
- * @param {function} [options.onComplete] Callback after all CSS has been
132
- * processed, legacy-compatible CSS has been generated, and
133
- * (optionally) the DOM has been updated. Passes 1) a CSS
134
- * string with CSS variable values resolved, 2) an array of
135
- * output <style> node references that have been appended to
136
- * the DOM, 3) an object containing all custom properies names
137
- * and values, and 4) the ponyfill execution time in
138
- * milliseconds.
139
- *
140
- * @example
141
- *
142
- * cssVars({
143
- * rootElement : document,
144
- * shadowDOM : false,
145
- * include : 'style,link[rel="stylesheet"]',
146
- * exclude : '',
147
- * variables : {},
148
- * onlyLegacy : true,
149
- * preserveStatic: true,
150
- * preserveVars : false,
151
- * silent : false,
152
- * updateDOM : true,
153
- * updateURLs : true,
154
- * watch : false,
155
- * onBeforeSend(xhr, node, url) {},
156
- * onWarning(message) {},
157
- * onError(message, node, xhr, url) {},
158
- * onSuccess(cssText, node, url) {},
159
- * onComplete(cssText, styleNode, cssVariables, benchmark) {}
160
- * });
161
- */
162
- function R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r="cssVars(): ",i=e({},_,t);function a(t,e,n,o){!i.silent&&window.console&&console.error("".concat(r).concat(t,"\n"),e),i.onError(t,e,n,o)}function s(t){!i.silent&&window.console&&console.warn("".concat(r).concat(t)),i.onWarning(t)}if(y){if(i.watch)return i.watch=_.watch,function(t){function e(t){return"LINK"===t.tagName&&-1!==(t.getAttribute("rel")||"").indexOf("stylesheet")&&!t.disabled}if(!window.MutationObserver)return;E&&(E.disconnect(),E=null);(E=new MutationObserver((function(n){n.some((function(n){var r,o=!1;return"attributes"===n.type?o=e(n.target):"childList"===n.type&&(r=n.addedNodes,o=Array.apply(null,r).some((function(t){var n=1===t.nodeType&&t.hasAttribute("data-cssvars"),r=function(t){return"STYLE"===t.tagName&&!t.disabled}(t)&&S.cssVars.test(t.textContent);return!n&&(e(t)||r)}))||function(e){return Array.apply(null,e).some((function(e){var n=1===e.nodeType,r=n&&"out"===e.getAttribute("data-cssvars"),o=n&&"src"===e.getAttribute("data-cssvars"),i=o;if(o||r){var a=e.getAttribute("data-cssvars-group"),s=t.rootElement.querySelector('[data-cssvars-group="'.concat(a,'"]'));o&&(N(t.rootElement),k.dom={}),s&&s.parentNode.removeChild(s)}return i}))}(n.removedNodes)),o}))&&R(t)}))).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0})}(i),void R(i);if(!1===i.watch&&E&&(E.disconnect(),E=null),!i.__benchmark){if(x===i.rootElement)return void function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(O),O=setTimeout((function(){t.__benchmark=null,R(t)}),e)}(t);if(i.__benchmark=T(),i.exclude=[E?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',i.exclude].filter((function(t){return t})).join(","),i.variables=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=/^-{2}/;return Object.keys(t).reduce((function(n,r){return n[e.test(r)?r:"--".concat(r.replace(/^-+/,""))]=t[r],n}),{})}(i.variables),!E)if(Array.apply(null,i.rootElement.querySelectorAll('[data-cssvars="out"]')).forEach((function(t){var e=t.getAttribute("data-cssvars-group");(e?i.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(e,'"]')):null)||t.parentNode.removeChild(t)})),A){var u=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])');u.length<A&&(A=u.length,k.dom={})}}if("loading"!==document.readyState)if(w&&i.onlyLegacy){if(i.updateDOM){var c=i.rootElement.host||(i.rootElement===document?document.documentElement:i.rootElement);Object.keys(i.variables).forEach((function(t){c.style.setProperty(t,i.variables[t])}))}}else!C&&(i.shadowDOM||i.rootElement.shadowRoot||i.rootElement.host)?o({rootElement:_.rootElement,include:_.include,exclude:i.exclude,onSuccess:function(t,e,n){return(t=((t=t.replace(S.cssComments,"").replace(S.cssMediaQueries,"")).match(S.cssVarDeclRules)||[]).join(""))||!1},onComplete:function(t,e,n){f(t,{store:k.dom,onWarning:s}),C=!0,R(i)}}):(x=i.rootElement,o({rootElement:i.rootElement,include:i.include,exclude:i.exclude,onBeforeSend:i.onBeforeSend,onError:function(t,e,n){var r=t.responseURL||P(n,location.href),o=t.statusText?"(".concat(t.statusText,")"):"Unspecified Error"+(0===t.status?" (possibly CORS related)":"");a("CSS XHR Error: ".concat(r," ").concat(t.status," ").concat(o),e,t,r)},onSuccess:function(t,e,n){var r=i.onSuccess(t,e,n);return t=void 0!==r&&!1===Boolean(r)?"":r||t,i.updateURLs&&(t=function(t,e){return(t.replace(S.cssComments,"").match(S.cssUrls)||[]).forEach((function(n){var r=n.replace(S.cssUrls,"$1"),o=P(r,e);t=t.replace(n,n.replace(r,o))})),t}(t,n)),t},onComplete:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],u={},c=i.updateDOM?k.dom:Object.keys(k.job).length?k.job:k.job=JSON.parse(JSON.stringify(k.dom)),d=!1;if(o.forEach((function(t,e){if(S.cssVars.test(r[e]))try{var n=l(r[e],{preserveStatic:i.preserveStatic,removeComments:!0});f(n,{parseHost:Boolean(i.rootElement.host),store:u,onWarning:s}),t.__cssVars={tree:n}}catch(e){a(e.message,t)}})),i.updateDOM&&e(k.user,i.variables),e(u,i.variables),d=Boolean((document.querySelector("[data-cssvars]")||Object.keys(k.dom).length)&&Object.keys(u).some((function(t){return u[t]!==c[t]}))),e(c,k.user,u),d)N(i.rootElement),R(i);else{var p=[],m=[],g=!1;if(k.job={},i.updateDOM&&b.job++,o.forEach((function(t){var n=!t.__cssVars;if(t.__cssVars)try{v(t.__cssVars.tree,e({},i,{variables:c,onWarning:s}));var r=h(t.__cssVars.tree);if(i.updateDOM){if(t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),r.length){var o=t.getAttribute("data-cssvars-group")||++b.group,u=r.replace(/\s/g,""),l=i.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(o,'"]'))||document.createElement("style");g=g||S.cssKeyframes.test(r),l.hasAttribute("data-cssvars")||l.setAttribute("data-cssvars","out"),u===t.textContent.replace(/\s/g,"")?(n=!0,l&&l.parentNode&&(t.removeAttribute("data-cssvars-group"),l.parentNode.removeChild(l))):u!==l.textContent.replace(/\s/g,"")&&([t,l].forEach((function(t){t.setAttribute("data-cssvars-job",b.job),t.setAttribute("data-cssvars-group",o)})),l.textContent=r,p.push(r),m.push(l),l.parentNode||t.parentNode.insertBefore(l,t.nextSibling))}}else t.textContent.replace(/\s/g,"")!==r&&p.push(r)}catch(e){a(e.message,t)}n&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",b.job)})),A=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,i.shadowDOM)for(var y,w=[i.rootElement].concat(n(i.rootElement.querySelectorAll("*"))),_=0;y=w[_];++_)if(y.shadowRoot&&y.shadowRoot.querySelector("style")){var E=e({},i,{rootElement:y.shadowRoot});R(E)}i.updateDOM&&g&&M(i.rootElement),x=!1,i.onComplete(p.join(""),m,JSON.parse(JSON.stringify(c)),T()-i.__benchmark)}}}));else document.addEventListener("DOMContentLoaded",(function e(n){R(t),document.removeEventListener("DOMContentLoaded",e)}))}}function M(t){var e=["animation-name","-moz-animation-name","-webkit-animation-name"].filter((function(t){return getComputedStyle(document.body)[t]}))[0];if(e){for(var n=t.getElementsByTagName("*"),r=[],o=0,i=n.length;o<i;o++){var a=n[o];"none"!==getComputedStyle(a)[e]&&(a.style[e]+="__CSSVARSPONYFILL-KEYFRAMES__",r.push(a))}document.body.offsetHeight;for(var s=0,u=r.length;s<u;s++){var c=r[s].style;c[e]=c[e].replace("__CSSVARSPONYFILL-KEYFRAMES__","")}}}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=e,o.href=t,o.href}function T(){return y&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function N(t){Array.apply(null,t.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach((function(t){return t.setAttribute("data-cssvars","")}))}if(R.reset=function(){for(var t in x=!1,E&&(E.disconnect(),E=null),A=0,O=null,C=!1,k)k[t]={}},String.prototype.startsWith||function(){var t={}.toString;Object.defineProperty(String.prototype,"startsWith",{value:function(e){if(null==this)throw TypeError();var n=String(this);if(e&&"[object RegExp]"==t.call(e))throw TypeError();var r=n.length,o=String(e),i=o.length,a=arguments.length>1?arguments[1]:void 0,s=a?Number(a):0;s!=s&&(s=0);var u=Math.min(Math.max(s,0),r);if(i+u>r)return!1;for(var c=-1;++c<i;)if(n.charCodeAt(u+c)!=o.charCodeAt(c))return!1;return!0},configurable:!0,writable:!0})}(),String.prototype.endsWith||function(){var t={}.toString;Object.defineProperty(String.prototype,"endsWith",{value:function(e){if(null==this)throw TypeError();var n=String(this);if(e&&"[object RegExp]"==t.call(e))throw TypeError();var r=n.length,o=String(e),i=o.length,a=r;if(arguments.length>1){var s=arguments[1];void 0!==s&&(a=s?Number(s):0)!=a&&(a=0)}var u=Math.min(Math.max(a,0),r),c=u-i;if(c<0)return!1;for(var l=-1;++l<i;)if(n.charCodeAt(c+l)!=o.charCodeAt(l))return!1;return!0},configurable:!0,writable:!0})}(),String.prototype.includes||function(){var t={}.toString,e="".indexOf;Object.defineProperty(String.prototype,"includes",{value:function(n){if(null==this)throw TypeError();var r=String(this);if(n&&"[object RegExp]"==t.call(n))throw TypeError();var o=r.length,i=String(n),a=i.length,s=arguments.length>1?arguments[1]:void 0,u=s?Number(s):0;u!=u&&(u=0);var c=Math.min(Math.max(u,0),o);return!(a+c>o)&&-1!=e.call(r,i,u)},configurable:!0,writable:!0})}(),String.prototype.repeat||Object.defineProperty(String.prototype,"repeat",{value:function(t){if(null==this)throw TypeError();var e=String(this),n=t?Number(t):0;if(n!=n&&(n=0),n<0||n==1/0)throw RangeError();for(var r="";n;)n%2==1&&(r+=e),n>1&&(e+=e),n>>=1;return r},configurable:!0,writable:!0}),String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))}),Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(t){if(null==this)throw new TypeError("this is null or not defined");for(var e=Object(this),n=e.length>>>0,r=arguments[1],o=r>>0,i=o<0?Math.max(n+o,0):Math.min(o,n),a=arguments[2],s=void 0===a?n:a>>0,u=s<0?Math.max(n+s,0):Math.min(s,n);i<u;)e[i]=t,i++;return e}}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=e[o];if(t.call(r,i,o,e))return i;o++}},configurable:!0,writable:!0}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;var o,i,a=0|e,s=Math.max(a>=0?a:r-Math.abs(a),0);for(;s<r;){if((o=n[s])===(i=t)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;s++}return!1}}),Map.prototype.keys||(Map.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),t}),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Number.isNaN=Number.isNaN||window.isNaN,Number.parseInt=Number.parseInt||window.parseInt,Element&&!Element.prototype.matches){var L=Element.prototype;L.matches=L.matchesSelector||L.mozMatchesSelector||L.msMatchesSelector||L.oMatchesSelector||L.webkitMatchesSelector}if(Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),!window.WeakSet){var j=function(t){this.name="__st"+(1e9*Math.random()>>>0)+D+++"__",t&&t.forEach&&t.forEach(this.add,this)},D=Date.now()%1e9,I=j.prototype;I.add=function(t){var e=this.name;return t[e]||Object.defineProperty(t,e,{value:!0,writable:!0}),this},I.delete=function(t){return!!t[this.name]&&(t[this.name]=void 0,!0)},I.has=function(t){return!!t[this.name]},window.WeakSet=j}window.fetch||(window.fetch=function(t,e){return e=e||{},new Promise((function(n,r){var o=new XMLHttpRequest;for(var i in o.open(e.method||"get",t,!0),e.headers)o.setRequestHeader(i,e.headers[i]);function a(){var t,e=[],n=[],r={};return o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(o,i,a){e.push(i=i.toLowerCase()),n.push([i,a]),r[i]=(t=r[i])?t+","+a:a})),{ok:2==(o.status/100|0),status:o.status,statusText:o.statusText,url:o.responseURL,clone:a,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},headers:{keys:function(){return e},entries:function(){return n},get:function(t){return r[t.toLowerCase()]},has:function(t){return t.toLowerCase()in r}}}}o.withCredentials="include"==e.credentials,o.onload=function(){n(a())},o.onerror=r,o.send(e.body||null)}))}),function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag",u="object"==typeof module,c=t.regeneratorRuntime;if(c)u&&(module.exports=c);else{(c=t.regeneratorRuntime=u?module.exports:{}).wrap=w;var l="suspendedStart",f="suspendedYield",h="executing",d="completed",p={},v={};v[i]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(M([])));g&&g!==n&&r.call(g,i)&&(v=g);var y=k.prototype=_.prototype=Object.create(v);S.prototype=y.constructor=k,k.constructor=S,k[s]=S.displayName="GeneratorFunction",c.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(y),t},c.awrap=function(t){return{__await:t}},x(E.prototype),E.prototype[a]=function(){return this},c.AsyncIterator=E,c.async=function(t,e,n,r){var o=new E(w(t,e,n,r));return c.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},x(y),y[s]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},c.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},c.values=M,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}}}function w(t,e,n,r){var o=e&&e.prototype instanceof _?e:_,i=Object.create(o.prototype),a=new R(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=b(t,e,n);if("normal"===u.type){if(r=n.done?d:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function _(){}function S(){}function k(){}function x(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var s=b(t[n],t,o);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(c).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,a)}))}a(s.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function A(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=b(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function M(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")()),
163
- /**
164
- *
165
- *
166
- * @author Jerry Bendy <jerry@icewingcc.com>
167
- * @licence MIT
168
- *
169
- */
170
- function(t){var e,n=t.URLSearchParams&&t.URLSearchParams.prototype.get?t.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i="__URLSearchParams__",a=!n||((e=new n).append("s"," &"),"s=+%26"===e.toString()),s=f.prototype,u=!(!t.Symbol||!t.Symbol.iterator);if(!(n&&r&&o&&a)){s.append=function(t,e){m(this[i],t,e)},s.delete=function(t){delete this[i][t]},s.get=function(t){var e=this[i];return t in e?e[t][0]:null},s.getAll=function(t){var e=this[i];return t in e?e[t].slice(0):[]},s.has=function(t){return t in this[i]},s.set=function(t,e){this[i][t]=[""+e]},s.toString=function(){var t,e,n,r,o=this[i],a=[];for(e in o)for(n=h(e),t=0,r=o[e];t<r.length;t++)a.push(n+"="+h(r[t]));return a.join("&")};var c=!!o&&n&&!r&&t.Proxy;Object.defineProperty(t,"URLSearchParams",{value:c?new Proxy(n,{construct:function(t,e){return new t(new f(e[0]).toString())}}):f});var l=t.URLSearchParams.prototype;l.polyfill=!0,l.forEach=l.forEach||function(t,e){var n=v(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){t.call(e,n,r,this)}),this)}),this)},l.sort=l.sort||function(){var t,e,n,r=v(this.toString()),o=[];for(t in r)o.push(t);for(o.sort(),e=0;e<o.length;e++)this.delete(o[e]);for(e=0;e<o.length;e++){var i=o[e],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},l.keys=l.keys||function(){var t=[];return this.forEach((function(e,n){t.push(n)})),p(t)},l.values=l.values||function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},l.entries=l.entries||function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),p(t)},u&&(l[t.Symbol.iterator]=l[t.Symbol.iterator]||l.entries)}function f(t){((t=t||"")instanceof URLSearchParams||t instanceof f)&&(t=t.toString()),this[i]=v(t)}function h(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function d(t){return decodeURIComponent(t.replace(/\+/g," "))}function p(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return u&&(n[t.Symbol.iterator]=function(){return n}),n}function v(t){var e={};if("object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&m(e,n,t[n]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var r=t.split("&"),o=0;o<r.length;o++){var i=r[o],a=i.indexOf("=");-1<a?m(e,d(i.slice(0,a)),d(i.slice(a+1))):i&&m(e,d(i),"")}}return e}function m(t,e,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);e in t?t[e].push(r):t[e]=[r]}}("undefined"!=typeof global?global:window);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function F(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}function U(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){F(i,r,o,a,s,"next",t)}function s(t){F(i,r,o,a,s,"throw",t)}a(void 0)}))}}function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function H(t,e,n){return e&&W(t.prototype,e),n&&W(t,n),t}function z(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$(t,e)}function q(t){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(t,e,n){return(Z=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&$(o,n.prototype),o}).apply(null,arguments)}function G(t){var e="function"==typeof Map?new Map:void 0;return(G=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Z(t,arguments,q(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$(r,t)})(t)}function J(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Y(t,e,n){return(Y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=q(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function X(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function K(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Q(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}!function(){if(window.ShadyDOM){var t=Object.getOwnPropertyDescriptor(Node.prototype,"nodeValue");Object.defineProperty(Node.prototype,"nodeValue",{get:function(){return t.get.apply(this)},set:function(e){t.set.apply(this,arguments);var n=this.parentNode;n instanceof HTMLElement&&n.isUI5Element&&n._processChildren()}})}}(),window.CSSVarsPonyfill={cssVars:R};var tt=new Map,et=function(t,e){tt.set(t,e)},nt=function(t){return tt.get(t)},rt={default:"sap_fiori_3",all:["sap_fiori_3","sap_fiori_3_dark","sap_belize","sap_belize_hcb","sap_belize_hcw","sap_fiori_3_hcb","sap_fiori_3_hcw"]}.default,ot={default:"en",all:["ar","bg","ca","cs","da","de","el","en","es","et","fi","fr","hi","hr","hu","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh_CN","zh_TW"]}.default,it={default:"en",all:["ar","ar_EG","ar_SA","bg","ca","cs","da","de","de_AT","de_CH","el","el_CY","en","en_AU","en_GB","en_HK","en_IE","en_IN","en_NZ","en_PG","en_SG","en_ZA","es","es_AR","es_BO","es_CL","es_CO","es_MX","es_PE","es_UY","es_VE","et","fa","fi","fr","fr_BE","fr_CA","fr_CH","fr_LU","he","hi","hr","hu","id","it","it_CH","ja","kk","ko","lt","lv","ms","nb","nl","nl_BE","pl","pt","pt_PT","ro","ru","ru_UA","sk","sl","sr","sv","th","tr","uk","vi","zh_CN","zh_HK","zh_SG","zh_TW"]}.default,at=function(){var t=navigator.languages;return t&&t[0]||navigator.language||navigator.userLanguage||navigator.browserLanguage||ot},st={},ut=st.hasOwnProperty,ct=st.toString,lt=ut.toString,ft=lt.call(Object),ht=function(t){var e,n;return!(!t||"[object Object]"!==ct.call(t))&&(!(e=Object.getPrototypeOf(t))||"function"==typeof(n=ut.call(e,"constructor")&&e.constructor)&&lt.call(n)===ft)},dt=Object.create(null),pt=function t(){var e,n,r,o,i,a,s=arguments[2]||{},u=3,c=arguments.length,l=arguments[0]||!1,f=arguments[1]?void 0:dt;for("object"!==V(s)&&"function"!=typeof s&&(s={});u<c;u++)if(null!=(i=arguments[u]))for(o in i)e=s[o],r=i[o],"__proto__"!==o&&s!==r&&(l&&r&&(ht(r)||(n=Array.isArray(r)))?(n?(n=!1,a=e&&Array.isArray(e)?e:[]):a=e&&ht(e)?e:{},s[o]=t(l,arguments[1],a,r)):r!==f&&(s[o]=r));return s},vt=function(){var t=[!0,!1];return t.push.apply(t,arguments),pt.apply(null,t)},mt=!1,gt={animationMode:"full",theme:rt,rtl:null,language:null,calendarType:null,noConflict:!1,formatSettings:{}},yt=new Map;yt.set("true",!0),yt.set("false",!1);var wt,bt,_t,St,kt,xt,Et,At=function(){mt||(!function(){var t,e=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");if(e){try{t=JSON.parse(e.innerHTML)}catch(t){console.warn("Incorrect data-sap-ui-config format. Please use JSON")}t&&(gt=vt(gt,t))}}(),new URLSearchParams(window.location.search).forEach((function(t,e){if(e.startsWith("sap-ui")){var n=t.toLowerCase(),r=e.split("sap-ui-")[1];yt.has(t)&&(t=yt.get(n)),gt[r]=t}})),function(){var t=nt("OpenUI5Support");if(t&&t.isLoaded()){var e=t.getConfigurationSettingsObject();gt=vt(gt,e)}}(),mt=!0)},Ot=function(){function t(){B(this,t),this._eventRegistry={}}return H(t,[{key:"attachEvent",value:function(t,e){var n=this._eventRegistry,r=n[t];Array.isArray(r)||(n[t]=[],r=n[t]),r.push({function:e})}},{key:"detachEvent",value:function(t,e){var n=this._eventRegistry,r=n[t];r&&0===(r=r.filter((function(t){return t.function!==e}))).length&&delete n[t]}},{key:"fireEvent",value:function(t,e){var n=this,r=this._eventRegistry[t];return r?r.map((function(t){return t.function.call(n,e)})):[]}},{key:"isHandlerAttached",value:function(t,e){var n=this._eventRegistry[t];if(!n)return!1;for(var r=0;r<n.length;r++){if(n[r].function===e)return!0}return!1}},{key:"hasListeners",value:function(t){return!!this._eventRegistry[t]}}]),t}(),Ct=new Ot,Rt=function(){function t(){B(this,t),this.list=[],this.lookup=new Set}return H(t,[{key:"add",value:function(t){this.lookup.has(t)||(this.list.push(t),this.lookup.add(t))}},{key:"remove",value:function(t){this.lookup.has(t)&&(this.list=this.list.filter((function(e){return e!==t})),this.lookup.delete(t))}},{key:"shift",value:function(){var t=this.list.shift();if(t)return this.lookup.delete(t),t}},{key:"isEmpty",value:function(){return 0===this.list.length}},{key:"isAdded",value:function(t){return this.lookup.has(t)}},{key:"process",value:function(t){var e,n=new Map;for(e=this.shift();e;){var r=n.get(e)||0;if(r>10)throw new Error("Web component processed too many times this task, max allowed is: ".concat(10));t(e),n.set(e,r+1),e=this.shift()}}}]),t}(),Mt=function(t){var e=[];return t.forEach((function(t){e.push(t)})),e},Pt=new Set,Tt=new Set,Nt=function(t){Pt.add(t)},Lt=function(t){return Pt.has(t)},jt=function(t){Tt.add(t),wt||(wt=setTimeout((function(){Dt(),wt=void 0}),1e3))},Dt=function(){console.warn("The following tags have already been defined by a different UI5 Web Components version: ".concat(Mt(Tt).join(", "))),Tt.clear()},It=new Set,Vt=new Set,Ft=new Rt,Ut=function(){function t(){throw B(this,t),new Error("Static class")}var e,n,r;return H(t,null,[{key:"renderDeferred",value:(r=U(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ft.add(n),e.next=3,t.scheduleRenderTask();case 3:case"end":return e.stop()}}),e)}))),function(t){return r.apply(this,arguments)})},{key:"renderImmediately",value:function(t){t._render()}},{key:"cancelRender",value:function(t){Ft.remove(t)}},{key:"scheduleRenderTask",value:(n=U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return kt||(kt=new Promise((function(e){window.requestAnimationFrame((function(){Ft.process((function(t){return t._render()})),kt=null,e(),St||(St=setTimeout((function(){St=void 0,Ft.isEmpty()&&t._resolveTaskPromise()}),200))}))}))),e.next=3,kt;case 3:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"whenDOMUpdated",value:function(){return bt||(bt=new Promise((function(t){_t=t,window.requestAnimationFrame((function(){Ft.isEmpty()&&(bt=void 0,t())}))})))}},{key:"whenAllCustomElementsAreDefined",value:function(){var t=Mt(Pt).map((function(t){return customElements.whenDefined(t)}));return Promise.all(t)}},{key:"whenFinished",value:(e=U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.whenAllCustomElementsAreDefined();case 2:return e.next=4,t.whenDOMUpdated();case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})},{key:"_resolveTaskPromise",value:function(){Ft.isEmpty()&&_t&&(_t.call(this),_t=void 0,bt=void 0)}},{key:"register",value:function(t){Vt.add(t)}},{key:"deregister",value:function(t){Vt.delete(t)}},{key:"reRenderAllUI5Elements",value:function(e){Vt.forEach((function(n){var r,o=n.constructor.getMetadata().getTag(),i=(r=n.constructor,It.has(r)),a=n.constructor.getMetadata().isLanguageAware();(!e||e.tag===o||e.rtlAware&&i||e.languageAware&&a)&&t.renderDeferred(n)}))}}]),t}(),Bt=function(){return void 0===xt&&(At(),xt=gt.language),xt},Wt=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i,Ht=function(){function t(e){B(this,t);var n=Wt.exec(e.replace(/_/g,"-"));if(null===n)throw new Error("The given language ".concat(e," does not adhere to BCP-47."));this.sLocaleId=e,this.sLanguage=n[1]||null,this.sScript=n[2]||null,this.sRegion=n[3]||null,this.sVariant=n[4]&&n[4].slice(1)||null,this.sExtension=n[5]&&n[5].slice(1)||null,this.sPrivateUse=n[6]||null,this.sLanguage&&(this.sLanguage=this.sLanguage.toLowerCase()),this.sScript&&(this.sScript=this.sScript.toLowerCase().replace(/^[a-z]/,(function(t){return t.toUpperCase()}))),this.sRegion&&(this.sRegion=this.sRegion.toUpperCase())}return H(t,[{key:"getLanguage",value:function(){return this.sLanguage}},{key:"getScript",value:function(){return this.sScript}},{key:"getRegion",value:function(){return this.sRegion}},{key:"getVariant",value:function(){return this.sVariant}},{key:"getVariantSubtags",value:function(){return this.sVariant?this.sVariant.split("-"):[]}},{key:"getExtension",value:function(){return this.sExtension}},{key:"getExtensionSubtags",value:function(){return this.sExtension?this.sExtension.slice(2).split("-"):[]}},{key:"getPrivateUse",value:function(){return this.sPrivateUse}},{key:"getPrivateUseSubtags",value:function(){return this.sPrivateUse?this.sPrivateUse.slice(2).split("-"):[]}},{key:"hasPrivateUseSubtag",value:function(t){return this.getPrivateUseSubtags().indexOf(t)>=0}},{key:"toString",value:function(){var t=[this.sLanguage];return this.sScript&&t.push(this.sScript),this.sRegion&&t.push(this.sRegion),this.sVariant&&t.push(this.sVariant),this.sExtension&&t.push(this.sExtension),this.sPrivateUse&&t.push(this.sPrivateUse),t.join("-")}}]),t}(),zt=function(t){try{if(t&&"string"==typeof t)return new Ht(t)}catch(t){}},qt=function(t){return t?zt(t):Bt()?new Ht(Bt()):zt(at())},$t=new Map,Zt=new Map,Gt=new Map,Jt=function(){var t=U(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return $t.get(e)||$t.set(e,fetch(e)),t.next=3,$t.get(e);case 3:return n=t.sent,Gt.get(e)||Gt.set(e,n.text()),t.abrupt("return",Gt.get(e));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Yt=function(){var t=U(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return $t.get(e)||$t.set(e,fetch(e)),t.next=3,$t.get(e);case 3:return n=t.sent,Zt.get(e)||Zt.set(e,n.json()),t.abrupt("return",Zt.get(e));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Xt=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i,Kt=/(?:^|-)(saptrc|sappsd)(?:-|$)/i,Qt={he:"iw",yi:"ji",id:"in",sr:"sh"},te=function(t){var e;if(!t)return it;if("string"==typeof t&&(e=Xt.exec(t.replace(/_/g,"-")))){var n=e[1].toLowerCase(),r=e[3]?e[3].toUpperCase():void 0,o=e[2]?e[2].toLowerCase():void 0,i=e[4]?e[4].slice(1):void 0,a=e[6];return n=Qt[n]||n,a&&(e=Kt.exec(a))||i&&(e=Kt.exec(i))?"en_US_".concat(e[1].toLowerCase()):("zh"!==n||r||("hans"===o?r="CN":"hant"===o&&(r="TW")),n+(r?"_"+r+(i?"_"+i.replace("-","_"):""):""))}},ee=function(t){if(!t)return it;if("zh_HK"===t)return"zh_TW";var e=t.lastIndexOf("_");return e>=0?t.slice(0,e):t!==it?it:""},ne=new Map,re=new Map,oe=function(t,e){ne.set(t,e)},ie=function(t){return ne.get(t)},ae=function(){var t=U(regeneratorRuntime.mark((function t(e){var n,r,o,i,a,s,u,c,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=re.get(e)){t.next=4;break}return console.warn("Message bundle assets are not configured. Falling back to English texts."," You need to import ".concat(e,"/dist/Assets.js with a build tool that supports JSON imports.")),t.abrupt("return");case 4:for(r=qt().getLanguage(),o=qt().getRegion(),i=te(r+(o?"-".concat(o):""));i!==ot&&!n[i];)i=ee(i);if(n[i]){t.next=11;break}return oe(e,null),t.abrupt("return");case 11:if("object"!==V(a=n[i])){t.next=15;break}return oe(e,a),t.abrupt("return");case 15:return t.next=17,Jt(a);case 17:if(!(s=t.sent).startsWith("{")){t.next=22;break}u=JSON.parse,t.next=26;break;case 22:if(c=nt("PropertiesFormatSupport")){t.next=25;break}throw new Error('In order to support .properties files, please: import "@ui5/webcomponents-base/dist/features/PropertiesFormatSupport.js";');case 25:u=c.parser;case 26:l=u(s),oe(e,l);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();Et=function(){var t=Q(ne.keys());return Promise.all(t.map(ae))},Ct.attachEvent("languageChange",Et);var se,ue,ce=new Map,le=new Map,fe=new Set,he=new Set,de=function(t,e,n){n._?le.set("".concat(t,"_").concat(e),n._):n.includes(":root")||""===n?le.set("".concat(t,"_").concat(e),n):ce.set("".concat(t,"_").concat(e),n),fe.add(t),he.add(e)},pe=function(){var t=U(regeneratorRuntime.mark((function t(e,n){var r,o,i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===(r=le.get("".concat(e,"_").concat(n)))){t.next=3;break}return t.abrupt("return",r);case 3:if(he.has(n)){t.next=7;break}return o=Q(he.values()).join(", "),console.warn("You have requested a non-registered theme - falling back to ".concat(rt,". Registered themes are: ").concat(o)),t.abrupt("return",le.get("".concat(e,"_").concat(rt)));case 7:return t.next=9,ve(e,n);case 9:return i=t.sent,a=i._||i,le.set("".concat(e,"_").concat(n),a),t.abrupt("return",a);case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),ve=function(){var t=U(regeneratorRuntime.mark((function t(e,n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=ce.get("".concat(e,"_").concat(n))){t.next=3;break}throw new Error("You have to import the ".concat(e,"/dist/Assets.js module to switch to additional themes"));case 3:return t.abrupt("return",".css"===(i=void 0,(i=(o=r).lastIndexOf("."))<1?"":o.slice(i))?Jt(r):Yt(r));case 4:case"end":return t.stop()}var o,i}),t)})));return function(e,n){return t.apply(this,arguments)}}(),me=function(){return fe},ge=function(t){return he.has(t)},ye=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("style");return n.type="text/css",Object.entries(e).forEach((function(t){return n.setAttribute.apply(n,Q(t))})),n.textContent=t,document.head.appendChild(n),n},we=function(t,e){var n=document.head.querySelector('style[data-ui5-theme-properties="'.concat(e,'"]'));n?n.textContent=t||"":ye(t,{"data-ui5-theme-properties":e})},be=function(){var t=function(){var t=document.querySelector(".sapThemeMetaData-Base-baseLib");if(t)return getComputedStyle(t).backgroundImage;(t=document.createElement("span")).style.display="none",t.classList.add("sapThemeMetaData-Base-baseLib"),document.body.appendChild(t);var e=getComputedStyle(t).backgroundImage;return document.body.removeChild(t),e}();if(t&&"none"!==t)return function(t){var e,n;try{e=t.Path.match(/\.([^.]+)\.css_variables$/)[1],n=t.Extends[0]}catch(e){return void console.warn("Malformed theme metadata Object",t)}return{themeName:e,baseThemeName:n}}(function(t){var e=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(t);if(e&&e.length>=2){var n=e[1];if("{"!==(n=n.replace(/\\"/g,'"')).charAt(0)&&"}"!==n.charAt(n.length-1))try{n=decodeURIComponent(n)}catch(t){return void console.warn("Malformed theme metadata string, unable to decodeURIComponent")}try{return JSON.parse(n)}catch(t){console.warn("Malformed theme metadata string, unable to parse JSON")}}}(t))},_e=function(){return!!window.CSSVarsPonyfill},Se=function(){se=void 0,window.CSSVarsPonyfill.cssVars({rootElement:document.head,silent:!0})},ke="@ui5/webcomponents-theme-base",xe=function(){var t=U(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(me().has(ke)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,pe(ke,e);case 4:n=t.sent,we(n,ke);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ee=function(){var t=U(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:me().forEach(function(){var t=U(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n!==ke){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,pe(n,e);case 4:r=t.sent,we(r,n);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ae=function(){var t=be();if(t)return t;var e=nt("OpenUI5Support");if(e&&e.cssVariablesLoaded())return{themeName:e.getConfigurationSettingsObject().theme}},Oe=function(){var t=U(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=Ae())&&e===n.themeName){t.next=6;break}return t.next=4,xe(e);case 4:t.next=7;break;case 6:o=void 0,(o=document.head.querySelector('style[data-ui5-theme-properties="'.concat(ke,'"]')))&&o.parentElement.removeChild(o);case 7:return r=ge(e)?e:n&&n.baseThemeName,t.next=10,Ee(r);case 10:_e()&&Se();case 11:case"end":return t.stop()}var o}),t)})));return function(e){return t.apply(this,arguments)}}(),Ce=function(){return void 0===ue&&(At(),ue=gt.theme),ue},Re=function(){var t=U(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(ue!==e){t.next=2;break}return t.abrupt("return");case 2:return ue=e,t.next=5,Oe(ue);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Me=window.sap,Pe=Me&&Me.ui&&"function"==typeof Me.ui.getCore&&Me.ui.getCore();et("OpenUI5Support",{isLoaded:function(){return!!Pe},init:function(){return Pe?new Promise((function(t){Pe.attachInit((function(){Me.ui.require(["sap/ui/core/LocaleData"],t)}))})):Promise.resolve()},getConfigurationSettingsObject:function(){if(Pe){var t=Pe.getConfiguration(),e=Me.ui.require("sap/ui/core/LocaleData");return{animationMode:t.getAnimationMode(),language:t.getLanguage(),theme:t.getTheme(),rtl:t.getRTL(),calendarType:t.getCalendarType(),formatSettings:{firstDayOfWeek:e?e.getInstance(t.getLocale()).getFirstDayOfWeek():void 0}}}},getLocaleDataObject:function(){if(Pe){var t=Pe.getConfiguration();return Me.ui.require("sap/ui/core/LocaleData").getInstance(t.getLocale())._get()}},attachListeners:function(){var t;Pe&&(t=Pe.getConfiguration(),Pe.attachThemeChanged(U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Re(t.getTheme());case 2:case"end":return e.stop()}}),e)})))))},cssVariablesLoaded:function(){if(Pe){var t=Q(document.head.children).find((function(t){return"sap-ui-theme-sap.ui.core"===t.id}));if(t)return!!t.href.match(/\/css(-|_)variables\.css/)}}});var Te,Ne,Le='\n\t@font-face {\n\t\tfont-family: "72";\n\t\tfont-style: normal;\n\t\tfont-weight: 400;\n\t\tsrc: local("72"),\n\t\t\turl('.concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff2?ui5-webcomponents",') format("woff2"),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff?ui5-webcomponents",') format("woff");\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72full";\n\t\tfont-style: normal;\n\t\tfont-weight: 400;\n\t\tsrc: local(\'72-full\'),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents",') format("woff2"),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff?ui5-webcomponents",') format("woff");\n\t\t\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72";\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tsrc: local(\'72-Bold\'),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents",') format("woff2"),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff?ui5-webcomponents",') format("woff");\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72full";\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tsrc: local(\'72-Bold-full\'),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents",') format("woff2"),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff?ui5-webcomponents",') format("woff");\n\t}\n'),je=function(){if(!document.querySelector("head>style[data-ui5-font-face]")){var t=nt("OpenUI5Support");t&&t.isLoaded()||ye(Le,{"data-ui5-font-face":""})}},De=function(){function t(){B(this,t)}return H(t,null,[{key:"isValid",value:function(t){}},{key:"generataTypeAcessors",value:function(t){var e=this;Object.keys(t).forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]}})}))}}]),t}(),Ie=new Map,Ve=new Map,Fe=function(t){if(!Ie.has(t)){var e=Be(t.split("-"));Ie.set(t,e)}return Ie.get(t)},Ue=function(t){if(!Ve.has(t)){var e=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();Ve.set(t,e)}return Ve.get(t)},Be=function(t){return t.map((function(t,e){return 0===e?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()})).join("")},We=function(t){return t&&t instanceof HTMLElement&&"slot"===t.localName},He={include:[/^ui5-/],exclude:[]},ze=new Map,qe=function(t){if(!ze.has(t)){var e=He.include.some((function(e){return t.match(e)}))&&!He.exclude.some((function(e){return t.match(e)}));ze.set(t,e)}return ze.get(t)},$e=function(t){qe(t)},Ze=function(){function t(e){B(this,t),this.metadata=e}return H(t,[{key:"getPureTag",value:function(){return this.metadata.tag}},{key:"getTag",value:function(){var t=this.metadata.tag,e=$e(t);return e?"".concat(t,"-").concat(e):t}},{key:"getAltTag",value:function(){var t=this.metadata.altTag;if(t){var e=$e(t);return e?"".concat(t,"-").concat(e):t}}},{key:"hasAttribute",value:function(t){var e=this.getProperties()[t];return e.type!==Object&&!e.noAttribute}},{key:"getPropertiesList",value:function(){return Object.keys(this.getProperties())}},{key:"getAttributesList",value:function(){return this.getPropertiesList().filter(this.hasAttribute,this).map(Ue)}},{key:"getSlots",value:function(){return this.metadata.slots||{}}},{key:"canSlotText",value:function(){var t=this.getSlots().default;return t&&t.type===Node}},{key:"hasSlots",value:function(){return!!Object.entries(this.getSlots()).length}},{key:"hasIndividualSlots",value:function(){return this.slotsAreManaged()&&Object.entries(this.getSlots()).some((function(t){var e=K(t,2);e[0];return e[1].individualSlots}))}},{key:"slotsAreManaged",value:function(){return!!this.metadata.managedSlots}},{key:"getProperties",value:function(){return this.metadata.properties||{}}},{key:"getEvents",value:function(){return this.metadata.events||{}}},{key:"isLanguageAware",value:function(){return!!this.metadata.languageAware}}],[{key:"validatePropertyValue",value:function(t,e){return e.multiple?t.map((function(t){return Ge(t,e)})):Ge(t,e)}},{key:"validateSlotValue",value:function(t,e){return Je(t,e)}}]),t}(),Ge=function(t,e){var n=e.type;return n===Boolean?"boolean"==typeof t&&t:n===String?"string"==typeof t||null==t?t:t.toString():n===Object?"object"===V(t)?t:e.defaultValue:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("function"!=typeof t||"function"!=typeof e)return!1;if(n&&t===e)return!0;var r=t;do{r=Object.getPrototypeOf(r)}while(null!==r&&r!==e);return r===e}(n,De)?n.isValid(t)?t:e.defaultValue:void 0},Je=function(t,e){if(null===t)return t;var n;return(We(n=t)?n.assignedNodes({flatten:!0}).filter((function(t){return t instanceof HTMLElement})):[n]).forEach((function(t){if(!(t instanceof e.type))throw new Error("".concat(t," is not of type ").concat(e.type))})),t},Ye=function(t,e){var n=e.constructor.getUniqueDependencies().map((function(t){return t.getMetadata().getPureTag()})).filter(qe);return t(e,n,void 0)},Xe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,n=document.querySelector(t);return n||(n=document.createElement(t),e.insertBefore(n,e.firstChild))},Ke=function(){return Xe("ui5-static-area")},Qe=function(t){function e(){return B(this,e),J(this,q(e).call(this))}return z(e,t),H(e,[{key:"destroy",value:function(){var t=document.querySelector(this.tagName.toLowerCase());t.parentElement.removeChild(t)}},{key:"isUI5Element",get:function(){return!0}}]),e}(G(HTMLElement));customElements.get("ui5-static-area")||customElements.define("ui5-static-area",Qe);var tn=function(t){return Array.isArray(t)?en(t).join(" "):t},en=function t(e){return e.reduce((function(e,n){return e.concat(Array.isArray(n)?t(n):n)}),[])},nn=function(){function t(e){B(this,t),this.ui5ElementContext=e,this._rendered=!1}var e;return H(t,[{key:"isRendered",value:function(){return this._rendered}},{key:"_updateFragment",value:function(){var t=Ye(this.ui5ElementContext.constructor.staticAreaTemplate,this.ui5ElementContext),e=!window.ShadyDOM&&tn(this.ui5ElementContext.constructor.staticAreaStyles);this.staticAreaItemDomRef||(this.staticAreaItemDomRef=document.createElement("ui5-static-area-item"),this.staticAreaItemDomRef.attachShadow({mode:"open"}),this.staticAreaItemDomRef.classList.add(this.ui5ElementContext._id),Ke().appendChild(this.staticAreaItemDomRef),this._rendered=!0),this._updateContentDensity(this.ui5ElementContext.isCompact),this.ui5ElementContext.constructor.render(t,this.staticAreaItemDomRef.shadowRoot,e,{eventContext:this.ui5ElementContext})}},{key:"_removeFragmentFromStaticArea",value:function(){if(this.staticAreaItemDomRef){var t=Ke();t.removeChild(this.staticAreaItemDomRef),this.staticAreaItemDomRef=null,t.childElementCount<1&&Ke().destroy()}}},{key:"_updateContentDensity",value:function(t){this.staticAreaItemDomRef&&(t?(this.staticAreaItemDomRef.classList.add("sapUiSizeCompact"),this.staticAreaItemDomRef.classList.add("ui5-content-density-compact")):(this.staticAreaItemDomRef.classList.remove("sapUiSizeCompact"),this.staticAreaItemDomRef.classList.remove("ui5-content-density-compact")))}},{key:"getDomRef",value:(e=U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._rendered&&this.staticAreaItemDomRef||this._updateFragment(),t.next=3,Ut.whenDOMUpdated();case 3:return t.abrupt("return",this.staticAreaItemDomRef.shadowRoot);case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}(),rn=function(t){function e(){return B(this,e),J(this,q(e).call(this))}return z(e,t),H(e,[{key:"isUI5Element",get:function(){return!0}}]),e}(G(HTMLElement));customElements.get("ui5-static-area-item")||customElements.define("ui5-static-area-item",rn);var on,an,sn=window,un=new WeakMap,cn=function(){function t(){throw B(this,t),new Error("Static class")}return H(t,null,[{key:"observeDOMNode",value:function(t,e,n){var r=un.get(t);if(r)throw new Error("A mutation/ShadyDOM observer is already assigned to this node.");sn.ShadyDOM?r=sn.ShadyDOM.observeChildren(t,e):(r=new MutationObserver(e)).observe(t,n),un.set(t,r)}},{key:"unobserveDOMNode",value:function(t){var e=un.get(t);e&&(e instanceof MutationObserver?e.disconnect():sn.ShadyDOM.unobserveChildren(e),un.delete(t))}}]),t}(),ln=["value-changed"],fn=function(){return void 0===on&&(At(),on=gt.noConflict),on},hn=function(t){var e=fn();return!function(t){return ln.includes(t)}(t)&&(!0===e||!function(t){var e=fn();return!(e.events&&e.events.includes&&e.events.includes(t))}(t))},dn=function(t){on=t},pn={iw:"he",ji:"yi",in:"id",sh:"sr"},vn=((an=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec("$cldr-rtl-locales:ar,fa,he$"))&&an[2]?an[2].split(/,/):null)||[],mn=function(){var t=(At(),gt.rtl);return null!==t?!!t:function(t){return t=t&&pn[t]||t,vn.indexOf(t)>=0}(Bt()||at())},gn=new Ot,yn=function(t){gn.attachEvent("CustomCSSChange",t)},wn={},bn=new Map;yn((function(t){bn.delete(t)}));var _n=function(t){var e=t.getMetadata().getTag();if(!bn.has(e)){var n=function(t){return wn[t]?wn[t].join(""):""}(e)||"",r=tn(t.styles),o="".concat(r," ").concat(n);bn.set(e,o)}return bn.get(e)},Sn=new Map;yn((function(t){Sn.delete(t)}));var kn=function(t,e,n,r){var o=n+e.length,i=t.charAt(o),a=t.substring(0,n)+r;if("("===i){var s=function(t,e){for(var n=1,r=e+1;r<t.length;r++){var o=t.charAt(r);if("("===o?n++:")"===o&&n--,0===n)return r}}(t,o);return a+t.substring(o+1,s)+t.substring(s+1)}return a+t.substring(o)},xn=function(t,e,n){return(t=function(t,e,n){for(var r=t.indexOf(e);-1!==r;)r=(t=kn(t,e,r,n)).indexOf(e);return t}(t=t.trim(),"::slotted","")).startsWith(":host")?kn(t,":host",0,e):t.match(/^[@0-9]/)||"to"===t||"to{"===t?t:t.match(new RegExp("^".concat(e,"[^a-zA-Z0-9-]")))?t:n&&t.startsWith("[".concat(n,"]"))?t:"".concat(e," ").concat(t)},En=function(t,e,n){t=(t=t.replace(/\n/g," ")).replace(/([{}])/g,"$1\n");var r="";return t.split("\n").forEach((function(t){if(t.match(/{$/)){var o=t.split(",");t=o.map((function(t){return xn(t,e,n)})).join(",")}r="".concat(r).concat(t)})),r},An=new Set;yn((function(t){An.delete(t)}));var On=function(t){var e=t.getMetadata().getTag(),n=t.getMetadata().getPureTag();if(!An.has(e)){var r=_n(t);r=En(r,e,n);var o=function(t){var e=t.staticAreaStyles;return Array.isArray(e)&&(e=e.join(" ")),e}(t);o&&(o=En(o,"ui5-static-area-item"),r="".concat(r," ").concat(o)),ye(r,{"data-ui5-element-styles":e,disabled:"disabled"}),_e()&&(se||(se=window.setTimeout(Se,0))),An.add(e)}},Cn=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return z(e,t),H(e,null,[{key:"isValid",value:function(t){return Number.isInteger(t)}}]),e}(De),Rn=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return z(e,t),H(e,null,[{key:"isValid",value:function(t){return Number(t)===t}}]),e}(De),Mn=["disabled","title","hidden"],Pn=function(t){return!(!Mn.includes(t)&&!t.startsWith("aria"))||![HTMLElement,Element,Node].some((function(e){return e.prototype.hasOwnProperty(t)}))},Tn={events:{"_property-change":{}}},Nn=0,Ln=new Map,jn=new Map,Dn=function(t){function e(){var t,n;return B(this,e),(t=J(this,q(e).call(this)))._initializeState(),t._upgradeAllProperties(),t._initializeContainers(),t._upToDate=!1,t._inDOM=!1,t._fullyConnected=!1,t._domRefReadyPromise=new Promise((function(t){n=t})),t._domRefReadyPromise._deferredResolve=n,t._monitoredChildProps=new Map,t._firePropertyChange=!1,t._shouldInvalidateParent=!1,t}var n,r,o,i,a,s;return z(e,t),H(e,[{key:"_initializeContainers",value:function(){var t=this.constructor._needsShadowDOM(),e=this.constructor._needsStaticArea();t&&this.attachShadow({mode:"open"}),e&&(this.staticAreaItem=new nn(this))}},{key:"connectedCallback",value:(s=U(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.setAttribute(this.constructor.getMetadata().getPureTag(),""),e=this.constructor._needsShadowDOM(),n=this.constructor.getMetadata().slotsAreManaged(),this._inDOM=!0,!n){t.next=8;break}return this._startObservingDOMChildren(),t.next=8,this._processChildren();case 8:if(!e){t.next=19;break}if(this.shadowRoot){t.next=12;break}return t.next=12,Promise.resolve();case 12:if(this._inDOM){t.next=14;break}return t.abrupt("return");case 14:Ut.register(this),Ut.renderImmediately(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,"function"==typeof this.onEnterDOM&&this.onEnterDOM();case 19:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"disconnectedCallback",value:function(){var t=this.constructor._needsShadowDOM(),e=this.constructor._needsStaticArea(),n=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!1,n&&this._stopObservingDOMChildren(),t&&(Ut.deregister(this),this._fullyConnected&&("function"==typeof this.onExitDOM&&this.onExitDOM(),this._fullyConnected=!1)),e&&this.staticAreaItem._removeFragmentFromStaticArea(),Ut.cancelRender(this)}},{key:"_startObservingDOMChildren",value:function(){if(this.constructor.getMetadata().hasSlots()){var t={childList:!0,subtree:this.constructor.getMetadata().canSlotText(),characterData:!0};cn.observeDOMNode(this,this._processChildren.bind(this),t)}}},{key:"_stopObservingDOMChildren",value:function(){cn.unobserveDOMNode(this)}},{key:"_processChildren",value:(a=U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.constructor.getMetadata().hasSlots()){t.next=4;break}return t.next=4,this._updateSlots();case 4:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"_updateSlots",value:(i=U(regeneratorRuntime.mark((function t(){var e,n,r,o,i,a,s,u,c,l,f,h=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=this.constructor.getMetadata().getSlots(),n=this.constructor.getMetadata().canSlotText(),r=Array.from(n?this.childNodes:this.children),o=0,i=Object.entries(e);o<i.length;o++)a=K(i[o],2),s=a[0],u=a[1],this._clearSlot(s,u);return c=new Map,l=new Map,f=r.map(function(){var t=U(regeneratorRuntime.mark((function t(n,r){var o,i,a,s,u,f,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=h.constructor._getSlotName(n),void 0!==(i=e[o])){t.next=6;break}return a=Object.keys(e).join(", "),console.warn("Unknown slotName: ".concat(o,", ignoring"),n,"Valid values are: ".concat(a)),t.abrupt("return");case 6:if(i.individualSlots&&(s=(c.get(o)||0)+1,c.set(o,s),n._individualSlot="".concat(o,"-").concat(s)),!(n instanceof HTMLElement)){t.next=19;break}if(!(u=n.localName).includes("-")){t.next=19;break}if(window.customElements.get(u)){t.next=18;break}return f=window.customElements.whenDefined(u),(d=Ln.get(u))||(d=new Promise((function(t){return setTimeout(t,1e3)})),Ln.set(u,d)),t.next=18,Promise.race([f,d]);case 18:window.customElements.upgrade(n);case 19:(n=h.constructor.getMetadata().constructor.validateSlotValue(n,i)).isUI5Element&&i.listenFor&&h._attachChildPropertyUpdated(n,i.listenFor),n.isUI5Element&&i.invalidateParent&&(n._shouldInvalidateParent=!0),We(n)&&h._attachSlotChange(n),p=i.propertyName||o,l.has(p)?l.get(p).push({child:n,idx:r}):l.set(p,[{child:n,idx:r}]);case 25:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),t.next=9,Promise.all(f);case 9:l.forEach((function(t,e){h._state[e]=t.sort((function(t,e){return t.idx-e.idx})).map((function(t){return t.child}))})),this._invalidate("slots");case 11:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"_clearSlot",value:function(t,e){var n=this,r=e.propertyName||t,o=this._state[r];Array.isArray(o)||(o=[o]),o.forEach((function(t){t&&t.isUI5Element&&(n._detachChildPropertyUpdated(t),t._shouldInvalidateParent=!1),We(t)&&n._detachSlotChange(t)})),this._state[r]=[],this._invalidate(r,[])}},{key:"attributeChangedCallback",value:function(t,e,n){var r=this.constructor.getMetadata().getProperties(),o=t.replace(/^ui5-/,""),i=Fe(o);if(r.hasOwnProperty(i)){var a=r[i].type;a===Boolean&&(n=null!==n),a===Cn&&(n=parseInt(n)),a===Rn&&(n=parseFloat(n)),this[i]=n}}},{key:"_updateAttribute",value:function(t,e){if(this.constructor.getMetadata().hasAttribute(t)&&"object"!==V(e)){var n=Ue(t),r=this.getAttribute(n);"boolean"==typeof e?!0===e&&null===r?this.setAttribute(n,""):!1===e&&null!==r&&this.removeAttribute(n):r!==e&&this.setAttribute(n,e)}}},{key:"_upgradeProperty",value:function(t){if(this.hasOwnProperty(t)){var e=this[t];delete this[t],this[t]=e}}},{key:"_upgradeAllProperties",value:function(){this.constructor.getMetadata().getPropertiesList().forEach(this._upgradeProperty,this)}},{key:"_initializeState",value:function(){var t=this.constructor._getDefaultState();this._state=Object.assign({},t)}},{key:"_attachChildPropertyUpdated",value:function(t,e){var n=t.constructor.getMetadata(),r=this.constructor._getSlotName(t),o=n.getProperties(),i=[],a=[];Array.isArray(e)?i=e:(i=Array.isArray(e.props)?e.props:Object.keys(o),a=Array.isArray(e.exclude)?e.exclude:[]),this._monitoredChildProps.has(r)||this._monitoredChildProps.set(r,{observedProps:i,notObservedProps:a}),t.addEventListener("_property-change",this._invalidateParentOnPropertyUpdate),t._firePropertyChange=!0}},{key:"_detachChildPropertyUpdated",value:function(t){t.removeEventListener("_property-change",this._invalidateParentOnPropertyUpdate),t._firePropertyChange=!1}},{key:"_propertyChange",value:function(t,e){this._updateAttribute(t,e),this._firePropertyChange&&this.dispatchEvent(new CustomEvent("_property-change",{detail:{name:t,newValue:e},composed:!1,bubbles:!0}))}},{key:"_invalidateParentOnPropertyUpdate",value:function(t){var e=this.parentNode;if(e){var n=e.constructor._getSlotName(this),r=e._monitoredChildProps.get(n);if(r){var o=r.observedProps,i=r.notObservedProps;o.includes(t.detail.name)&&!i.includes(t.detail.name)&&e._invalidate("_parent_",this)}}}},{key:"_attachSlotChange",value:function(t){var e=this;this._invalidateOnSlotChange||(this._invalidateOnSlotChange=function(){e._invalidate("slotchange")}),t.addEventListener("slotchange",this._invalidateOnSlotChange)}},{key:"_detachSlotChange",value:function(t){t.removeEventListener("slotchange",this._invalidateOnSlotChange)}},{key:"_invalidate",value:function(){this._shouldInvalidateParent&&this.parentNode._invalidate(),this._upToDate&&this.getDomRef()&&!this._suppressInvalidation&&(this._upToDate=!1,Ut.renderDeferred(this))}},{key:"_render",value:function(){var t=this.constructor.getMetadata().hasIndividualSlots();this._suppressInvalidation=!0,"function"==typeof this.onBeforeRendering&&this.onBeforeRendering(),this._onComponentStateFinalized&&this._onComponentStateFinalized(),delete this._suppressInvalidation,this._upToDate=!0,this._updateShadowRoot(),this._shouldUpdateFragment()&&this.staticAreaItem._updateFragment(this),t&&this._assignIndividualSlotsToChildren(),"function"==typeof this.onAfterRendering&&this.onAfterRendering()}},{key:"_updateShadowRoot",value:function(){if(this.constructor._needsShadowDOM()){var t,e=Ye(this.constructor.template,this);window.ShadyDOM&&On(this.constructor),document.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=function(t){var e=t.getMetadata().getTag();if(!Sn.has(e)){var n=_n(t),r=new CSSStyleSheet;r.replaceSync(n),Sn.set(e,[r])}return Sn.get(e)}(this.constructor)),document.adoptedStyleSheets||window.ShadyDOM||(t=_n(this.constructor)),this.constructor.render(e,this.shadowRoot,t,{eventContext:this})}}},{key:"_assignIndividualSlotsToChildren",value:function(){Array.from(this.children).forEach((function(t){t._individualSlot&&t.setAttribute("slot",t._individualSlot)}))}},{key:"_waitForDomRef",value:function(){return this._domRefReadyPromise}},{key:"getDomRef",value:function(){if(this.shadowRoot&&0!==this.shadowRoot.children.length)return 1===this.shadowRoot.children.length?this.shadowRoot.children[0]:this.shadowRoot.children[1]}},{key:"getFocusDomRef",value:function(){var t=this.getDomRef();if(t)return t.querySelector("[data-sap-focus-ref]")||t}},{key:"getStableDomRef",value:function(t){return this.getDomRef().querySelector("[data-ui5-stable=".concat(t,"]"))}},{key:"focus",value:(o=U(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._waitForDomRef();case 2:(e=this.getFocusDomRef())&&"function"==typeof e.focus&&e.focus();case 4:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"fireEvent",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._fireEvent(t,e,n,r),i=Fe(t);return i!==t?o&&this._fireEvent(i,e,n):o}},{key:"_fireEvent",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!0,i=new CustomEvent("ui5-".concat(t),{detail:e,composed:!1,bubbles:r,cancelable:n});if(o=this.dispatchEvent(i),hn(t))return o;var a=new CustomEvent(t,{detail:e,composed:!1,bubbles:r,cancelable:n}),s=this.dispatchEvent(a);return s&&o}},{key:"getSlottedNodes",value:function(t){return this[t].reduce((function(t,e){return We(e)?t.concat(e.assignedNodes({flatten:!0}).filter((function(t){return t instanceof HTMLElement}))):t.concat([e])}),[])}},{key:"updateStaticAreaItemContentDensity",value:function(){this.staticAreaItem&&this.staticAreaItem._updateContentDensity(this.isCompact)}},{key:"_shouldUpdateFragment",value:function(){return this.constructor._needsStaticArea()&&this.staticAreaItem.isRendered()}},{key:"getStaticAreaItemDomRef",value:function(){return this.staticAreaItem.getDomRef()}},{key:"_id",get:function(){return this.__id||(this.__id="ui5wc_".concat(++Nn)),this.__id}},{key:"isCompact",get:function(){return"compact"===getComputedStyle(this).getPropertyValue("--_ui5_content_density")}},{key:"effectiveDir",get:function(){var t;t=this.constructor,It.add(t);var e=window.document,n=["ltr","rtl"],r=getComputedStyle(this).getPropertyValue("--_ui5_dir");return n.includes(r)?r:n.includes(this.dir)?this.dir:n.includes(e.documentElement.dir)?e.documentElement.dir:n.includes(e.body.dir)?e.body.dir:mn()?"rtl":void 0}},{key:"isUI5Element",get:function(){return!0}}],[{key:"_getSlotName",value:function(t){if(!(t instanceof HTMLElement))return"default";var e=t.getAttribute("slot");if(e){var n=e.match(/^(.+?)-\d+$/);return n?n[1]:e}return"default"}},{key:"_needsShadowDOM",value:function(){return!!this.template}},{key:"_needsStaticArea",value:function(){return"function"==typeof this.staticAreaTemplate}},{key:"_getDefaultState",value:function(){if(this._defaultState)return this._defaultState;var t=this.getMetadata(),e={},n=t.slotsAreManaged(),r=t.getProperties();for(var o in r){var i=r[o].type,a=r[o].defaultValue;i===Boolean?(e[o]=!1,void 0!==a&&console.warn("The 'defaultValue' metadata key is ignored for all booleans properties, they would be initialized with 'false' by default")):r[o].multiple?e[o]=[]:e[o]=i===Object?"defaultValue"in r[o]?r[o].defaultValue:{}:i===String?"defaultValue"in r[o]?r[o].defaultValue:"":a}if(n)for(var s=t.getSlots(),u=0,c=Object.entries(s);u<c.length;u++){var l=K(c[u],2),f=l[0];e[l[1].propertyName||f]=[]}return this._defaultState=e,e}},{key:"_generateAccessors",value:function(){for(var t=this.prototype,e=this.getMetadata().slotsAreManaged(),n=this.getMetadata().getProperties(),r=function(){var e=K(i[o],2),n=e[0],r=e[1];if(!Pn(n))throw new Error('"'.concat(n,'" is not a valid property name. Use a name that does not collide with DOM APIs'));if(r.type===Boolean&&r.defaultValue)throw new Error('Cannot set a default value for property "'.concat(n,'". All booleans are false by default.'));if(r.type===Array)throw new Error('Wrong type for property "'.concat(n,'". Properties cannot be of type Array - use "multiple: true" and set "type" to the single value type, such as "String", "Object", etc...'));if(r.type===Object&&r.defaultValue)throw new Error('Cannot set a default value for property "'.concat(n,'". All properties of type "Object" are empty objects by default.'));if(r.multiple&&r.defaultValue)throw new Error('Cannot set a default value for property "'.concat(n,'". All multiple properties are empty arrays by default.'));Object.defineProperty(t,n,{get:function(){if(void 0!==this._state[n])return this._state[n];var t=r.defaultValue;return r.type!==Boolean&&(r.type===String?t:r.multiple?[]:t)},set:function(t){t=this.constructor.getMetadata().constructor.validatePropertyValue(t,r),this._state[n]!==t&&(this._state[n]=t,this._invalidate(n,t),this._propertyChange(n,t))}})},o=0,i=Object.entries(n);o<i.length;o++)r();if(e)for(var a=this.getMetadata().getSlots(),s=function(){var e=K(c[u],2),n=e[0],r=e[1];if(!Pn(n))throw new Error('"'.concat(n,'" is not a valid property name. Use a name that does not collide with DOM APIs'));var o=r.propertyName||n;Object.defineProperty(t,o,{get:function(){return void 0!==this._state[o]?this._state[o]:[]},set:function(){throw new Error("Cannot set slots directly, use the DOM APIs")}})},u=0,c=Object.entries(a);u<c.length;u++)s()}},{key:"getUniqueDependencies",value:function(){if(!jn.has(this)){var t=this.dependencies.filter((function(t,e,n){return n.indexOf(t)===e}));jn.set(this,t)}return jn.get(this)}},{key:"whenDependenciesDefined",value:function(){return Promise.all(this.getUniqueDependencies().map((function(t){return t.define()})))}},{key:"onDefine",value:(r=U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve());case 1:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"define",value:(n=U(regeneratorRuntime.mark((function t(){var e,n,r,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ne||(Ne=new Promise(function(){var t=U(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=nt("OpenUI5Support"))){t.next=4;break}return t.next=4,n.init();case 4:return t.next=6,new Promise((function(t){document.body?t():document.addEventListener("DOMContentLoaded",(function(){t()}))}));case 6:return t.next=8,Oe(Ce());case 8:return n&&n.attachListeners(),je(),document.querySelector("head>style[data-ui5-system-css-vars]")||ye('\n\t:root {\n\t\t--_ui5_content_density:cozy;\n\t}\n\t\n\t[data-ui5-compact-size],\n\t.ui5-content-density-compact,\n\t.sapUiSizeCompact {\n\t\t--_ui5_content_density:compact;\n\t}\n\t\n\t[dir="rtl"] {\n\t\t--_ui5_dir:rtl;\n\t}\n\t\n\t[dir="ltr"] {\n\t\t--_ui5_dir:ltr;\n\t}\n',{"data-ui5-system-css-vars":""}),t.next=13,Te||(Te=new Promise((function(t){window.WebComponents&&!window.WebComponents.ready&&window.WebComponents.waitFor?window.WebComponents.waitFor((function(){t()})):t()})));case 13:e();case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 2:return t.next=4,Promise.all([this.whenDependenciesDefined(),this.onDefine()]);case 4:return e=this.getMetadata().getTag(),n=this.getMetadata().getAltTag(),r=Lt(e),(o=customElements.get(e))&&!r?jt(e):o||(this._generateAccessors(),Nt(e),window.customElements.define(e,this),n&&!customElements.get(n)&&(i=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return z(e,t),e}(this),Nt(n),window.customElements.define(n,i))),t.abrupt("return",this);case 10:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"getMetadata",value:function(){if(this.hasOwnProperty("_metadata"))return this._metadata;for(var t=[this.metadata],n=this;n!==e;)n=Object.getPrototypeOf(n),t.unshift(n.metadata);var r=vt.apply(void 0,[{}].concat(t));return this._metadata=new Ze(r),this._metadata}},{key:"observedAttributes",get:function(){return this.getMetadata().getAttributesList()}},{key:"metadata",get:function(){return Tn}},{key:"styles",get:function(){return""}},{key:"staticAreaStyles",get:function(){return""}},{key:"dependencies",get:function(){return[]}}]),e}(G(HTMLElement)),In=new WeakMap,Vn=function(t){return"function"==typeof t&&In.has(t)},Fn=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,Un=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e!==n;){var r=e.nextSibling;t.removeChild(e),e=r}},Bn={},Wn={},Hn="{{lit-".concat(String(Math.random()).slice(2),"}}"),zn="\x3c!--".concat(Hn,"--\x3e"),qn=new RegExp("".concat(Hn,"|").concat(zn)),$n=function t(e,n){B(this,t),this.parts=[],this.element=n;for(var r=[],o=[],i=document.createTreeWalker(n.content,133,null,!1),a=0,s=-1,u=0,c=e.strings,l=e.values.length;u<l;){var f=i.nextNode();if(null!==f){if(s++,1===f.nodeType){if(f.hasAttributes()){for(var h=f.attributes,d=h.length,p=0,v=0;v<d;v++)Zn(h[v].name,"$lit$")&&p++;for(;p-- >0;){var m=c[u],g=Yn.exec(m)[2],y=g.toLowerCase()+"$lit$",w=f.getAttribute(y);f.removeAttribute(y);var b=w.split(qn);this.parts.push({type:"attribute",index:s,name:g,strings:b}),u+=b.length-1}}"TEMPLATE"===f.tagName&&(o.push(f),i.currentNode=f.content)}else if(3===f.nodeType){var _=f.data;if(_.indexOf(Hn)>=0){for(var S=f.parentNode,k=_.split(qn),x=k.length-1,E=0;E<x;E++){var A=void 0,O=k[E];if(""===O)A=Jn();else{var C=Yn.exec(O);null!==C&&Zn(C[2],"$lit$")&&(O=O.slice(0,C.index)+C[1]+C[2].slice(0,-"$lit$".length)+C[3]),A=document.createTextNode(O)}S.insertBefore(A,f),this.parts.push({type:"node",index:++s})}""===k[x]?(S.insertBefore(Jn(),f),r.push(f)):f.data=k[x],u+=x}}else if(8===f.nodeType)if(f.data===Hn){var R=f.parentNode;null!==f.previousSibling&&s!==a||(s++,R.insertBefore(Jn(),f)),a=s,this.parts.push({type:"node",index:s}),null===f.nextSibling?f.data="":(r.push(f),s--),u++}else for(var M=-1;-1!==(M=f.data.indexOf(Hn,M+1));)this.parts.push({type:"node",index:-1}),u++}else i.currentNode=o.pop()}for(var P=0,T=r;P<T.length;P++){var N=T[P];N.parentNode.removeChild(N)}},Zn=function(t,e){var n=t.length-e.length;return n>=0&&t.slice(n)===e},Gn=function(t){return-1!==t.index},Jn=function(){return document.createComment("")},Yn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Xn=function(){function t(e,n,r){B(this,t),this.__parts=[],this.template=e,this.processor=n,this.options=r}return H(t,[{key:"update",value:function(t){var e=0,n=!0,r=!1,o=void 0;try{for(var i,a=this.__parts[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;void 0!==s&&s.setValue(t[e]),e++}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}var u=!0,c=!1,l=void 0;try{for(var f,h=this.__parts[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var d=f.value;void 0!==d&&d.commit()}}catch(t){c=!0,l=t}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}}},{key:"_clone",value:function(){for(var t,e=Fn?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,o=document.createTreeWalker(e,133,null,!1),i=0,a=0,s=o.nextNode();i<r.length;)if(t=r[i],Gn(t)){for(;a<t.index;)a++,"TEMPLATE"===s.nodeName&&(n.push(s),o.currentNode=s.content),null===(s=o.nextNode())&&(o.currentNode=n.pop(),s=o.nextNode());if("node"===t.type){var u=this.processor.handleTextExpression(this.options);u.insertAfterNode(s.previousSibling),this.__parts.push(u)}else{var c;(c=this.__parts).push.apply(c,Q(this.processor.handleAttributeExpressions(s,t.name,t.strings,this.options)))}i++}else this.__parts.push(void 0),i++;return Fn&&(document.adoptNode(e),customElements.upgrade(e)),e}}]),t}(),Kn=" ".concat(Hn," "),Qn=function(){function t(e,n,r,o){B(this,t),this.strings=e,this.values=n,this.type=r,this.processor=o}return H(t,[{key:"getHTML",value:function(){for(var t=this.strings.length-1,e="",n=!1,r=0;r<t;r++){var o=this.strings[r],i=o.lastIndexOf("\x3c!--");n=(i>-1||n)&&-1===o.indexOf("--\x3e",i+1);var a=Yn.exec(o);e+=null===a?o+(n?Kn:zn):o.substr(0,a.index)+a[1]+a[2]+"$lit$"+a[3]+Hn}return e+=this.strings[t]}},{key:"getTemplateElement",value:function(){var t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}]),t}(),tr=function(t){return null===t||!("object"===V(t)||"function"==typeof t)},er=function(t){return Array.isArray(t)||!(!t||!t[Symbol.iterator])},nr=function(){function t(e,n,r){B(this,t),this.dirty=!0,this.element=e,this.name=n,this.strings=r,this.parts=[];for(var o=0;o<r.length-1;o++)this.parts[o]=this._createPart()}return H(t,[{key:"_createPart",value:function(){return new rr(this)}},{key:"_getValue",value:function(){for(var t=this.strings,e=t.length-1,n="",r=0;r<e;r++){n+=t[r];var o=this.parts[r];if(void 0!==o){var i=o.value;if(tr(i)||!er(i))n+="string"==typeof i?i:String(i);else{var a=!0,s=!1,u=void 0;try{for(var c,l=i[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;n+="string"==typeof f?f:String(f)}}catch(t){s=!0,u=t}finally{try{a||null==l.return||l.return()}finally{if(s)throw u}}}}}return n+=t[e]}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}]),t}(),rr=function(){function t(e){B(this,t),this.value=void 0,this.committer=e}return H(t,[{key:"setValue",value:function(t){t===Bn||tr(t)&&t===this.value||(this.value=t,Vn(t)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;Vn(this.value);){var t=this.value;this.value=Bn,t(this)}this.value!==Bn&&this.committer.commit()}}]),t}(),or=function(){function t(e){B(this,t),this.value=void 0,this.__pendingValue=void 0,this.options=e}return H(t,[{key:"appendInto",value:function(t){this.startNode=t.appendChild(Jn()),this.endNode=t.appendChild(Jn())}},{key:"insertAfterNode",value:function(t){this.startNode=t,this.endNode=t.nextSibling}},{key:"appendIntoPart",value:function(t){t.__insert(this.startNode=Jn()),t.__insert(this.endNode=Jn())}},{key:"insertAfterPart",value:function(t){t.__insert(this.startNode=Jn()),this.endNode=t.endNode,t.endNode=this.startNode}},{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;Vn(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=Bn,t(this)}var e=this.__pendingValue;e!==Bn&&(tr(e)?e!==this.value&&this.__commitText(e):e instanceof Qn?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):er(e)?this.__commitIterable(e):e===Wn?(this.value=Wn,this.clear()):this.__commitText(e))}},{key:"__insert",value:function(t){this.endNode.parentNode.insertBefore(t,this.endNode)}},{key:"__commitNode",value:function(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}},{key:"__commitText",value:function(t){var e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}},{key:"__commitTemplateResult",value:function(t){var e=this.options.templateFactory(t);if(this.value instanceof Xn&&this.value.template===e)this.value.update(t.values);else{var n=new Xn(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}},{key:"__commitIterable",value:function(e){Array.isArray(this.value)||(this.value=[],this.clear());var n,r=this.value,o=0,i=!0,a=!1,s=void 0;try{for(var u,c=e[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;void 0===(n=r[o])&&(n=new t(this.options),r.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(r[o-1])),n.setValue(l),n.commit(),o++}}catch(t){a=!0,s=t}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}o<r.length&&(r.length=o,this.clear(n&&n.endNode))}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;Un(this.startNode.parentNode,t.nextSibling,this.endNode)}}]),t}(),ir=function(){function t(e,n,r){if(B(this,t),this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=n,this.strings=r}return H(t,[{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;Vn(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=Bn,t(this)}if(this.__pendingValue!==Bn){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=Bn}}}]),t}(),ar=function(t){function e(t,n,r){var o;return B(this,e),(o=J(this,q(e).call(this,t,n,r))).single=2===r.length&&""===r[0]&&""===r[1],o}return z(e,t),H(e,[{key:"_createPart",value:function(){return new sr(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:Y(q(e.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),e}(nr),sr=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return z(e,t),e}(rr),ur=!1;try{var cr={get capture(){return ur=!0,!1}};window.addEventListener("test",cr,cr),window.removeEventListener("test",cr,cr)}catch(t){}var lr=function(){function t(e,n,r){var o=this;B(this,t),this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=n,this.eventContext=r,this.__boundHandleEvent=function(t){return o.handleEvent(t)}}return H(t,[{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;Vn(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=Bn,t(this)}if(this.__pendingValue!==Bn){var e=this.__pendingValue,n=this.value,r=null==e||null!=n&&(e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive),o=null!=e&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),o&&(this.__options=fr(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=Bn}}},{key:"handleEvent",value:function(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}]),t}(),fr=function(t){return t&&(ur?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)},hr=new(function(){function t(){B(this,t)}return H(t,[{key:"handleAttributeExpressions",value:function(t,e,n,r){var o=e[0];return"."===o?new ar(t,e.slice(1),n).parts:"@"===o?[new lr(t,e.slice(1),r.eventContext)]:"?"===o?[new ir(t,e.slice(1),n)]:new nr(t,e,n).parts}},{key:"handleTextExpression",value:function(t){return new or(t)}}]),t}());
171
- /**
172
- * @license
173
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
174
- * This code may only be used under the BSD style license found at
175
- * http://polymer.github.io/LICENSE.txt
176
- * The complete set of authors may be found at
177
- * http://polymer.github.io/AUTHORS.txt
178
- * The complete set of contributors may be found at
179
- * http://polymer.github.io/CONTRIBUTORS.txt
180
- * Code distributed by Google as part of the polymer project is also
181
- * subject to an additional IP rights grant found at
182
- * http://polymer.github.io/PATENTS.txt
183
- */
184
- function dr(t){var e=pr.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},pr.set(t.type,e));var n=e.stringsArray.get(t.strings);if(void 0!==n)return n;var r=t.strings.join(Hn);return void 0===(n=e.keyString.get(r))&&(n=new $n(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}var pr=new Map,vr=new WeakMap,mr=function(t,e,n){var r=vr.get(e);void 0===r&&(Un(e,e.firstChild),vr.set(e,r=new or(Object.assign({templateFactory:dr},n))),r.appendInto(e)),r.setValue(t),r.commit()};
185
- /**
186
- * @license
187
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
188
- * This code may only be used under the BSD style license found at
189
- * http://polymer.github.io/LICENSE.txt
190
- * The complete set of authors may be found at
191
- * http://polymer.github.io/AUTHORS.txt
192
- * The complete set of contributors may be found at
193
- * http://polymer.github.io/CONTRIBUTORS.txt
194
- * Code distributed by Google as part of the polymer project is also
195
- * subject to an additional IP rights grant found at
196
- * http://polymer.github.io/PATENTS.txt
197
- */
198
- /**
199
- * @license
200
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
201
- * This code may only be used under the BSD style license found at
202
- * http://polymer.github.io/LICENSE.txt
203
- * The complete set of authors may be found at
204
- * http://polymer.github.io/AUTHORS.txt
205
- * The complete set of contributors may be found at
206
- * http://polymer.github.io/CONTRIBUTORS.txt
207
- * Code distributed by Google as part of the polymer project is also
208
- * subject to an additional IP rights grant found at
209
- * http://polymer.github.io/PATENTS.txt
210
- */
211
- (window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");var gr=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new Qn(t,n,"html",hr)},yr=new Map,wr=function(t,e,n){return n&&e&&e.length&&(t=t.map((function(t){if(yr.has(t))return yr.get(t);var r=t;return e.forEach((function(t){r=r.replace(new RegExp("(</?)(".concat(t,")(/?[> \t\n])"),"g"),"$1$2-".concat(n,"$3"))})),yr.set(t,r),r}))),t};function br(){var t=X(["<style>","</style>",""]);return br=function(){return t},t}var _r=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.eventContext;n&&(t=gr(br(),n,t)),mr(t,e,{eventContext:o})},Sr=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return gr.apply(void 0,[wr(t,void 0,void 0)].concat(n))};function kr(){var t=X(['<div><p>\n\t\t\t\t<slot></slot>\n\t\t\t\t<slot name="other"></slot>\n\t\t\t\t<slot name="individual-1"></slot>\n\t\t\t\t<slot name="individual-2"></slot>\n\t\t\t</p></div>']);return kr=function(){return t},t}var xr={tag:"ui5-test-generic",properties:{strProp:{type:String},boolProp:{type:Boolean},objectProp:{type:Object},noAttributeProp:{type:String,noAttribute:!0},multiProp:{type:String,multiple:!0},defaultValueProp:{type:String,defaultValue:"Hello"}},managedSlots:!0,slots:{default:{type:Node},other:{type:HTMLElement},individual:{type:HTMLElement,individualSlots:!0},named:{type:HTMLElement,propertyName:"items"}}},Er=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return z(e,t),H(e,[{key:"onBeforeRendering",value:function(){}},{key:"onAfterRendering",value:function(){}},{key:"onEnterDOM",value:function(){}},{key:"onExitDOM",value:function(){}}],[{key:"metadata",get:function(){return xr}},{key:"render",get:function(){return _r}},{key:"template",get:function(){return function(t){return Sr(kr())}}},{key:"styles",get:function(){return":host {\n display: inline-block;\n border: 1px solid black;\n color: var(--var1);\n }"}}]),e}(Dn);Er.define();var Ar={tag:"ui5-test-no-shadow"};function Or(){var t=X(["<div>\n\t\t\t\t<slot></slot>\n\t\t\t</div>"]);return Or=function(){return t},t}(function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return z(e,t),H(e,null,[{key:"metadata",get:function(){return Ar}}]),e})(Dn).define();var Cr={tag:"ui5-test-parent",managedSlots:!0,slots:{default:{type:Node,listenFor:["prop1"]},items:{type:HTMLElement,listenFor:{include:["*"],exclude:["prop3"]}}}};function Rr(){var t=X(["<div></div>"]);return Rr=function(){return t},t}(function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return z(e,t),H(e,null,[{key:"metadata",get:function(){return Cr}},{key:"render",get:function(){return _r}},{key:"template",get:function(){return function(t){return Sr(Or())}}}]),e})(Dn).define();var Mr={tag:"ui5-test-child",properties:{prop1:{type:String},prop2:{type:String},prop3:{type:String}}};function Pr(){var t=X(['\n\t\t\t\t<div class="ui5-with-static-area-content">\n\t\t\t\t\tStatic area content.\n\t\t\t\t</div>']);return Pr=function(){return t},t}function Tr(){var t=X(["\n\t\t\t\t<div>\n\t\t\t\t\tWithStaticArea works!\n\t\t\t\t</div>"]);return Tr=function(){return t},t}(function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return z(e,t),H(e,null,[{key:"metadata",get:function(){return Mr}},{key:"render",get:function(){return _r}},{key:"template",get:function(){return function(t){return Sr(Rr())}}}]),e})(Dn).define();var Nr={tag:"ui5-with-static-area",properties:{staticContent:{type:Boolean}},slots:{}};(function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}var n;return z(e,t),H(e,[{key:"addStaticArea",value:(n=U(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.staticContent){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.getStaticAreaItemDomRef();case 4:return e=t.sent,this.responsivePopover=e.querySelector(".ui5-with-static-area-content"),t.abrupt("return",this.responsivePopover);case 7:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"onBeforeRendering",value:function(){this.addStaticArea()}},{key:"onAfterRendering",value:function(){}},{key:"onEnterDOM",value:function(){}},{key:"onExitDOM",value:function(){}}],[{key:"metadata",get:function(){return Nr}},{key:"render",get:function(){return _r}},{key:"template",get:function(){return function(t){return Sr(Tr())}}},{key:"staticAreaTemplate",get:function(){return function(t){return Sr(Pr())}}},{key:"styles",get:function(){return"\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tborder: 1px solid black;\n\t\t\t\tcolor: red;\n\t\t\t}"}}]),e})(Dn).define();var Lr={tag:"ui5-test-generic-ext",properties:{extProp:{type:String},strProp:{defaultValue:"Ext"}},slots:{extSlot:{type:HTMLElement}}};(function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return z(e,t),H(e,null,[{key:"metadata",get:function(){return Lr}}]),e})(Er).define();de("@ui5/webcomponents-base-test","sap_fiori_3",":root{ --var1: red; }"),de("@ui5/webcomponents-base-test","sap_fiori_3_dark",":root{ --var1: green; }"),de("@ui5/webcomponents-base-test","sap_belize",":root{ --var1: blue; }"),de("@ui5/webcomponents-base-test","sap_belize_hcb",":root{ --var1: orange; }"),de("@ui5/webcomponents-base-test","sap_belize_hcw",":root{ --var1: orange; }"),de("@ui5/webcomponents-base-test","sap_fiori_3_hcb",":root{ --var1: yellow; }"),de("@ui5/webcomponents-base-test","sap_fiori_3_hcw",":root{ --var1: yellow; }");var jr={},Dr={INTERNET_EXPLORER:"ie",EDGE:"ed",FIREFOX:"ff",CHROME:"cr",SAFARI:"sf",ANDROID:"an"},Ir=function(){var t,e,n,r=function(){var t=navigator.userAgent.toLowerCase(),e=/(edge)[ /]([\w.]+)/.exec(t)||/(trident)\/[\w.]+;.*rv:([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(t)||[],n={browser:e[1]||"",version:e[2]||"0"};return n[n.browser]=!0,n}(),o=navigator.userAgent,i=window.navigator;if(r.mozilla)t=/Mobile/,o.match(/Firefox\/(\d+\.\d+)/)?(n=parseFloat(RegExp.$1),e={name:Dr.FIREFOX,versionStr:"".concat(n),version:n,mozilla:!0,mobile:t.test(o)}):e={mobile:t.test(o),mozilla:!0,version:-1};else if(r.webkit){var a,s=o.toLowerCase().match(/webkit[/]([\d.]+)/);s&&(a=s[1]),t=/Mobile/;var u=o.match(/(Chrome|CriOS)\/(\d+\.\d+).\d+/),c=o.match(/FxiOS\/(\d+\.\d+)/),l=o.match(/Android .+ Version\/(\d+\.\d+)/);if(u||c||l){var f,h,d;u?(f=Dr.CHROME,d=t.test(o),h=parseFloat(u[2])):c?(f=Dr.FIREFOX,d=!0,h=parseFloat(c[1])):l&&(f=Dr.ANDROID,d=t.test(o),h=parseFloat(l[1])),e={name:f,mobile:d,versionStr:"".concat(h),version:h,webkit:!0,webkitVersion:a}}else{var p=/(Version|PhantomJS)\/(\d+\.\d+).*Safari/,v=i.standalone;if(p.test(o)){var m=p.exec(o);n=parseFloat(m[2]),e={name:Dr.SAFARI,versionStr:"".concat(n),fullscreen:!1,webview:!1,version:n,mobile:t.test(o),webkit:!0,webkitVersion:a,phantomJS:"PhantomJS"===m[1]}}else e=!/iPhone|iPad|iPod/.test(o)||/CriOS/.test(o)||/FxiOS/.test(o)||!0!==v&&!1!==v?{mobile:t.test(o),webkit:!0,webkitVersion:a,version:-1}:{name:Dr.SAFARI,version:-1,fullscreen:v,webview:!v,mobile:t.test(o),webkit:!0,webkitVersion:a}}}else r.msie||r.trident?(n=parseFloat(r.version),e={name:Dr.INTERNET_EXPLORER,versionStr:"".concat(n),version:n,msie:!0,mobile:!1}):r.edge?(n=parseFloat(r.version),e={name:Dr.EDGE,versionStr:"".concat(n),version:n,edge:!0}):e={name:"",versionStr:"",version:-1,mobile:!1};return e},Vr="object"===("undefined"==typeof chrome?"undefined":V(chrome))||"object"===("undefined"==typeof v8?"undefined":V(v8))?function(t,e){return e>2&&t.length,t}:function(t){return t},Fr=/(?:\r\n|\r|\n|^)[ \t\f]*/,Ur=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)|([ \t\f]*[ \t\f:=][ \t\f]*)/g,Br=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)/g,Wr={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};et("PropertiesFormatSupport",{parser:function(t){var e,n,r,o,i,a,s,u,c={},l=t.split(Fr),f=function(t){o?(o="".concat(o).concat(t),u++):(o=t,u=0)};for(i=0;i<l.length;i++){if(!(""===(e=l[i])||"#"===e.charAt(0)||"!"===e.charAt(0))){for((n=Ur).lastIndex=s=0,r=null,o="",a=n.exec(e);null!==a;){if(s<a.index&&f(e.slice(s,a.index)),s=n.lastIndex,a[1]){if(6!==a[1].length)throw new Error("Incomplete Unicode Escape '".concat(a[1],"'"));f(String.fromCharCode(parseInt(a[1].slice(2),16)))}else a[2]?f(Wr[a[2]]||a[2].slice(1)):a[3]?(e=l[++i],s=0,n.lastIndex=s):a[4]&&(r=o,o="",(n=Br).lastIndex=s);a=n.exec(e)}s<e.length&&f(e.slice(s)),null==r&&(r=o,o=""),c[r]=Vr(o,o?u:0)}}return c}});var Hr,zr,qr=/('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g,$r=function(t,e){return e=e||[],t.replace(qr,(function(t,n,r,o,i){if(n)return"'";if(r)return r.replace(/''/g,"'");if(o)return String(e[parseInt(o)]);throw new Error("[i18n]: pattern syntax error at pos ".concat(i))}))},Zr=new Map,Gr=function(){function t(e){B(this,t),this.packageName=e}return H(t,[{key:"getText",value:function(t){if("string"==typeof t&&(t={key:t,defaultText:t}),!t||!t.key)return"";for(var e=ie(this.packageName),n=e&&e[t.key]?e[t.key]:t.defaultText||t.key,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return $r(n,o)}}]),t}(),Jr=function(){return void 0===Hr&&(At(),Hr=gt.animationMode),Hr},Yr={Gregorian:"Gregorian",Islamic:"Islamic",Japanese:"Japanese",Buddhist:"Buddhist",Persian:"Persian"},Xr=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return z(e,t),H(e,null,[{key:"isValid",value:function(t){return!!Yr[t]}}]),e}(De);Xr.generataTypeAcessors(Yr);var Kr,Qr=function(){return void 0===zr&&(At(),zr=gt.calendarType),Xr.isValid(zr)?zr:Xr.Gregorian},to=function(){return void 0===Kr&&(At(),Kr=gt.formatSettings),Kr.firstDayOfWeek},eo=function(t,e){for(var n=t.split("."),r=Xe("ui5-shared-resources",document.head),o=0;o<n.length;o++){var i=n[o],a=o===n.length-1;Object.prototype.hasOwnProperty.call(r,i)||(r[i]=a?e:{}),r=r[i]}return r},no=eo("SVGIcons.registry",new Map),ro=eo("SVGIcons.promises",new Map),oo=function(){var t=U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!ro.has("SAP-icons")){t.next=3;break}return t.next=3,ro.get("SAP-icons");case 3:return t.abrupt("return",Array.from(no.keys()).map((function(t){return t.split(":")[1]})));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();window.RenderScheduler=Ut,window.isIE=function(){return jr.browser||(jr.browser=Ir(),jr.browser.BROWSER=Dr,jr.browser.name&&Object.keys(Dr).forEach((function(t){Dr[t]===jr.browser.name&&(jr.browser[t.toLowerCase()]=!0)}))),!!jr.browser.msie},window.registerThemeProperties=de,window["sap-ui-webcomponents-bundle"]={configuration:{getAnimationMode:Jr,getLanguage:Bt,getTheme:Ce,setTheme:Re,getNoConflict:fn,setNoConflict:dn,getCalendarType:Qr,getRTL:mn,getFirstDayOfWeek:to},getIconNames:oo,registerI18nBundle:function(t,e){var n=re.get(t)||{};re.set(t,Object.assign({},n,e))},fetchI18nBundle:ae,getI18nBundle:function(t){if(Zr.has(t))return Zr.get(t);var e=new Gr(t);return Zr.set(t,e),e}};var io={getAnimationMode:Jr,getLanguage:Bt,getTheme:Ce,setTheme:Re,getNoConflict:fn,setNoConflict:dn,getCalendarType:Qr,getRTL:mn,getFirstDayOfWeek:to};t.configuration=io,t.getIconNames=oo}(this["sap-ui-webcomponents-bundle"]=this["sap-ui-webcomponents-bundle"]||{});
212
- //# sourceMappingURL=bundle.es5.js.map