@carbon/ibmdotcom-services 1.46.0 → 1.47.0-alpha.5160673460.0
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/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +2 -2
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +3 -3
- package/es/services/Analytics/Analytics.js +1 -1
- package/es/services/CloudAccountAuth/CloudAccountAuth.js +1 -1
- package/es/services/Locale/Locale.js +1 -1
- package/es/services/Profile/Profile.js +66 -1
- package/es/services/SearchTypeahead/SearchTypeahead.js +1 -1
- package/es/services/VideoPlayer/VideoPlayer.js +1 -1
- package/es/services/global/global.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +2 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +16 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +3 -3
- package/lib/services/Analytics/Analytics.js +1 -1
- package/lib/services/CloudAccountAuth/CloudAccountAuth.js +1 -1
- package/lib/services/KalturaPlayer/KalturaPlayer.js +6 -1
- package/lib/services/Locale/Locale.js +1 -1
- package/lib/services/Profile/Profile.js +66 -1
- package/lib/services/SearchTypeahead/SearchTypeahead.js +1 -1
- package/lib/services/VideoPlayer/VideoPlayer.js +6 -1
- package/lib/services/global/global.js +1 -1
- package/package.json +3 -8
- package/umd/ibmdotcom-services.js +93 -41
- package/umd/ibmdotcom-services.min.js +4 -4
package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js
CHANGED
|
@@ -44,7 +44,7 @@ function _toPrimitive(input, hint) {
|
|
|
44
44
|
return (hint === "string" ? String : Number)(input);
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* Copyright IBM Corp. 2016,
|
|
47
|
+
* Copyright IBM Corp. 2016, 2023
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -113,7 +113,7 @@ var StickyHeader = /*#__PURE__*/function () {
|
|
|
113
113
|
var toc = this._tableOfContents;
|
|
114
114
|
var tocRoot = toc.shadowRoot;
|
|
115
115
|
var desktopSelector = ".".concat(ddsPrefix, "-ce--table-of-contents__items-container");
|
|
116
|
-
if (window.
|
|
116
|
+
if (window.innerWidth > gridBreakpoint) {
|
|
117
117
|
if (toc.layout === 'horizontal') {
|
|
118
118
|
this._tableOfContentsInnerBar = tocRoot.querySelector(".".concat(prefix, "--tableofcontents__navbar"));
|
|
119
119
|
this._tableOfContentsLayout = 'horizontal';
|
|
@@ -8,7 +8,7 @@ function _typeof(obj) {
|
|
|
8
8
|
}, _typeof(obj);
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Copyright IBM Corp. 2016,
|
|
11
|
+
* Copyright IBM Corp. 2016, 2023
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2020,
|
|
2
|
+
* Copyright IBM Corp. 2020, 2023
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* @exports ibmdotcom.settings
|
|
12
12
|
* @type {object} Settings object
|
|
13
13
|
* @property {string} [prefix=dds]
|
|
14
|
-
* Carbon for IBM.com v1.
|
|
14
|
+
* Carbon for IBM.com v1.47.0',
|
|
15
15
|
*/
|
|
16
16
|
var settings = {
|
|
17
|
-
version: 'Carbon for IBM.com v1.
|
|
17
|
+
version: 'Carbon for IBM.com v1.47.0',
|
|
18
18
|
stablePrefix: 'dds'
|
|
19
19
|
};
|
|
20
20
|
export default settings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
/**
|
|
4
|
-
* Copyright IBM Corp. 2020,
|
|
4
|
+
* Copyright IBM Corp. 2020, 2023
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
/**
|
|
6
|
-
* Copyright IBM Corp. 2021,
|
|
6
|
+
* Copyright IBM Corp. 2021, 2023
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -4,7 +4,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
6
|
/**
|
|
7
|
-
* Copyright IBM Corp. 2020,
|
|
7
|
+
* Copyright IBM Corp. 2020, 2023
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -3,12 +3,13 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
/**
|
|
6
|
-
* Copyright IBM Corp. 2020,
|
|
6
|
+
* Copyright IBM Corp. 2020, 2023
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
11
|
import axios from 'axios';
|
|
12
|
+
import Cookies from 'js-cookie';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* @constant {string | string} Host for the profile status API call
|
|
@@ -30,6 +31,14 @@ var _version = process && process.env.PROFILE_VERSION || 'v1';
|
|
|
30
31
|
*/
|
|
31
32
|
var _endpoint = "".concat(_host, "/").concat(_version, "/mgmt/idaas/user/status/");
|
|
32
33
|
|
|
34
|
+
/**
|
|
35
|
+
* The cookie name for determining user login status for cloud.ibm.com.
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @private
|
|
39
|
+
*/
|
|
40
|
+
var _cookieName = 'com.ibm.cloud.iam.LoggedIn.prod';
|
|
41
|
+
|
|
33
42
|
/**
|
|
34
43
|
* Profile API class with methods for checking user authentication for ibm.com
|
|
35
44
|
*/
|
|
@@ -84,6 +93,62 @@ var ProfileAPI = /*#__PURE__*/function () {
|
|
|
84
93
|
}
|
|
85
94
|
return getUserStatus;
|
|
86
95
|
}()
|
|
96
|
+
/**
|
|
97
|
+
* retrieve the cloud login status via cookie
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @returns {string} string determining login status
|
|
101
|
+
*/
|
|
102
|
+
}, {
|
|
103
|
+
key: "checkCloudCookie",
|
|
104
|
+
value: function checkCloudCookie() {
|
|
105
|
+
var cloudLogin = Cookies.get(_cookieName);
|
|
106
|
+
return {
|
|
107
|
+
user: cloudLogin === '1' ? 'authenticated' : 'anonymous'
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* retrieve the cloud login status via api
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
* @returns {string} string determining login status
|
|
116
|
+
*/
|
|
117
|
+
}, {
|
|
118
|
+
key: "checkCloudDocsAPI",
|
|
119
|
+
value: function () {
|
|
120
|
+
var _checkCloudDocsAPI = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
121
|
+
var cloudLogin;
|
|
122
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
123
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
124
|
+
case 0:
|
|
125
|
+
_context2.next = 2;
|
|
126
|
+
return axios.get('/api/v6/selected-account?profile=true', {
|
|
127
|
+
headers: {
|
|
128
|
+
Accept: 'application/json'
|
|
129
|
+
}
|
|
130
|
+
}).then(function (response) {
|
|
131
|
+
return response.status === 200 ? 'authenticated' : 'anonymous';
|
|
132
|
+
}).catch(function (error) {
|
|
133
|
+
console.error(error);
|
|
134
|
+
return 'anonymous';
|
|
135
|
+
});
|
|
136
|
+
case 2:
|
|
137
|
+
cloudLogin = _context2.sent;
|
|
138
|
+
return _context2.abrupt("return", {
|
|
139
|
+
user: cloudLogin
|
|
140
|
+
});
|
|
141
|
+
case 4:
|
|
142
|
+
case "end":
|
|
143
|
+
return _context2.stop();
|
|
144
|
+
}
|
|
145
|
+
}, _callee2);
|
|
146
|
+
}));
|
|
147
|
+
function checkCloudDocsAPI() {
|
|
148
|
+
return _checkCloudDocsAPI.apply(this, arguments);
|
|
149
|
+
}
|
|
150
|
+
return checkCloudDocsAPI;
|
|
151
|
+
}()
|
|
87
152
|
}]);
|
|
88
153
|
return ProfileAPI;
|
|
89
154
|
}();
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
/**
|
|
6
|
-
* Copyright IBM Corp. 2020,
|
|
6
|
+
* Copyright IBM Corp. 2020, 2023
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -8,7 +8,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
10
|
/**
|
|
11
|
-
* Copyright IBM Corp. 2020,
|
|
11
|
+
* Copyright IBM Corp. 2020, 2023
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js
CHANGED
|
@@ -55,7 +55,7 @@ function _toPrimitive(input, hint) {
|
|
|
55
55
|
return (hint === "string" ? String : Number)(input);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Copyright IBM Corp. 2016,
|
|
58
|
+
* Copyright IBM Corp. 2016, 2023
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
61
61
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -120,7 +120,7 @@ var StickyHeader = /*#__PURE__*/function () {
|
|
|
120
120
|
var toc = this._tableOfContents;
|
|
121
121
|
var tocRoot = toc.shadowRoot;
|
|
122
122
|
var desktopSelector = ".".concat(ddsPrefix, "-ce--table-of-contents__items-container");
|
|
123
|
-
if (window.
|
|
123
|
+
if (window.innerWidth > gridBreakpoint) {
|
|
124
124
|
if (toc.layout === 'horizontal') {
|
|
125
125
|
this._tableOfContentsInnerBar = tocRoot.querySelector(".".concat(prefix, "--tableofcontents__navbar"));
|
|
126
126
|
this._tableOfContentsLayout = 'horizontal';
|
|
@@ -60,7 +60,12 @@ function _arrayWithHoles(arr) {
|
|
|
60
60
|
*
|
|
61
61
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
62
62
|
* LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/
|
|
63
|
+
*/ /**
|
|
64
|
+
* Copyright IBM Corp. 2020, 2021
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/
|
|
64
69
|
|
|
65
70
|
/**
|
|
66
71
|
* Fires the given event if focus goes out of the given element.
|
|
@@ -71,7 +76,16 @@ function _arrayWithHoles(arr) {
|
|
|
71
76
|
* If these nodes gets focus, we see it as focus went out of the `element`.
|
|
72
77
|
* @param {string} [eventRequestFocusWrap=dds-request-focus-wrap] The event name.
|
|
73
78
|
* @returns {Function} The handle to remove the event handler.
|
|
74
|
-
*/
|
|
79
|
+
*/ /**
|
|
80
|
+
* Fires the given event if focus goes out of the given element.
|
|
81
|
+
*
|
|
82
|
+
* @param {Element} element The element to monitor the focus on.
|
|
83
|
+
* @param {Element[]} sentinelNodes
|
|
84
|
+
* The focus sentinel nodes.
|
|
85
|
+
* If these nodes gets focus, we see it as focus went out of the `element`.
|
|
86
|
+
* @param {string} [eventRequestFocusWrap=dds-request-focus-wrap] The event name.
|
|
87
|
+
* @returns {Function} The handle to remove the event handler.
|
|
88
|
+
*/
|
|
75
89
|
function focuswrap(element, sentinelNodes) {
|
|
76
90
|
var eventRequestFocusWrap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'dds-request-focus-wrap';
|
|
77
91
|
return (0, _on.default)(element, 'focusout', function handleFocusout(event) {
|
package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js
CHANGED
|
@@ -10,7 +10,7 @@ var _marked = require("marked");
|
|
|
10
10
|
var _settings = _interopRequireDefault(require("carbon-components/umd/globals/js/settings"));
|
|
11
11
|
var _striptags = _interopRequireDefault(require("striptags"));
|
|
12
12
|
/**
|
|
13
|
-
* Copyright IBM Corp. 2020,
|
|
13
|
+
* Copyright IBM Corp. 2020, 2023
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -14,7 +14,7 @@ function _typeof(obj) {
|
|
|
14
14
|
}, _typeof(obj);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Copyright IBM Corp. 2016,
|
|
17
|
+
* Copyright IBM Corp. 2016, 2023
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _striptags = _interopRequireDefault(require("striptags"));
|
|
9
9
|
/**
|
|
10
|
-
* Copyright IBM Corp. 2020,
|
|
10
|
+
* Copyright IBM Corp. 2020, 2023
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* Copyright IBM Corp. 2020,
|
|
8
|
+
* Copyright IBM Corp. 2020, 2023
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -17,10 +17,10 @@ exports.default = void 0;
|
|
|
17
17
|
* @exports ibmdotcom.settings
|
|
18
18
|
* @type {object} Settings object
|
|
19
19
|
* @property {string} [prefix=dds]
|
|
20
|
-
* Carbon for IBM.com v1.
|
|
20
|
+
* Carbon for IBM.com v1.47.0',
|
|
21
21
|
*/
|
|
22
22
|
var settings = {
|
|
23
|
-
version: 'Carbon for IBM.com v1.
|
|
23
|
+
version: 'Carbon for IBM.com v1.47.0',
|
|
24
24
|
stablePrefix: 'dds'
|
|
25
25
|
};
|
|
26
26
|
var _default = settings;
|
|
@@ -9,7 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _windowOrGlobal = _interopRequireDefault(require("window-or-global"));
|
|
11
11
|
/**
|
|
12
|
-
* Copyright IBM Corp. 2020,
|
|
12
|
+
* Copyright IBM Corp. 2020, 2023
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -12,7 +12,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
12
12
|
var _axios = _interopRequireDefault(require("axios"));
|
|
13
13
|
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
14
14
|
/**
|
|
15
|
-
* Copyright IBM Corp. 2021,
|
|
15
|
+
* Copyright IBM Corp. 2021, 2023
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -13,7 +13,12 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
13
13
|
var _Analytics = require("../Analytics");
|
|
14
14
|
var _windowOrGlobal = _interopRequireDefault(require("window-or-global"));
|
|
15
15
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /**
|
|
17
|
+
* Copyright IBM Corp. 2020, 2022
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
17
22
|
/**
|
|
18
23
|
* Sets the Kaltura Partner ID, set by environment variable "KALTURA_PARTNER_ID"
|
|
19
24
|
*
|
|
@@ -15,7 +15,7 @@ var _geolocation = _interopRequireDefault(require("../../internal/vendor/@carbon
|
|
|
15
15
|
var _ipcinfoCookie = _interopRequireDefault(require("../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie"));
|
|
16
16
|
var _windowOrGlobal = _interopRequireDefault(require("window-or-global"));
|
|
17
17
|
/**
|
|
18
|
-
* Copyright IBM Corp. 2020,
|
|
18
|
+
* Copyright IBM Corp. 2020, 2023
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -10,8 +10,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
12
|
var _axios = _interopRequireDefault(require("axios"));
|
|
13
|
+
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
13
14
|
/**
|
|
14
|
-
* Copyright IBM Corp. 2020,
|
|
15
|
+
* Copyright IBM Corp. 2020, 2023
|
|
15
16
|
*
|
|
16
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
18
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -37,6 +38,14 @@ var _version = process && process.env.PROFILE_VERSION || 'v1';
|
|
|
37
38
|
*/
|
|
38
39
|
var _endpoint = "".concat(_host, "/").concat(_version, "/mgmt/idaas/user/status/");
|
|
39
40
|
|
|
41
|
+
/**
|
|
42
|
+
* The cookie name for determining user login status for cloud.ibm.com.
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @private
|
|
46
|
+
*/
|
|
47
|
+
var _cookieName = 'com.ibm.cloud.iam.LoggedIn.prod';
|
|
48
|
+
|
|
40
49
|
/**
|
|
41
50
|
* Profile API class with methods for checking user authentication for ibm.com
|
|
42
51
|
*/
|
|
@@ -91,6 +100,62 @@ var ProfileAPI = /*#__PURE__*/function () {
|
|
|
91
100
|
}
|
|
92
101
|
return getUserStatus;
|
|
93
102
|
}()
|
|
103
|
+
/**
|
|
104
|
+
* retrieve the cloud login status via cookie
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @returns {string} string determining login status
|
|
108
|
+
*/
|
|
109
|
+
}, {
|
|
110
|
+
key: "checkCloudCookie",
|
|
111
|
+
value: function checkCloudCookie() {
|
|
112
|
+
var cloudLogin = _jsCookie.default.get(_cookieName);
|
|
113
|
+
return {
|
|
114
|
+
user: cloudLogin === '1' ? 'authenticated' : 'anonymous'
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* retrieve the cloud login status via api
|
|
120
|
+
*
|
|
121
|
+
*
|
|
122
|
+
* @returns {string} string determining login status
|
|
123
|
+
*/
|
|
124
|
+
}, {
|
|
125
|
+
key: "checkCloudDocsAPI",
|
|
126
|
+
value: function () {
|
|
127
|
+
var _checkCloudDocsAPI = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
128
|
+
var cloudLogin;
|
|
129
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
130
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
131
|
+
case 0:
|
|
132
|
+
_context2.next = 2;
|
|
133
|
+
return _axios.default.get('/api/v6/selected-account?profile=true', {
|
|
134
|
+
headers: {
|
|
135
|
+
Accept: 'application/json'
|
|
136
|
+
}
|
|
137
|
+
}).then(function (response) {
|
|
138
|
+
return response.status === 200 ? 'authenticated' : 'anonymous';
|
|
139
|
+
}).catch(function (error) {
|
|
140
|
+
console.error(error);
|
|
141
|
+
return 'anonymous';
|
|
142
|
+
});
|
|
143
|
+
case 2:
|
|
144
|
+
cloudLogin = _context2.sent;
|
|
145
|
+
return _context2.abrupt("return", {
|
|
146
|
+
user: cloudLogin
|
|
147
|
+
});
|
|
148
|
+
case 4:
|
|
149
|
+
case "end":
|
|
150
|
+
return _context2.stop();
|
|
151
|
+
}
|
|
152
|
+
}, _callee2);
|
|
153
|
+
}));
|
|
154
|
+
function checkCloudDocsAPI() {
|
|
155
|
+
return _checkCloudDocsAPI.apply(this, arguments);
|
|
156
|
+
}
|
|
157
|
+
return checkCloudDocsAPI;
|
|
158
|
+
}()
|
|
94
159
|
}]);
|
|
95
160
|
return ProfileAPI;
|
|
96
161
|
}();
|
|
@@ -12,7 +12,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
12
12
|
var _axios = _interopRequireDefault(require("axios"));
|
|
13
13
|
var _Locale = require("../Locale");
|
|
14
14
|
/**
|
|
15
|
-
* Copyright IBM Corp. 2020,
|
|
15
|
+
* Copyright IBM Corp. 2020, 2023
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -15,7 +15,12 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
15
15
|
var _deprecate = _interopRequireDefault(require("../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/deprecate/deprecate"));
|
|
16
16
|
var _KalturaPlayer = _interopRequireDefault(require("../KalturaPlayer/KalturaPlayer"));
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
18
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
18
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /**
|
|
19
|
+
* Copyright IBM Corp. 2020, 2023
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
19
24
|
/**
|
|
20
25
|
* @deprecated in favor of KalturaPlayerAPI
|
|
21
26
|
* VideoPlayerAPI class with methods of checking script state and
|
|
@@ -10,7 +10,7 @@ var _DDO = require("../DDO");
|
|
|
10
10
|
var _loadNonLatinPlex = _interopRequireDefault(require("../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex"));
|
|
11
11
|
var _Locale = require("../Locale");
|
|
12
12
|
/**
|
|
13
|
-
* Copyright IBM Corp. 2020,
|
|
13
|
+
* Copyright IBM Corp. 2020, 2023
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/ibmdotcom-services",
|
|
3
3
|
"description": "Carbon for IBM.com Services",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.47.0-alpha.5160673460.0+fa0103a",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@babel/runtime": "^7.5.0",
|
|
51
|
-
"@carbon/ibmdotcom-utilities": "1.
|
|
51
|
+
"@carbon/ibmdotcom-utilities": "1.47.0-alpha.5160673460.0+fa0103a",
|
|
52
52
|
"@carbon/telemetry": "0.1.0",
|
|
53
53
|
"axios": "^0.27.2",
|
|
54
54
|
"marked": "^4.0.10",
|
|
@@ -90,10 +90,5 @@
|
|
|
90
90
|
"rollup-plugin-terser": "^7.0.2",
|
|
91
91
|
"whatwg-fetch": "^2.0.3"
|
|
92
92
|
},
|
|
93
|
-
"
|
|
94
|
-
"bundleSizeThreshold": 120000,
|
|
95
|
-
"release": {
|
|
96
|
-
"branch": "main"
|
|
97
|
-
},
|
|
98
|
-
"gitHead": "04bbe5e523fa37c40d0b545131fab947bd48472d"
|
|
93
|
+
"gitHead": "fa0103a9991f1cf1e8aa25f8e12d8a3ed5b151ef"
|
|
99
94
|
}
|
|
@@ -389,7 +389,6 @@
|
|
|
389
389
|
}]);
|
|
390
390
|
return AnalyticsAPI;
|
|
391
391
|
}();
|
|
392
|
-
var AnalyticsAPI$1 = AnalyticsAPI;
|
|
393
392
|
|
|
394
393
|
var asyncToGenerator = {exports: {}};
|
|
395
394
|
|
|
@@ -2748,7 +2747,7 @@
|
|
|
2748
2747
|
* @type {string}
|
|
2749
2748
|
* @private
|
|
2750
2749
|
*/
|
|
2751
|
-
var _cookieName$
|
|
2750
|
+
var _cookieName$2 = 'com.ibm.cloud.iam.LoggedIn.prod';
|
|
2752
2751
|
var CloudAccountAuthAPI = /*#__PURE__*/function () {
|
|
2753
2752
|
function CloudAccountAuthAPI() {
|
|
2754
2753
|
_classCallCheck$1(this, CloudAccountAuthAPI);
|
|
@@ -2766,7 +2765,7 @@
|
|
|
2766
2765
|
* @returns {string} string determining login status
|
|
2767
2766
|
*/
|
|
2768
2767
|
function checkCookie() {
|
|
2769
|
-
var cloudLogin = Cookies.get(_cookieName$
|
|
2768
|
+
var cloudLogin = Cookies.get(_cookieName$2);
|
|
2770
2769
|
return {
|
|
2771
2770
|
user: cloudLogin === '1' ? 'authenticated' : 'anonymous'
|
|
2772
2771
|
};
|
|
@@ -2819,10 +2818,9 @@
|
|
|
2819
2818
|
}]);
|
|
2820
2819
|
return CloudAccountAuthAPI;
|
|
2821
2820
|
}();
|
|
2822
|
-
var CloudAccountAuthAPI$1 = CloudAccountAuthAPI;
|
|
2823
2821
|
|
|
2824
2822
|
/**
|
|
2825
|
-
* Copyright IBM Corp. 2020,
|
|
2823
|
+
* Copyright IBM Corp. 2020, 2023
|
|
2826
2824
|
*
|
|
2827
2825
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
2828
2826
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -2834,13 +2832,12 @@
|
|
|
2834
2832
|
* @exports ibmdotcom.settings
|
|
2835
2833
|
* @type {object} Settings object
|
|
2836
2834
|
* @property {string} [prefix=dds]
|
|
2837
|
-
* Carbon for IBM.com v1.
|
|
2835
|
+
* Carbon for IBM.com v1.47.0',
|
|
2838
2836
|
*/
|
|
2839
2837
|
var settings = {
|
|
2840
|
-
version: 'Carbon for IBM.com v1.
|
|
2838
|
+
version: 'Carbon for IBM.com v1.47.0',
|
|
2841
2839
|
stablePrefix: 'dds'
|
|
2842
2840
|
};
|
|
2843
|
-
var ddsSettings = settings;
|
|
2844
2841
|
|
|
2845
2842
|
/**
|
|
2846
2843
|
* Returns boolean if the isDataLayerReady flag is true
|
|
@@ -2970,7 +2967,7 @@
|
|
|
2970
2967
|
case 0:
|
|
2971
2968
|
_context2.next = 2;
|
|
2972
2969
|
return this.isReady().then(function () {
|
|
2973
|
-
lib.digitalData.page.pageInfo.version =
|
|
2970
|
+
lib.digitalData.page.pageInfo.version = settings.version;
|
|
2974
2971
|
});
|
|
2975
2972
|
case 2:
|
|
2976
2973
|
return _context2.abrupt("return", _context2.sent);
|
|
@@ -3019,7 +3016,6 @@
|
|
|
3019
3016
|
}]);
|
|
3020
3017
|
return DDOAPI;
|
|
3021
3018
|
}();
|
|
3022
|
-
var DDOAPI$1 = DDOAPI;
|
|
3023
3019
|
|
|
3024
3020
|
/**
|
|
3025
3021
|
* Copyright IBM Corp. 2021, 2022
|
|
@@ -3635,7 +3631,7 @@
|
|
|
3635
3631
|
* @type {string}
|
|
3636
3632
|
* @private
|
|
3637
3633
|
*/
|
|
3638
|
-
var _cookieName = 'ipcInfo';
|
|
3634
|
+
var _cookieName$1 = 'ipcInfo';
|
|
3639
3635
|
|
|
3640
3636
|
/**
|
|
3641
3637
|
* Utility to set and get the ipcInfo cookie needed to determine country and language code
|
|
@@ -3657,7 +3653,7 @@
|
|
|
3657
3653
|
* const info = ipcinfoCookie.get();
|
|
3658
3654
|
*/
|
|
3659
3655
|
function get() {
|
|
3660
|
-
var ipcinfo = Cookies.get(_cookieName);
|
|
3656
|
+
var ipcinfo = Cookies.get(_cookieName$1);
|
|
3661
3657
|
if (ipcinfo) {
|
|
3662
3658
|
var cc;
|
|
3663
3659
|
var lc;
|
|
@@ -3693,7 +3689,7 @@
|
|
|
3693
3689
|
var cc = _ref.cc,
|
|
3694
3690
|
lc = _ref.lc;
|
|
3695
3691
|
var info = "cc=".concat(cc, ";lc=").concat(lc);
|
|
3696
|
-
Cookies.set(_cookieName, encodeURIComponent(info), {
|
|
3692
|
+
Cookies.set(_cookieName$1, encodeURIComponent(info), {
|
|
3697
3693
|
expires: 365,
|
|
3698
3694
|
domain: '.ibm.com'
|
|
3699
3695
|
});
|
|
@@ -3701,7 +3697,6 @@
|
|
|
3701
3697
|
}]);
|
|
3702
3698
|
return ipcinfoCookie;
|
|
3703
3699
|
}();
|
|
3704
|
-
var ipcinfoCookie$1 = ipcinfoCookie;
|
|
3705
3700
|
|
|
3706
3701
|
/**
|
|
3707
3702
|
* @constant {string | string} Host for the Locale API call
|
|
@@ -3892,7 +3887,7 @@
|
|
|
3892
3887
|
return regenerator.wrap(function _callee$(_context) {
|
|
3893
3888
|
while (1) switch (_context.prev = _context.next) {
|
|
3894
3889
|
case 0:
|
|
3895
|
-
cookie = ipcinfoCookie
|
|
3890
|
+
cookie = ipcinfoCookie.get();
|
|
3896
3891
|
_context.next = 3;
|
|
3897
3892
|
return this.getLang();
|
|
3898
3893
|
case 3:
|
|
@@ -3934,7 +3929,7 @@
|
|
|
3934
3929
|
case 22:
|
|
3935
3930
|
list = _context.sent;
|
|
3936
3931
|
verifiedCodes = this.verifyLocale(cc, lc, list); // set the ipcInfo cookie
|
|
3937
|
-
ipcinfoCookie
|
|
3932
|
+
ipcinfoCookie.set(verifiedCodes);
|
|
3938
3933
|
return _context.abrupt("return", verifiedCodes);
|
|
3939
3934
|
case 26:
|
|
3940
3935
|
case "end":
|
|
@@ -4189,10 +4184,9 @@
|
|
|
4189
4184
|
}]);
|
|
4190
4185
|
return LocaleAPI;
|
|
4191
4186
|
}();
|
|
4192
|
-
var LocaleAPI$1 = LocaleAPI;
|
|
4193
4187
|
|
|
4194
4188
|
/**
|
|
4195
|
-
* Copyright IBM Corp. 2020,
|
|
4189
|
+
* Copyright IBM Corp. 2020, 2023
|
|
4196
4190
|
*
|
|
4197
4191
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
4198
4192
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -4217,17 +4211,17 @@
|
|
|
4217
4211
|
}
|
|
4218
4212
|
|
|
4219
4213
|
// Sets the version of the library in the DDO
|
|
4220
|
-
DDOAPI
|
|
4214
|
+
DDOAPI.setVersion().catch(function (error) {
|
|
4221
4215
|
console.error('Error setting the version of the library in the DDO:', error);
|
|
4222
4216
|
});
|
|
4223
4217
|
|
|
4224
4218
|
// Sets the Plex font for non-Latin fonts
|
|
4225
|
-
LocaleAPI
|
|
4219
|
+
LocaleAPI.getLang().then(function (lang) {
|
|
4226
4220
|
loadNonLatinPlex(lang.lc);
|
|
4227
4221
|
});
|
|
4228
4222
|
|
|
4229
4223
|
// analytics tracking
|
|
4230
|
-
AnalyticsAPI
|
|
4224
|
+
AnalyticsAPI.initAll();
|
|
4231
4225
|
}
|
|
4232
4226
|
|
|
4233
4227
|
/**
|
|
@@ -4307,7 +4301,6 @@
|
|
|
4307
4301
|
}]);
|
|
4308
4302
|
return MarketingSearchAPI;
|
|
4309
4303
|
}();
|
|
4310
|
-
var MarketingSearchAPI$1 = MarketingSearchAPI;
|
|
4311
4304
|
|
|
4312
4305
|
/**
|
|
4313
4306
|
* Copyright IBM Corp. 2016, 2022
|
|
@@ -4347,7 +4340,6 @@
|
|
|
4347
4340
|
}]);
|
|
4348
4341
|
return MastheadLogoAPI;
|
|
4349
4342
|
}();
|
|
4350
|
-
var MastheadLogoAPI$1 = MastheadLogoAPI;
|
|
4351
4343
|
|
|
4352
4344
|
/**
|
|
4353
4345
|
* @constant {string | string} Host for the profile status API call
|
|
@@ -4369,6 +4361,14 @@
|
|
|
4369
4361
|
*/
|
|
4370
4362
|
var _endpoint$1 = "".concat(_host$2, "/").concat(_version$1, "/mgmt/idaas/user/status/");
|
|
4371
4363
|
|
|
4364
|
+
/**
|
|
4365
|
+
* The cookie name for determining user login status for cloud.ibm.com.
|
|
4366
|
+
*
|
|
4367
|
+
* @type {string}
|
|
4368
|
+
* @private
|
|
4369
|
+
*/
|
|
4370
|
+
var _cookieName = 'com.ibm.cloud.iam.LoggedIn.prod';
|
|
4371
|
+
|
|
4372
4372
|
/**
|
|
4373
4373
|
* Profile API class with methods for checking user authentication for ibm.com
|
|
4374
4374
|
*/
|
|
@@ -4423,10 +4423,65 @@
|
|
|
4423
4423
|
}
|
|
4424
4424
|
return getUserStatus;
|
|
4425
4425
|
}()
|
|
4426
|
+
/**
|
|
4427
|
+
* retrieve the cloud login status via cookie
|
|
4428
|
+
*
|
|
4429
|
+
*
|
|
4430
|
+
* @returns {string} string determining login status
|
|
4431
|
+
*/
|
|
4432
|
+
}, {
|
|
4433
|
+
key: "checkCloudCookie",
|
|
4434
|
+
value: function checkCloudCookie() {
|
|
4435
|
+
var cloudLogin = Cookies.get(_cookieName);
|
|
4436
|
+
return {
|
|
4437
|
+
user: cloudLogin === '1' ? 'authenticated' : 'anonymous'
|
|
4438
|
+
};
|
|
4439
|
+
}
|
|
4440
|
+
|
|
4441
|
+
/**
|
|
4442
|
+
* retrieve the cloud login status via api
|
|
4443
|
+
*
|
|
4444
|
+
*
|
|
4445
|
+
* @returns {string} string determining login status
|
|
4446
|
+
*/
|
|
4447
|
+
}, {
|
|
4448
|
+
key: "checkCloudDocsAPI",
|
|
4449
|
+
value: function () {
|
|
4450
|
+
var _checkCloudDocsAPI = _asyncToGenerator$1( /*#__PURE__*/regenerator.mark(function _callee2() {
|
|
4451
|
+
var cloudLogin;
|
|
4452
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
4453
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4454
|
+
case 0:
|
|
4455
|
+
_context2.next = 2;
|
|
4456
|
+
return axios.get('/api/v6/selected-account?profile=true', {
|
|
4457
|
+
headers: {
|
|
4458
|
+
Accept: 'application/json'
|
|
4459
|
+
}
|
|
4460
|
+
}).then(function (response) {
|
|
4461
|
+
return response.status === 200 ? 'authenticated' : 'anonymous';
|
|
4462
|
+
}).catch(function (error) {
|
|
4463
|
+
console.error(error);
|
|
4464
|
+
return 'anonymous';
|
|
4465
|
+
});
|
|
4466
|
+
case 2:
|
|
4467
|
+
cloudLogin = _context2.sent;
|
|
4468
|
+
return _context2.abrupt("return", {
|
|
4469
|
+
user: cloudLogin
|
|
4470
|
+
});
|
|
4471
|
+
case 4:
|
|
4472
|
+
case "end":
|
|
4473
|
+
return _context2.stop();
|
|
4474
|
+
}
|
|
4475
|
+
}, _callee2);
|
|
4476
|
+
}));
|
|
4477
|
+
function checkCloudDocsAPI() {
|
|
4478
|
+
return _checkCloudDocsAPI.apply(this, arguments);
|
|
4479
|
+
}
|
|
4480
|
+
return checkCloudDocsAPI;
|
|
4481
|
+
}()
|
|
4426
4482
|
}]);
|
|
4427
4483
|
return ProfileAPI;
|
|
4428
4484
|
}();
|
|
4429
|
-
var ProfileAPI$1 = ProfileAPI;
|
|
4430
4485
|
|
|
4431
4486
|
/**
|
|
4432
4487
|
* @constant {string | string} Host for the API calls
|
|
@@ -4481,7 +4536,7 @@
|
|
|
4481
4536
|
case 0:
|
|
4482
4537
|
appid = _args.length > 1 && _args[1] !== undefined ? _args[1] : '';
|
|
4483
4538
|
_context.next = 3;
|
|
4484
|
-
return LocaleAPI
|
|
4539
|
+
return LocaleAPI.getLang();
|
|
4485
4540
|
case 3:
|
|
4486
4541
|
lang = _context.sent;
|
|
4487
4542
|
urlQuery = ["lang=".concat(lang.lc).concat(lang.cc ? "&cc=".concat(lang.cc) : ''), "query=".concat(encodeURIComponent(query)), "".concat(appid ? "appid=".concat(appid) : '')].filter(function (item) {
|
|
@@ -4512,7 +4567,6 @@
|
|
|
4512
4567
|
}]);
|
|
4513
4568
|
return SearchTypeaheadAPI;
|
|
4514
4569
|
}();
|
|
4515
|
-
var SearchTypeaheadAPI$1 = SearchTypeaheadAPI;
|
|
4516
4570
|
|
|
4517
4571
|
/**
|
|
4518
4572
|
* @constant {string | string} Host for the Translation API call
|
|
@@ -4639,7 +4693,7 @@
|
|
|
4639
4693
|
break;
|
|
4640
4694
|
case 7:
|
|
4641
4695
|
_context.next = 9;
|
|
4642
|
-
return LocaleAPI
|
|
4696
|
+
return LocaleAPI.getLocale();
|
|
4643
4697
|
case 9:
|
|
4644
4698
|
locale = _context.sent;
|
|
4645
4699
|
lang = locale.lc;
|
|
@@ -4783,7 +4837,6 @@
|
|
|
4783
4837
|
}]);
|
|
4784
4838
|
return TranslationAPI;
|
|
4785
4839
|
}();
|
|
4786
|
-
var TranslationAPI$1 = TranslationAPI;
|
|
4787
4840
|
|
|
4788
4841
|
var defineProperty = {exports: {}};
|
|
4789
4842
|
|
|
@@ -5138,7 +5191,7 @@
|
|
|
5138
5191
|
mediaId: mediaId,
|
|
5139
5192
|
customMetricsData: customMetricsData
|
|
5140
5193
|
};
|
|
5141
|
-
AnalyticsAPI
|
|
5194
|
+
AnalyticsAPI.videoPlayerStats(eventData);
|
|
5142
5195
|
}
|
|
5143
5196
|
|
|
5144
5197
|
/**
|
|
@@ -5254,18 +5307,17 @@
|
|
|
5254
5307
|
}]);
|
|
5255
5308
|
return KalturaPlayerAPI;
|
|
5256
5309
|
}();
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
exports.
|
|
5260
|
-
exports.
|
|
5261
|
-
exports.
|
|
5262
|
-
exports.
|
|
5263
|
-
exports.
|
|
5264
|
-
exports.
|
|
5265
|
-
exports.
|
|
5266
|
-
exports.
|
|
5267
|
-
exports.
|
|
5268
|
-
exports.TranslationAPI = TranslationAPI$1;
|
|
5310
|
+
|
|
5311
|
+
exports.AnalyticsAPI = AnalyticsAPI;
|
|
5312
|
+
exports.CloudAccountAuthAPI = CloudAccountAuthAPI;
|
|
5313
|
+
exports.DDOAPI = DDOAPI;
|
|
5314
|
+
exports.KalturaPlayerAPI = KalturaPlayerAPI;
|
|
5315
|
+
exports.LocaleAPI = LocaleAPI;
|
|
5316
|
+
exports.MarketingSearchAPI = MarketingSearchAPI;
|
|
5317
|
+
exports.MastheadLogo = MastheadLogoAPI;
|
|
5318
|
+
exports.ProfileAPI = ProfileAPI;
|
|
5319
|
+
exports.SearchTypeaheadAPI = SearchTypeaheadAPI;
|
|
5320
|
+
exports.TranslationAPI = TranslationAPI;
|
|
5269
5321
|
exports.globalInit = globalInit;
|
|
5270
5322
|
|
|
5271
5323
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).IBMDotcomServices={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}};!function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}(r);var o=n(r.exports),i={exports:{}},a={exports:{}},c={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(c);var s=n(c.exports),u={exports:{}};!function(e){var t=c.exports.default;e.exports=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(u),function(e){var t=c.exports.default,n=u.exports;e.exports=function(e){var r=n(e,"string");return"symbol"===t(r)?r:String(r)},e.exports.__esModule=!0,e.exports.default=e.exports}(a),function(e){var t=a.exports;function n(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var l=n(i.exports),f="object"===("undefined"==typeof self?"undefined":s(self))&&self.self===self&&self||"object"===s(t)&&t.global===t&&t||t,p=process&&"true"===process.env.SCROLL_TRACKING||!1,d=process?"production":"development",h=function(){function e(){o(this,e)}return l(e,null,[{key:"registerEvent",value:function(e){f.ibmStats&&f.ibmStats.event(e)}},{key:"initAll",value:function(){this.initScrollTracker(),this.initDynamicTabs(),this.initModals()}},{key:"initScrollTracker",value:function(){p&&console.warn("Scroll tracker service has been deprecated. Please refer to documentation for IBM DBDM gestures 2.0.")}},{key:"initDynamicTabs",value:function(){var e=this.triggerTabSelected.bind(this);f.document.addEventListener("tab-selected",(function(t){e(t.target.id,t.detail.item.innerText)}))}},{key:"triggerTabSelected",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"CLICK",eventCategoryGroup:"TABS DYNAMIC",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering tab event:",e)}}},{key:"initModals",value:function(){var e=this.triggerModalHide.bind(this);f.document.addEventListener("modal-hidden",(function(t){e(t.target.id,t.detail.launchingElement.innerText)}));var t=this.triggerModalShow.bind(this);f.document.addEventListener("modal-shown",(function(e){t(e.target.id,e.detail.launchingElement.innerText)}))}},{key:"triggerModalHide",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"HIDE",eventCategoryGroup:"SHOWHIDE",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering modal hide event:",e)}}},{key:"triggerModalShow",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"SHOW",eventCategoryGroup:"SHOWHIDE",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering modal show event:",e)}}},{key:"videoPlayerStats",value:function(e){var t=(null==e?void 0:e.playerState)||"",n=Math.floor(e.currentTime),r=Math.floor(e.duration),o=Math.floor(n/r*100);switch(e.playerState){case 0:t="launched";break;case 1:t="paused";break;case 2:t="played";break;case 3:t="ended";break;case 99:t="error";break;default:"number"==typeof t&&(t="")}if(0===n&&(n="start",o="0"),(n>=r||3===e.playerState)&&(n="end",o="100"),"end"!==n||1!==e.playerState){var i={type:"video",primaryCategory:"VIDEO",eventName:e.title,eventCategoryGroup:e.playerType,executionPath:e.videoId||e.mediaId,execPathReturnCode:t,eventVidStatus:e.playerState,eventVidTimeStamp:n,eventVidLength:r,eventVidPlayed:o+"%"};null!=e&&e.customMetricsData&&Object.keys(e.customMetricsData).forEach((function(t){i[t]=e.customMetricsData[t]}));try{this.registerEvent(i)}catch(e){"production"!==d&&console.error("Error firing video metrics:",e)}}}}]),e}(),v=
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).IBMDotcomServices={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}};!function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}(r);var o=n(r.exports),i={exports:{}},a={exports:{}},c={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(c);var s=n(c.exports),u={exports:{}};!function(e){var t=c.exports.default;e.exports=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(u),function(e){var t=c.exports.default,n=u.exports;e.exports=function(e){var r=n(e,"string");return"symbol"===t(r)?r:String(r)},e.exports.__esModule=!0,e.exports.default=e.exports}(a),function(e){var t=a.exports;function n(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var l=n(i.exports),f="object"===("undefined"==typeof self?"undefined":s(self))&&self.self===self&&self||"object"===s(t)&&t.global===t&&t||t,p=process&&"true"===process.env.SCROLL_TRACKING||!1,d=process?"production":"development",h=function(){function e(){o(this,e)}return l(e,null,[{key:"registerEvent",value:function(e){f.ibmStats&&f.ibmStats.event(e)}},{key:"initAll",value:function(){this.initScrollTracker(),this.initDynamicTabs(),this.initModals()}},{key:"initScrollTracker",value:function(){p&&console.warn("Scroll tracker service has been deprecated. Please refer to documentation for IBM DBDM gestures 2.0.")}},{key:"initDynamicTabs",value:function(){var e=this.triggerTabSelected.bind(this);f.document.addEventListener("tab-selected",(function(t){e(t.target.id,t.detail.item.innerText)}))}},{key:"triggerTabSelected",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"CLICK",eventCategoryGroup:"TABS DYNAMIC",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering tab event:",e)}}},{key:"initModals",value:function(){var e=this.triggerModalHide.bind(this);f.document.addEventListener("modal-hidden",(function(t){e(t.target.id,t.detail.launchingElement.innerText)}));var t=this.triggerModalShow.bind(this);f.document.addEventListener("modal-shown",(function(e){t(e.target.id,e.detail.launchingElement.innerText)}))}},{key:"triggerModalHide",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"HIDE",eventCategoryGroup:"SHOWHIDE",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering modal hide event:",e)}}},{key:"triggerModalShow",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"SHOW",eventCategoryGroup:"SHOWHIDE",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering modal show event:",e)}}},{key:"videoPlayerStats",value:function(e){var t=(null==e?void 0:e.playerState)||"",n=Math.floor(e.currentTime),r=Math.floor(e.duration),o=Math.floor(n/r*100);switch(e.playerState){case 0:t="launched";break;case 1:t="paused";break;case 2:t="played";break;case 3:t="ended";break;case 99:t="error";break;default:"number"==typeof t&&(t="")}if(0===n&&(n="start",o="0"),(n>=r||3===e.playerState)&&(n="end",o="100"),"end"!==n||1!==e.playerState){var i={type:"video",primaryCategory:"VIDEO",eventName:e.title,eventCategoryGroup:e.playerType,executionPath:e.videoId||e.mediaId,execPathReturnCode:t,eventVidStatus:e.playerState,eventVidTimeStamp:n,eventVidLength:r,eventVidPlayed:o+"%"};null!=e&&e.customMetricsData&&Object.keys(e.customMetricsData).forEach((function(t){i[t]=e.customMetricsData[t]}));try{this.registerEvent(i)}catch(e){"production"!==d&&console.error("Error firing video metrics:",e)}}}}]),e}(),v={exports:{}};!function(e){function t(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function c(e){t(a,o,i,c,s,"next",e)}function s(e){t(a,o,i,c,s,"throw",e)}c(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}(v);var y=n(v.exports),m={exports:{}};!function(e){var t=c.exports.default;function n(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new A(r||[]);return a(i,"_invoke",{value:O(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var h={};function v(){}function y(){}function m(){}var g={};f(g,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(L([])));w&&w!==o&&i.call(w,s)&&(g=w);var x=m.prototype=v.prototype=Object.create(g);function E(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,n){function r(o,a,c,s){var u=d(e[o],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return y.prototype=m,a(x,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=f(m,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,f(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},r.awrap=function(e){return{__await:e}},E(S.prototype),f(S.prototype,u,(function(){return this})),r.AsyncIterator=S,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new S(p(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(x),f(x,l,"Generator"),f(x,s,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=L,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(g);var b=g.exports(),w=b;try{regeneratorRuntime=b}catch(e){"object"===("undefined"==typeof globalThis?"undefined":s(globalThis))?globalThis.regeneratorRuntime=b:Function("r","regeneratorRuntime = r")(b)}var x,E={exports:{}},S=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},O=S,_=Object.prototype.toString,T=(x=Object.create(null),function(e){var t=_.call(e);return x[t]||(x[t]=t.slice(8,-1).toLowerCase())});function k(e){return e=e.toLowerCase(),function(t){return T(t)===e}}function A(e){return Array.isArray(e)}function L(e){return void 0===e}var P=k("ArrayBuffer");function R(e){return null!==e&&"object"===s(e)}function j(e){if("object"!==T(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var C=k("Date"),I=k("File"),N=k("Blob"),D=k("FileList");function M(e){return"[object Function]"===_.call(e)}var U=k("URLSearchParams");function B(e,t){if(null!=e)if("object"!==s(e)&&(e=[e]),A(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var F,H=(F="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return F&&e instanceof F}),G={isArray:A,isArrayBuffer:P,isBuffer:function(e){return null!==e&&!L(e)&&null!==e.constructor&&!L(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||_.call(e)===t||M(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&P(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:R,isPlainObject:j,isUndefined:L,isDate:C,isFile:I,isBlob:N,isFunction:M,isStream:function(e){return R(e)&&M(e.pipe)},isURLSearchParams:U,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:B,merge:function e(){var t={};function n(n,r){j(t[r])&&j(n)?t[r]=e(t[r],n):j(n)?t[r]=e({},n):A(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)B(arguments[r],n);return t},extend:function(e,t,n){return B(t,(function(t,r){e[r]=n&&"function"==typeof t?O(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:T,kindOfTest:k,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(L(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:H,isFileList:D},q=G;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var W=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(q.isURLSearchParams(t))r=t.toString();else{var o=[];q.forEach(t,(function(e,t){null!=e&&(q.isArray(e)?t+="[]":e=[e],q.forEach(e,(function(e){q.isDate(e)?e=e.toISOString():q.isObject(e)&&(e=JSON.stringify(e)),o.push(J(t)+"="+J(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},V=G;function K(){this.handlers=[]}K.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},K.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},K.prototype.forEach=function(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var z=K,Y=G,$=G;function X(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}$.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Q=X.prototype,Z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){Z[e]={value:e}})),Object.defineProperties(X,Z),Object.defineProperty(Q,"isAxiosError",{value:!0}),X.from=function(e,t,n,r,o,i){var a=Object.create(Q);return $.toFlatObject(e,a,(function(e){return e!==Error.prototype})),X.call(a,e.message,t,n,r,o),a.name=e.name,i&&Object.assign(a,i),a};var ee=X,te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ne=G;var re=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":ne.isDate(e)?e.toISOString():ne.isArrayBuffer(e)||ne.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,i){if(ne.isPlainObject(o)||ne.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+i);n.push(o),ne.forEach(o,(function(n,o){if(!ne.isUndefined(n)){var a,c=i?i+"."+o:o;if(n&&!i&&"object"===s(n))if(ne.endsWith(o,"{}"))n=JSON.stringify(n);else if(ne.endsWith(o,"[]")&&(a=ne.toArray(n)))return void a.forEach((function(e){!ne.isUndefined(e)&&t.append(c,r(e))}));e(n,c)}})),n.pop()}else t.append(i,r(o))}(e),t},oe=ee,ie=G,ae=ie.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),ie.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ie.isString(r)&&a.push("path="+r),ie.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ce=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},se=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},ue=function(e,t){return e&&!ce(t)?se(e,t):t},le=G,fe=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],pe=G,de=pe.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=pe.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},he=ee;function ve(e){he.call(this,null==e?"canceled":e,he.ERR_CANCELED),this.name="CanceledError"}G.inherits(ve,he,{__CANCEL__:!0});var ye=ve,me=G,ge=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)},be=ae,we=W,xe=ue,Ee=function(e){var t,n,r,o={};return e?(le.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=le.trim(e.substr(0,r)).toLowerCase(),n=le.trim(e.substr(r+1)),t){if(o[t]&&fe.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o},Se=de,Oe=te,_e=ee,Te=ye,ke=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},Ae=function(e){return new Promise((function(t,n){var r,o=e.data,i=e.headers,a=e.responseType;function c(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}me.isFormData(o)&&me.isStandardBrowserEnv()&&delete i["Content-Type"];var s=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(u+":"+l)}var f=xe(e.baseURL,e.url);function p(){if(s){var r="getAllResponseHeaders"in s?Ee(s.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:r,config:e,request:s};ge((function(e){t(e),c()}),(function(e){n(e),c()}),o),s=null}}if(s.open(e.method.toUpperCase(),we(f,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=p:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(p)},s.onabort=function(){s&&(n(new _e("Request aborted",_e.ECONNABORTED,e,s)),s=null)},s.onerror=function(){n(new _e("Network Error",_e.ERR_NETWORK,e,s,s)),s=null},s.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||Oe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new _e(t,r.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,s)),s=null},me.isStandardBrowserEnv()){var d=(e.withCredentials||Se(f))&&e.xsrfCookieName?be.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in s&&me.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:s.setRequestHeader(t,e)})),me.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),a&&"json"!==a&&(s.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){s&&(n(!e||e&&e.type?new Te:e),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),o||(o=null);var h=ke(f);h&&-1===["http","https","file"].indexOf(h)?n(new _e("Unsupported protocol "+h+":",_e.ERR_BAD_REQUEST,e)):s.send(o)}))},Le=G,Pe=function(e,t){Y.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Re=ee,je=re,Ce={"Content-Type":"application/x-www-form-urlencoded"};function Ie(e,t){!Le.isUndefined(e)&&Le.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Ne,De={transitional:te,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Ne=Ae),Ne),transformRequest:[function(e,t){if(Pe(t,"Accept"),Pe(t,"Content-Type"),Le.isFormData(e)||Le.isArrayBuffer(e)||Le.isBuffer(e)||Le.isStream(e)||Le.isFile(e)||Le.isBlob(e))return e;if(Le.isArrayBufferView(e))return e.buffer;if(Le.isURLSearchParams(e))return Ie(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=Le.isObject(e),o=t&&t["Content-Type"];if((n=Le.isFileList(e))||r&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return je(n?{"files[]":e}:e,i&&new i)}return r||"application/json"===o?(Ie(t,"application/json"),function(e,t,n){if(Le.isString(e))try{return(t||JSON.parse)(e),Le.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||De.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&Le.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Re.from(e,Re.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Le.forEach(["delete","get","head"],(function(e){De.headers[e]={}})),Le.forEach(["post","put","patch"],(function(e){De.headers[e]=Le.merge(Ce)}));var Me=De,Ue=G,Be=Me,Fe=function(e){return!(!e||!e.__CANCEL__)},He=G,Ge=function(e,t,n){var r=this||Be;return Ue.forEach(n,(function(n){e=n.call(r,e,t)})),e},qe=Fe,Je=Me,We=ye;function Ve(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new We}var Ke=G,ze=function(e,t){t=t||{};var n={};function r(e,t){return Ke.isPlainObject(e)&&Ke.isPlainObject(t)?Ke.merge(e,t):Ke.isPlainObject(t)?Ke.merge({},t):Ke.isArray(t)?t.slice():t}function o(n){return Ke.isUndefined(t[n])?Ke.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!Ke.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return Ke.isUndefined(t[n])?Ke.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function c(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return Ke.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=s[e]||o,r=t(e);Ke.isUndefined(r)&&t!==c||(n[e]=r)})),n},Ye="0.27.2",$e=Ye,Xe=ee,Qe={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Qe[e]=function(n){return s(n)===e||"a"+(t<1?"n ":" ")+e}}));var Ze={};Qe.transitional=function(e,t,n){function r(e,t){return"[Axios v"+$e+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new Xe(r(o," has been removed"+(t?" in "+t:"")),Xe.ERR_DEPRECATED);return t&&!Ze[o]&&(Ze[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var et={assertOptions:function(e,t,n){if("object"!==s(e))throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],u=void 0===c||a(c,i,e);if(!0!==u)throw new Xe("option "+i+" must be "+u,Xe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Xe("Unknown option "+i,Xe.ERR_BAD_OPTION)}},validators:Qe},tt=G,nt=W,rt=z,ot=function(e){return Ve(e),e.headers=e.headers||{},e.data=Ge.call(e,e.data,e.headers,e.transformRequest),e.headers=He.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),He.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Je.adapter)(e).then((function(t){return Ve(e),t.data=Ge.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return qe(t)||(Ve(e),t&&t.response&&(t.response.data=Ge.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},it=ze,at=ue,ct=et,st=ct.validators;function ut(e){this.defaults=e,this.interceptors={request:new rt,response:new rt}}ut.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=it(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&ct.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var c=[ot,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(a),i=Promise.resolve(t);c.length;)i=i.then(c.shift(),c.shift());return i}for(var s=t;r.length;){var u=r.shift(),l=r.shift();try{s=u(s)}catch(e){l(e);break}}try{i=ot(s)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},ut.prototype.getUri=function(e){e=it(this.defaults,e);var t=at(e.baseURL,e.url);return nt(t,e.params,e.paramsSerializer)},tt.forEach(["delete","get","head","options"],(function(e){ut.prototype[e]=function(t,n){return this.request(it(n||{},{method:e,url:t,data:(n||{}).data}))}})),tt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(it(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ut.prototype[e]=t(),ut.prototype[e+"Form"]=t(!0)}));var lt=ut,ft=ye;function pt(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new ft(e),t(n.reason))}))}pt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},pt.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},pt.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},pt.source=function(){var e;return{token:new pt((function(t){e=t})),cancel:e}};var dt=pt,ht=G,vt=G,yt=S,mt=lt,gt=ze;var bt=function e(t){var n=new mt(t),r=yt(mt.prototype.request,n);return vt.extend(r,mt.prototype,n),vt.extend(r,n),r.create=function(n){return e(gt(t,n))},r}(Me);bt.Axios=mt,bt.CanceledError=ye,bt.CancelToken=dt,bt.isCancel=Fe,bt.VERSION=Ye,bt.toFormData=re,bt.AxiosError=ee,bt.Cancel=bt.CanceledError,bt.all=function(e){return Promise.all(e)},bt.spread=function(e){return function(t){return e.apply(null,t)}},bt.isAxiosError=function(e){return ht.isObject(e)&&!0===e.isAxiosError},E.exports=bt,E.exports.default=bt;var wt=E.exports,xt={exports:{}};
|
|
3
|
+
e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new A(r||[]);return a(i,"_invoke",{value:O(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var h={};function v(){}function y(){}function m(){}var g={};f(g,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(L([])));w&&w!==o&&i.call(w,s)&&(g=w);var x=m.prototype=v.prototype=Object.create(g);function E(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,n){function r(o,a,c,s){var u=d(e[o],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return y.prototype=m,a(x,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=f(m,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,f(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},r.awrap=function(e){return{__await:e}},E(S.prototype),f(S.prototype,u,(function(){return this})),r.AsyncIterator=S,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new S(p(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(x),f(x,l,"Generator"),f(x,s,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=L,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(m);var g=m.exports(),b=g;try{regeneratorRuntime=g}catch(e){"object"===("undefined"==typeof globalThis?"undefined":s(globalThis))?globalThis.regeneratorRuntime=g:Function("r","regeneratorRuntime = r")(g)}var w,x={exports:{}},E=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},S=E,O=Object.prototype.toString,_=(w=Object.create(null),function(e){var t=O.call(e);return w[t]||(w[t]=t.slice(8,-1).toLowerCase())});function k(e){return e=e.toLowerCase(),function(t){return _(t)===e}}function T(e){return Array.isArray(e)}function A(e){return void 0===e}var L=k("ArrayBuffer");function P(e){return null!==e&&"object"===s(e)}function R(e){if("object"!==_(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var C=k("Date"),j=k("File"),I=k("Blob"),N=k("FileList");function D(e){return"[object Function]"===O.call(e)}var M=k("URLSearchParams");function U(e,t){if(null!=e)if("object"!==s(e)&&(e=[e]),T(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var B,F=(B="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return B&&e instanceof B}),H={isArray:T,isArrayBuffer:L,isBuffer:function(e){return null!==e&&!A(e)&&null!==e.constructor&&!A(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||O.call(e)===t||D(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&L(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:P,isPlainObject:R,isUndefined:A,isDate:C,isFile:j,isBlob:I,isFunction:D,isStream:function(e){return P(e)&&D(e.pipe)},isURLSearchParams:M,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:U,merge:function e(){var t={};function n(n,r){R(t[r])&&R(n)?t[r]=e(t[r],n):R(n)?t[r]=e({},n):T(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)U(arguments[r],n);return t},extend:function(e,t,n){return U(t,(function(t,r){e[r]=n&&"function"==typeof t?S(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:_,kindOfTest:k,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(A(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:F,isFileList:N},G=H;function q(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var J=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(G.isURLSearchParams(t))r=t.toString();else{var o=[];G.forEach(t,(function(e,t){null!=e&&(G.isArray(e)?t+="[]":e=[e],G.forEach(e,(function(e){G.isDate(e)?e=e.toISOString():G.isObject(e)&&(e=JSON.stringify(e)),o.push(q(t)+"="+q(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},W=H;function V(){this.handlers=[]}V.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},V.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},V.prototype.forEach=function(e){W.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var K=V,z=H,Y=H;function $(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Y.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var X=$.prototype,Q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){Q[e]={value:e}})),Object.defineProperties($,Q),Object.defineProperty(X,"isAxiosError",{value:!0}),$.from=function(e,t,n,r,o,i){var a=Object.create(X);return Y.toFlatObject(e,a,(function(e){return e!==Error.prototype})),$.call(a,e.message,t,n,r,o),a.name=e.name,i&&Object.assign(a,i),a};var Z=$,ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},te=H;var ne=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":te.isDate(e)?e.toISOString():te.isArrayBuffer(e)||te.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,i){if(te.isPlainObject(o)||te.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+i);n.push(o),te.forEach(o,(function(n,o){if(!te.isUndefined(n)){var a,c=i?i+"."+o:o;if(n&&!i&&"object"===s(n))if(te.endsWith(o,"{}"))n=JSON.stringify(n);else if(te.endsWith(o,"[]")&&(a=te.toArray(n)))return void a.forEach((function(e){!te.isUndefined(e)&&t.append(c,r(e))}));e(n,c)}})),n.pop()}else t.append(i,r(o))}(e),t},re=Z,oe=H,ie=oe.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),oe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),oe.isString(r)&&a.push("path="+r),oe.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ae=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},ce=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},se=function(e,t){return e&&!ae(t)?ce(e,t):t},ue=H,le=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],fe=H,pe=fe.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=fe.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},de=Z;function he(e){de.call(this,null==e?"canceled":e,de.ERR_CANCELED),this.name="CanceledError"}H.inherits(he,de,{__CANCEL__:!0});var ve=he,ye=H,me=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new re("Request failed with status code "+n.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)},ge=ie,be=J,we=se,xe=function(e){var t,n,r,o={};return e?(ue.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=ue.trim(e.substr(0,r)).toLowerCase(),n=ue.trim(e.substr(r+1)),t){if(o[t]&&le.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o},Ee=pe,Se=ee,Oe=Z,_e=ve,ke=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},Te=function(e){return new Promise((function(t,n){var r,o=e.data,i=e.headers,a=e.responseType;function c(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}ye.isFormData(o)&&ye.isStandardBrowserEnv()&&delete i["Content-Type"];var s=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(u+":"+l)}var f=we(e.baseURL,e.url);function p(){if(s){var r="getAllResponseHeaders"in s?xe(s.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:r,config:e,request:s};me((function(e){t(e),c()}),(function(e){n(e),c()}),o),s=null}}if(s.open(e.method.toUpperCase(),be(f,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=p:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(p)},s.onabort=function(){s&&(n(new Oe("Request aborted",Oe.ECONNABORTED,e,s)),s=null)},s.onerror=function(){n(new Oe("Network Error",Oe.ERR_NETWORK,e,s,s)),s=null},s.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||Se;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Oe(t,r.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,s)),s=null},ye.isStandardBrowserEnv()){var d=(e.withCredentials||Ee(f))&&e.xsrfCookieName?ge.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in s&&ye.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:s.setRequestHeader(t,e)})),ye.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),a&&"json"!==a&&(s.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){s&&(n(!e||e&&e.type?new _e:e),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),o||(o=null);var h=ke(f);h&&-1===["http","https","file"].indexOf(h)?n(new Oe("Unsupported protocol "+h+":",Oe.ERR_BAD_REQUEST,e)):s.send(o)}))},Ae=H,Le=function(e,t){z.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Pe=Z,Re=ne,Ce={"Content-Type":"application/x-www-form-urlencoded"};function je(e,t){!Ae.isUndefined(e)&&Ae.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Ie,Ne={transitional:ee,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Ie=Te),Ie),transformRequest:[function(e,t){if(Le(t,"Accept"),Le(t,"Content-Type"),Ae.isFormData(e)||Ae.isArrayBuffer(e)||Ae.isBuffer(e)||Ae.isStream(e)||Ae.isFile(e)||Ae.isBlob(e))return e;if(Ae.isArrayBufferView(e))return e.buffer;if(Ae.isURLSearchParams(e))return je(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=Ae.isObject(e),o=t&&t["Content-Type"];if((n=Ae.isFileList(e))||r&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return Re(n?{"files[]":e}:e,i&&new i)}return r||"application/json"===o?(je(t,"application/json"),function(e,t,n){if(Ae.isString(e))try{return(t||JSON.parse)(e),Ae.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Ne.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&Ae.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Pe.from(e,Pe.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ae.forEach(["delete","get","head"],(function(e){Ne.headers[e]={}})),Ae.forEach(["post","put","patch"],(function(e){Ne.headers[e]=Ae.merge(Ce)}));var De=Ne,Me=H,Ue=De,Be=function(e){return!(!e||!e.__CANCEL__)},Fe=H,He=function(e,t,n){var r=this||Ue;return Me.forEach(n,(function(n){e=n.call(r,e,t)})),e},Ge=Be,qe=De,Je=ve;function We(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Je}var Ve=H,Ke=function(e,t){t=t||{};var n={};function r(e,t){return Ve.isPlainObject(e)&&Ve.isPlainObject(t)?Ve.merge(e,t):Ve.isPlainObject(t)?Ve.merge({},t):Ve.isArray(t)?t.slice():t}function o(n){return Ve.isUndefined(t[n])?Ve.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!Ve.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return Ve.isUndefined(t[n])?Ve.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function c(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return Ve.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=s[e]||o,r=t(e);Ve.isUndefined(r)&&t!==c||(n[e]=r)})),n},ze="0.27.2",Ye=ze,$e=Z,Xe={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Xe[e]=function(n){return s(n)===e||"a"+(t<1?"n ":" ")+e}}));var Qe={};Xe.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ye+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new $e(r(o," has been removed"+(t?" in "+t:"")),$e.ERR_DEPRECATED);return t&&!Qe[o]&&(Qe[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Ze={assertOptions:function(e,t,n){if("object"!==s(e))throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],u=void 0===c||a(c,i,e);if(!0!==u)throw new $e("option "+i+" must be "+u,$e.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $e("Unknown option "+i,$e.ERR_BAD_OPTION)}},validators:Xe},et=H,tt=J,nt=K,rt=function(e){return We(e),e.headers=e.headers||{},e.data=He.call(e,e.data,e.headers,e.transformRequest),e.headers=Fe.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Fe.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||qe.adapter)(e).then((function(t){return We(e),t.data=He.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Ge(t)||(We(e),t&&t.response&&(t.response.data=He.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ot=Ke,it=se,at=Ze,ct=at.validators;function st(e){this.defaults=e,this.interceptors={request:new nt,response:new nt}}st.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=ot(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&at.assertOptions(n,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var c=[rt,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(a),i=Promise.resolve(t);c.length;)i=i.then(c.shift(),c.shift());return i}for(var s=t;r.length;){var u=r.shift(),l=r.shift();try{s=u(s)}catch(e){l(e);break}}try{i=rt(s)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},st.prototype.getUri=function(e){e=ot(this.defaults,e);var t=it(e.baseURL,e.url);return tt(t,e.params,e.paramsSerializer)},et.forEach(["delete","get","head","options"],(function(e){st.prototype[e]=function(t,n){return this.request(ot(n||{},{method:e,url:t,data:(n||{}).data}))}})),et.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(ot(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)}));var ut=st,lt=ve;function ft(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new lt(e),t(n.reason))}))}ft.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},ft.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},ft.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},ft.source=function(){var e;return{token:new ft((function(t){e=t})),cancel:e}};var pt=ft,dt=H,ht=H,vt=E,yt=ut,mt=Ke;var gt=function e(t){var n=new yt(t),r=vt(yt.prototype.request,n);return ht.extend(r,yt.prototype,n),ht.extend(r,n),r.create=function(n){return e(mt(t,n))},r}(De);gt.Axios=yt,gt.CanceledError=ve,gt.CancelToken=pt,gt.isCancel=Be,gt.VERSION=ze,gt.toFormData=ne,gt.AxiosError=Z,gt.Cancel=gt.CanceledError,gt.all=function(e){return Promise.all(e)},gt.spread=function(e){return function(t){return e.apply(null,t)}},gt.isAxiosError=function(e){return dt.isObject(e)&&!0===e.isAxiosError},x.exports=gt,x.exports.default=gt;var bt=x.exports,wt={exports:{}};
|
|
4
4
|
/*!
|
|
5
5
|
* JavaScript Cookie v2.2.1
|
|
6
6
|
* https://github.com/js-cookie/js-cookie
|
|
@@ -8,6 +8,6 @@ e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exp
|
|
|
8
8
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
9
9
|
* Released under the MIT license
|
|
10
10
|
*/
|
|
11
|
-
!function(e,t){var n;n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var s in i)i[s]&&(c+="; "+s,!0!==i[s]&&(c+="="+i[s].split(";")[0]));return document.cookie=t+"="+n+c}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var c=i[a].split("="),s=c.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var u=t(c[0]);if(s=(r.read||r)(s,u)||t(s),n)try{s=JSON.parse(s)}catch(e){}if(o[u]=s,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},e.exports=n()}(
|
|
11
|
+
!function(e,t){var n;n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var s in i)i[s]&&(c+="; "+s,!0!==i[s]&&(c+="="+i[s].split(";")[0]));return document.cookie=t+"="+n+c}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var c=i[a].split("="),s=c.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var u=t(c[0]);if(s=(r.read||r)(s,u)||t(s),n)try{s=JSON.parse(s)}catch(e){}if(o[u]=s,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},e.exports=n()}(wt);var xt=wt.exports,Et=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"checkCookie",value:function(){return{user:"1"===xt.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkAPI",value:(t=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bt.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}(),St="Carbon for IBM.com v1.47.0";var Ot;function _t(){return Ot||(Ot=new Promise((function(e,t){var n=0;!function r(){f.digitalData&&f.digitalData.page&&f.digitalData.page.isDataLayerReady?e():++n<50?setTimeout((function(){r()}),100):t(new Error("Timeout polling for digital data object."))}()}))),Ot}var kt=function(){function e(){o(this,e)}var t,n,r;return l(e,null,[{key:"isReady",value:function(){return _t()}},{key:"getAll",value:(r=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData})).catch((function(){return null}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"setVersion",value:(n=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){f.digitalData.page.pageInfo.version=St}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getLanguage",value:(t=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData.page.pageInfo.language}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),Tt="https://1.www.s81c.com/common/carbon/plex",At={ar:{entry:"sans-arabic",family:"IBM Plex Sans Arabic"},ja:{entry:"sans-jp",family:"IBM Plex Sans JP"},ko:{entry:"sans-kr",family:"IBM Plex Sans KR"}},Lt={100:"thin",200:"extralight",300:"light",400:"regular",450:"text",500:"medium",600:"semibold",700:"bold"};function Pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];At[e]&&(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length){var n=document.createElement("link");n.href="".concat(Tt,"/").concat(At[e].entry,".css"),n.type="text/css",n.rel="stylesheet",n.media="screen,print",document.getElementsByTagName("head")[0].appendChild(n)}else t.forEach((function(t){var n=document.createElement("link");n.href="".concat(Tt,"/").concat(At[e].entry,"-").concat(Lt[t],".css"),n.type="text/css",n.rel="stylesheet",n.media="screen,print",document.getElementsByTagName("head")[0].appendChild(n)}))}(e,t),function(e){document.body.style.fontFamily="".concat(At[e].family,",IBM Plex Sans,Helvetica Neue,Arial,sans-serif")}(e))}var Rt={exports:{}},Ct={exports:{}},jt={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(jt),function(e){var t=jt.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Ct);var It={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(It);var Nt={exports:{}};!function(e){var t=jt.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(Nt);var Dt={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(Dt),function(e){var t=Ct.exports,n=It.exports,r=Nt.exports,o=Dt.exports;e.exports=function(e){return t(e)||n(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(Rt);var Mt=n(Rt.exports);function Ut(e){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(e)}function Bt(){
|
|
12
12
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
13
|
-
qt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new _(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};s(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(T([])));m&&m!==t&&n.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var s=l(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Gt(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:d,configurable:!0}),d.displayName=s(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Jt(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}var Wt=process&&process.env.GEO_API||"https://api.www.s81c.com/webmaster/dbip/";function Vt(){return Kt.apply(this,arguments)}function Kt(){var e;return e=qt().mark((function e(){var t,n;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wt.get(Wt,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 2:return t=e.sent,n=t&&t.country,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})),Kt=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Jt(i,r,o,a,c,"next",e)}function c(e){Jt(i,r,o,a,c,"throw",e)}a(void 0)}))},Kt.apply(this,arguments)}function zt(e){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(e)}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==zt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===zt(i)?i:String(i)),r)}var o,i}var $t="ipcInfo",Xt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"get",value:function(){var e,t,n=Et.get($t);if(n)return decodeURIComponent(n).split(";").map((function(n){var r=n.split("=");"cc"===r[0]&&(e=r[1]),"lc"===r[0]&&(t=r[1])})),{cc:e,lc:t}}},{key:"set",value:function(e){var t=e.cc,n=e.lc,r="cc=".concat(t,";lc=").concat(n);Et.set($t,encodeURIComponent(r),{expires:365,domain:".ibm.com"})}}],(n=null)&&Yt(t.prototype,n),r&&Yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qt=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",Zt={lc:"en",cc:"us"},en="".concat(Qt,"/common/js/dynamicnav/www/countrylist/jsononly"),tn={headers:{"Content-Type":"application/json; charset=utf-8"}},nn="dds-countrylist",rn={};var on=function(){function e(){o(this,e)}var t,n,r;return l(e,null,[{key:"clearCache",value:function(){if("undefined"!=typeof sessionStorage){Object.keys(rn).forEach((function(e){return delete rn[e]}));for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf(nn)&&sessionStorage.removeItem(t)}}}},{key:"getLocale",value:(r=m(w.mark((function e(){var t,n,r,o,i,a,c;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Xt.get(),e.next=3,this.getLang();case 3:if(!(n=e.sent)){e.next=8;break}return e.abrupt("return",n);case 8:if(!(t&&t.cc&&t.lc)){e.next=14;break}return e.next=11,this.getList(t);case 11:return e.abrupt("return",t);case 14:return e.next=16,Vt();case 16:if(r=e.sent,o=f.navigator.language,i=o.split("-")[0],!r||!i){e.next=26;break}return e.next=22,this.getList({cc:r,lc:i});case 22:return a=e.sent,c=this.verifyLocale(r,i,a),Xt.set(c),e.abrupt("return",c);case 26:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLang",value:function(){return new Promise((function(e){var t=function(){var e,t,n=Object.assign({},f.digitalData||{});if(null!==(e=n.page)&&void 0!==e&&null!==(t=e.pageInfo)&&void 0!==t&&t.language){var r,o,i,a,c,s={};return null!==(r=n.page)&&void 0!==r&&null!==(o=r.pageInfo)&&void 0!==o&&o.language.includes("-")&&null!==(i=n.page)&&void 0!==i&&null!==(a=i.pageInfo)&&void 0!==a&&null!==(c=a.ibm)&&void 0!==c&&c.country?(s.lc=n.page.pageInfo.language.substring(0,2).toLowerCase(),s.cc=n.page.pageInfo.ibm.country.toLowerCase().trim(),s.cc.indexOf(",")>-1&&(s.cc=s.cc.substring(0,s.cc.indexOf(",")).trim()),"gb"===s.cc&&(s.cc="uk"),"zz"===s.cc&&(s.cc="us")):s.lc=n.page.pageInfo.language.substring(0,2).toLowerCase(),s}return!1}();e(t||function(){var e,t;if(null!==(e=f.document)&&void 0!==e&&null!==(t=e.documentElement)&&void 0!==t&&t.lang){var n=f.document.documentElement.lang.toLowerCase();if(-1===n.indexOf("-"))return{lc:n};var r=n.split("-");return{cc:r[1],lc:r[0]}}return Zt}())}))}},{key:"getLangDisplay",value:(n=m(w.mark((function e(t){var n,r,o,i;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,this.getLang();case 6:e.t0=e.sent;case 7:return n=e.t0,e.next=10,this.getList(n);case 10:if(r=e.sent,o=[],r.regionList.forEach((function(e){o=o.concat(e.countryList)})),!(i=o.filter((function(e){if(-1!==e.locale.findIndex((function(e){return e[0]==="".concat(n.lc,"-").concat(n.cc)}))){var t,r=e.locale.filter((function(e){return e.includes("".concat(n.lc,"-").concat(n.cc))}));return(t=e.locale).splice.apply(t,[0,e.locale.length].concat(Ht(r))),e}}))).length){e.next=18;break}return e.abrupt("return","".concat(i[0].name," — ").concat(i[0].locale[0][1]));case 18:return e.abrupt("return","United States — English");case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getList",value:(t=m(w.mark((function e(t){var n,r,o=this;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cc,r=t.lc,e.abrupt("return",new Promise((function(e,t){o.fetchList(n,r,e,t)})));case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"fetchList",value:function(e,t,n,r){var o=this,i="undefined"!==e?"".concat(t,"-").concat(e):"".concat(t),a="".concat(nn,"-").concat(i),c=this.getSessionCache(a);if(c)n(c);else{if(!rn[i]){var s="".concat(en,"/").concat("undefined"!==e?"".concat(e).concat(t):"".concat(t),"-utf8.json");rn[i]=wt.get(s,tn).then((function(e){var t=e.data;return t.timestamp=Date.now(),sessionStorage.setItem("".concat(nn,"-").concat(i),JSON.stringify(t)),t}))}rn[i].then(n,(function(i){e===Zt.cc&&t===Zt.lc?r(i):o.fetchList(Zt.cc,Zt.lc,n,r)}))}}},{key:"verifyLocale",value:function(e,t,n){var r,o;return!(n&&n.regionList.forEach((function(n){return n.countryList.forEach((function(n){var i=n.locale[0][0].split("-"),a=i[1],c=i[0];a===e&&c===t?o={cc:e,lc:t}:a!==e||r||(r=c)}))})))&&r&&(o={cc:e,lc:r}),o}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]),e}(),an=on,cn=!1;var sn=process&&process.env.MARKETING_SEARCH_HOST||"https://www.ibm.com",un=process&&process.env.MARKETING_SEARCH_VERSION||"v3",ln="".concat(sn,"/marketplace/api/search/").concat(un,"/combined_suggestions"),fn=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"getResults",value:(t=m(w.mark((function e(t){var n;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(ln,"?locale=").concat("en","-").concat("us","&q=").concat(encodeURIComponent(t)),e.next=5,wt.get(n,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),pn=fn,dn=function(){function e(){o(this,e)}return l(e,null,[{key:"setMastheadLogo",value:function(e){if(void 0===e)return!1;var t=(new Date).getTime(),n=e.end?Date.parse(e.end):null,r=!!(n&&t>n);return!(null===e.svg||r||e.denylist&&-1!==e.denylist.indexOf(location.pathname))&&!(!e.allowlist||0!=e.allowlist.length&&-1===e.allowlist.indexOf(location.pathname)||!e.svg)}}]),e}(),hn=process&&(process.env.REACT_APP_PROFILE_HOST||process.env.PROFILE_HOST)||"https://login.ibm.com",vn=process&&process.env.PROFILE_VERSION||"v1",yn="".concat(hn,"/").concat(vn,"/mgmt/idaas/user/status/"),mn=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"getUserStatus",value:(t=m(w.mark((function e(){return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wt.get(yn,{headers:{"Content-Type":"application/json; charset=utf-8"},withCredentials:!0}).then((function(e){return e.data})).catch((function(e){return console.log("Failed Profile Network Call",e),{user:"Unauthenticated"}}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}(),gn=mn,bn=process&&process.env.SEARCH_TYPEAHEAD_API||"https://www-api.ibm.com",wn=process&&process.env.SEARCH_TYPEAHEAD_VERSION||"v1",xn="".concat(bn,"/search/typeahead/").concat(wn),En=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"getResults",value:(t=m(w.mark((function e(t){var n,r,o,i,a=arguments;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"",e.next=3,an.getLang();case 3:return r=e.sent,o=["lang=".concat(r.lc).concat(r.cc?"&cc=".concat(r.cc):""),"query=".concat(encodeURIComponent(t)),"".concat(n?"appid=".concat(n):"")].filter((function(e){return e})).join("&"),i="".concat(xn,"?").concat(o),e.next=8,wt.get(i,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data.response}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),Sn=En,On=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",_n="/common/carbon-for-ibm-dotcom/translations/masthead-footer",Tn=process&&(process.env.REACT_APP_DDS_TRANSLATION_ENDPOINT||process.env.DDS_TRANSLATION_ENDPOINT)||_n,kn={},An="en",Ln="us",Pn=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"clearCache",value:function(e){var t=this.getSessionKey(e);if("undefined"!=typeof sessionStorage){Object.keys(kn).forEach((function(e){return delete kn[e]}));for(var n=0;n<sessionStorage.length;++n){var r=sessionStorage.key(n);0===r.indexOf(t)&&sessionStorage.removeItem(r)}}}},{key:"getTranslation",value:(t=m(w.mark((function e(t,n){var r,o,i,a=this;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="en",o="us",!(t&&t.lc&&t.cc)){e.next=7;break}r=t.lc,o=t.cc,e.next=12;break;case 7:return e.next=9,an.getLocale();case 9:i=e.sent,r=i.lc,o=i.cc;case 12:return e.abrupt("return",new Promise((function(e,t){a.fetchTranslation(r,o,n,e,t)})));case 13:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"fetchTranslation",value:function(e,t,n,r,o){var i=this,a=this.getSessionKey(n),c="".concat(a,"-").concat(t,"-").concat(e),s=this.getSessionCache(c);if(s)r(s);else{var u="undefined"!==t?"".concat(t,"-").concat(e):"".concat(e);if(!kn[u]){var l=n||Tn,f="undefined"!==t?"".concat(t).concat(e):"".concat(e),p=/((http(s?)):\/\/)/g.test(n)?"":On,d="".concat(p).concat(l,"/").concat(f,".json");kn[u]=wt.get(d,{headers:{"Content-Type":"text/plain",origin:On}}).then((function(e){return i.transformData(e.data)})).then((function(e){return e.timestamp=Date.now(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("".concat(a,"-").concat(u),JSON.stringify(e)),e}))}kn[u].then(r,(function(a){t===Ln&&e===An?o(a):i.fetchTranslation(An,Ln,n,r,o)}))}}},{key:"getSessionKey",value:function(e){var t="dds-translation";(_n!==Tn||e)&&(t=(e||Tn).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,""));return t}},{key:"transformData",value:function(e){var t,n=null===(t=e.profileMenu)||void 0===t?void 0:t.signedout;if(n){var r="state=https%3A%2F%2Fwww.ibm.com",o=n.findIndex((function(e){var t;return-1!==(null===(t=e.url)||void 0===t?void 0:t.indexOf(r))}));if(-1!==o&&f.location){var i=encodeURIComponent(f.location.href);e.profileMenu.signedout[o].url=n[o].url.replace(r,"state=".concat(i))}}return e.footerMenu.push(e.socialFollow),e}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]),e}(),Rn=Pn,jn={exports:{}};!function(e){var t=a.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(jn);var Cn=n(jn.exports);function In(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(Object(n),!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dn=process&&(process.env.REACT_APP_KALTURA_PARTNER_ID||process.env.KALTURA_PARTNER_ID)||1773841,Mn=process&&(process.env.REACT_APP_KALTURA_UICONF_ID||process.env.KALTURA_UICONF_ID)||27941801,Un="https://cdnapisec.kaltura.com/p/".concat(Dn,"/sp/").concat(Dn,"00/embedIframeJs/uiconf_id/").concat(Mn,"/partner_id/").concat(Dn),Bn="https://cdnsecakmi.kaltura.com/p/".concat(Dn,"/thumbnail/entry_id/"),Fn=50,Hn=0,Gn=!1;function qn(e,t){f.kWidget?(Gn=!1,e()):Gn?++Hn<Fn?setTimeout((function(){qn(e,t)}),100):t():(!function(){Gn=!0;var e=document.createElement("script");e.src=Un,e.async=!0,document.body.appendChild(e)}(),qn(e,t))}var Jn={},Wn=function(){function e(){o(this,e)}var t,n;return l(e,null,[{key:"checkScript",value:function(){return new Promise((function(e,t){qn(e,t)}))}},{key:"getThumbnailUrl",value:function(e){var t=e.mediaId,n=e.height,r=e.width,o=Bn+t;return n&&(o+="/height/".concat(n)),r&&(o+="/width/".concat(r)),o}},{key:"embedMedia",value:(n=m(w.mark((function e(t,n){var r,o,i,a,c=arguments;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},o=!(c.length>3&&void 0!==c[3])||c[3],i=c.length>4&&void 0!==c[4]?c[4]:function(){},a=this.fireEvent,e.next=6,this.checkScript().then((function(){var e=new Promise((function(e){var c;if(!document.getElementById(n)&&document.querySelector("dds-tabs-extended-media")){var s=document.createElement("div");s.classList.add("bx--video-player__video"),s.setAttribute("id",n),document.body.append(s),c=!0}f.kWidget.embed({targetId:n,wid:"_"+Dn,uiconf_id:Mn,entry_id:t,flashvars:Nn(Nn({},{autoPlay:!0,closedCaptions:{plugin:!0},titleLabel:{plugin:!0,align:"left",text:"{mediaProxy.entry.name}"},ibm:{template:"idl"}}),r),params:{wmode:"transparent"},readyCallback:function(n){var r=document.getElementById(n);o&&(r.addJsListener("playerPaused.ibm",(function(){a({playerState:1,kdp:r,mediaId:t})})),r.addJsListener("playerPlayed.ibm",(function(){a({playerState:2,kdp:r,mediaId:t})})),r.addJsListener("playerPlayEnd.ibm",(function(){a({playerState:3,kdp:r,mediaId:t})})),r.addJsListener("IbmCtaEvent.ibm",(function(e){var n=(null==e?void 0:e.customMetricsData)||{};a({playerState:101,kdp:r,mediaId:t,customMetricsData:n})}))),i(r),e(r)}}),c&&document.querySelector("dds-tabs-extended-media").shadowRoot.querySelector(".bx--accordion__item--active dds-video-player").lastChild.parentElement.appendChild(document.getElementById(n))}));return{kWidget:function(){return e}}}));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"fireEvent",value:function(e){var t=e.playerState,n=e.kdp,r=e.mediaId,o=e.customMetricsData,i=void 0===o?{}:o,a=Math.round(n.evaluate("{video.player.currentTime}"));2===t&&0===a&&(t=0);var c={playerType:"kaltura",title:n.evaluate("{mediaProxy.entry.name}"),currentTime:a,duration:n.evaluate("{mediaProxy.entry.duration}"),playerState:t,mediaId:r,customMetricsData:i};v.videoPlayerStats(c)}},{key:"api",value:(t=m(w.mark((function e(t){return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkScript().then((function(){return Jn&&Jn[t]?Jn[t]:new Promise((function(e){return new f.kWidget.api({wid:"_"+Dn}).doRequest({service:"media",action:"get",entryId:t},(function(t){Jn[t.id]=t,e(t)}))}))}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getMediaDuration",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(arguments.length>1?arguments[1]:void 0){var n=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60),o=Math.floor(t/36e5%24);return o=o>0?o+":":"",n=n<10?"0"+n:n,t&&"("+o+r+":"+n+")"}var i=(null==f||null===(e=f.kWidget)||void 0===e?void 0:e.seconds2Measurements(t))||{},a=(null==i?void 0:i.hours)||0,c=(null==i?void 0:i.minutes)||0,s=(null==i?void 0:i.seconds)||0;return c=(a>0?"0"+c:c).toString().slice(-2),(a=a>0?a+":":"")+c+":"+(s=("0"+s).slice(-2))}},{key:"getMediaDurationFormatted",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=t;(arguments.length>1?arguments[1]:void 0)||(n=1e3*t);var r=Math.floor(n/1e3%60),o=Math.floor(n/6e4%60),i=Math.floor(n/36e5%24),a=e.formatTime(r,"second"),c=i||o?e.formatTime(o,"minute"):"",s=i?e.formatTime(i,"hour"):"";return"".concat(s," ").concat(c," ").concat(a).trim()}},{key:"formatTime",value:function(e,t){var n=f.document.documentElement.lang||f.navigator.language;return new Intl.NumberFormat(n,{style:"unit",unitDisplay:"long",unit:t}).format(e)}}]),e}(),Vn=Wn;e.AnalyticsAPI=v,e.CloudAccountAuthAPI=Ot,e.DDOAPI=Pt,e.KalturaPlayerAPI=Vn,e.LocaleAPI=an,e.MarketingSearchAPI=pn,e.MastheadLogo=dn,e.ProfileAPI=gn,e.SearchTypeaheadAPI=Sn,e.TranslationAPI=Rn,e.globalInit=function(){cn||(cn=!0,Pt.setVersion().catch((function(e){console.error("Error setting the version of the library in the DDO:",e)})),an.getLang().then((function(e){It(e.lc)})),v.initAll())},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
13
|
+
Bt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new _(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};s(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(k([])));m&&m!==t&&n.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var s=l(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Ut(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:d,configurable:!0}),d.displayName=s(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=k,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Ft(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}var Ht=process&&process.env.GEO_API||"https://api.www.s81c.com/webmaster/dbip/";function Gt(){return qt.apply(this,arguments)}function qt(){var e;return e=Bt().mark((function e(){var t,n;return Bt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bt.get(Ht,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 2:return t=e.sent,n=t&&t.country,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})),qt=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ft(i,r,o,a,c,"next",e)}function c(e){Ft(i,r,o,a,c,"throw",e)}a(void 0)}))},qt.apply(this,arguments)}function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function Wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Jt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Jt(i)?i:String(i)),r)}var o,i}var Vt="ipcInfo",Kt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"get",value:function(){var e,t,n=xt.get(Vt);if(n)return decodeURIComponent(n).split(";").map((function(n){var r=n.split("=");"cc"===r[0]&&(e=r[1]),"lc"===r[0]&&(t=r[1])})),{cc:e,lc:t}}},{key:"set",value:function(e){var t=e.cc,n=e.lc,r="cc=".concat(t,";lc=").concat(n);xt.set(Vt,encodeURIComponent(r),{expires:365,domain:".ibm.com"})}}],(n=null)&&Wt(t.prototype,n),r&&Wt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),zt=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",Yt={lc:"en",cc:"us"},$t="".concat(zt,"/common/js/dynamicnav/www/countrylist/jsononly"),Xt={headers:{"Content-Type":"application/json; charset=utf-8"}},Qt="dds-countrylist",Zt={};var en=function(){function e(){o(this,e)}var t,n,r;return l(e,null,[{key:"clearCache",value:function(){if("undefined"!=typeof sessionStorage){Object.keys(Zt).forEach((function(e){return delete Zt[e]}));for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf(Qt)&&sessionStorage.removeItem(t)}}}},{key:"getLocale",value:(r=y(b.mark((function e(){var t,n,r,o,i,a,c;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Kt.get(),e.next=3,this.getLang();case 3:if(!(n=e.sent)){e.next=8;break}return e.abrupt("return",n);case 8:if(!(t&&t.cc&&t.lc)){e.next=14;break}return e.next=11,this.getList(t);case 11:return e.abrupt("return",t);case 14:return e.next=16,Gt();case 16:if(r=e.sent,o=f.navigator.language,i=o.split("-")[0],!r||!i){e.next=26;break}return e.next=22,this.getList({cc:r,lc:i});case 22:return a=e.sent,c=this.verifyLocale(r,i,a),Kt.set(c),e.abrupt("return",c);case 26:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLang",value:function(){return new Promise((function(e){var t=function(){var e,t,n=Object.assign({},f.digitalData||{});if(null!==(e=n.page)&&void 0!==e&&null!==(t=e.pageInfo)&&void 0!==t&&t.language){var r,o,i,a,c,s={};return null!==(r=n.page)&&void 0!==r&&null!==(o=r.pageInfo)&&void 0!==o&&o.language.includes("-")&&null!==(i=n.page)&&void 0!==i&&null!==(a=i.pageInfo)&&void 0!==a&&null!==(c=a.ibm)&&void 0!==c&&c.country?(s.lc=n.page.pageInfo.language.substring(0,2).toLowerCase(),s.cc=n.page.pageInfo.ibm.country.toLowerCase().trim(),s.cc.indexOf(",")>-1&&(s.cc=s.cc.substring(0,s.cc.indexOf(",")).trim()),"gb"===s.cc&&(s.cc="uk"),"zz"===s.cc&&(s.cc="us")):s.lc=n.page.pageInfo.language.substring(0,2).toLowerCase(),s}return!1}();e(t||function(){var e,t;if(null!==(e=f.document)&&void 0!==e&&null!==(t=e.documentElement)&&void 0!==t&&t.lang){var n=f.document.documentElement.lang.toLowerCase();if(-1===n.indexOf("-"))return{lc:n};var r=n.split("-");return{cc:r[1],lc:r[0]}}return Yt}())}))}},{key:"getLangDisplay",value:(n=y(b.mark((function e(t){var n,r,o,i;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,this.getLang();case 6:e.t0=e.sent;case 7:return n=e.t0,e.next=10,this.getList(n);case 10:if(r=e.sent,o=[],r.regionList.forEach((function(e){o=o.concat(e.countryList)})),!(i=o.filter((function(e){if(-1!==e.locale.findIndex((function(e){return e[0]==="".concat(n.lc,"-").concat(n.cc)}))){var t,r=e.locale.filter((function(e){return e.includes("".concat(n.lc,"-").concat(n.cc))}));return(t=e.locale).splice.apply(t,[0,e.locale.length].concat(Mt(r))),e}}))).length){e.next=18;break}return e.abrupt("return","".concat(i[0].name," — ").concat(i[0].locale[0][1]));case 18:return e.abrupt("return","United States — English");case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getList",value:(t=y(b.mark((function e(t){var n,r,o=this;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cc,r=t.lc,e.abrupt("return",new Promise((function(e,t){o.fetchList(n,r,e,t)})));case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"fetchList",value:function(e,t,n,r){var o=this,i="undefined"!==e?"".concat(t,"-").concat(e):"".concat(t),a="".concat(Qt,"-").concat(i),c=this.getSessionCache(a);if(c)n(c);else{if(!Zt[i]){var s="".concat($t,"/").concat("undefined"!==e?"".concat(e).concat(t):"".concat(t),"-utf8.json");Zt[i]=bt.get(s,Xt).then((function(e){var t=e.data;return t.timestamp=Date.now(),sessionStorage.setItem("".concat(Qt,"-").concat(i),JSON.stringify(t)),t}))}Zt[i].then(n,(function(i){e===Yt.cc&&t===Yt.lc?r(i):o.fetchList(Yt.cc,Yt.lc,n,r)}))}}},{key:"verifyLocale",value:function(e,t,n){var r,o;return!(n&&n.regionList.forEach((function(n){return n.countryList.forEach((function(n){var i=n.locale[0][0].split("-"),a=i[1],c=i[0];a===e&&c===t?o={cc:e,lc:t}:a!==e||r||(r=c)}))})))&&r&&(o={cc:e,lc:r}),o}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]),e}(),tn=!1;var nn=process&&process.env.MARKETING_SEARCH_HOST||"https://www.ibm.com",rn=process&&process.env.MARKETING_SEARCH_VERSION||"v3",on="".concat(nn,"/marketplace/api/search/").concat(rn,"/combined_suggestions"),an=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"getResults",value:(t=y(b.mark((function e(t){var n;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(on,"?locale=").concat("en","-").concat("us","&q=").concat(encodeURIComponent(t)),e.next=5,bt.get(n,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),cn=function(){function e(){o(this,e)}return l(e,null,[{key:"setMastheadLogo",value:function(e){if(void 0===e)return!1;var t=(new Date).getTime(),n=e.end?Date.parse(e.end):null,r=!!(n&&t>n);return!(null===e.svg||r||e.denylist&&-1!==e.denylist.indexOf(location.pathname))&&!(!e.allowlist||0!=e.allowlist.length&&-1===e.allowlist.indexOf(location.pathname)||!e.svg)}}]),e}(),sn=process&&(process.env.REACT_APP_PROFILE_HOST||process.env.PROFILE_HOST)||"https://login.ibm.com",un=process&&process.env.PROFILE_VERSION||"v1",ln="".concat(sn,"/").concat(un,"/mgmt/idaas/user/status/"),fn=function(){function e(){o(this,e)}var t,n;return l(e,null,[{key:"getUserStatus",value:(n=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bt.get(ln,{headers:{"Content-Type":"application/json; charset=utf-8"},withCredentials:!0}).then((function(e){return e.data})).catch((function(e){return console.log("Failed Profile Network Call",e),{user:"Unauthenticated"}}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"checkCloudCookie",value:function(){return{user:"1"===xt.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkCloudDocsAPI",value:(t=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bt.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}(),pn=process&&process.env.SEARCH_TYPEAHEAD_API||"https://www-api.ibm.com",dn=process&&process.env.SEARCH_TYPEAHEAD_VERSION||"v1",hn="".concat(pn,"/search/typeahead/").concat(dn),vn=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"getResults",value:(t=y(b.mark((function e(t){var n,r,o,i,a=arguments;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"",e.next=3,en.getLang();case 3:return r=e.sent,o=["lang=".concat(r.lc).concat(r.cc?"&cc=".concat(r.cc):""),"query=".concat(encodeURIComponent(t)),"".concat(n?"appid=".concat(n):"")].filter((function(e){return e})).join("&"),i="".concat(hn,"?").concat(o),e.next=8,bt.get(i,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data.response}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),yn=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",mn="/common/carbon-for-ibm-dotcom/translations/masthead-footer",gn=process&&(process.env.REACT_APP_DDS_TRANSLATION_ENDPOINT||process.env.DDS_TRANSLATION_ENDPOINT)||mn,bn={},wn="en",xn="us",En=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"clearCache",value:function(e){var t=this.getSessionKey(e);if("undefined"!=typeof sessionStorage){Object.keys(bn).forEach((function(e){return delete bn[e]}));for(var n=0;n<sessionStorage.length;++n){var r=sessionStorage.key(n);0===r.indexOf(t)&&sessionStorage.removeItem(r)}}}},{key:"getTranslation",value:(t=y(b.mark((function e(t,n){var r,o,i,a=this;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="en",o="us",!(t&&t.lc&&t.cc)){e.next=7;break}r=t.lc,o=t.cc,e.next=12;break;case 7:return e.next=9,en.getLocale();case 9:i=e.sent,r=i.lc,o=i.cc;case 12:return e.abrupt("return",new Promise((function(e,t){a.fetchTranslation(r,o,n,e,t)})));case 13:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"fetchTranslation",value:function(e,t,n,r,o){var i=this,a=this.getSessionKey(n),c="".concat(a,"-").concat(t,"-").concat(e),s=this.getSessionCache(c);if(s)r(s);else{var u="undefined"!==t?"".concat(t,"-").concat(e):"".concat(e);if(!bn[u]){var l=n||gn,f="undefined"!==t?"".concat(t).concat(e):"".concat(e),p=/((http(s?)):\/\/)/g.test(n)?"":yn,d="".concat(p).concat(l,"/").concat(f,".json");bn[u]=bt.get(d,{headers:{"Content-Type":"text/plain",origin:yn}}).then((function(e){return i.transformData(e.data)})).then((function(e){return e.timestamp=Date.now(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("".concat(a,"-").concat(u),JSON.stringify(e)),e}))}bn[u].then(r,(function(a){t===xn&&e===wn?o(a):i.fetchTranslation(wn,xn,n,r,o)}))}}},{key:"getSessionKey",value:function(e){var t="dds-translation";(mn!==gn||e)&&(t=(e||gn).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,""));return t}},{key:"transformData",value:function(e){var t,n=null===(t=e.profileMenu)||void 0===t?void 0:t.signedout;if(n){var r="state=https%3A%2F%2Fwww.ibm.com",o=n.findIndex((function(e){var t;return-1!==(null===(t=e.url)||void 0===t?void 0:t.indexOf(r))}));if(-1!==o&&f.location){var i=encodeURIComponent(f.location.href);e.profileMenu.signedout[o].url=n[o].url.replace(r,"state=".concat(i))}}return e.footerMenu.push(e.socialFollow),e}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]),e}(),Sn={exports:{}};!function(e){var t=a.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Sn);var On=n(Sn.exports);function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(n),!0).forEach((function(t){On(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tn=process&&(process.env.REACT_APP_KALTURA_PARTNER_ID||process.env.KALTURA_PARTNER_ID)||1773841,An=process&&(process.env.REACT_APP_KALTURA_UICONF_ID||process.env.KALTURA_UICONF_ID)||27941801,Ln="https://cdnapisec.kaltura.com/p/".concat(Tn,"/sp/").concat(Tn,"00/embedIframeJs/uiconf_id/").concat(An,"/partner_id/").concat(Tn),Pn="https://cdnsecakmi.kaltura.com/p/".concat(Tn,"/thumbnail/entry_id/"),Rn=0,Cn=!1;function jn(e,t){f.kWidget?(Cn=!1,e()):Cn?++Rn<50?setTimeout((function(){jn(e,t)}),100):t():(!function(){Cn=!0;var e=document.createElement("script");e.src=Ln,e.async=!0,document.body.appendChild(e)}(),jn(e,t))}var In={},Nn=function(){function e(){o(this,e)}var t,n;return l(e,null,[{key:"checkScript",value:function(){return new Promise((function(e,t){jn(e,t)}))}},{key:"getThumbnailUrl",value:function(e){var t=e.mediaId,n=e.height,r=e.width,o=Pn+t;return n&&(o+="/height/".concat(n)),r&&(o+="/width/".concat(r)),o}},{key:"embedMedia",value:(n=y(b.mark((function e(t,n){var r,o,i,a,c=arguments;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},o=!(c.length>3&&void 0!==c[3])||c[3],i=c.length>4&&void 0!==c[4]?c[4]:function(){},a=this.fireEvent,e.next=6,this.checkScript().then((function(){var e=new Promise((function(e){var c;if(!document.getElementById(n)&&document.querySelector("dds-tabs-extended-media")){var s=document.createElement("div");s.classList.add("bx--video-player__video"),s.setAttribute("id",n),document.body.append(s),c=!0}f.kWidget.embed({targetId:n,wid:"_"+Tn,uiconf_id:An,entry_id:t,flashvars:kn(kn({},{autoPlay:!0,closedCaptions:{plugin:!0},titleLabel:{plugin:!0,align:"left",text:"{mediaProxy.entry.name}"},ibm:{template:"idl"}}),r),params:{wmode:"transparent"},readyCallback:function(n){var r=document.getElementById(n);o&&(r.addJsListener("playerPaused.ibm",(function(){a({playerState:1,kdp:r,mediaId:t})})),r.addJsListener("playerPlayed.ibm",(function(){a({playerState:2,kdp:r,mediaId:t})})),r.addJsListener("playerPlayEnd.ibm",(function(){a({playerState:3,kdp:r,mediaId:t})})),r.addJsListener("IbmCtaEvent.ibm",(function(e){var n=(null==e?void 0:e.customMetricsData)||{};a({playerState:101,kdp:r,mediaId:t,customMetricsData:n})}))),i(r),e(r)}}),c&&document.querySelector("dds-tabs-extended-media").shadowRoot.querySelector(".bx--accordion__item--active dds-video-player").lastChild.parentElement.appendChild(document.getElementById(n))}));return{kWidget:function(){return e}}}));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"fireEvent",value:function(e){var t=e.playerState,n=e.kdp,r=e.mediaId,o=e.customMetricsData,i=void 0===o?{}:o,a=Math.round(n.evaluate("{video.player.currentTime}"));2===t&&0===a&&(t=0);var c={playerType:"kaltura",title:n.evaluate("{mediaProxy.entry.name}"),currentTime:a,duration:n.evaluate("{mediaProxy.entry.duration}"),playerState:t,mediaId:r,customMetricsData:i};h.videoPlayerStats(c)}},{key:"api",value:(t=y(b.mark((function e(t){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkScript().then((function(){return In&&In[t]?In[t]:new Promise((function(e){return new f.kWidget.api({wid:"_"+Tn}).doRequest({service:"media",action:"get",entryId:t},(function(t){In[t.id]=t,e(t)}))}))}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getMediaDuration",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(arguments.length>1?arguments[1]:void 0){var n=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60),o=Math.floor(t/36e5%24);return o=o>0?o+":":"",n=n<10?"0"+n:n,t&&"("+o+r+":"+n+")"}var i=(null==f||null===(e=f.kWidget)||void 0===e?void 0:e.seconds2Measurements(t))||{},a=(null==i?void 0:i.hours)||0,c=(null==i?void 0:i.minutes)||0,s=(null==i?void 0:i.seconds)||0;return c=(a>0?"0"+c:c).toString().slice(-2),(a=a>0?a+":":"")+c+":"+(s=("0"+s).slice(-2))}},{key:"getMediaDurationFormatted",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=t;(arguments.length>1?arguments[1]:void 0)||(n=1e3*t);var r=Math.floor(n/1e3%60),o=Math.floor(n/6e4%60),i=Math.floor(n/36e5%24),a=e.formatTime(r,"second"),c=i||o?e.formatTime(o,"minute"):"",s=i?e.formatTime(i,"hour"):"";return"".concat(s," ").concat(c," ").concat(a).trim()}},{key:"formatTime",value:function(e,t){var n=f.document.documentElement.lang||f.navigator.language;return new Intl.NumberFormat(n,{style:"unit",unitDisplay:"long",unit:t}).format(e)}}]),e}();e.AnalyticsAPI=h,e.CloudAccountAuthAPI=Et,e.DDOAPI=kt,e.KalturaPlayerAPI=Nn,e.LocaleAPI=en,e.MarketingSearchAPI=an,e.MastheadLogo=cn,e.ProfileAPI=fn,e.SearchTypeaheadAPI=vn,e.TranslationAPI=En,e.globalInit=function(){tn||(tn=!0,kt.setVersion().catch((function(e){console.error("Error setting the version of the library in the DDO:",e)})),en.getLang().then((function(e){Pt(e.lc)})),h.initAll())},Object.defineProperty(e,"__esModule",{value:!0})}));
|