@ui5/webcomponents-base 0.0.0-0fcda382e → 0.0.0-11d529e8a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +2 -0
- package/CHANGELOG.md +137 -0
- package/README.md +26 -1
- package/bundle.esm.js +17 -7
- package/dist/AssetRegistry.js +8 -6
- package/dist/Boot.js +43 -0
- package/dist/CustomElementsRegistry.js +24 -8
- package/dist/CustomElementsScope.js +108 -0
- package/dist/DOMObserver.js +65 -0
- package/dist/Device.js +58 -779
- package/dist/EventProvider.js +38 -26
- package/dist/FontFace.js +52 -7
- package/dist/InitialConfiguration.js +32 -8
- package/dist/Keys.js +89 -2
- package/dist/MediaRange.js +109 -0
- package/dist/PropertiesFileFormat.js +95 -0
- package/dist/Render.js +173 -0
- package/dist/RenderQueue.js +41 -17
- package/dist/RenderScheduler.js +24 -126
- package/dist/StaticArea.js +1 -39
- package/dist/StaticAreaItem.js +64 -62
- package/dist/SystemCSSVars.js +31 -0
- package/dist/Theming.js +2 -1
- package/dist/UI5Element.js +427 -299
- package/dist/UI5ElementMetadata.js +157 -19
- package/dist/asset-registries/Icons.js +118 -14
- package/dist/asset-registries/Illustrations.js +30 -0
- package/dist/asset-registries/LocaleData.js +90 -65
- package/dist/asset-registries/Themes.js +23 -32
- package/dist/asset-registries/i18n.js +72 -30
- package/dist/config/AnimationMode.js +11 -1
- package/dist/config/Language.js +58 -2
- package/dist/delegate/ItemNavigation.js +244 -171
- package/dist/delegate/ResizeHandler.js +78 -38
- package/dist/delegate/ScrollEnablement.js +49 -20
- package/dist/features/OpenUI5Support.js +42 -7
- package/dist/generated/AssetParameters.js +1 -1
- package/dist/getSharedResource.js +30 -0
- package/dist/i18nBundle.js +27 -4
- package/dist/isLegacyBrowser.js +3 -0
- package/dist/locale/RTLAwareRegistry.js +14 -0
- package/dist/locale/applyDirection.js +17 -0
- package/dist/locale/directionChange.js +32 -0
- package/dist/locale/getEffectiveDir.js +28 -0
- package/dist/locale/getLocale.js +12 -2
- package/dist/locale/languageChange.js +22 -0
- package/dist/renderer/LitRenderer.js +21 -4
- package/dist/renderer/executeTemplate.js +17 -0
- package/dist/resources/bundle.esm.js +17 -109
- package/dist/resources/bundle.esm.js.map +1 -1
- package/dist/sap/base/Log.js +241 -0
- package/dist/sap/base/assert.js +8 -0
- package/dist/sap/base/security/URLListValidator.js +148 -0
- package/dist/sap/base/security/sanitizeHTML.js +16 -0
- package/dist/sap/base/util/now.js +7 -0
- package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +3585 -0
- package/dist/test-resources/assets/Themes.js +10 -6
- package/dist/test-resources/elements/Parent.js +6 -2
- package/dist/test-resources/elements/WithStaticArea.js +2 -1
- package/dist/test-resources/pages/AllTestElements.html +3 -3
- package/dist/test-resources/pages/Configuration.html +0 -2
- package/dist/test-resources/pages/ConfigurationScript.html +1 -3
- package/dist/test-resources/pages/assets/messagebundle_de.properties +1 -0
- package/dist/test-resources/pages/assets/messagebundle_en.properties +1 -0
- package/dist/test-resources/pages/assets/messagebundle_es.properties +1 -0
- package/dist/test-resources/pages/assets/messagebundle_fr.properties +1 -0
- package/dist/test-resources/pages/i18n.html +35 -0
- package/dist/test-resources/specs/ConfigurationChange.spec.js +11 -9
- package/dist/test-resources/specs/ConfigurationScript.spec.js +25 -23
- package/dist/test-resources/specs/ConfigurationURL.spec.js +65 -17
- package/dist/test-resources/specs/CustomTheme.spec.js +7 -5
- package/dist/test-resources/specs/EventProvider.spec.js +63 -0
- package/dist/test-resources/specs/StaticArea.spec.js +56 -12
- package/dist/test-resources/specs/Theming.spec.js +9 -7
- package/dist/test-resources/specs/UI5ElementInvalidation.js +54 -70
- package/dist/test-resources/specs/UI5ElementLifecycle.js +19 -14
- package/dist/test-resources/specs/UI5ElementListenForChildPropChanges.spec.js +25 -51
- package/dist/test-resources/specs/UI5ElementMetadataExt.js +9 -7
- package/dist/test-resources/specs/UI5ElementPropertyValidation.js +7 -5
- package/dist/test-resources/specs/UI5ElementPropsAndAttrs.spec.js +37 -35
- package/dist/test-resources/specs/UI5ElementShadowDOM.js +10 -8
- package/dist/test-resources/specs/UI5ElementSlots.js +10 -8
- package/dist/theming/CustomStyle.js +28 -7
- package/dist/theming/ThemeLoaded.js +22 -0
- package/dist/theming/applyTheme.js +2 -5
- package/dist/theming/getConstructableStyle.js +15 -10
- package/dist/theming/getEffectiveStyle.js +23 -8
- package/dist/theming/getStylesString.js +13 -0
- package/dist/types/CSSColor.js +9 -0
- package/dist/types/CalendarType.js +1 -1
- package/dist/types/DataType.js +13 -1
- package/dist/types/Float.js +14 -0
- package/dist/types/Integer.js +4 -0
- package/dist/types/InvisibleMessageMode.js +30 -0
- package/dist/types/ItemNavigationBehavior.js +2 -7
- package/dist/types/NavigationMode.js +1 -0
- package/dist/types/PopupState.js +1 -1
- package/dist/types/ValueState.js +1 -1
- package/dist/updateShadowRoot.js +26 -0
- package/dist/util/AriaLabelHelper.js +41 -0
- package/dist/util/Caret.js +45 -0
- package/dist/util/ColorConversion.js +370 -0
- package/dist/util/FocusableElements.js +25 -8
- package/dist/util/HTMLSanitizer.js +7 -0
- package/dist/util/InvisibleMessage.js +58 -0
- package/dist/util/PopupUtils.js +93 -0
- package/dist/util/SlotsHelper.js +43 -0
- package/dist/util/TabbableElements.js +1 -1
- package/dist/util/arraysAreEqual.js +15 -0
- package/dist/util/clamp.js +12 -0
- package/dist/util/debounce.js +17 -0
- package/dist/util/encodeCSS.js +24 -0
- package/dist/util/getActiveElement.js +11 -0
- package/dist/util/getClassCopy.js +10 -0
- package/dist/util/getEffectiveContentDensity.js +5 -0
- package/dist/util/getSingletonElementInstance.js +13 -0
- package/dist/util/isElementInView.js +15 -0
- package/dist/util/isNodeHidden.js +1 -5
- package/dist/util/isNodeTabbable.js +4 -4
- package/dist/util/isValidPropertyName.js +9 -3
- package/dist/util/setToArray.js +10 -0
- package/hash.txt +1 -0
- package/index.js +1 -1
- package/package-scripts.js +33 -18
- package/package.json +20 -11
- package/src/AssetRegistry.js +8 -6
- package/src/Boot.js +43 -0
- package/src/CustomElementsRegistry.js +24 -8
- package/src/CustomElementsScope.js +108 -0
- package/src/DOMObserver.js +65 -0
- package/src/Device.js +58 -779
- package/src/EventProvider.js +38 -26
- package/src/FontFace.js +52 -7
- package/src/InitialConfiguration.js +32 -8
- package/src/Keys.js +89 -2
- package/src/MediaRange.js +109 -0
- package/src/PropertiesFileFormat.js +95 -0
- package/src/Render.js +173 -0
- package/src/RenderQueue.js +41 -17
- package/src/RenderScheduler.js +24 -126
- package/src/StaticArea.js +1 -39
- package/src/StaticAreaItem.js +64 -62
- package/src/SystemCSSVars.js +31 -0
- package/src/Theming.js +2 -1
- package/src/UI5Element.js +427 -299
- package/src/UI5ElementMetadata.js +157 -19
- package/src/asset-registries/Icons.js +118 -14
- package/src/asset-registries/Illustrations.js +30 -0
- package/src/asset-registries/LocaleData.js +90 -65
- package/src/asset-registries/Themes.js +23 -32
- package/src/asset-registries/i18n.js +72 -30
- package/src/config/AnimationMode.js +11 -1
- package/src/config/Language.js +58 -2
- package/src/delegate/ItemNavigation.js +244 -171
- package/src/delegate/ResizeHandler.js +78 -38
- package/src/delegate/ScrollEnablement.js +49 -20
- package/src/features/OpenUI5Support.js +42 -7
- package/src/getSharedResource.js +30 -0
- package/src/i18nBundle.js +27 -4
- package/src/isLegacyBrowser.js +3 -0
- package/src/locale/RTLAwareRegistry.js +14 -0
- package/src/locale/applyDirection.js +17 -0
- package/src/locale/directionChange.js +32 -0
- package/src/locale/getEffectiveDir.js +28 -0
- package/src/locale/getLocale.js +12 -2
- package/src/locale/languageChange.js +22 -0
- package/src/renderer/LitRenderer.js +21 -4
- package/src/renderer/executeTemplate.js +17 -0
- package/src/theming/CustomStyle.js +28 -7
- package/src/theming/ThemeLoaded.js +22 -0
- package/src/theming/applyTheme.js +2 -5
- package/src/theming/getConstructableStyle.js +15 -10
- package/src/theming/getEffectiveStyle.js +23 -8
- package/src/theming/getStylesString.js +13 -0
- package/src/types/CSSColor.js +9 -0
- package/src/types/CalendarType.js +1 -1
- package/src/types/DataType.js +13 -1
- package/src/types/Float.js +14 -0
- package/src/types/Integer.js +4 -0
- package/src/types/InvisibleMessageMode.js +30 -0
- package/src/types/ItemNavigationBehavior.js +2 -7
- package/src/types/NavigationMode.js +1 -0
- package/src/types/PopupState.js +1 -1
- package/src/types/ValueState.js +1 -1
- package/src/updateShadowRoot.js +26 -0
- package/src/util/AriaLabelHelper.js +41 -0
- package/src/util/Caret.js +45 -0
- package/src/util/ColorConversion.js +370 -0
- package/src/util/FocusableElements.js +25 -8
- package/src/util/HTMLSanitizer.js +7 -0
- package/src/util/InvisibleMessage.js +58 -0
- package/src/util/PopupUtils.js +93 -0
- package/src/util/SlotsHelper.js +43 -0
- package/src/util/TabbableElements.js +1 -1
- package/src/util/arraysAreEqual.js +15 -0
- package/src/util/clamp.js +12 -0
- package/src/util/debounce.js +17 -0
- package/src/util/encodeCSS.js +24 -0
- package/src/util/getActiveElement.js +11 -0
- package/src/util/getClassCopy.js +10 -0
- package/src/util/getEffectiveContentDensity.js +5 -0
- package/src/util/getSingletonElementInstance.js +13 -0
- package/src/util/isElementInView.js +15 -0
- package/src/util/isNodeHidden.js +1 -5
- package/src/util/isNodeTabbable.js +4 -4
- package/src/util/isValidPropertyName.js +9 -3
- package/src/util/setToArray.js +10 -0
- package/used-modules.txt +7 -0
- package/bundle.es5.js +0 -28
- package/dist/SVGIconRegistry.js +0 -60
- package/dist/boot.js +0 -32
- package/dist/compatibility/DOMObserver.js +0 -62
- package/dist/compatibility/patchNodeValue.js +0 -24
- package/dist/compatibility/whenPolyfillLoaded.js +0 -26
- package/dist/delegate/CustomResize.js +0 -78
- package/dist/delegate/NativeResize.js +0 -44
- package/dist/features/browsersupport/Edge.js +0 -6
- package/dist/features/browsersupport/IE11.js +0 -41
- package/dist/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
- package/dist/renderer/ifDefined.js +0 -21
- package/dist/resources/bundle.es5.js +0 -212
- package/dist/resources/bundle.es5.js.map +0 -1
- package/dist/theming/CSSVarsPonyfill.js +0 -24
- package/dist/theming/adaptCSSForIE.js +0 -90
- package/dist/theming/createComponentStyleTag.js +0 -49
- package/dist/thirdparty/Array.from.js +0 -16
- package/dist/thirdparty/Array.prototype.fill.js +0 -44
- package/dist/thirdparty/Array.prototype.find.js +0 -46
- package/dist/thirdparty/Array.prototype.includes.js +0 -51
- package/dist/thirdparty/Element.prototype.closest.js +0 -11
- package/dist/thirdparty/Element.prototype.matches.js +0 -6
- package/dist/thirdparty/Map.prototype.keys.js +0 -9
- package/dist/thirdparty/Number.isInteger.js +0 -5
- package/dist/thirdparty/Number.isNaN.js +0 -1
- package/dist/thirdparty/Number.parseInt.js +0 -1
- package/dist/thirdparty/Object.assign.js +0 -31
- package/dist/thirdparty/Object.entries.js +0 -11
- package/dist/thirdparty/Symbol.js +0 -2
- package/dist/thirdparty/WeakSet.js +0 -27
- package/dist/thirdparty/es6-string-methods.js +0 -182
- package/dist/thirdparty/events-polyfills.js +0 -89
- package/dist/thirdparty/fetch.js +0 -1
- package/dist/thirdparty/template.js +0 -600
- package/dist/thirdparty/webcomponents-sd-ce-pf.js +0 -318
- package/dist/webcomponentsjs/LICENSE.md +0 -19
- package/dist/webcomponentsjs/README.md +0 -229
- package/dist/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
- package/dist/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -297
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -208
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
- package/dist/webcomponentsjs/bundles/webcomponents-sd.js +0 -166
- package/dist/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
- package/dist/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
- package/dist/webcomponentsjs/package.json +0 -46
- package/dist/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
- package/dist/webcomponentsjs/webcomponents-bundle.js +0 -298
- package/dist/webcomponentsjs/webcomponents-bundle.js.map +0 -1
- package/dist/webcomponentsjs/webcomponents-loader.js +0 -185
- package/src/SVGIconRegistry.js +0 -60
- package/src/boot.js +0 -32
- package/src/compatibility/DOMObserver.js +0 -62
- package/src/compatibility/patchNodeValue.js +0 -24
- package/src/compatibility/whenPolyfillLoaded.js +0 -26
- package/src/delegate/CustomResize.js +0 -78
- package/src/delegate/NativeResize.js +0 -44
- package/src/features/browsersupport/Edge.js +0 -6
- package/src/features/browsersupport/IE11.js +0 -41
- package/src/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
- package/src/renderer/ifDefined.js +0 -21
- package/src/theming/CSSVarsPonyfill.js +0 -24
- package/src/theming/adaptCSSForIE.js +0 -90
- package/src/theming/createComponentStyleTag.js +0 -49
- package/src/thirdparty/Array.from.js +0 -16
- package/src/thirdparty/Array.prototype.fill.js +0 -44
- package/src/thirdparty/Array.prototype.find.js +0 -46
- package/src/thirdparty/Array.prototype.includes.js +0 -51
- package/src/thirdparty/Element.prototype.closest.js +0 -11
- package/src/thirdparty/Element.prototype.matches.js +0 -6
- package/src/thirdparty/Map.prototype.keys.js +0 -9
- package/src/thirdparty/Number.isInteger.js +0 -5
- package/src/thirdparty/Number.isNaN.js +0 -1
- package/src/thirdparty/Number.parseInt.js +0 -1
- package/src/thirdparty/Object.assign.js +0 -31
- package/src/thirdparty/Object.entries.js +0 -11
- package/src/thirdparty/Symbol.js +0 -2
- package/src/thirdparty/WeakSet.js +0 -27
- package/src/thirdparty/es6-string-methods.js +0 -182
- package/src/thirdparty/events-polyfills.js +0 -89
- package/src/thirdparty/fetch.js +0 -1
- package/src/thirdparty/template.js +0 -600
- package/src/thirdparty/webcomponents-sd-ce-pf.js +0 -318
|
@@ -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 d=t.textContent;n.useCSSOM&&(d=Array.apply(null,t.sheet.cssRules).map((function(t){return t.cssText})).join("")),u(d,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 d(){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 h(){if(!i())return r("missing '{'");for(var t,e=l();t=d();)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:h()}}function m(){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:y()}}()||function(){if(o(/^@host\s*/))return{type:"host",rules:y()}}()||function(){var t=o(/^@media([^{]+)*/);if(t)return{type:"media",media:(t[1]||"").trim(),rules:y()}}()||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:h()}}()||function(){var t=o(/^@([-\w]+)?document *([^{]+)/);if(t)return{type:"document",document:t[2].trim(),vendor:t[1]?t[1].trim():null,rules:y()}}()||function(){if(o(/^@font-face\s*/))return{type:"font-face",declarations:h()}}()||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 v(){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?h():h().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 y(e){if(!e&&!i())return r("missing '{'");for(var n,o=l();t.length&&(e||"}"!==t[0])&&(n=m()||v());)n.type&&o.push(n),o=o.concat(l());return e||s()?o:r("missing '}'")}return{type:"stylesheet",stylesheet:{rules:y(!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 d(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 h="--",p="var";function m(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(h)){if(-1!==s.indexOf(p+"(")){var u=y(s,n);u!==o.value&&(u=v(u),n.preserveVars?(t.splice(r,0,{type:i,property:a,value:u}),r++):o.value=u)}}else t.splice(r,1),r--}})),d(t)}function v(t){return(t.match(/calc\(([^)]+)\)/g)||[]).forEach((function(e){var n="calc".concat(e.split("calc").join(""));t=t.replace(e,n)})),t}function y(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?y(a,e,s):"var(".concat(s,")")}(r.body)+y(r.post,e):r.pre+"(".concat(y(r.body,e),")")+y(r.post,e):(-1!==t.indexOf("var(")&&e.onWarning('missing closing ")" in the value "'.concat(t,'"')),t)}var g="undefined"!=typeof window,w=g&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),b={group:0,job:0},S={rootElement:g?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(){}},_={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,O=0,A=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({},S,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(g){if(i.watch)return i.watch=S.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)&&_.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&&(T(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(A),A=setTimeout((function(){t.__benchmark=null,R(t)}),e)}(t);if(i.__benchmark=N(),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)})),O){var u=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])');u.length<O&&(O=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:S.rootElement,include:S.include,exclude:i.exclude,onSuccess:function(t,e,n){return(t=((t=t.replace(_.cssComments,"").replace(_.cssMediaQueries,"")).match(_.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(_.cssComments,"").match(_.cssUrls)||[]).forEach((function(n){var r=n.replace(_.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)),h=!1;if(o.forEach((function(t,e){if(_.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),h=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),h)T(i.rootElement),R(i);else{var p=[],v=[],y=!1;if(k.job={},i.updateDOM&&b.job++,o.forEach((function(t){var n=!t.__cssVars;if(t.__cssVars)try{m(t.__cssVars.tree,e({},i,{variables:c,onWarning:s}));var r=d(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");y=y||_.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),v.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)})),O=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,i.shadowDOM)for(var g,w=[i.rootElement].concat(n(i.rootElement.querySelectorAll("*"))),S=0;g=w[S];++S)if(g.shadowRoot&&g.shadowRoot.querySelector("style")){var E=e({},i,{rootElement:g.shadowRoot});R(E)}i.updateDOM&&y&&M(i.rootElement),x=!1,i.onComplete(p.join(""),v,JSON.parse(JSON.stringify(c)),N()-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 N(){return g&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function T(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),O=0,A=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}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 q(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 z(t){return(z=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 G(t,e,n){return(G=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 J(t){var e="function"==typeof Map?new Map:void 0;return(J=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 G(t,arguments,z(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$(r,t)})(t)}function Y(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 X(t,e,n){return(X="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=z(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 K(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Z(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")}()}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"===("undefined"==typeof module?"undefined":V(module)),c=t.regeneratorRuntime;if(c)u&&(module.exports=c);else{(c=t.regeneratorRuntime=u?module.exports:{}).wrap=w;var l="suspendedStart",f="suspendedYield",d="executing",h="completed",p={},m={};m[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(M([])));y&&y!==n&&r.call(y,i)&&(m=y);var g=k.prototype=S.prototype=Object.create(m);_.prototype=g.constructor=k,k.constructor=_,k[s]=_.displayName="GeneratorFunction",c.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"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(g),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(g),g[s]="Generator",g[i]=function(){return this},g.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 S?e:S,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===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(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=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=b(t,e,n);if("normal"===u.type){if(r=n.done?h:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,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 S(){}function _(){}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"===V(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 O(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,O(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 A(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(A,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"===("undefined"==typeof self?"undefined":V(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){v(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=d(e),t=0,r=o[e];t<r.length;t++)a.push(n+"="+d(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=m(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=m(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]=m(t)}function d(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function h(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 m(t){var e={};if("object"===V(t))for(var n in t)t.hasOwnProperty(n)&&v(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?v(e,h(i.slice(0,a)),h(i.slice(a+1))):i&&v(e,h(i),"")}}return e}function v(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(){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={default:"sap_fiori_3",all:["sap_fiori_3","sap_fiori_3_dark","sap_belize","sap_belize_hcb","sap_belize_hcw"]}.default,et={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,nt={},rt=nt.hasOwnProperty,ot=nt.toString,it=rt.toString,at=it.call(Object),st=function(t){var e,n;return!(!t||"[object Object]"!==ot.call(t))&&(!(e=Object.getPrototypeOf(t))||"function"==typeof(n=rt.call(e,"constructor")&&e.constructor)&&it.call(n)===at)},ut=Object.create(null),ct=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:ut;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&&(st(r)||(n=Array.isArray(r)))?(n?(n=!1,a=e&&Array.isArray(e)?e:[]):a=e&&st(e)?e:{},s[o]=t(l,arguments[1],a,r)):r!==f&&(s[o]=r));return s},lt=function(){var t=[!0,!1];return t.push.apply(t,arguments),ct.apply(null,t)},ft=new Map,dt=function(t){return ft.get(t)},ht=!1,pt={animationMode:"full",theme:tt,rtl:null,language:null,calendarType:null,noConflict:!1,formatSettings:{}},mt=new Map;mt.set("true",!0),mt.set("false",!1);var vt,yt,gt,wt,bt,St=function(){ht||(!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&&(pt=lt(pt,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];mt.has(t)&&(t=mt.get(n)),pt[r]=t}})),function(){var t=dt("OpenUI5Support");if(t&&t.isLoaded()){var e=t.getConfigurationSettingsObject();pt=lt(pt,e)}}(),ht=!0)},_t=function(){return void 0===vt&&(St(),vt=pt.language),vt},kt=new Map,xt=new Map,Et=new Map,Ot=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 kt.get(e)||kt.set(e,fetch(e)),t.next=3,kt.get(e);case 3:return n=t.sent,Et.get(e)||Et.set(e,n.text()),t.abrupt("return",Et.get(e));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),At=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 kt.get(e)||kt.set(e,fetch(e)),t.next=3,kt.get(e);case 3:return n=t.sent,xt.get(e)||xt.set(e,n.json()),t.abrupt("return",xt.get(e));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ct=new Map,Rt=new Map,Mt=new Set,Pt=new Set,Nt=function(t,e,n){n._?Rt.set("".concat(t,"_").concat(e),n._):n.includes(":root")||""===n?Rt.set("".concat(t,"_").concat(e),n):Ct.set("".concat(t,"_").concat(e),n),Mt.add(t),Pt.add(e)},Tt=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=Rt.get("".concat(e,"_").concat(n)))){t.next=3;break}return t.abrupt("return",r);case 3:if(Pt.has(n)){t.next=7;break}return o=Q(Pt.values()).join(", "),console.warn("You have requested a non-registered theme - falling back to ".concat(tt,". Registered themes are: ").concat(o)),t.abrupt("return",Rt.get("".concat(e,"_").concat(tt)));case 7:return t.next=9,Lt(e,n);case 9:return i=t.sent,a=i._||i,Rt.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)}}(),Lt=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=Ct.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))?Ot(r):At(r));case 4:case"end":return t.stop()}var o,i}),t)})));return function(e,n){return t.apply(this,arguments)}}(),jt=function(){return Mt},Dt=function(t){return Pt.has(t)},It=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},Vt=function(t,e){var n=document.head.querySelector('style[data-ui5-theme-properties="'.concat(e,'"]'));n?n.textContent=t||"":It(t,{"data-ui5-theme-properties":e})},Ft=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))},Ut=function(){return!!window.CSSVarsPonyfill},Bt=function(){yt=void 0,window.CSSVarsPonyfill.cssVars({rootElement:document.head,silent:!0})},Wt="@ui5/webcomponents-theme-base",Ht=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(jt().has(Wt)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Tt(Wt,e);case 4:n=t.sent,Vt(n,Wt);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),qt=function(){var t=U(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:jt().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!==Wt){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Tt(n,e);case 4:r=t.sent,Vt(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)}}(),zt=function(){var t=Ft();if(t)return t;var e=dt("OpenUI5Support");if(e&&e.cssVariablesLoaded())return{themeName:e.getConfigurationSettingsObject().theme}},$t=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=zt())&&e===n.themeName){t.next=6;break}return t.next=4,Ht(e);case 4:t.next=7;break;case 6:o=void 0,(o=document.head.querySelector('style[data-ui5-theme-properties="'.concat(Wt,'"]')))&&o.parentElement.removeChild(o);case 7:return r=Dt(e)?e:n&&n.baseThemeName,t.next=10,qt(r);case 10:Ut()&&Bt();case 11:case"end":return t.stop()}var o}),t)})));return function(e){return t.apply(this,arguments)}}(),Gt=function(){return void 0===gt&&(St(),gt=pt.theme),gt},Jt=function(){var t=U(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(gt!==e){t.next=2;break}return t.abrupt("return");case 2:return gt=e,t.next=5,$t(gt);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Yt=window.sap,Xt=Yt&&Yt.ui&&"function"==typeof Yt.ui.getCore&&Yt.ui.getCore();wt="OpenUI5Support",bt={isLoaded:function(){return!!Xt},init:function(){return Xt?new Promise((function(t){Xt.attachInit((function(){Yt.ui.require(["sap/ui/core/LocaleData"],t)}))})):Promise.resolve()},getConfigurationSettingsObject:function(){if(Xt){var t=Xt.getConfiguration(),e=Yt.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(Xt){var t=Xt.getConfiguration();return Yt.ui.require("sap/ui/core/LocaleData").getInstance(t.getLocale())._get()}},attachListeners:function(){var t;Xt&&(t=Xt.getConfiguration(),Xt.attachThemeChanged(U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Jt(t.getTheme());case 2:case"end":return e.stop()}}),e)})))))},cssVariablesLoaded:function(){if(Xt){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/)}}},ft.set(wt,bt);var Kt,Zt,Qt='\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'),te=function(){if(!document.querySelector("head>style[data-ui5-font-face]")){var t=dt("OpenUI5Support");t&&t.isLoaded()||It(Qt,{"data-ui5-font-face":""})}},ee=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}(),ne=new Map,re=new Map,oe=function(t){if(!re.has(t)){var e=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();re.set(t,e)}return re.get(t)},ie=function(t){return t.map((function(t,e){return 0===e?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()})).join("")},ae=function(){function t(e){B(this,t),this.metadata=e}return H(t,[{key:"getTag",value:function(){return this.metadata.tag}},{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(oe)}},{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=Z(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:"validatePropertyValue",value:function(t,e){return e.multiple?t.map((function(t){return se(t,e)})):se(t,e)}},{key:"validateSlotValue",value:function(t,e){return ue(t,e)}}]),t}(),se=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,ee)?n.isValid(t)?t:e.defaultValue:void 0},ue=function(t,e){if(null===t)return t;var n;return((n=t)instanceof HTMLElement&&"slot"===n.localName?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},ce=function(){var t=document.querySelector("ui5-static-area");if(t)return t;var e=document.body;return t=document.createElement("ui5-static-area"),e.insertBefore(t,e.firstChild)},le=function(t){function e(){return B(this,e),Y(this,z(e).call(this))}return q(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}(J(HTMLElement));customElements.get("ui5-static-area")||customElements.define("ui5-static-area",le);var fe,de,he,pe,me=function(){function t(){B(this,t),this.list=[],this.promises=new Map}return H(t,[{key:"add",value:function(t){if(this.promises.has(t))return this.promises.get(t);var e,n=new Promise((function(t){e=t}));return n._deferredResolve=e,this.list.push(t),this.promises.set(t,n),n}},{key:"shift",value:function(){var t=this.list.shift();if(t){var e=this.promises.get(t);return this.promises.delete(t),{webComponent:t,promise:e}}}},{key:"getList",value:function(){return this.list}},{key:"isAdded",value:function(t){return this.promises.has(t)}}]),t}(),ve=new Set,ye=function(t){ve.add(t)},ge=function(t){return ve.has(t)},we=new me,be=function(){function t(){throw B(this,t),new Error("Static class")}var e;return H(t,null,[{key:"renderDeferred",value:function(e){var n=we.add(e);return t.scheduleRenderTask(),n}},{key:"renderImmediately",value:function(e){var n=we.add(e);return t.runRenderTask(),n}},{key:"scheduleRenderTask",value:function(){fe||(fe=window.requestAnimationFrame(t.renderWebComponents))}},{key:"runRenderTask",value:function(){fe||(fe=1,t.renderWebComponents())}},{key:"renderWebComponents",value:function(){for(var e,n,r,o=new Map;e=we.shift();){n=e.webComponent,r=e.promise;var i=o.get(n)||0;if(i>10)throw new Error("Web component re-rendered too many times this task, max allowed is: ".concat(10));n._render(),r._deferredResolve(),o.set(n,i+1)}pe||(pe=setTimeout((function(){pe=void 0,0===we.getList().length&&t._resolveTaskPromise()}),200)),fe=void 0}},{key:"whenDOMUpdated",value:function(){return de||(de=new Promise((function(t){he=t,window.requestAnimationFrame((function(){0===we.getList().length&&(de=void 0,t())}))})))}},{key:"whenAllCustomElementsAreDefined",value:function(){var t,e=(t=[],ve.forEach((function(e){t.push(e)})),t).map((function(t){return customElements.whenDefined(t)}));return Promise.all(e)}},{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(){we.getList().length>0||he&&(he.call(this,void 0),he=void 0,de=void 0)}}]),t}(),Se=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=this.ui5ElementContext.constructor.staticAreaTemplate(this.ui5ElementContext),e=!window.ShadyDOM&&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),ce().appendChild(this.staticAreaItemDomRef),this._rendered=!0),this.ui5ElementContext.constructor.render(t,this.staticAreaItemDomRef.shadowRoot,e,{eventContext:this.ui5ElementContext})}},{key:"_removeFragmentFromStaticArea",value:function(){if(this.staticAreaItemDomRef){var t=ce();t.removeChild(this.staticAreaItemDomRef),this.staticAreaItemDomRef=null,t.childElementCount<1&&ce().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,be.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}(),_e=function(t){function e(){return B(this,e),Y(this,z(e).call(this))}return q(e,t),H(e,[{key:"isUI5Element",get:function(){return!0}}]),e}(J(HTMLElement));customElements.get("ui5-static-area-item")||customElements.define("ui5-static-area-item",_e);var ke,xe=window,Ee=new WeakMap,Oe=function(){function t(){throw B(this,t),new Error("Static class")}return H(t,null,[{key:"observeDOMNode",value:function(t,e,n){var r=Ee.get(t);if(r)throw new Error("A mutation/ShadyDOM observer is already assigned to this node.");xe.ShadyDOM?r=xe.ShadyDOM.observeChildren(t,e):(r=new MutationObserver(e)).observe(t,n),Ee.set(t,r)}},{key:"unobserveDOMNode",value:function(t){var e=Ee.get(t);e&&(e instanceof MutationObserver?e.disconnect():xe.ShadyDOM.unobserveChildren(e),Ee.delete(t))}}]),t}(),Ae=["value-changed"],Ce=function(){return void 0===ke&&(St(),ke=pt.noConflict),ke},Re=function(t){var e=Ce();return!function(t){return Ae.includes(t)}(t)&&(!0===e||!function(t){var e=Ce();return!(e.events&&e.events.includes&&e.events.includes(t))}(t))},Me=function(t){ke=t},Pe={},Ne=function(t){var e=function(t){return Pe[t]?Pe[t].join(""):""}(t.getMetadata().getTag())||"",n=t.styles;return Array.isArray(n)&&(n=n.join(" ")),"".concat(n," ").concat(e)},Te=new Map,Le=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)},je=function(t,e){return(t=function(t,e,n){for(var r=t.indexOf(e);-1!==r;)r=(t=Le(t,e,r,n)).indexOf(e);return t}(t=t.trim(),"::slotted","")).startsWith(":host")?Le(t,":host",0,e):t.match(/^[@0-9]/)||"to"===t||"to{"===t?t:t.match(new RegExp("^".concat(e,"[^a-zA-Z0-9-]")))?t:"".concat(e," ").concat(t)},De=function(t,e){t=(t=t.replace(/\n/g," ")).replace(/([{}])/g,"$1\n");var n="";return t.split("\n").forEach((function(t){if(t.match(/{$/)){var r=t.split(",");t=r.map((function(t){return je(t,e)})).join(",")}n="".concat(n).concat(t)})),n},Ie=new Set,Ve=function(t){var e=t.getMetadata().getTag();if(!Ie.has(e)){var n=Ne(t);n=De(n,e);var r=function(t){var e=t.staticAreaStyles;return Array.isArray(e)&&(e=e.join(" ")),e}(t);r&&(r=De(r,"ui5-static-area-item"),n="".concat(n," ").concat(r)),It(n,{"data-ui5-element-styles":e,disabled:"disabled"}),Ut()&&(yt||(yt=window.setTimeout(Bt,0))),Ie.add(e)}},Fe=function(t){function e(){return B(this,e),Y(this,z(e).apply(this,arguments))}return q(e,t),H(e,null,[{key:"isValid",value:function(t){return Number.isInteger(t)}}]),e}(ee),Ue=["disabled","ariaLabel"],Be=function(t){return!!Ue.includes(t)||![HTMLElement,Element,Node].some((function(e){return e.prototype.hasOwnProperty(t)}))},We={events:{_propertyChange:{}}},He=0,qe=new Map,ze=function(t){function e(){var t,n;return B(this,e),(t=Y(this,z(e).call(this)))._generateId(),t._initializeState(),t._upgradeAllProperties(),t._initializeContainers(),t._upToDate=!1,t._domRefReadyPromise=new Promise((function(t){n=t})),t._domRefReadyPromise._deferredResolve=n,t._monitoredChildProps=new Map,t._firePropertyChange=!1,t}var n,r,o,i,a;return q(e,t),H(e,[{key:"_generateId",value:function(){this._id="ui5wc_".concat(++He)}},{key:"_initializeContainers",value:function(){var t=this.constructor._needsShadowDOM(),e=this.constructor._needsStaticArea();if(t&&(this.attachShadow({mode:"open"}),window.ShadyDOM&&Ve(this.constructor),document.adoptedStyleSheets)){var n=function(t){var e=t.getMetadata().getTag(),n=Ne(t);if(Te.has(e))return Te.get(e);var r=new CSSStyleSheet;return r.replaceSync(n),Te.set(e,r),r}(this.constructor);this.shadowRoot.adoptedStyleSheets=[n]}e&&(this.staticAreaItem=new Se(this))}},{key:"connectedCallback",value:(a=U(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.constructor._needsShadowDOM(),n=this.constructor.getMetadata().slotsAreManaged(),!e){t.next=14;break}if(!n){t.next=7;break}return this._startObservingDOMChildren(),t.next=7,this._processChildren();case 7:if(this.shadowRoot){t.next=10;break}return t.next=10,Promise.resolve();case 10:return t.next=12,be.renderImmediately(this);case 12:this._domRefReadyPromise._deferredResolve(),"function"==typeof this.onEnterDOM&&this.onEnterDOM();case 14:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"disconnectedCallback",value:function(){var t=this.constructor._needsShadowDOM(),e=this.constructor._needsStaticArea(),n=this.constructor.getMetadata().slotsAreManaged();t&&(n&&this._stopObservingDOMChildren(),"function"==typeof this.onExitDOM&&this.onExitDOM()),e&&this.staticAreaItem._removeFragmentFromStaticArea()}},{key:"_startObservingDOMChildren",value:function(){if(this.constructor.getMetadata().hasSlots()){var t={childList:!0,subtree:this.constructor.getMetadata().canSlotText(),characterData:!0};Oe.observeDOMNode(this,this._processChildren.bind(this),t)}}},{key:"_stopObservingDOMChildren",value:function(){Oe.unobserveDOMNode(this)}},{key:"_processChildren",value:(i=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 i.apply(this,arguments)})},{key:"_updateSlots",value:(o=U(regeneratorRuntime.mark((function t(){var e,n,r,o,i,a,s,u,c,l,f,d=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=Z(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,h,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=d.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),(h=qe.get(u))||(h=new Promise((function(t){return setTimeout(t,1e3)})),qe.set(u,h)),t.next=18,Promise.race([f,h]);case 18:window.customElements.upgrade(n);case 19:(n=d.constructor.getMetadata().constructor.validateSlotValue(n,i)).isUI5Element&&i.listenFor&&d._attachChildPropertyUpdated(n,i.listenFor),p=i.propertyName||o,l.has(p)?l.get(p).push({child:n,idx:r}):l.set(p,[{child:n,idx:r}]);case 23: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){d._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 o.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)})),this._state[r]=[],this._invalidate(r,[])}},{key:"attributeChangedCallback",value:function(t,e,n){var r=this.constructor.getMetadata().getProperties(),o=function(t){if(!ne.has(t)){var e=ie(t.split("-"));ne.set(t,e)}return ne.get(t)}(t.replace(/^ui5-/,""));if(r.hasOwnProperty(o)){var i=r[o].type;i===Boolean&&(n=null!==n),i===Fe&&(n=parseInt(n)),this[o]=n}}},{key:"_updateAttribute",value:function(t,e){if(this.constructor.getMetadata().hasAttribute(t)&&"object"!==V(e)){var n=oe(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("_propertyChange",this._invalidateParentOnPropertyUpdate),t._firePropertyChange=!0}},{key:"_detachChildPropertyUpdated",value:function(t){t.removeEventListener("_propertyChange",this._invalidateParentOnPropertyUpdate),t._firePropertyChange=!1}},{key:"_propertyChange",value:function(t,e){this._updateAttribute(t,e),this._firePropertyChange&&this.dispatchEvent(new CustomEvent("_propertyChange",{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:"_invalidate",value:function(){this._upToDate&&this.getDomRef()&&!this._suppressInvalidation&&(this._upToDate=!1,be.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=this.constructor.template(this);document.adoptedStyleSheets||window.ShadyDOM||(t=Ne(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:"focus",value:(r=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 r.apply(this,arguments)})},{key:"fireEvent",value:function(t,e,n){var r,o=new CustomEvent("ui5-".concat(t),{detail:e,composed:!1,bubbles:!0,cancelable:n});if(r=this.dispatchEvent(o),Re(t))return r;var i=new CustomEvent(t,{detail:e,composed:!1,bubbles:!0,cancelable:n});return this.dispatchEvent(i)&&r}},{key:"getSlottedNodes",value:function(t){return this[t].reduce((function(t,e){return"slot"!==e.localName?t.concat([e]):t.concat(e.assignedNodes({flatten:!0}).filter((function(t){return t instanceof HTMLElement})))}),[])}},{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:"isCompact",get:function(){return"compact"===getComputedStyle(this).getPropertyValue("--_ui5_content_density")}},{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=Z(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=Z(i[o],2),n=e[0],r=e[1];if(!Be(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=Z(c[u],2),n=e[0],r=e[1];if(!Be(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:"define",value:(n=U(regeneratorRuntime.mark((function t(){var e,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zt||(Zt=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=dt("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,$t(Gt());case 8:return n&&n.attachListeners(),te(),t.next=12,Kt||(Kt=new Promise((function(t){window.WebComponents&&!window.WebComponents.ready&&window.WebComponents.waitFor?window.WebComponents.waitFor((function(){t()})):t()})));case 12:e();case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 2:if(!this.onDefine){t.next=5;break}return t.next=5,this.onDefine();case 5:return e=this.getMetadata().getTag(),n=ge(e),(r=customElements.get(e))&&!n?console.warn("Skipping definition of tag ".concat(e,", because it was already defined by another instance of ui5-webcomponents.")):r||(this._generateAccessors(),ye(e),window.customElements.define(e,this)),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=lt.apply(void 0,[{}].concat(t));return this._metadata=new ae(r),this._metadata}},{key:"observedAttributes",get:function(){return this.getMetadata().getAttributesList()}},{key:"metadata",get:function(){return We}},{key:"styles",get:function(){return""}},{key:"staticAreaStyles",get:function(){return""}}]),e}(J(HTMLElement)),$e=new WeakMap,Ge=function(t){return"function"==typeof t&&$e.has(t)},Je=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,Ye=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}},Xe={},Ke={},Ze="{{lit-".concat(String(Math.random()).slice(2),"}}"),Qe="\x3c!--".concat(Ze,"--\x3e"),tn=new RegExp("".concat(Ze,"|").concat(Qe)),en=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 d=f.attributes,h=d.length,p=0,m=0;m<h;m++)nn(d[m].name,"$lit$")&&p++;for(;p-- >0;){var v=c[u],y=an.exec(v)[2],g=y.toLowerCase()+"$lit$",w=f.getAttribute(g);f.removeAttribute(g);var b=w.split(tn);this.parts.push({type:"attribute",index:s,name:y,strings:b}),u+=b.length-1}}"TEMPLATE"===f.tagName&&(o.push(f),i.currentNode=f.content)}else if(3===f.nodeType){var S=f.data;if(S.indexOf(Ze)>=0){for(var _=f.parentNode,k=S.split(tn),x=k.length-1,E=0;E<x;E++){var O=void 0,A=k[E];if(""===A)O=on();else{var C=an.exec(A);null!==C&&nn(C[2],"$lit$")&&(A=A.slice(0,C.index)+C[1]+C[2].slice(0,-"$lit$".length)+C[3]),O=document.createTextNode(A)}_.insertBefore(O,f),this.parts.push({type:"node",index:++s})}""===k[x]?(_.insertBefore(on(),f),r.push(f)):f.data=k[x],u+=x}}else if(8===f.nodeType)if(f.data===Ze){var R=f.parentNode;null!==f.previousSibling&&s!==a||(s++,R.insertBefore(on(),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(Ze,M+1));)this.parts.push({type:"node",index:-1}),u++}else i.currentNode=o.pop()}for(var P=0,N=r;P<N.length;P++){var T=N[P];T.parentNode.removeChild(T)}},nn=function(t,e){var n=t.length-e.length;return n>=0&&t.slice(n)===e},rn=function(t){return-1!==t.index},on=function(){return document.createComment("")},an=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,sn=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,d=this.__parts[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var h=f.value;void 0!==h&&h.commit()}}catch(t){c=!0,l=t}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}}},{key:"_clone",value:function(){for(var t,e=Je?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],rn(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 Je&&(document.adoptNode(e),customElements.upgrade(e)),e}}]),t}(),un=" ".concat(Ze," "),cn=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=an.exec(o);e+=null===a?o+(n?un:Qe):o.substr(0,a.index)+a[1]+a[2]+"$lit$"+a[3]+Ze}return e+=this.strings[t]}},{key:"getTemplateElement",value:function(){var t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}]),t}(),ln=function(t){return null===t||!("object"===V(t)||"function"==typeof t)},fn=function(t){return Array.isArray(t)||!(!t||!t[Symbol.iterator])},dn=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 hn(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(ln(i)||!fn(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}(),hn=function(){function t(e){B(this,t),this.value=void 0,this.committer=e}return H(t,[{key:"setValue",value:function(t){t===Xe||ln(t)&&t===this.value||(this.value=t,Ge(t)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;Ge(this.value);){var t=this.value;this.value=Xe,t(this)}this.value!==Xe&&this.committer.commit()}}]),t}(),pn=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(on()),this.endNode=t.appendChild(on())}},{key:"insertAfterNode",value:function(t){this.startNode=t,this.endNode=t.nextSibling}},{key:"appendIntoPart",value:function(t){t.__insert(this.startNode=on()),t.__insert(this.endNode=on())}},{key:"insertAfterPart",value:function(t){t.__insert(this.startNode=on()),this.endNode=t.endNode,t.endNode=this.startNode}},{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;Ge(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=Xe,t(this)}var e=this.__pendingValue;e!==Xe&&(ln(e)?e!==this.value&&this.__commitText(e):e instanceof cn?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):fn(e)?this.__commitIterable(e):e===Ke?(this.value=Ke,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 sn&&this.value.template===e)this.value.update(t.values);else{var n=new sn(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;Ye(this.startNode.parentNode,t.nextSibling,this.endNode)}}]),t}(),mn=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(;Ge(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=Xe,t(this)}if(this.__pendingValue!==Xe){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=Xe}}}]),t}(),vn=function(t){function e(t,n,r){var o;return B(this,e),(o=Y(this,z(e).call(this,t,n,r))).single=2===r.length&&""===r[0]&&""===r[1],o}return q(e,t),H(e,[{key:"_createPart",value:function(){return new yn(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:X(z(e.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),e}(dn),yn=function(t){function e(){return B(this,e),Y(this,z(e).apply(this,arguments))}return q(e,t),e}(hn),gn=!1;try{var wn={get capture(){return gn=!0,!1}};window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch(t){}var bn=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(;Ge(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=Xe,t(this)}if(this.__pendingValue!==Xe){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=Sn(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=Xe}}},{key:"handleEvent",value:function(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}]),t}(),Sn=function(t){return t&&(gn?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)},_n=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 vn(t,e.slice(1),n).parts:"@"===o?[new bn(t,e.slice(1),r.eventContext)]:"?"===o?[new mn(t,e.slice(1),n)]:new dn(t,e,n).parts}},{key:"handleTextExpression",value:function(t){return new pn(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 kn(t){var e=xn.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},xn.set(t.type,e));var n=e.stringsArray.get(t.strings);if(void 0!==n)return n;var r=t.strings.join(Ze);return void 0===(n=e.keyString.get(r))&&(n=new en(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}var xn=new Map,En=new WeakMap,On=function(t,e,n){var r=En.get(e);void 0===r&&(Ye(e,e.firstChild),En.set(e,r=new pn(Object.assign({templateFactory:kn},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 An=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 cn(t,n,"html",_n)};function Cn(){var t=K(["<style>","</style>",""]);return Cn=function(){return t},t}var Rn=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.eventContext;n&&(t=An(Cn(),n,t)),On(t,e,{eventContext:o})};function Mn(){var t=K(['<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 Mn=function(){return t},t}var Pn={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"}}},Nn=function(t){function e(){return B(this,e),Y(this,z(e).apply(this,arguments))}return q(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 Pn}},{key:"render",get:function(){return Rn}},{key:"template",get:function(){return function(t){return An(Mn())}}},{key:"styles",get:function(){return":host {\n display: inline-block;\n border: 1px solid black;\n color: var(--var1);\n }"}}]),e}(ze);Nn.define();var Tn={tag:"ui5-test-no-shadow"};function Ln(){var t=K(["<div>\n\t\t\t\t<slot></slot>\n\t\t\t</div>"]);return Ln=function(){return t},t}(function(t){function e(){return B(this,e),Y(this,z(e).apply(this,arguments))}return q(e,t),H(e,null,[{key:"metadata",get:function(){return Tn}}]),e})(ze).define();var jn={tag:"ui5-test-parent",managedSlots:!0,slots:{default:{type:Node,listenFor:["prop1"]},items:{type:HTMLElement,listenFor:{include:["*"],exclude:["prop3"]}}}};function Dn(){var t=K(["<div></div>"]);return Dn=function(){return t},t}(function(t){function e(){return B(this,e),Y(this,z(e).apply(this,arguments))}return q(e,t),H(e,null,[{key:"metadata",get:function(){return jn}},{key:"render",get:function(){return Rn}},{key:"template",get:function(){return function(t){return An(Ln())}}}]),e})(ze).define();var In={tag:"ui5-test-child",properties:{prop1:{type:String},prop2:{type:String},prop3:{type:String}}};function Vn(){var t=K(['\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 Vn=function(){return t},t}function Fn(){var t=K(["\n\t\t\t\t<div>\n\t\t\t\t\tWithStaticArea works!\n\t\t\t\t</div>"]);return Fn=function(){return t},t}(function(t){function e(){return B(this,e),Y(this,z(e).apply(this,arguments))}return q(e,t),H(e,null,[{key:"metadata",get:function(){return In}},{key:"render",get:function(){return Rn}},{key:"template",get:function(){return function(t){return An(Dn())}}}]),e})(ze).define();var Un={tag:"ui5-with-static-area",properties:{staticContent:{type:Boolean}},slots:{}};(function(t){function e(){return B(this,e),Y(this,z(e).apply(this,arguments))}var n;return q(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 Un}},{key:"render",get:function(){return Rn}},{key:"template",get:function(){return function(t){return An(Fn())}}},{key:"staticAreaTemplate",get:function(){return function(t){return An(Vn())}}},{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})(ze).define();var Bn={tag:"ui5-test-generic-ext",properties:{extProp:{type:String},strProp:{defaultValue:"Ext"}},slots:{extSlot:{type:HTMLElement}}};(function(t){function e(){return B(this,e),Y(this,z(e).apply(this,arguments))}return q(e,t),H(e,null,[{key:"metadata",get:function(){return Bn}}]),e})(Nn).define();Nt("@ui5/webcomponents-base-test","sap_fiori_3",":root{ --var1: red; }"),Nt("@ui5/webcomponents-base-test","sap_fiori_3_dark",":root{ --var1: green; }"),Nt("@ui5/webcomponents-base-test","sap_belize",":root{ --var1: blue; }"),Nt("@ui5/webcomponents-base-test","sap_belize_hcb",":root{ --var1: orange; }"),Nt("@ui5/webcomponents-base-test","sap_belize_hcw",":root{ --var1: orange; }");var Wn,Hn,qn={},zn={INTERNET_EXPLORER:"ie",EDGE:"ed",FIREFOX:"ff",CHROME:"cr",SAFARI:"sf",ANDROID:"an"},$n=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:zn.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,d,h;u?(f=zn.CHROME,h=t.test(o),d=parseFloat(u[2])):c?(f=zn.FIREFOX,h=!0,d=parseFloat(c[1])):l&&(f=zn.ANDROID,h=t.test(o),d=parseFloat(l[1])),e={name:f,mobile:h,versionStr:"".concat(d),version:d,webkit:!0,webkitVersion:a}}else{var p=/(Version|PhantomJS)\/(\d+\.\d+).*Safari/,m=i.standalone;if(p.test(o)){var v=p.exec(o);n=parseFloat(v[2]),e={name:zn.SAFARI,versionStr:"".concat(n),fullscreen:!1,webview:!1,version:n,mobile:t.test(o),webkit:!0,webkitVersion:a,phantomJS:"PhantomJS"===v[1]}}else e=!/iPhone|iPad|iPod/.test(o)||/CriOS/.test(o)||/FxiOS/.test(o)||!0!==m&&!1!==m?{mobile:t.test(o),webkit:!0,webkitVersion:a,version:-1}:{name:zn.SAFARI,version:-1,fullscreen:m,webview:!m,mobile:t.test(o),webkit:!0,webkitVersion:a}}}else r.msie||r.trident?(n=parseFloat(r.version),e={name:zn.INTERNET_EXPLORER,versionStr:"".concat(n),version:n,msie:!0,mobile:!1}):r.edge?(n=parseFloat(r.version),e={name:zn.EDGE,versionStr:"".concat(n),version:n,edge:!0}):e={name:"",versionStr:"",version:-1,mobile:!1};return e},Gn=function(){return void 0===Wn&&(St(),Wn=pt.animationMode),Wn},Jn={Gregorian:"Gregorian",Islamic:"Islamic",Japanese:"Japanese",Buddhist:"Buddhist",Persian:"Persian"},Yn=function(t){function e(){return B(this,e),Y(this,z(e).apply(this,arguments))}return q(e,t),H(e,null,[{key:"isValid",value:function(t){return!!Jn[t]}}]),e}(ee);Yn.generataTypeAcessors(Jn);var Xn,Kn,Zn=function(){return void 0===Hn&&(St(),Hn=pt.calendarType),Yn.isValid(Hn)?Hn:Yn.Gregorian},Qn={iw:"he",ji:"yi",in:"id",sh:"sr"},tr=((Xn=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec("$cldr-rtl-locales:ar,fa,he$"))&&Xn[2]?Xn[2].split(/,/):null)||[],er=function(){var t,e=(St(),pt.rtl);return null!==e?!!e:function(t){return t=t&&Qn[t]||t,tr.indexOf(t)>=0}(_t()||((t=navigator.languages)&&t[0]||navigator.language||navigator.userLanguage||navigator.browserLanguage||et))},nr=function(){return void 0===Kn&&(St(),Kn=pt.formatSettings),Kn.firstDayOfWeek},rr=new Map,or=new Map,ir=function(){var t=U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!or.has("SAP-icons")){t.next=3;break}return t.next=3,or.get("SAP-icons");case 3:return t.abrupt("return",Array.from(rr.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=be,window.isIE=function(){return qn.browser||(qn.browser=$n(),qn.browser.BROWSER=zn,qn.browser.name&&Object.keys(zn).forEach((function(t){zn[t]===qn.browser.name&&(qn.browser[t.toLowerCase()]=!0)}))),!!qn.browser.msie},window.registerThemeProperties=Nt,window["sap-ui-webcomponents-bundle"]={configuration:{getAnimationMode:Gn,getLanguage:_t,getTheme:Gt,setTheme:Jt,getNoConflict:Ce,setNoConflict:Me,getCalendarType:Zn,getRTL:er,getFirstDayOfWeek:nr},getIconNames:ir};var ar={getAnimationMode:Gn,getLanguage:_t,getTheme:Gt,setTheme:Jt,getNoConflict:Ce,setNoConflict:Me,getCalendarType:Zn,getRTL:er,getFirstDayOfWeek:nr};t.configuration=ar,t.getIconNames=ir}(this["sap-ui-webcomponents-bundle"]=this["sap-ui-webcomponents-bundle"]||{});
|
|
212
|
-
//# sourceMappingURL=bundle.es5.js.map
|